From 13996e896e03b6d3e5272d72e774162aeac0f86c Mon Sep 17 00:00:00 2001 From: tannevaled Date: Thu, 27 Aug 2026 11:46:53 +0200 Subject: [PATCH] Read the letters those languages use, and settle three other things 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. --- go.mod | 4 ++-- go.sum | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/go.mod b/go.mod index b64958d..d238bd9 100644 --- a/go.mod +++ b/go.mod @@ -4,10 +4,10 @@ go 1.26.4 require ( github.com/go-pdfkit/extract v0.1.0 - github.com/go-pdfkit/reader v0.4.1 + github.com/go-pdfkit/reader v0.4.2 ) require ( github.com/go-opentype/opentype v0.9.0 // indirect - github.com/go-pdfkit/pdffont v0.2.0 // indirect + github.com/go-pdfkit/pdffont v0.3.0 // indirect ) diff --git a/go.sum b/go.sum index e33f2d7..de04967 100644 --- a/go.sum +++ b/go.sum @@ -4,7 +4,7 @@ github.com/go-opentype/opentype v0.9.0 h1:GFgcJ3nwTDp4NJr5O+Paw7lhZx5Jv/R+noZwvh github.com/go-opentype/opentype v0.9.0/go.mod h1:AOixevJf7XQaH7+WG+OMIOZEbYPXfMqklVk26Y6YTUU= github.com/go-pdfkit/extract v0.1.0 h1:7IJDJMH43l2wJZD+DkW5StmeAS1NDt2FnT2LBceXTog= github.com/go-pdfkit/extract v0.1.0/go.mod h1:3ejdi87IrdR60wmjzLswdqzBzHCgFlrLtxkMxRN1KSU= -github.com/go-pdfkit/pdffont v0.2.0 h1:yAp/oR5Z2kkqs4r0GWMalZMC7rc7XSCZXgwIypbpMWM= -github.com/go-pdfkit/pdffont v0.2.0/go.mod h1:y4vo5DgT95e57C3XxIWfA/xss+x6RwZwyj6KWdJc86s= -github.com/go-pdfkit/reader v0.4.1 h1:pRxFqRjsn7H/VsGfWb9nYWyFuDgTU2Pjmoq/f5mgVq4= -github.com/go-pdfkit/reader v0.4.1/go.mod h1:fQFOVfCMUui1AdvD4qhimdyvvNr9KvvJ1S7IuKZjyV8= +github.com/go-pdfkit/pdffont v0.3.0 h1:G5DKcAmsZJ0e17QhSrcUaL7PKEXKjUx4P/iGMl7bAbI= +github.com/go-pdfkit/pdffont v0.3.0/go.mod h1:bfmNLna1l1CljNX/Utg55YzFylovfmI7sJnvgA3bzKI= +github.com/go-pdfkit/reader v0.4.2 h1:0/qPShLzdG/roH4i13dwDTHnS7mEBVTaCBGwCZQhOH0= +github.com/go-pdfkit/reader v0.4.2/go.mod h1:fQFOVfCMUui1AdvD4qhimdyvvNr9KvvJ1S7IuKZjyV8=