Replies: 1 comment 6 replies
-
First, the
So you might have had another issue here, or didn't provide the correct PDF. Doing it on my own system with EB Garamond installed:
Then I got "vuuuu" with the feature applied, and the file correctly reports the correct font. I can try to investigate from this point:
The glyph numbers, which I assume to be the GID in the embedded font, differ -- but I'd assume (not knowingly) that this might be due to different versions of the font, or to the font embedding/subsetting perhaps... The coordinates also differ, but that's rather logical (different page layouts), as well as the folio numbering (and the font it uses) Then the remaining notable difference is the unicode equivalent value of the glyphs.
|
Beta Was this translation helpful? Give feedback.
-
I've encountered something that to me feels a bit strange, and I'm not quite sure what the difference between what XeLaTeX and SILE does is in this case.
The PDF generated from the following SIL document, enabling the
ss02
font feature which causes the text to be rendered with v in word-initial positions and u otherwise, ends up without searchable/copiable text in MuPDF and Firefox's PDF.js. Copying the text leads to copying0xAD3
/0xAD4
/0xAD5
which are the font's substituted glyphs. Runningmutool draw -F text -o -
on the file results in��u�u
, with the substituted glyphs being replaced with replacement characters.Meanwhile, if I run the following document through XeLaTeX then the resulting PDF file is searchable and has copiable text. Running it through the same
mutool
command results inuvuvu
.I've tried to the best of my ability to inspect the generated PDF files to see what might differ between them, but I'm not very familiar with how the format works and so I'm a bit stuck.
While looking around for ways to make it work I ran into #494 (comment), but it doesn't seem to make a difference.
I would appreciate any help in figuring out how the files differ, and any hints for how to make the SILE-generated PDF functionally equivalent to the XeLaTeX-generated one.
sile.pdf
xelatex.pdf
Beta Was this translation helpful? Give feedback.
All reactions