Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Viewer

Notices

Reply
 
Thread Tools Search this Thread
Old 05-06-2024, 06: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
Old 05-06-2024, 06:42 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,542
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I dont know of a way to get Qt WebEngine to use hyphenation dictionaries on any platform other than macOS where IIRC it can use the native hyphenation framework for it.

If you do, I am all ears.
kovidgoyal is offline   Reply With Quote
Advert
Old 05-06-2024, 06:50 AM   #3
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)
That is a pity :(

So the problem lies with QtWebEngine. Do you know any more about it, particularly whether they implement hyphenation at all? Because the dictionaries should get shipped along with Chromium.

I don't think I'm the best person to investigate this but I surely want to try, and any info is welcome
413Michele is offline   Reply With Quote
Old 05-06-2024, 08:30 AM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,542
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
No clue, last I looked into this, IIRC I could find only spelling dictionary support not hyphenation.

Not that you can use the calibre content server viewr with a web browser to read books with hyphenation.
kovidgoyal is offline   Reply With Quote
Old 05-14-2024, 05:42 AM   #5
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)
A small update:

I searched through the QT bug tracker but I found almost nothing. There appears to be the possibility of importing/loading dictionaries, but only for spell checking, which is a pity considering some dictionaries also contain hyphenation rules.

I opened a thread here on the QT forums to ask for information, but as of now I got no answer, so for now that's it.

Last edited by 413Michele; 05-14-2024 at 05:42 AM. Reason: missing comma
413Michele is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Short Fiction Dorrington, Albert: Sally of Sunday Reef (2024); v1, 2 Jan 2024 Pulpmeister ePub Books 0 01-03-2024 12:51 AM
Short Fiction Dorrington, Albert: Sally of Sunday Reef (2024); v1, 2 Jan 2024 Pulpmeister Other Books 0 01-02-2024 01:27 AM
Hyphenation in Calibre Viewer preuthier Viewer 6 11-19-2022 01:10 AM
Hyphenation in Viewer? eckmm38 Calibre 5 11-10-2019 10:27 PM
Hyphenation does not work in E-book Viewer Elancrom Calibre 2 06-18-2014 07:19 AM


All times are GMT -4. The time now is 05:17 AM.


MobileRead.com is a privately owned, operated and funded community.