02-19-2019, 10:49 AM | #1 |
Wizard
Posts: 1,567
Karma: 7043711
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Hyphenation under epub3
By chance, does anyone know how to enable hyphens under epub3? The following css properties seem not to have any effect with ADE 4.5x:
Code:
p { -epub-hyphens: auto; adobe-hyphenate: auto; -webkit-hyphens: auto; hyphens: auto; } Rubén |
02-25-2019, 07:02 AM | #2 |
Annabelle Viau
Posts: 43
Karma: 16664
Join Date: Jan 2015
Location: Rishikesh, India
Device: iPad, Kobo, Windows 10 (ADE, Azardi), Android (Google Books, Bluefire)
|
I am using the Blitz framework with ePub3 and hyphenation is happening in ADE. Here’s the CSS (the class justified is applied on the body, not the paragraphs):
.justified { /* Designed as a class for body — We don't enforce as user setting > author */ text-align: justify; adobe-hyphenate: auto; /* proprietary for Legacy RMSDK */ -ms-hyphens: auto; -moz-hyphens: auto; -webkit-hyphens: auto; -epub-hyphens: auto; hyphens: auto; /* before and after not in spec but iBooks support all three (-webkit-) */ -ms-hyphenate-limit-lines: 3; -moz-hyphenate-limit-lines: 3; -webkit-hyphenate-limit-lines: 3; hyphenate-limit-lines: 3; /* No support except Trident (Windows) and Webkit (old deprecated spec) */ -ms-hyphenate-limit-chars: 6 3 2; -moz-hyphenate-limit-chars: 6 3 2; -webkit-hyphenate-limit-before: 3; -webkit-hyphenate-limit-after: 2; hyphenate-limit-chars: 6 3 2; /* No support except Trident (Windows) */ -ms-hyphenate-limit-zone: 10%; -moz-hyphenate-limit-zone: 10%; -webkit-hyphenate-limit-zone: 10%; hyphenate-limit-zone: 10%; /* No support */ -ms-hyphenate-limit-last: always; -moz-hyphenate-limit-last: always; -webkit-hyphenate-limit-last: always; hyphenate-limit-last: always; } |
Advert | |
|
02-25-2019, 10:14 AM | #3 |
Wizard
Posts: 1,567
Karma: 7043711
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Thank you very much momoha!!! Your code does work!!! The properties involved are very complex and I didn't know many of them. So, many thanks again.
Rubén EDIT: Your styles also work in <p> tags, so if I add the properties you indicated me in Code:
p { ... } Last edited by RbnJrg; 02-25-2019 at 10:34 AM. |
02-10-2023, 01:57 PM | #4 |
Member
Posts: 15
Karma: 10
Join Date: Feb 2016
Location: Rome, Italy
Device: Kindle Paperwhite 11th Gen
|
I apologize for resuming this old thread, but I'm trying to add hyphenation to an epub book, and the solution proposed by Momoha only works in Kindle Previewer 3. When I send the epub to my Paperwhite (11th gen), hyphenation is gone :-(
Any hint to figure out what to do? |
02-10-2023, 03:26 PM | #5 |
the rook, bossing Never.
Posts: 11,703
Karma: 87663461
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
No Kindle does epub. Amazon converts them with nearly secret rules.
Or did you use Calibre to convert to azw3? |
Advert | |
|
02-10-2023, 04:16 PM | #6 | |
Resident Curmudgeon
Posts: 74,669
Karma: 130140792
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
02-11-2023, 07:33 AM | #7 |
Member
Posts: 15
Karma: 10
Join Date: Feb 2016
Location: Rome, Italy
Device: Kindle Paperwhite 11th Gen
|
I really thank you for your hints, guys!!!
I managed to solve the issue with some little workarounds, and above all I was able to use the "Send to Kindle" webservice to sync the epub file with its hyphenation to my Amazon cloud!!! So, no need for sideloading the book, which would have ended in the know issue of the lacking cover and the unability to sync the book across all my devices. Here is the recipe:
And that's all, folks! Your book will show up in your Kindle after a little crunching by the Amazon servers, and will be synchronized across all your devices with its precious cover and its beloved hyphenation I'm doing some testing right now with my Kindle (a Paperwhite 11th gen) and it seems to work like a breeze, no issues whatsoever, perfect hyphenation across the entire book, very high satisfaction Hope this helps Last edited by DeepVoid; 02-11-2023 at 07:49 AM. |
02-11-2023, 07:35 AM | #8 |
Member
Posts: 15
Karma: 10
Join Date: Feb 2016
Location: Rome, Italy
Device: Kindle Paperwhite 11th Gen
|
|
02-11-2023, 08:57 AM | #9 |
the rook, bossing Never.
Posts: 11,703
Karma: 87663461
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
No, they do not.
Amazon has accepted epub as a preferred upload source for KDP & KDP Select for years. It's now preferred source for "Send to Kindle" (email or web). It's converted to mobi, azw3 etc. It's preferable to use USB transfer, in which case you do your own conversion if it's not mobi, azw, azw3 or KFX. Both transfer systems require that there is no DRM, unless it's a Kindle file copied off that exact Kindle earlier. |
02-11-2023, 09:43 AM | #10 |
Member
Posts: 15
Karma: 10
Join Date: Feb 2016
Location: Rome, Italy
Device: Kindle Paperwhite 11th Gen
|
Whatever, I hate sideloading via usb transfer because of its drawbacks, books loose their cover, and there is no way to sync them on your cloud account. I can easily manage epubs, now, without the need to convert them to mobi or anything else before sending them to the Paperwhite, and this is enough for me, to stay within the kindle ecosystem a little longer.
|
02-11-2023, 10:18 AM | #11 | |
Resident Curmudgeon
Posts: 74,669
Karma: 130140792
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
One thing you have to do that I don't do is turn on WiFi every time you want to add books. It means you then upload all kinds of stuff back to Amazon. |
|
02-11-2023, 10:20 AM | #12 | |
Resident Curmudgeon
Posts: 74,669
Karma: 130140792
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
The Kindle ecosystem is full of pollution. And saying whatever when you are wrong is very snarky and you really should apologize. Last edited by JSWolf; 02-11-2023 at 01:21 PM. |
|
02-11-2023, 04:52 PM | #13 |
Member
Posts: 15
Karma: 10
Join Date: Feb 2016
Location: Rome, Italy
Device: Kindle Paperwhite 11th Gen
|
|
02-23-2023, 07:21 PM | #14 | |||
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
For example, Kobo has great support, and even allows you to add your own custom dictionaries for any language. Kindles are locked down, so if Amazon hasn't added a hyphenation dictionary for (RandomLanguageX), you're out of luck. - - - - Side Note: According to jhowell in 2021, your Kindle should already support Italian hyphenation: Quote:
- - - Quote:
Only use Hyphenate This! on an ebook:
DO NOT ever use it on a book you're trying to sell. It completely fills the book full of SOFT HYPHENS... and while it may LOOK like "hyphenation now works", it can cause many other problems with:
(More disadvantages listed in my 2021 post.) It's much better to do hyphenation automatically + on your actual device. (Luckily, things have been getting much better in the past few years!) - - - Side Note #2: For all the hyphenation info you'll ever need to know... I've written A TON about it: I'd also recommend just typing this into your favorite search engine: Code:
hyphenation Tex2002ans site:mobileread.com
is super important. And proper hyphenation is one of the key reasons! Last edited by Tex2002ans; 02-23-2023 at 07:33 PM. |
|||
02-24-2023, 08:03 AM | #15 | |
Resident Curmudgeon
Posts: 74,669
Karma: 130140792
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Plugin] ePub3-itizer - epub3 output plugin for Sigil | KevinH | Plugins | 435 | 01-19-2023 09:46 PM |
epub3 app with epub3 dictionary support | Doitsu | ePub | 0 | 01-21-2017 09:38 AM |
Epub3 XHTML Validation epub3 | Ramesh Arpitha | ePub | 5 | 06-30-2014 08:32 PM |
PRS-T3 hyphenation - whether you want it or not ? | cybmole | Sony Reader | 10 | 01-13-2014 02:43 PM |
New Errors Converting epub3 -> zip -> epub3 | Lola25 | ePub | 2 | 11-12-2013 09:37 PM |