Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 02-24-2023, 01:19 PM   #16
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by JSWolf View Post
I believe that search still works on a Kindle when soft hyphens are using with KF8. I do not know about the rest of the gotchas in your list.
Those glitches were a list of "soft hyphen" issues—across all sorts of software/programs—going way, way back to at least 2013/2015.

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.
Tex2002ans is offline   Reply With Quote
Old 03-01-2023, 06:32 AM   #17
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 74,027
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Tex2002ans View Post
Those glitches were a list of "soft hyphen" issues—across all sorts of software/programs—going way, way back to at least 2013/2015.

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.
Well, you can buy the latest Kindle Paperwhite and KF8 still doesn't have hyphens. So if you read KF8, you either read without hyphens or your read with soft hyphens. I know KFX has hyphens, but KFX is an abomination.
JSWolf is offline   Reply With Quote
Advert
Old 03-02-2023, 11:22 PM   #18
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,548
Karma: 6613969
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;
}
ADE 4.5x doesn't need more to enable hyphens with epub3. But now that this old thread has been resumed, I have another question related with hyphens and epub3. I agree with everything Tex2002ans said regarding soft hyphens. For that reason in the past year I was exploring the use of javascript to add hyphens by means of the script "hyphenator". On some ereaders, it works flawlessly (no issues with searching words or TTS) but on others (for example Calibre Viewer), it has serious drawbacks. Theorically, the issues of "hyphenator.js" were fixed by "hyphenoly.js"; I say "theorically" because I couldn't -so far- make it work in an epub3 (it works great in browsers).

By having said that, by chance, anyone here was able to implement "hyphenopoly.js" in an epub3?
RbnJrg is offline   Reply With Quote
Old 03-09-2023, 03:11 PM   #19
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 74,027
Karma: 129333114
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).
JSWolf is offline   Reply With Quote
Old 03-09-2023, 04:52 PM   #20
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by RbnJrg View Post
For that reason in the past year I was exploring the use of javascript to add hyphens by means of the script "hyphenator". On some ereaders, it works flawlessly (no issues with searching words or TTS) but on others (for example Calibre Viewer), it has serious drawbacks.

[...]

By having said that, by chance, anyone here was able to implement "hyphenopoly.js" in an epub3?
Hmmm. Not aware of any. You seem to be the one on MR testing and poking around with that bleeding-edge research.

What was the "serious" issues happening with Calibre's Viewer?

Quote:
Originally Posted by JSWolf View Post
It's a really bad idea to add in JavaScript for hyphenation. Either the program being used supports hyphens or it doesn't.
Yeah, in published books going for sale, I'd definitely err on that side too.

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:
  • Device/Browser hyphenation
  • + Javascript hyphenation on top.

(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:
Originally Posted by JSWolf View Post
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).
But that old ADE might support hyphenation in only a handful of languages. (Does anyone have an exact list of which languages are supported?)

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:
  • mr = Marathi
  • fy = Frisian
  • cs = Czech
  • fi = Finnish
  • mk = Macedonian

Last edited by Tex2002ans; 03-10-2023 at 12:52 AM.
Tex2002ans is offline   Reply With Quote
Advert
Old 03-09-2023, 05:08 PM   #21
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 74,027
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Tex2002ans View Post
But that old ADE might support hyphenation in only a handful of languages. (Does anyone have an exact list of which languages are supported?)

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:
  • mr = Marathi
  • fy = Frisian
  • cs = Czech
  • fi = Finnish
  • mk = Macedonian
ADE 2.0.1 supports English, German, Spanish, French, Italian, and Portuguese.

I don't know if I can add more languages by just adding in the hyphenation dictionary.
JSWolf is offline   Reply With Quote
Old 03-10-2023, 09:41 AM   #22
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,548
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by Tex2002ans View Post
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:
  • Device/Browser hyphenation
  • + Javascript hyphenation on top.

(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?)
When you add the Hyphenator script (that is deprecated), you also must add the pattern files that contains the rules to hyphenate the text. For example, if you want to hyphenate german text, besides the script, it must be included the file "de.js". If besides german text, you also want to hyphen english text, the file "en-us.js" also must be included. You can include all the pattern files you wish. German text gains a lot with hyphens. For example, some time ago, Doitsu uploaded a german epub3 called "Čapek, Karel: Der gestohlene Kaktus"; that epub has all the text aligned to left. Well, I took that epub and I added "hyphenator.js" and "de.js" so hyphens where enabled. You can see how better looks the things (and also to watch how easy is to add hyphens with javascript).

Čapek,_Karel-Der_gestohlene_Kaktus.epub

Quote:
What was the "serious" issues happening with Calibre's Viewer?
Judge by yourself. Open the epub I attached in Calibre Viewer and try to pass all the pages one by one.

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 05:33 PM.
RbnJrg is offline   Reply With Quote
Old 03-18-2023, 01:34 PM   #23
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by Tex2002ans View Post
For CSS hyphens to work, it requires:
  • Your device to have the proper Hyphenation Dictionaries for your language.
  • Your ebook to be marked with the proper HTML language.

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:



So, having no hyphenation automatically happening on your Kindle, something else must've been wrong.

- - -



I'd put a very huge WARNING label on this.

Only use Hyphenate This! on an ebook:
  • You are going to be personally reading.
  • As a very, very last resort.
    • Like if your ereader is really old.

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:
  • Search
  • Spellchecking
  • Copy/Pasting
  • Dictionary popups
    • Where you press+hold on words.
  • [...]

(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
The past few years, I've been really explaining why:
  • Marking your ebook + HTML language properly

is super important. And proper hyphenation is one of the key reasons!
Using Send to Kindle won't work, typically, from the jump, because it does not support Enhanced Typesetting. ET is not supported, as it happens, KDP system/eco-system wide. They explain this in no uncertain terms during the file export options from KP3.

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
Hitch is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 03:41 AM.


MobileRead.com is a privately owned, operated and funded community.