Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 02-09-2024, 09:10 AM   #511
MarkFalk
Member
MarkFalk began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Mar 2016
Device: kindle touch 5.3.7.3
I am using "Hyphenate-This!" with azw3-files for "old" kindle-reader and German texts. With nearly every (German) text the hyphenation with the plug-in works.
But some days ago I have converted a German text from pdf to epub (and after editing converting again to azw3, but his makes no difference) and tried several time adding soft-hyphens with the "Hyphenate This!"-plugin. After some time of investigations I realized that the plug-in only added soft-hyphens to text which is enclosed by / between <i class="calibre9"> and </i>, not into "normal" text w/o this tags. Checking this with ebook-edit and searching for "\xad" as "regex" soft-hyphens are only found in text in/between <i class="calibre9"></i> and only this text is displayed with hyphenation. After some research I have learned hat also ebook-polish does insert soft-hyphenations and after doing this with ebook-polish the soft-hyphens are in the complete text: They are found with "\xad" and also are working when displaying the text.
Seems as if the plug-in has a bug and ebook-polish does some things different than the plug-in.
After this I remembered vague that I have realized in the past, that the plug-in did not work with a few other ebooks. Unfortunately I don´t know enough about the structure of .epub, .azw3 etc. for further analyzes.
MarkFalk is offline   Reply With Quote
Old 04-12-2024, 05:46 PM   #512
Ancanar
Junior Member
Ancanar began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Apr 2024
Device: Kindle
Hyphenate This doesn't hyphen "as much as it should"

Hello.
I use hyphenate this on my ebooks but although it makes the words hyhen here and there it still does not make all spaces between words equally white as I expected it to do. You can see on the attached screenshot that although some words are hyphenated the space marked in red is much wider than the one marked in green (it's from Calibre preview but looks exactly the same on my Kindle). Is the way to set up the plugin to make spaces equally wide like in real paper books?
Attached Thumbnails
Click image for larger version

Name:	438065509_7779791412051822_7949740060718451623_n.png
Views:	1236
Size:	16.2 KB
ID:	207534  
Ancanar is offline   Reply With Quote
Old 04-12-2024, 07:05 PM   #513
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,419
Karma: 169098492
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
@Ancanar: Posting duplicate messages is frowned upon. Please avoid doing so.

See this thread in the Amazon Kindle forum: Hyphenate This doesn't hyphen "as much as it should" .
DNSB is online now   Reply With Quote
Old 01-09-2025, 07:06 AM   #514
tudoapampa
Member
tudoapampa began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Oct 2020
Device: kindle paperwhite 7th gen / Inkpalm 5 / Kobo mini
Quote:
Originally Posted by Ruskie_it View Post
Ivano I got that!
Quick and easy: you don't have to load the entire oxt file into hypenate this!
It normally should work, but for some reason it confuses the plugin.
Just open the .oxt file with winzip, then extract hyph_it_IT.dic file from "dictionaries" subdirectory and load that into Hypenate this!
This way the hypenation will work.

PS: Sorry for the repeated posting. :P
thank you! You saved me
tudoapampa is offline   Reply With Quote
Old 01-30-2025, 10:29 AM   #515
C4thie
Enthusiast
C4thie began at the beginning.
 
Posts: 29
Karma: 10
Join Date: Jan 2025
Device: Paperwhite 4 & 5
I would like to use KFX format, but it doesnt support hyphenation for my native language. Is it possible to add hyphens with this plugin to EPUB file first. Then convert it to KFX to keep hyphenation? Or converting to KFX is going to remove these changes?
C4thie is offline   Reply With Quote
Old 01-30-2025, 10:57 AM   #516
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,796
Karma: 146391129
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by C4thie View Post
I would like to use KFX format, but it doesnt support hyphenation for my native language. Is it possible to add hyphens with this plugin to EPUB file first. Then convert it to KFX to keep hyphenation? Or converting to KFX is going to remove these changes?
What is your native language? A hyphenation dictionary would have to be found for your language.

You would have to convert to KF8 and then add soft-hyphens. I just did a test and the soft-hyphens I added to the ePub were removed from the KFX. So for KFX, it's a no.

I'm thinking that reason soft-hyphens get removed is because KFX already has hyphenation.
JSWolf is offline   Reply With Quote
Old 01-30-2025, 01:32 PM   #517
shamanNS
Wizard
shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.
 
Posts: 1,115
Karma: 12345678
Join Date: Feb 2010
Location: Serbia
Device: Kindle PW5, Kobo Libra 2, Kindle PW1
Quote:
Originally Posted by C4thie View Post
I would like to use KFX format, but it doesnt support hyphenation for my native language. Is it possible to add hyphens with this plugin to EPUB file first. Then convert it to KFX to keep hyphenation? Or converting to KFX is going to remove these changes?
I tested this last autumn with sending soft-hyphanted epub via Send to Kindle web page for book in serbian language (serbian Latin script actually, didn't test the Cyrillic script) that also not official supported by KFX format and KFX file deliver to Kindle for Android app had hyphens.

So, couple more notes about this:
- converting books in serbian language using Kindle Previewer directly (so not using KFX output Calibre plugin that now does the language metadata temporary change as a workaround for unsupported languages) wouldn't produce a KFX/KPF file because the language is unsupported.

- if you send epub without soft-hyphens added using Send to Kindle you'll get a KFX file with no hyphens renderer when reading a book. Also no need to fake / change the language metadata when sending via Send to Kindle web page, unlike with Kindle Previewer.
shamanNS is offline   Reply With Quote
Old 07-10-2025, 04:23 PM   #518
karakai
Junior Member
karakai began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Apr 2012
Device: iriver Story HD
The latest Hungarian dictionary for the plugin:
hyph_hu_HU_processed.zip
karakai is offline   Reply With Quote
Old Yesterday, 12:52 AM   #519
Moonbase59
Addict
Moonbase59 ought to be getting tired of karma fortunes by now.Moonbase59 ought to be getting tired of karma fortunes by now.Moonbase59 ought to be getting tired of karma fortunes by now.Moonbase59 ought to be getting tired of karma fortunes by now.Moonbase59 ought to be getting tired of karma fortunes by now.Moonbase59 ought to be getting tired of karma fortunes by now.Moonbase59 ought to be getting tired of karma fortunes by now.Moonbase59 ought to be getting tired of karma fortunes by now.Moonbase59 ought to be getting tired of karma fortunes by now.Moonbase59 ought to be getting tired of karma fortunes by now.Moonbase59 ought to be getting tired of karma fortunes by now.
 
Moonbase59's Avatar
 
Posts: 206
Karma: 1000000
Join Date: Oct 2021
Location: Germany
Device: Tolino Vision 5, Tolino Tab 8", Pocketbook Era (16GB)
Is @SauliusP still active here? The forum says last activity in 2020?

If not, who is maintaining "Hyphenate This!"? Is there a GitHub page?

I’d like the original author (or current maintainer) to check with my German hyphenation file, since it seems to do nothing on the file I’ve tested with.

Other users using German are also invited to test, of course. I attach my current hyph_de_DE.dic file here. In the plugin, I’ve set min word length to 6, and both left and right hyphen min to 3. The dictionary displays as "deu.dic - German" in the plugin, for some reason.
Attached Thumbnails
Click image for larger version

Name:	Bildschirmfoto vom 2025-08-01 06-54-27.png
Views:	7
Size:	85.3 KB
ID:	217211  
Attached Files
File Type: zip hyph_de_DE.dic.zip (160.7 KB, 4 views)

Last edited by Moonbase59; Yesterday at 12:56 AM.
Moonbase59 is offline   Reply With Quote
Old Yesterday, 04:30 AM   #520
BeckyEbook
Guru
BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.
 
BeckyEbook's Avatar
 
Posts: 846
Karma: 3341026
Join Date: Jan 2017
Location: Poland
Device: Various
@Moonbase59: I do not know the reason (perhaps an incomplete implementation), your version of the dictionary does not work, but I know how to fix it.
Simply delete the last 229 lines from the dictionary file (the entire sections on U+00A0 and U+202F).
BeckyEbook is offline   Reply With Quote
Old Yesterday, 07:53 AM   #521
Moonbase59
Addict
Moonbase59 ought to be getting tired of karma fortunes by now.Moonbase59 ought to be getting tired of karma fortunes by now.Moonbase59 ought to be getting tired of karma fortunes by now.Moonbase59 ought to be getting tired of karma fortunes by now.Moonbase59 ought to be getting tired of karma fortunes by now.Moonbase59 ought to be getting tired of karma fortunes by now.Moonbase59 ought to be getting tired of karma fortunes by now.Moonbase59 ought to be getting tired of karma fortunes by now.Moonbase59 ought to be getting tired of karma fortunes by now.Moonbase59 ought to be getting tired of karma fortunes by now.Moonbase59 ought to be getting tired of karma fortunes by now.
 
Moonbase59's Avatar
 
Posts: 206
Karma: 1000000
Join Date: Oct 2021
Location: Germany
Device: Tolino Vision 5, Tolino Tab 8", Pocketbook Era (16GB)
Awww… that sucks. So I have to make yet another "special version" of a standard hyphenation dic?
Thanks for the feedback anyway, @BeckyEbook.

Looks like "Hyphenate This!" must be using some old or incomplete implementation of the dic reader then. I’ve tested the hyph_de_DE.dic with lots of software, from e-readers to LibreOffice and many others (it is also my standard Linux hyphen dic). The extra (weight 8) additions were introduced because OpenOffice at that time couldn’t handle hyphenation at word boundaries (adjacent to one of these characters) correctly, and some readers couldn’t as well (Tolino Vision 5 for example).

This could result in real bad things like

Bla bla. »Hallo
!«.

Would be real great to know who now maintains this plugin, so he/she could correct the bug…

Last edited by Moonbase59; Yesterday at 08:01 AM.
Moonbase59 is offline   Reply With Quote
Old Yesterday, 08:13 AM   #522
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,752
Karma: 30237526
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by Moonbase59 View Post
. . .
Would be real great to know who now maintains this plugin, so he/she could correct the bug…
SaliusP. hasn't logged on for almost 5 years.

So, no one is actively maintaining it, and AFAIK no one has shown any interest in doing so.

BR
BetterRed is online now   Reply With Quote
Old Yesterday, 09:28 AM   #523
Moonbase59
Addict
Moonbase59 ought to be getting tired of karma fortunes by now.Moonbase59 ought to be getting tired of karma fortunes by now.Moonbase59 ought to be getting tired of karma fortunes by now.Moonbase59 ought to be getting tired of karma fortunes by now.Moonbase59 ought to be getting tired of karma fortunes by now.Moonbase59 ought to be getting tired of karma fortunes by now.Moonbase59 ought to be getting tired of karma fortunes by now.Moonbase59 ought to be getting tired of karma fortunes by now.Moonbase59 ought to be getting tired of karma fortunes by now.Moonbase59 ought to be getting tired of karma fortunes by now.Moonbase59 ought to be getting tired of karma fortunes by now.
 
Moonbase59's Avatar
 
Posts: 206
Karma: 1000000
Join Date: Oct 2021
Location: Germany
Device: Tolino Vision 5, Tolino Tab 8", Pocketbook Era (16GB)
So I did a quick check. "Hyphenate This!" uses the Python hyphenator which is from Dec 2019.

This apparently doesn’t work well with the NOHYPEN replacement stuff I added for OpenOffice and RMSDK a long time ago, while, as @BeckyEbook pointed out, it works fine with that "special part" left off:

Code:
>>> from hyphenator import Hyphenator
>>> h = Hyphenator("/home/matthias/Projekte/wortliste/build-patterns-2-2/dehyph\
n-x/hyph_de_DE.dic")
>>> h.left = 3
>>> h.right = 3
>>> h.inserted('Donaudampfschifffahrtsgesellschaft')
'Donaudampfschifffahrtsgesellschaft'
>>> 
>>> h = Hyphenator("/home/matthias/Projekte/wortliste/build-patterns-2-2/dehyph\
n-x/hyph_de_DE_nohyphen.dic")
>>> h.left = 3 # recommended for German
>>> h.right = 3 # recommended for German
>>> h.inserted('Donaudampfschifffahrtsgesellschaft')
'Donau-dampf-schiff-fahrts-ge-sell-schaft'
>>> h.left = 2 # not recommended for German
>>> h.right = 2 # not recommended for German
>>> h.inserted('Donaudampfschifffahrtsgesellschaft')
'Do-nau-dampf-schiff-fahrts-ge-sell-schaft'
>>>
So, for the time being, I include my current German hyph_de_DE.dic (for all normal uses) as well as hyph_de_DE_nohyphen.dic (for everything that uses the Python hyphenator, like the Calibre "Hyphenate This!" plugin).

Many thanks to @BeckyEbook for finding the issue!

Happy hyphenating!

N.B.: I still don’t recommend adding soft hyphens to files—hyphenation should be done by the reader software (as KOReader shows nicely, or even RMSDK using my hyph_de.dic). But I do know there are some readers where this is almost impossible (or at least not easy), so now we at least have the choice.
Attached Files
File Type: zip hyph_de_DE.dic.zip (160.7 KB, 3 views)
File Type: zip hyph_de_DE_nohyphen.dic.zip (154.5 KB, 4 views)

Last edited by Moonbase59; Yesterday at 09:58 AM.
Moonbase59 is offline   Reply With Quote
Reply

Tags
amazon account, formatting, hypenation, hyphenate this, hyphenation, spaces


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] KindleUnpack - The Plugin DiapDealer Plugins 523 07-15-2025 06:45 PM
[GUI Plugin] SmartEject JimmXinu Plugins 125 05-08-2025 12:27 AM
[GUI Plugin] Open With kiwidude Plugins 404 02-21-2025 05:42 AM
[GUI Plugin] Wordpress frescogamba Plugins 11 04-06-2015 09:09 PM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 12:27 PM


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


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