-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
emojis fail in PDF #661
Comments
After falling down a fairly deep rabbit hole, I have a feeling this is going to very difficult due to the complexity of emoji rendering in TeX. Here's a good summary of the state (at least in 2023) of things: https://www.overleaf.com/learn/latex/Articles/An_overview_of_technologies_supporting_the_use_of_colour_emoji_fonts_in_LaTeX Some other resources of note (though both discuss luatext and xelatex, but we use the latter I believe): https://tex.stackexchange.com/questions/639067/defining-a-fallback-font-for-all-missing-characters Suffice it to say that this will not be trivial in latex. That said, this would be much easier to do in FO, since I believe we could just a fallback font (e.g. https://fonts.google.com/noto/specimen/Noto+Color+Emoji). Perhaps this is another reason we should add a switch to allow building the PDF in FO as per #208. |
Since Unicode provides a nice test set of all emoji characters (https://www.unicode.org/Public/emoji/latest/emoji-test.txt), I ran a little experiment:
For reference, I've attached the TEI, HTML (produced used So unless I'm missing something about xelatex (which isn't unlikely by any means), I'd say probably the most straightforward way to handle this for the TEI Guidelines build specifically is to replace the emoji character with a graphic since emoji fonts aren't really able to properly typeset AFAICT. This would mean, I think, that we need to tag each emoji with a If we go that route, then we should probably flag for others that they will encounter if they want to use emojis in their files (e.g. in their documentation, say, and they convert it to PDF via -- Footnotes
|
Wow, many thanks @joeytakeda for all that thorough research so far! |
Emojis in the prose and in examples come out as useless boxes (either with an X inside the box or not) that cannot even be copied-and-pasted.
See, e.g., section 9.6.1 on page 312 of this recent cmc-features build of the PDF.
This may be related to #151.
The text was updated successfully, but these errors were encountered: