- TeX 98%
- Makefile 2%
| src | ||
| .gitignore | ||
| CC-1.0-Universal.txt | ||
| CHANGELOG.txt | ||
| Makefile | ||
| README.md | ||
| requirements.txt | ||
Sir Gawain and the Green Knight
Bilingual parallel text in Enlish and Middle English.
Status: Initial setup.
PDFs:
Cover
Sample page
Sources
Modern English Verse
Neilson
Modern English Prose
Jessie L. Weston
Kirtlan (Literal)
- https://archive.org/details/sirgawaingreenkn00kirtuoft/mode/2up
- https://rpo.library.utoronto.ca/content/sir-gawain-and-green-knight
Middle English
Original Images
Richard Morris
J. R. R. Tolkien
- https://archive.org/details/sirgawaingreenkn00unse/mode/2up
- https://quod.lib.umich.edu/c/cme/Gawain?rgn=main;view=fulltext
Frederic Madden
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, with the paperback ISBN, run:
make pdf
To build a PDF for a hardcover version. This changes the ISBN on the copyright page to the hardcover version.
make hardcover
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_me.tex 1-me.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.
Project Gutenberg
mkdir en me
cd en/
wget https://gutenberg.org/cache/epub/12345/pg12345-h.zip
unzip pg12345-h.zip
pandoc -o en.tex pg12345-images.html
cd ../me/
wget https://gutenberg.org/cache/epub/54321/pg54321-h.zip
unzip pg54321-h.zip
pandoc -o me.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 me.tex index.html
Standard eBooks
Use .xhtml copy from their git repo.
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/parallel-text
cd vatican/
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 gawain-cover-*.pdf img/cover.png
pdftoppm -png -f 6 -l 7 gawain-v*\.*\.*\.pdf tmp/sample
convert +append tmp/sample-006.png tmp/sample-007.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
XXX
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: Sir Gawain and the Green Knight
- Book Language: XXX. XXX Only one can be selected.
- Book Category: XXX.
Copyright
- Title: Sir Gawain and the Green Knight
- Subtitle (optional): Bilingual Parallel Text in English and Middle English
- Edition (optional), drop down selection: Bilingual 'facing page' edition
- Edition statement (optional):
<blank> - Contributors:
- Original Author: XXX
- Translated by: XXX
- Edited by: Jeff Moe
- Copyright: No Rights Reserved - Public Domain
- Creative Commons Zero (CC 0)
- ISBN: I have my own ISBN
- ISBN Paperback: 978-1-968646-03-5
- ISBN Hardcover: 978-1-968646-05-9
- 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 Middle English text and a translation into English.
-
Table of Contents (optional):
<blank> -
Lulu Bookstore Category: XXX
-
BISAC Main Category: FICTION / Classics
-
BISAC Category 2 (recommended): FICTION / Literary
-
BISAC Category 3 (recommended): FICTION / 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:
- ISBN Paperback: 978-1-968646-XX-X XXX
- ISBN Hardcover: 978-1-968646-XX-X XXX
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 gawain-cover-*.pdf -crop 50%x100%+2314+0 img/front_cover.jpg
Front Cover
Title Information
-
Book Title: Sir Gawain and the Green Knight
-
Subtitle: Bilingual Parallel Text in Middle English and English
-
Language: English, Middle English.
-
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>
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


