View Single Post
Old 05-06-2024, 05:37 AM   #1
413Michele
Enthusiast
413Michele began at the beginning.
 
Posts: 47
Karma: 10
Join Date: Jan 2021
Location: Italy
Device: Kobo Libra 2, Kindle Paperwhite (1st gen)
Hyphenation in Viewer - 2024

I'm starting this thread as a follow up to this 2019 one. At the time the situation was much more dire, with Chromium not having support for hyphenation at all and the lack of hyphenation dictionaries for the vast majority of languages.

Right now, however, it seems like all the pieces necessary for a seamless integration of automatic hyphenation in the calibre Viewer are present:
  • Chromium supports hyphenation since version 88 and has added many dictionaries in subsequent versions (v112 in particular)
  • From what I understand, calibre currently runs on Qt 6.4 i.e. the Chromium version of the bundled QtWebEngine is v102, more than enough to support many languages (though not all the ones supported in v112)
  • The CSS property for hyphens is now standardised and its prefixed versions not necessary anymore, at least as far as the Viewer is concerned

The only doubt I have is whether QtWebEngine actually added support for hyphenation at all. I can see no reason not to do this, yet I couldn't find any info on it, and the fact that calibre's Viewer doesn't already seamlessly support hyphenation may indicate that the problem lies with QTWebEngine and not with how it's implemented in the Viewer.

This may well be a question of personal preference, but I believe automatic hyphenation would be a very nice feature that for some languages would yield a marked improvement in readability. If this is considered too disruptive to be made a GUI option, it could simply be allowed as Custom CSS, away from a general user's reach.

Given this new situation, is there a reasonable possibility that the calibre Viewer may support this?
413Michele is offline   Reply With Quote