![]() |
#46 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 75,580
Karma: 134254544
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
#47 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13
Karma: 796
Join Date: Mar 2021
Device: Kobo Aura One
|
|
![]() |
![]() |
Advert | |
|
![]() |
#48 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 737
Karma: 7025494
Join Date: Aug 2017
Location: Italy
Device: Kindle Paperwhite, Kobo Elipsa, Pocketbook Color PB633, Inkpad Color
|
The first thing to check when we see an incorrect hyphenation is to check if the language in the ebook is set correctly. Calibre tells you what the language of the file is. Sometimes I have found books written in Italian with English set as the language. I'll let you imagine how they were hyphenated.
You can also find the language by opening the file in the calibre editor or with Sigil and in the content.opf file you can find <dc:language>it</dc:language> or <dc:language>it-IT</dc:language>. |
![]() |
![]() |
![]() |
#49 | |
the rook, bossing Never.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,220
Karma: 89201339
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
Quote:
Parts of a book file can be in a different language. These should be enclosed in a div p or span, depending if several paragraphs, one paragraph or part of a paragraph. So if a character speaks in in Irish in an English book, just the dialogue might be tagged "<span lang="ga">some Irish</span>" she said. This is important not just for hyphenation but also for TTS. Sadly I've seen ebooks where they didn't bother. A spelling check in Calibre in language of ebook should reveal alternate language parts without tangs. |
|
![]() |
![]() |
![]() |
#50 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 737
Karma: 7025494
Join Date: Aug 2017
Location: Italy
Device: Kindle Paperwhite, Kobo Elipsa, Pocketbook Color PB633, Inkpad Color
|
It is right. Of course the books with strange hyphenation I have seen did not have <html lang="it"> at the beginning of each file. Sometimes there was nothing or sometimes there was <html lang="en">.
|
![]() |
![]() |
Advert | |
|
![]() |
#51 |
Bookish
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 942
Karma: 1803094
Join Date: Jun 2011
Device: PC, t1, t2, t3, aura 2 v1, clara HD, Libra 2, Libra Color, Nxtpaper 11
|
When I just grab any ebook, I might see in certain files:
Code:
toc.ncx --> xml:lang="en-US"
content.opf --> <dc:language>en</dc:language>
nav.xhtml --> xml:lang="en"
*.xhtml --> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" xml:lang="en">
|
![]() |
![]() |
![]() |
#52 |
the rook, bossing Never.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,220
Karma: 89201339
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
The most important one is the per file, and any alternate language in the file needs local lang property in whatever tags are appropriate (add extra span ii the language change is within a tag).
I'd imagine the system pop-up index needs the system level statements for hyphenation and TTS. |
![]() |
![]() |
![]() |
#53 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 75,580
Karma: 134254544
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I'll be having a look for an Italian hyphenation dictionary tomorrow.
|
![]() |
![]() |
![]() |
Tags |
hyphenation, kobo |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Hyphenation | skr1107 | Calibre | 1 | 09-27-2018 11:28 AM |
Hyphenation | Simboubou | PocketBook | 9 | 09-15-2014 05:21 AM |
Hyphenation does not work in E-book Viewer | Elancrom | Calibre | 2 | 06-18-2014 06:19 AM |
Hyphenation | Siard | Kobo Reader | 6 | 08-09-2013 07:40 AM |
hyphenation | CPatrick | OpenInkpot | 3 | 03-22-2010 06:06 AM |