- TeX 99%
- Makefile 0.6%
- Python 0.4%
| img | ||
| src | ||
| .gitignore | ||
| CC-1.0-Universal.txt | ||
| CHANGELOG.txt | ||
| Makefile | ||
| pyproject.toml | ||
| README.md | ||
L'Île Des Pingouins
Bilingual parallel text in French and English.
Status: Under early development.
Cover
Sample page
Sources
French
Scans
English
Scans
Build
To clean the build environment, for instance if a build fails run:
make clean
The "main" command to build a PDF of the document, run:
make pdf
To convert the PDF to a Postcript document:
make ps
To build a PDF of the cover:
make cover
To convert the PDF to a Postscript version of the cover:
make cover-ps
To build a PDF of the dust jacket:
make dustjacket
To build a PDF "2up" version of the document, with two pages per leaf (e.g. verso and recto).
make 2uppdf
To build a Postcript "2up" version of the document, with two pages per leaf (e.g. verso and recto).
make 2up
To build PDF and Postscript signatures for local printing and binding into a book:
make signatures
To build everything:
make
Convert
- Download a copy.
- Convert to
.texwithpandoc. - Remove the header.
- Copy language template to new file, e.g.:
cp 0_english_template.tex 1-en.tex
cp 0_spanish_template.tex 1-es.tex
catthe file to the end of the new chapter file in the repo.- Go to the subsection of the next chapter and delete everything below it.
- Add
\pstartand\pend. - Run
paralleltext-pstart-num [filename]to add paragraph counts. - Add to main document
\chaptersection.
Command Notes
To do the process more quickly, commands such as these for chapter 5:
# Set up new templates per chapter
for i in {1..7} ; do cp 0_french_template.tex 5-$i-fr.tex ; done
for i in {1..7} ; do cp 0_english_template.tex 5-$i-en.tex ; done
# Rename header
for i in {1..7} ; do sed -i -e "s/0_english_template/5-$i-en/g" 5-$i-en.tex ; done
for i in {1..7} ; do sed -i -e "s/0_french_template/5-$i-fr/g" 5-$i-fr.tex ; done
# Then append texts
# Gutenberg "manually"
# Standard eBooks thusly:
for i in {1..7} ; do cat chapter-5-$i.tex >> ~/devel/spacecruft/books/pingouins/src/5-$i-en.tex;done
# rm hrefs, perhaps other rm's
for i in 5-*-en.tex ; do paralleltext-rm-href $i ; done
# Edit each to clean up
for i in 5-*-en.tex ; do vim $i ; done
for i in 5-*-fr.tex ; do vim $i ; done
# Number each paragraph
for i in 5-*-en.tex ; do paralleltext-pstart-num $i ; done
for i in 5-*-fr.tex ; do paralleltext-pstart-num $i ; done
Project Gutenberg
mkdir en es
cd en/
wget https://gutenberg.org/cache/epub/12345/pg12345-h.zip
unzip pg12345-h.zip
pandoc -o en.tex pg12345-images.html
cd ../es/
wget https://gutenberg.org/cache/epub/54321/pg54321-h.zip
unzip pg54321-h.zip
pandoc -o es.tex pg54321-images.html
Wikisource
The Wikisource page has options for various export downloads.
Note, this server seems to be down a lot:
If it is down, use the same URL, but with this hostname:
It is (probably) best to use the HTML version,
so on the Wikisource page, click Descargar (or equivalent),
click ¿Buscando un formato diferente?
then select File Format HTML.
Create a temporary directory, and use unzip
to unzip the .htmlz file.
Then run:
pandoc -o es.tex index.html
Standard eBooks
Use .xhtml copy from their git repo.
git clone https://github.com/standardebooks/BOOK
cd BOOK/src/epub/text/
for i in chapter-*xhtml ; do pandoc -o $(basename $i .xhtml).tex $i ; done
regex
To quickly add \pend and \pstart:
s/^$/\\pend\r\\pstart/
Python Script
There is a Python script to count \pstart to help
manually align the paragraphs.
Setup Python to taste, such as:
git clone https://spacecruft.org/books/pingouins
cd pingouins/
python -m venv venv
source venv/bin/activate
pip install -U pip setuptools wheel
pip install -e .
# For Python development tools, add:
pip install -e .[dev]
Usage:
$ paralleltext-pstart-num -h
usage: paralleltext-pstart-num [-h] file_path
Add number count to \pstart lines in a document.
positional arguments:
file_path Path to the file
options:
-h, --help show this help message and exit
Repository Images
To generate images to view in the repository README.
convert pingouins-cover-*.pdf img/cover.png
pdftoppm -png -f 24 -l 25 pingouins-v*.pdf tmp/sample
convert +append tmp/sample-024.png tmp/sample-025.png img/sample.png
Fonts
Copy the .otf and/or .ttf files to ~/.fonts/.
Fell Types
The Fell Types are originally by John Fell (23 June 1625 – 10 July 1686).
The types were recreated in a computer font by Igino Marini.
The fonts are under the SIL Open Font License, Version 1.1. The font files are widely available across the Internet in a variety of versions and formats. The OTF format is preferred, as I think it will work better with LaTeX microtype. Here is one location that has OTF and a recent version.
- https://everythingfonts.com/fonts/tag/fell-types
- https://everythingfonts.com/font/im-fell-dw-pica-pro-regular
- https://everythingfonts.com/font/im-fell-dw-pica-pro-italic
Also available in the Wayback Machine:
Swell Types
The Swell Types are a lowly fork of the Fell Types by me. The Fell Types are crashing the build, so these rebuilds are used in place.
The font is under the SIL Open Font License, Version 1.1.
Hopfer Hornbook
Hopfer Hornbook was originally designed by Daniel Hopfer (c. 1470 – 1536).
Staffan Vilcans created the digital version.
The font is also widely available on the Internet and under a free license.
Romantique Initials
English (right page) drop caps are Romantique Initials (believed to be) by Marwan Aridi.
Freely available on the Internet, such as:
The license description reads:
"Possessor is granted license to do anything at all with this font, including but not limited to unlimited use, unlimited copying, decompilation, modification, redistribution, with the single exception that no use shall be made of this that is illegal, immoral, or fattening."
Latin Modern
Latin Modern fonts by the Polska Grupa Użytkowników Systemu TeX are freely available in Debian. The fonts are derived from Computer Modern by Donald E. Knuth, creator of TeX.
OCR-A
The ISBN in the interior pages is in OCR-A. OCR-A is a font designed by the American National Standards Institute (ANSI) in the 1960s.
The version used was designed by John Sauter and is in the public domain.
It is available in Debian.
OCR-B
The ISBN font below the barcode on the back cover is OCR-B. The font is freely available and in Debian and TeX Live.
Nimbus
The ISBN font above the barcode on the back cover is Nimbus Sans condensed. The font is freely available and in Debian.
Drop Caps
Spanish (left page) drop caps are from the original 1608 book. They were extracted and cropped from this text:
Then converted to vector graphics with potrace.
All have been converted, but some need reworking.
Lulu
The book will be printed by Lulu, which can also distribute.
There are various project forms to be filled out.
Start
- Print book.
- Publish Your Book: Lulu Bookstore.
- Project Title: L'Île Des Pingouins
- Book Language: French. XXX Only one can be selected.
- Book Category: XXX.
Copyright
- Title: L'Île Des Pingouins
- Subtitle (optional): Bilingual Parallel Text in French and English
- Edition (optional), drop down selection: Bilingual 'facing page' edition
- Edition statement (optional):
<blank> - Contributors:
- Original Author: Anatole France
- Translated by: A. W. Evans
- Edited by: Jeff Moe
- Copyright: No Rights Reserved - Public Domain
- Creative Commons Zero (CC 0)
- ISBN: I have my own ISBN
- ISBN: 978-1-968646-09-7
- Imprint/Publisher: Jeff Moe
- Contact Informantion: Jeff Moe, address, etc.
Design
- Interior File Upload: Upload
XXX-[VERSION].pdfgit tagged version. - Book size: Novella (5 x 8 in / 127 x 203 mm)
- Interior Color: Standard Black & White
- Paper Type: 60# Cream -- Uncoated
- Binding Type: Paperback Perfect Bound
- Cover Finish: Glossy
- Upload Your Cover: Upload
XXX-cover-[VERSION].pdfgit tagged version. - Download Print-Ready Files, and review.
Details
- Description (required): This bilingual, parallel text edition features both the original French text and a translation into English.
XXX...
- Table of Contents (optional):
XXX
- Lulu Bookstore Category: XXX
- BISAC Main Category: XXX
- BISAC Category 2 (recommended): XXX
- BISAC Category 3 (recommended): XXX
- Keywords (one required, 50 max): dual text, facing page translation, dual language, public domain, parallel text, bilingual, XXX
- Audience: General/Trade Adult fiction and nonfiction
- This Book contains Explicit Content: XXX
Pricing and Payees
- Set Price: Revenue Goal
- Revenue Goal: $0.00
- Currency: USD
- List Price: Automatically generated, keep defaults
- Your Estimated Revenue: $0.00
- Set Payees. Required to set one, even for $0.00 revenue.
- Payees for your book: Must connect to PayPal payee.
- Share: 100%
Final Review
- When ready, click
<Confirm and Publish>
Bowker ISBN
Bowker Publishing Services is the exclusive agent (monopoly) for assigning ISBNs in the USA.
The ISBN will be:
978-1-968646-09-7
The form on their site has the following form details to fill out.
Book Cover Image
To create the cover image for Bowker (must be JPG), run this:
convert -density 300 pingouins-cover-*.pdf -crop 50%x100%+2228+0 img/front_cover.jpg
Front Cover
Title Information
-
Book Title: L'Île Des Pingouins
-
Subtitle: Bilingual Parallel Text in French and English
-
Language: English, French.
-
Describe your book: XXX
-
Original Publication Date: 2025
-
Translated Title:
<blank> -
Copyright Year:
<blank>, since it is in the public domain (?) -
Library of Congress Control Number:
<blank- Info: https://www.loc.gov/programs/cataloging-in-publication/about-this-program/
- According to this, "The following are ineligible: ... Translations except Spanish".
- https://www.loc.gov/programs/preassigned-control-number/about-this-program/scope/
Authors & Contributors
- Contributor 1:
- Individual
- First Name: XXX
- Last Name: XXX
- Biography: XXX
- Function: Original Author
- Contributor 2:
- Individual
- First Name: XXX
- Last Name: XXX
- Biography:
<blank> - Function: Translator
- Contributor 3:
- Individual
- First Name: Jeff
- Last Name: Moe
- Biography:
<blank> - Function: Editor, Prepared for Publication by, Cover Design by
Medium & Format
- Medium (dropdown): Print
- Format: Paperback
- Format Details: Digest format paperback (XXX no "novella" format)
- Packaging Description: No outer packaging
- Trade Catalog: US open market edition
- Size Details
- Weight:
<blank>. XXX unknown. - Units (weight):
<blank>. XXX unknown. - Number of pages: XXX may change.
- Number of illustrations:
<blank>. Can't be0. - Carton quantity:
<blank> - Size Units: Inches. Can't use Millimeters because values must be less than 99.
- Length(1) (they mean how tall!): XXX
- Width(2): XXX
- Height(3) (how thick):
<blank>. XXX unknown.
- Weight:
Subjects & Genres
- First Genre:
- XXX
- Second Genre:
- XXX
Sales & Pricing
United States
- Publisher: Jeff\Moe. XXX It won't let that field be changed, and "" is hard-coded in there. Though on the main page about the account, the "" isn't there, so it must just be how they do it (?).
- Publication Date: XXX
- Month: XXX
- Day: XXX
- Year: XXX
- Title Status: Active Record
- Target Audience: Trade
- From Age: XXX
- To Age: XXX
- Academic Grade From: XXX
- Academic Grade To: XXX
- Title Ship Date: XXX Update
- Month: XXX
- Day: XXX
- Year: XXX
- Final Return Date:
<blank> - On Sale Date: XXX
- Month: XXX
- Day: XXX Update
- Year: XXX
- Out of Print Date:
<blank> - Is The Title Returnable?: No
- Series Title:
<blank> - Series Volume:
<blank> - Book Price:
- Set Dollar Amount
- $: XXX update base on Lulu final number.
- Currency: US Dollars
- Price Type: Retail Price
- Price Availability: Manufactured on demand (POD)
- Distributor:
<blank>No options in the drop down. Should Lulu be added? - Discount Code:
<blank>
TODO
- Hardcover ISBN at Bowker.
- Hardcover version.
- Hardcover at Lulu.
- Paperback at IngramSpark.
- Hardcover at IngramSpark
- Keywords.
- Livre text.
License
The combination of the two public domain texts into a single work in LaTeX and the resultant outputs are placed in the public domain.
CC0 1.0 Universal
2025, Jeff Moe


