02-24-2023, 02:19 PM | #16 | |
Wizard
Posts: 2,304
Karma: 12126963
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
Soft hyphens really are an atrocious character that should be completely avoided. And, within the past few years, Auto-Hyphenation in devices/browsers and word processors has gotten so much better—so if you're on a modern device or using recent apps/programs, you shouldn't have a need for manually inserting soft hyphens. |
|
03-01-2023, 07:32 AM | #17 | |
Resident Curmudgeon
Posts: 76,395
Karma: 136466962
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
Advert | |
|
03-03-2023, 12:22 AM | #18 |
Wizard
Posts: 1,610
Karma: 8399999
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
When I started this thread (in Feb-2019) I had asked how to enable hyphens under epub3 and in ADE 4.5x. Today I can answer that is possible to get that just with the following property:
Code:
p { ... -ms-hyphens: auto; } By having said that, by chance, anyone here was able to implement "hyphenopoly.js" in an epub3? |
03-09-2023, 04:11 PM | #19 |
Resident Curmudgeon
Posts: 76,395
Karma: 136466962
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
It's a really bad idea to add in JavaScript for hyphenation. Either the program being used supports hyphens or it doesn't. I don't know of any program that supports soft hyphens as well as the KF8 renderer on a Kindle. So I would not use soft hyphens with ePub.
ADE 2.0.1 on up supports hyphenation. So no need for any code to turn on hyphens if using ADE. I don't know of any program that needs code to turn on hyphens other then maybe the KePub renderer (on a Kobo). |
03-09-2023, 05:52 PM | #20 | |||
Wizard
Posts: 2,304
Karma: 12126963
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
What was the "serious" issues happening with Calibre's Viewer? Quote:
But RbnJrg works a lot on personal releases, so he can get away with more bleeding-edge EPUB3+Javascript work. Side Note: I was never a big fan of these hyphenation shims. (Even on websites.) And once I began messing around a lot more with Auto-Translation and features like that, I'm always leery on how those will interact with:
(Like let's say you have German text that you Auto-Translate to English. Will the (javascript) hyphenator still be applying German hyphenation to it?) Lots of things that need to be poked around and tested. Quote:
Over the past few years, there's been lots of activity+updates in the Hyphenation Dictionaries. Like within the past 2 years, there's been new/better support for:
Last edited by Tex2002ans; 03-10-2023 at 01:52 AM. |
|||
Advert | |
|
03-09-2023, 06:08 PM | #21 | |
Resident Curmudgeon
Posts: 76,395
Karma: 136466962
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
I don't know if I can add more languages by just adding in the hyphenation dictionary. |
|
03-10-2023, 10:41 AM | #22 | ||
Wizard
Posts: 1,610
Karma: 8399999
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
Čapek,_Karel-Der_gestohlene_Kaktus.epub Quote:
The problem with Hyphenator.js is that the script adds soft hyphens like "Hyphenate this" and so, it has the same issues with searching and TTS. On the other hand, Hyphenopoly.js adds an "aria-label" that would avoid those drawbacks. Regrettably, not many programs and apps have a built-in hyphenator. For example, they can't hyphenate by themself THORIUM (!), Koodo (another great ereader for both Windows and Linux), Reasily, Lithium, Aldiko Next, Overdrive, Google Play, BookFusion, Infinity Reader and and the list goes on (the only ereader so far I found perfect was Foliate, for Linux). On Aldiko Next, for example, Hyphenator works great (no issue with searching and TTS) but on Reasily, it has issues with searching. Hyphenopoly theorically would solve the problems, but i cant get it to work on epubs because it doesn't recognize the user agent (maybe if I can fake the user agent, I can get something). Hyphenoly first tries to see if there is native support for hyphens; if so, then does nothing; on the contrary, adds soft hyphens with an aria-label to avoid issues with searching and TTS. Last edited by RbnJrg; 03-10-2023 at 06:33 PM. |
||
03-18-2023, 02:34 PM | #23 | |
Bookmaker & Cat Slave
Posts: 11,494
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
The only reason that any hyphenation is showing up, at all, is due to "Hyphenate this!" being used, via Calibre. It has no relationship to, and won't resemble, what will really happen when the ePUB is uploaded to KDP and rendered into the latest and greatest format, WITH ET. That's the short of it. Hitch |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Plugin] ePub3-itizer - epub3 output plugin for Sigil | KevinH | Plugins | 456 | 10-27-2024 07:00 AM |
epub3 app with epub3 dictionary support | Doitsu | ePub | 0 | 01-21-2017 10:38 AM |
Epub3 XHTML Validation epub3 | Ramesh Arpitha | ePub | 5 | 06-30-2014 09:32 PM |
PRS-T3 hyphenation - whether you want it or not ? | cybmole | Sony Reader | 10 | 01-13-2014 03:43 PM |
New Errors Converting epub3 -> zip -> epub3 | Lola25 | ePub | 2 | 11-12-2013 10:37 PM |