sillsdev / sillsdev/ptx2pdf

Crash if hyphenation patterns include characters from fallback-font

Open
#601 1 comment 0 reactions 1 assignee View on GitHub

@mhosken is already working on this.

Since Jan 24, 2022.

Dominant language
Python
Stars
33
Forks
15
PR merge metrics
No merged PRs in 30d

Description

It looks like the hyphenation patterns are being loaded with active chars active (and set to \relax), rather than \catcodeed to letters.

The font I was trying lacks an e-grave:

! Improper \hyphenation will be flushed.
ѐ->\relax 
           \@ctivede@ 
l.183 fѐ
        -ri
No pages of output.

Looking at the hyphenantion-including fragment and ptx2pdf.tex, \liter@lspecials`, called before the hyphen patterns are loaded, makes some some well-defined space chars, hyphens, NBSP, etc. return their natural values, but doesn't touch anything made active by the fallback font mechanism.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.