Vuizur / add-stress-to-epub

A program that sets the stress and the letter ё of Russian text and ebooks using Wiktionary data and grammar analysis.
GNU Affero General Public License v3.0
20 stars 2 forks source link

Offical™ embedded font #15

Closed equwal closed 8 months ago

equwal commented 8 months ago

Hello,

I'm very impressed by the project and found it a few minutes ago.

I've noticed that the display of accented characters has a lot of variety depending on whatever fonts are embedded in the book or whatever. It would be nice for users to be able to add a font known to be good with calibre (maybe a wiki page)?

(edit: looks like this is a bug in KOReader, where it calls up a "fallback font" for the accented characters)

equwal commented 8 months ago

The workaround I found is like this:

  1. Install Google Liberata font (it has multiple weights)
  2. Set Liberata 7pt (heavy) as default font (press and hold to get the dialogue)
  3. Set Liberata 36pt (lighter) as the fallback font

This is a mostly readable experience.

Vuizur commented 8 months ago

Thanks for the feedback! I think that in KOReader the best option is to disable "Embedded Fonts". That way it uses Noto Serif for everything, and the accents get displayed fine.

I added the following guide to the Readme:

It's best to disable "Embedded Fonts" in this case. Open the menu by clicking somewhere at the top, then in the menu at the bottom of the page select the settings wheel symbol on the rightmost side. Set here "Embedded Fonts" to "off".

equwal commented 8 months ago

Thanks for the feedback! I think that in KOReader the best option is to disable "Embedded Fonts". That way it uses Noto Serif for everything, and the accents get displayed fine.

I added the following guide to the Readme:

It's best to disable "Embedded Fonts" in this case. Open the menu by clicking somewhere at the top, then in the menu at the bottom of the page select the settings wheel symbol on the rightmost side. Set here "Embedded Fonts" to "off".

I found the solution, it is slightly different:

Disable fallback fonts in the GUI. For some reason, KOReader always tries to fallback when it finds an accent mark after a Cyrillic character, even if the font supports it.

So, embedded fonts are not at fault here (unless you have an epub with an embedded font that breaks it). I suggest keeping your readme change because it is a good thing to disable them. And adding a new change...I will make a pull