04-21-2017, 02:17 AM | #16 |
Librarian
Posts: 346
Karma: 72225
Join Date: Apr 2015
Location: Liège - Belgium
Device: kobo gloHD - KA1
|
@JSWolf : yup, it's good, I had yet to see an error with koreader. The algo for hyph in ADE tends to consider all the french non-breaking spaces as "in the word" and generates some errors even with a good hyph dic like difference- / ? or blablah- /*».
Koreader has not this problem but doesn't consider non-breaking space at all. And since non-breaking spaces are of little use (or no use ?) in english, the problem tend to be non-existent in this language. (it's the main raison I use 'hyphenate this' and set adobe-hyphenate:explicit; to bypass totally the algo in ADE. In ADE, there is still a bug when a word with double 't' or 'f' (like 'dif-ference') is cut at the end of a page : the letter is double again on the next page, thus making it triple (dif-// fference). From my point of view, for the french, if koreader could deal with non-breaking spaces, it will be perfect for french epubs. @Frenzie : yup : the standards say that soft hyphen have to be ignore in search. But the search in nickel are not broken, it finds it each time, only says 'i didn't find difference, the word must be 'difference' following the definition. @Ken : In french it's just a pain cause they use nbsp before all punctuation and the quotes are too big to be glue to the word. A 'solution' I won't apply would be to transform all the quotes and double-quotes to english one urgh. |
04-21-2017, 09:27 AM | #17 |
Wizard
Posts: 1,653
Karma: 730583
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
|
@cramoisi Which standards are you referring to?
|
Advert | |
|
04-21-2017, 10:23 AM | #18 |
Wizard
Posts: 4,465
Karma: 6900052
Join Date: Dec 2009
Location: The Heart of Texas
Device: Boox Note2, AuraHD, PDA,
|
@cramoisy; Is that using "French_hyphen_(Alan).pdb" in KOReader?
Luck; Ken |
04-23-2017, 07:44 AM | #19 | ||
Librarian
Posts: 346
Karma: 72225
Join Date: Apr 2015
Location: Liège - Belgium
Device: kobo gloHD - KA1
|
Quote:
Yes ! @Frenzie : I thought I read something about it last year but can't find it anymore. All I can find now is papers stating how bothering are soft hyphen... There is a mention here : https://www.w3.org/TR/html401/struct/text.html#h-9.3.3 Quote:
Last edited by cramoisi; 04-23-2017 at 08:00 AM. |
||
04-23-2017, 08:39 AM | #20 | |
Wizard
Posts: 1,653
Karma: 730583
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
|
According to Wikipedia, it's been defined the same way in Unicode since version 4. That's probably why the HTML5 spec doesn't seem to contain anything on hyphenation.
https://en.wikipedia.org/wiki/Soft_h...nd_definitions I like one of the supporting arguments for this change: http://www.unicode.org/L2/L2002/02279-muller.htm Quote:
|
|
Advert | |
|
05-03-2017, 12:57 AM | #21 | |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Quote:
It gave quite decent hyphenation (at least for French) and I really miss it because from time to time surface some strange hyph mistakes. Could it be reinstalled or put in its former place? |
|
05-03-2017, 04:39 AM | #22 |
Librarian
Posts: 346
Karma: 72225
Join Date: Apr 2015
Location: Liège - Belgium
Device: kobo gloHD - KA1
|
I got stranges hyphenation from French_hyphen_(Alan).pdb when police size is "too big" which is an issue in itself. But that's not happening with default size (only 2 with two steps greater).
I was thinking to transform hyph_fr.dic from libreoffice into a .pattern file (which seems to be the same only with xml tags. will it works ? |
05-03-2017, 05:30 AM | #23 |
Resident Curmudgeon
Posts: 75,588
Karma: 134254544
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I've posted a better French hyphenation dictionary that works with ePub and Kepub. Have a go with it and see what you think.
https://www.mobileread.com/forums/sh....php?p=2995414 |
05-03-2017, 06:06 AM | #24 |
Librarian
Posts: 346
Karma: 72225
Join Date: Apr 2015
Location: Liège - Belgium
Device: kobo gloHD - KA1
|
yup, but i need a koreader-compatible one and .dic are not (I tried yesterday). I wanted to transform yours, in fact.
|
05-03-2017, 07:05 AM | #25 |
Resident Curmudgeon
Posts: 75,588
Karma: 134254544
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
05-04-2017, 06:57 AM | #26 | |
Wizard
Posts: 1,653
Karma: 730583
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
|
Quote:
|
|
05-05-2017, 01:25 AM | #27 |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Could not tell you. What I sure remember is that we were offered with Koreader a menu option (a menu item ) in the drop down settings menu, named Hyphen or Hyphenation.
Selecting this option, you could see appear some languages (seven or height about that), among them one for the French (Alan). You were also free to select "No hyphenation". If you selected French, this referred to some hyphenation file within Koreader which gave the settings or the rules to apply for hyphenation in this language. This possibility seems to have been silently squashed and I really miss it. |
05-05-2017, 05:11 AM | #28 | |
Librarian
Posts: 346
Karma: 72225
Join Date: Apr 2015
Location: Liège - Belgium
Device: kobo gloHD - KA1
|
Quote:
@Frenzie : if I create a dot pattern file for french hyphenation based on a TeX file and if I add it into languages.json, will it be functional ? Last edited by cramoisi; 05-05-2017 at 05:20 AM. |
|
05-05-2017, 09:46 AM | #29 |
Wizard
Posts: 4,465
Karma: 6900052
Join Date: Dec 2009
Location: The Heart of Texas
Device: Boox Note2, AuraHD, PDA,
|
I remember seeing those in the hyph listing, but they don't appear there anymore. There are ".pattern" files for some of the languages. The Greek one I looked at included a description of its generation.
Luck; Ken Last edited by Ken Maltby; 05-05-2017 at 09:50 AM. |
05-05-2017, 10:48 AM | #30 | |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Quote:
I had "lost" it because my last ten books were all PDF and it does not appear for them (useless). Sorry for this confusion. In French hyphenation is "Césure". Last edited by roger64; 05-05-2017 at 10:50 AM. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Hyphenate This! | SauliusP. | Plugins | 512 | 04-12-2024 07:05 PM |
Hyphenate your ebook files from the command line | acabal | Workshop | 9 | 10-05-2016 03:13 AM |
How about a plugin to hyphenate? | dhdurgee | Plugins | 45 | 02-12-2016 06:58 AM |
[GUI Plugin] Hyphenate This! | bookbinder | Plugins | 0 | 05-06-2015 01:07 PM |