![]() |
#496 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 945
Karma: 10500004
Join Date: Feb 2010
Location: Serbia
Device: Kindle PW5, Kobo Libra 2, Kindle PW1
|
Quote:
Anyways, I just did couple of test in Calibre and I've figured out what is the problem: this plugin doesn't like the character encoding used on that "hyph_sr.dic" (for Serbian Cyrillic). Converting the encoding to UTF-8 (that gets you the exact same file as the one attached by @BeckyEbook) fixes the problem. While testing things I've realised that Calibre's built-in "Add soft hyphens" option in "Polish books" tool / plugin actually uses the same file that you've downloaded (with the same character encoding) and hyphenation works correctly when using "Polish books" option. Long story short: download and use (add to HyphenateThis plugin) the file attached by @BeckyEbook and it will work correctly for Serbian Cyrillic books.: fixed Serbian Cyrillic hyphenation dictionary What I've written previously still stands: you can't "install" at the same time two hyphenation dictionaries if both get imported as "serbian". That issues was known to me every since this HyphenateThis plugin has first appeared. You've gotten around it by changing book's language metadata to "Serbo-Croatian" and using dictionary for that. IMHO that workaround (mangling each Serbia Latin book's language metadata) is not acceptable. If I read serbian language books I would probably prefer continuously installing the correct serbian hyphenation dictionary .. or even using Calibre's "Polish Books" tool since that seams to be able to figure out when to use which of the two hyphenation dictionaries. Hyphenation dictionaries that Polish Books uses can be found at: Code:
C:\Program Files\Calibre2\app\resources\hyphenation\dictionaries.tar.xz Last edited by shamanNS; 10-22-2022 at 01:33 PM. |
|
![]() |
![]() |
![]() |
#497 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 75,021
Karma: 131375774
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Don't use soft-hyphens for ePub. They do not work well enough. Use a hyphenation dictionary that does work properly. But until I get the language codes, I am not going to try to build an install file for the hyphenation dictionaries.
Last edited by JSWolf; 10-22-2022 at 01:38 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#498 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 945
Karma: 10500004
Join Date: Feb 2010
Location: Serbia
Device: Kindle PW5, Kobo Libra 2, Kindle PW1
|
Nobody cares what you think should or shouldn't be used and done
![]() As for language codes: if you were more specific what form of language codes ("sr", "srp", "sr-RS","sr-Latn-RS", "sr-Cyrl-RS"...) you're expecting to get maybe someone would have already provided them to you. Also, you could've Googled that information 9999 times already since yesterday. Last edited by shamanNS; 10-22-2022 at 01:50 PM. |
![]() |
![]() |
![]() |
#499 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 75,021
Karma: 131375774
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
I'm trying to do what should work instead of what may not work. |
|
![]() |
![]() |
![]() |
#500 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 945
Karma: 10500004
Join Date: Feb 2010
Location: Serbia
Device: Kindle PW5, Kobo Libra 2, Kindle PW1
|
Used where / for what?
1) dc:language in .opf 2) xml:lang attribute on XHTML elements 3) stuff like Hunspell and OpenOffice / LibreOffice dictionaries "dc:language" most of the time will have either 2 letter language code ("sr") or 3 letter ISO_whatever variant ("srp"). The same value is used for both Latin or Cyrillic script / alphabets epubs. There aren't 2 or 3 letter codes that indicate the script used. Stuff like Windows locale and Dot NET locale that support "extended language codes" use that form of "2 letter language code + 4 letter script + 2 letter country code" ( so "sr-Latn-RS" and "sr-Cyrl-RS") No idea how Kobo's hyphenation dictionaries "encode" that type of info. I've noticed that for example KOReader has hyphenation rules only for Serbian Cyrillic and not for Serbian Latin. |
![]() |
![]() |
Advert | |
|
![]() |
#501 |
Member
![]() Posts: 15
Karma: 10
Join Date: Oct 2022
Device: Kobo Libra 2, Onyx Boox Note, Onyx Boox Nova Air
|
I just tried the file uploaded by BeckyEbook and it works perfectly!!! Thank you all for your help
![]() I was even thinking about using some condensed fonts to solve the issue since justified text leaves so much space between words in Serbian Cyrillic, but this is a much better solution. |
![]() |
![]() |
![]() |
#502 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 29
Karma: 10738
Join Date: Aug 2018
Device: none
|
I just discovered a bug or something:
I have three dictionaries installed, and hyphenating works perfectly. Now I added a forth dictinonary (spanish, from here: https://extensions.libreoffice.org/e...h-dictionaries) and the plugin stops working with an error: ![]() After removing the dictionary everything works fine again. ![]() |
![]() |
![]() |
![]() |
#503 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 75,021
Karma: 131375774
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#504 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 29
Karma: 10738
Join Date: Aug 2018
Device: none
|
Thanks, I'll try this (thought it would be awkward as I need all of the other dictionaries...)
|
![]() |
![]() |
![]() |
#505 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 75,021
Karma: 131375774
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
#506 |
Junior Member
![]() Posts: 1
Karma: 10
Join Date: Jan 2023
Device: Kindle 7th
|
Setting exceptions to the hyphenation.
Hello, I am going to self publish a book and this plugin will improve it a lot, thank you.
I can touch some things in the html, but my relative ignorance makes me ask this: How can I tag a phrase or word that I want to not being hyphenated? In the configuration of your plugin I have seen that of: "Comma separated list of tags to: Ignore h1, h2, h3" I don't know how to put this into the html, but I think that with one example would be enough, here is the (shortened) Calibre html of the title page, could you put there that tag for that the title and the "Author's name" not be hyphenated? Thank you. Miqbenn. <?xml version='1.0' encoding='utf-8'?> <html xmlns="http://www.w3.org/1999/xhtml" lang="es" xml:lang="es"> <head> <title>Unknown</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <link rel="stylesheet" type="text/css" href="stylesheet.css"/> <link rel="stylesheet" type="text/css" href="page_styles.css"/> </head> <body class="calibre"> <p class="block_">*</p> <p class="block_1">The Daughter of the Artisan</p> <p class="block_1">Author's name</p> <p class="block_">*</p> </body></html> |
![]() |
![]() |
![]() |
#507 |
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Jan 2023
Device: Kindle
|
Can any of you guy's direct me to a good English Hyphenation Dictionary? OP's post is slightly confusing to me and couldn't find a standard English Hyphenation dictionary is there a good one anyone can give me a direct link to?
|
![]() |
![]() |
![]() |
#508 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Jul 2023
Device: Kindle Oasis 2
|
This works great! Thank you very much!
It improves the reading experience a lot for the kindle's default reader. I might not even jailbreak my device if I know this trick earlier! |
![]() |
![]() |
![]() |
#509 | |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Aug 2023
Device: Likebook Ares Note
|
Hyphenation help in ereader
I have an AresNote likebook ereader. He is basically a modified android. It has a hyphenation system, but it doesn't work well in my language. Is there any way to install the dictionary on the new device? Can anyone tell me?
Quote:
|
|
![]() |
![]() |
![]() |
#510 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 75,021
Karma: 131375774
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
The other thing is, if you are going to ask for help, you need to give enough information for someone to actually help. What language do you read eBooks? |
|
![]() |
![]() |
![]() |
Tags |
amazon account, formatting, hypenation, hyphenate this, hyphenation, spaces |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] KindleUnpack - The Plugin | DiapDealer | Plugins | 494 | 05-18-2024 02:34 AM |
[GUI Plugin] Open With | kiwidude | Plugins | 403 | 04-01-2024 08:39 AM |
[GUI Plugin] SmartEject | JimmXinu | Plugins | 80 | 01-28-2024 06:15 PM |
[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 |