09-13-2019, 03:51 PM | #106 | |
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
Reality is, don't use soft hyphens. They'll come to bite you in the ass. Last edited by Tex2002ans; 09-13-2019 at 03:56 PM. |
|
09-13-2019, 04:04 PM | #107 |
Bookmaker & Cat Slave
Posts: 11,468
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
|
Advert | |
|
09-13-2019, 05:54 PM | #108 | |
Resident Curmudgeon
Posts: 74,703
Karma: 130140792
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
As for should, the reality is they don't all support soft hyphens. So you just have to go with what is instead of what should be. Even if the current version of ADE (RMSDK) works properly with soft hyphens. I prefer to have the reading software do the hyphenation as adding soft hyphens change the page number for ADE type page numbers. |
|
09-13-2019, 05:58 PM | #109 | |
Connoisseur
Posts: 97
Karma: 200000
Join Date: Aug 2019
Device: none
|
Quote:
Satisfaction with mediocrity is a weakness. |
|
09-13-2019, 06:10 PM | #110 |
Connoisseur
Posts: 97
Karma: 200000
Join Date: Aug 2019
Device: none
|
Just to be clear I'm not a fan of manually using soft hyphens - they make the code hard to read and should only be used when automated hyphenation gets it wrong.
But they should not interfere with search and when an author needs to use them, the glyph should be there even on systems that don't use it. Which means the author has to embed a font because many devices seem to have a bug where that codepoint isn't available. Guess it would have made their system fonts a few bytes bigger... Really fonts on devices probably should at least support all codepoints used in Windows-1252 if not WGL4. But they clear don't. So there is a need to embed. |
Advert | |
|
09-13-2019, 06:22 PM | #111 | |
Resident Curmudgeon
Posts: 74,703
Karma: 130140792
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
For example, anyone still using a Sony Reader will not have working soft hyphens and there's no way at all to fix this. |
|
09-13-2019, 07:22 PM | #112 | |
Well trained by Cats
Posts: 30,000
Karma: 57259778
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
You want a fix...Just maybe...it will be in next years model (but don't hold you breath). |
|
09-13-2019, 08:35 PM | #113 | |
Connoisseur
Posts: 97
Karma: 200000
Join Date: Aug 2019
Device: none
|
Quote:
The calibre reader I use on Linux - maybe there is a plugin that does it, but when I right click on an ePub and choose "Open with E-Book Viewer" there is no automated hyphenation, but if I add soft-hyphens they are used. So should I refrain from fixing the display of ePub documents on readers that *do* support soft hyphens just because some readers do not have U+00AD or should I go ahead and include the soft hyphens for the benefit of those using compatible readers and also include a font that has U+00AD so that users of devices w/o that glyph will at least get the proper zero width glyph instead of a ? glyph? And yes, I know soft hyphens break search on some devices. Users of those devices should complain to the manufacturer, they paid money for an ePub reader and they got one with a very nasty bug. If I cater to that bug, then I can not deliver as good of a product to those using devices / software without a bug. And while searching for info on ePub hyphenation, it seems the automated hyphenation for Polish is often extremely bad - Polish books should either disable hyphenation all together or only use soft hyphenation until the automated hyphenation is fixed. When we develop to bugs instead of the standard, the consumer loses. Bugs are reality and have to be worked around, but not at the expense of producing an inferior product for those without blatantly defective readers. In my opinion. |
|
09-13-2019, 08:38 PM | #114 | |
Resident Curmudgeon
Posts: 74,703
Karma: 130140792
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
09-13-2019, 09:17 PM | #115 |
Connoisseur
Posts: 97
Karma: 200000
Join Date: Aug 2019
Device: none
|
A CSS solution would be better - as in a CSS solution that lets you define hyphenation for words that automated hyphenation get wrong.
I get the don't do it, only brought it up because it is a clear cut example of why embedding fonts are a good thing. Unless our book is completely 7-bit ASCII we really have no way to know whether every glyph we use is supported by the device fonts. There is no "ePub glyph list" like Windows had with WGL4. Embedding the font is the only way to know that a font with the glyphs we use is there. |
09-13-2019, 10:03 PM | #116 | |
null operator (he/him)
Posts: 20,699
Karma: 26966376
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
BR |
|
09-14-2019, 01:07 AM | #117 |
Connoisseur
Posts: 97
Karma: 200000
Join Date: Aug 2019
Device: none
|
It's handling of soft-hyphens is standard, standard HTML that predates ePub.
I'm not using soft hyphens. I do use them sometimes in websites, there I use a bullet in the source so I can read the page and see where they are and the use a php wrapper to preg_replace them with the actual glyph when served, so that view source is readable. Can't really do that in ePub and several entities in words is just horrible to work with in a text editor. -=- http://unicodefractions.com/ I'm curious as to how many devices have built-in glyphs for those commonly used fractions? I'm guessing some have them but I'm also guessing many don't. There's really know way to know, hence why I want to embed fonts. I suppose for authors who never use fractions maybe that doesn't matter, but the artist drawn glyphs really do look better than using n/m. |
09-14-2019, 03:22 AM | #118 |
Guru
Posts: 733
Karma: 7025494
Join Date: Aug 2017
Location: Italy
Device: Kindle Paperwhite, Kobo Elipsa, Pocketbook Color PB633, Inkpad Color
|
calibre reader, if You set it in preferences (of the reader itself) will show hyphenation.
|
09-14-2019, 07:22 AM | #119 | |
Resident Curmudgeon
Posts: 74,703
Karma: 130140792
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
You can download ADE 2.0.1 for Windows or OS X (as long as you are not using the version OS X that's 64-bit only) at https://www.adobe.com/support/digita...downloads.html |
|
09-14-2019, 10:36 AM | #120 |
Connoisseur
Posts: 97
Karma: 200000
Join Date: Aug 2019
Device: none
|
So every user uses the same fonts as ADE 2.0.1 ?
I find that hard to believe. |
Tags |
epub, font, woff2 |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Plugin Best Practices | sbenz | Development | 12 | 11-28-2014 10:34 PM |
Superscript best practices? | DiapDealer | ePub | 19 | 04-14-2012 04:28 PM |
Apple practices...... | carpetmojo | News | 67 | 02-16-2012 05:15 AM |
Best practices for margins | Mookiemon | ePub | 8 | 07-24-2011 07:13 PM |
DTBook - best practices | Nate the great | Workshop | 6 | 05-15-2009 04:06 AM |