Skip to content

Read the letters those languages use, and bound a /ToUnicode map - #2

Merged
tannevaled merged 1 commit into
mainfrom
bump-pdfkit-deps
Aug 27, 2026
Merged

Read the letters those languages use, and bound a /ToUnicode map#2
tannevaled merged 1 commit into
mainfrom
bump-pdfkit-deps

Conversation

@tannevaled

Copy link
Copy Markdown
Contributor

Measurements are being run now and will be added to this body before review.

pdffont v0.2.0 -> v0.3.0 (indirect), reader v0.4.1 -> v0.4.2.

Reconstructed source is made of the text on the page, so a glyph name that
read as nothing left a hole in it. The names covering Czech, Polish,
Slovak, Hungarian, Turkish, Romanian, Latvian and Lithuanian letters all
did, and names spelling more than one character were refused.

The same pdffont release bounds how many codes one /ToUnicode map may name:
10 655 bytes of it used to produce 13 million entries, 1 054 MB and about
ten seconds, per font, per page.

reader v0.4.2 fixes InlineImage.Expanded, which walked the image dictionary
in one pass and so let Go's randomised map iteration order decide between
both spellings of a key -- /W beside /Width. A figure reconstructed as
\includegraphics is written out from what that returns.
@tannevaled
tannevaled merged commit 82c2a83 into main Aug 27, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant