Skip to content
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

FR: Add UnifontEX as last-resort fallback font (for when Noto doesn't have something) #19

Open
stgiga opened this issue Dec 19, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@stgiga
Copy link

stgiga commented Dec 19, 2024

I've done some fiddling around with KOReader on my Kindle Touch, and I went to great effort to make the Lua files use UnifontEX instead of Noto, for the purposes of greater character support (the Noto used in KOReader seems to be taking it easy in how much Noto is used). After this (I don't know if the update would break this, I did this in March), I was even able to browse Wikipedia's Biangbiang Noodles article in KOReader (because UnifontEX has Unicode 15.1 support, including emoji and the infamous Biang and Taito Hanzi). Also, the Kindle displays it fine without needing to edit any size values.

Basically, I'm wanting to make KOReader support UnifontEX officially as a last-resort fallback font for stuff Noto can't display, and maybe the ability to make KOReader display everything in it, in case you have anything with emoji filenames from AO3.

Regular Unifont does have some limitations that UnifontEX doesn't have, such as needing two files to do Plane0+Plane1, something Emoji, "Aesthetic Text" (you'll find THIS on AO3 stories, which ironically the native Kindle hates), Unicode's internal Wingdings+Webdings family needs, as well as other stuff.

UnifontEX on KOReader works quite well. It does take some fiddling with the Lua files, but it DOES work. I haven't touched this since March, except today I finished the override, and I'm unsure if this will break, so I haven't updated. I'm using an original Kindle Touch for this.

@stgiga stgiga added the enhancement New feature or request label Dec 19, 2024
@stgiga stgiga changed the title FR: Add UnifontEX as last-resort fallback fonts (for when Noto doesn't have something) FR: Add UnifontEX as last-resort fallback font (for when Noto doesn't have something) Dec 19, 2024
@pazos pazos transferred this issue from koreader/koreader Dec 19, 2024
@NiLuJe
Copy link
Member

NiLuJe commented Dec 21, 2024

For clarity's sake, define "fiddling with the Lua files" (i.e., post the actual diff).

But, to be clear, given the size of Unifont: extremely unlikely.

If the code needs more massaging in order to add a fallback, sure, that's useful, but we can't really afford to ship 13MB of extra font ;).

@stgiga
Copy link
Author

stgiga commented Dec 21, 2024

It does compress well, but I see your point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants