![]() |
#46 |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
As in if you had, to pick a random example, the word "flight", with the "f" as a drop cap (or a raised cap) and the "l" as a normal letter, one would hope that the rendering engine would have the sense not to try to substitute the "fl" ligature for the letters "f" and "l".
|
![]() |
![]() |
![]() |
#47 | |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
BUT, two virgin letters? Hansel and Gretel, out there, unprotected? Oh, yeah. They'll get snapped up in a ligature cottage and baked, you betcha. Hitch |
|
![]() |
![]() |
Advert | |
|
![]() |
#48 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,064
Karma: 144284144
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Ligatures (from what I understand) only work when the pairs are naked next to each other. <b>fl</b> should give a ligature as fl is a common ligature. But if it was <b>f</b><b>l</b> then there won't be any ligature. |
|
![]() |
![]() |
![]() |
#49 | ||
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Quote:
And where are you...when you ask about the Ligs, where are you exporting from-->To, that you can't regex them? Hitch |
||
![]() |
![]() |
![]() |
#50 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,064
Karma: 144284144
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#51 | |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
OH! Ohohohohoh! I see. No wonder we're not communicating. ("Who's on first...") I'm talking about regexing ligatures OUT, from content we receive to convert; you're talking about putting in prophylactic code/regex, to prevent ligatures from being created. The Ligature Condom, in other words. Or the Ligature Morning-After Pill. We're at opposite ends of the spectrum, Jon, in what we're each talking about. NOT a CLUE. I mean, you've suggested the only thing I can think of--put a span around all the 'fs" or "ts" or (insert one letter of a letter pair here), to prevent it. And honestly, man...that's a dog to do, and it would probably blow up MOBI format, even though this is the ePUB forum. (Mobi has a not-publicly-defined-but-real span limit.) No idea at all. I think that sans the spans, you're stuck with it. (n.b.: you don't have to be. At the moment, thus far, I have only seen them show up when Georgia font is selected. Presumably, Garamond and Baskerville shan't be far behind, but for now, you can switch to a different font and you won't see the ligs.) Hitch |
|
![]() |
![]() |
![]() |
#52 | ||
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 517
Karma: 8500000
Join Date: Aug 2013
Location: Hamden, CT
Device: Kindle Paperwhite (11th gen), Scribe, Kindle 4 Touch
|
Quote:
Here's the entire ligature substitution table from one Adobe font: Code:
sub T h -> T_h; sub f f b -> f_f_b; sub f f h -> f_f_h; sub f f i -> f_f_i; sub f f j -> f_f_j; sub f f k -> f_f_k; sub f f l -> f_f_l; sub f f t -> f_f_t; sub f b -> f_b; sub f f -> f_f; sub f h -> f_h; sub f i -> f_i; sub f j -> f_j; sub f k -> f_k; sub f l -> f_l; sub f t -> f_t; sub f f_t.alt -> f_f_t; sub Tcedilla h -> Tcommaaccent_h; sub Tcaron h -> Tcaron_h; sub longs longs i -> longs_longs_i; sub longs longs l -> longs_longs_l; sub longs b -> longs_b; sub longs h -> longs_h; sub longs i -> longs_i; sub longs k -> longs_k; sub longs l -> longs_l; sub longs t -> longs_t; sub longs longs -> longs_longs; sub gamma gamma -> gamma_gamma; sub lambda lambda -> lambda_lambda; Code:
<style> .myfraction { font-variant-numeric: diagonal-fractions; } </style> <p><span class="myfraction">1/2 1/4 3/4 11/32</span></p> Quote:
That way, body font changes, font resizing, and line spacing changes by the reader software would only affect those parts of the text. This would solve a lot of the problems we have with the "runaway font size" for initial caps, chapter headings, etc., since there reader software could have an option to only resize them if they are smaller than the chosen body text size. Basically, the semantic tags currently in EPUB (like epub:section) are useless to 99% of reader software, while ones that would really help with many of the problems don't exist. Last edited by nabsltd; 08-16-2017 at 02:44 AM. |
||
![]() |
![]() |
![]() |
#53 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,064
Karma: 144284144
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
The problem with that is that the versions of ADE for Windows or MAC that support any of these features also supports a DRM that cannot be removed and cannot be used in most Readers. So while CSS can do more, you risk not being able to read your eBooks anyplace else but your computer.
The other problem (forgetting DRM) is that a lot apps (for tablets) and Readers are using an older RMDSK and thus, even if you used OpenType features, they may not work in the majority of software that most people will be reading the eBook. if you could get all the apps and all the Readers up to the latest RMDSK, then yes, OT features in CSS would be great. Last edited by JSWolf; 08-16-2017 at 10:36 AM. |
![]() |
![]() |
![]() |
#54 | |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Seriously, it's a bit like being a juggler with one eye and one spastic hand. Hitch |
|
![]() |
![]() |
![]() |
#55 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,064
Karma: 144284144
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Adobe can upgrade ADE (RMDSK) all they want, but until all the apps and all the Readers upgrade as well, it won't matter. Basically, we have to use what's built into ADE 2.0 because we have no idea what version is going to be in use by the people reading. The problem is one of stagnation. Bluefire is a good example. It is using some version 3 RMDSK, but I doubt it will ever use the latest version. Kobo is using maybe some version 3 RMDSK but I doubt we'll ever see the latest version used. So what has to be done is to have to use less features because otherwise they won't work for a majority of users.
Now we have Apple and a new set of issues. iBooks was a problem when the 1st gen iPad stopped being supported because Apple didn't make proper hardware back then. Eventually it because OK to stop supporting iBooks on a 1st gen iPad. But, not we'll have iPad 2-4 in use with an older iBooks and yes, they will have to be supported even if iBooks gets more features and/or bug fixes. Apple will never release a new iBooks for these older models even if it's feasible to do so with iOS 10. Last edited by JSWolf; 08-16-2017 at 10:57 AM. |
![]() |
![]() |
![]() |
#56 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 875
Karma: 2676800
Join Date: Aug 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
|
I thought I would have a go at this, after all, how hard could it be...?
Yeah, went about as well as everybody else's attempts did. This would be easy if there was a some css property like margin and padding that measured from the centre of an element, instead of the edge. I don't know why such an option doesn't already exist, it can't be rocket science to implement. Simply do the existing padding & margin calcs, then subtract half the box width (or height) from the appropriate side of the box. Also would be a trivial task for JavaScript, but that's a no-go for ebooks. If one wanted to implement this, the closest I got was a modification to nabsltd's solution in post #15. The idea is, like others have mentioned, is to have different CSS for each initial letter. (actually, the rest of the paragraph) Code:
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <style> p {margin:0; padding:0;} .para-dropcap { font-family: serif; text-align: center; font-size: 4.6em; font-weight: bold; line-height: 1; } .para-chapterFirst { text-indent: 50%; text-align: justify; margin-top: -1.75em; margin-bottom: 0.1em; } .e { margin-left: 1.4em; } .w { margin-left: 1.4em; } .t { margin-left: 0.9em; } .i { margin-left: 0.9em; } .tts { display: none; } </style> </head> <body> <p class="para-dropcap">E</p> <p class="para-chapterFirst"><span class="e"><span class="tts">E</span>nter all ye who would ... yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda</span></p> <p class="para-dropcap">W</p> <p class="para-chapterFirst"><span class="w"><span class="tts">W</span>est of ... yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda</span></p> <p class="para-dropcap">T</p> <p class="para-chapterFirst"><span class="t"><span class="tts">T</span>esting the centering ... yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda</span></p> <p class="para-dropcap">I</p> <p class="para-chapterFirst"><span class="i"><span class="tts">I</span>n the still ... yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda</span></p> </body> </html> I don't know whether TTS engines ignore items that are hidden by "display:none", so the 'tts' spans may be superfluous. |
![]() |
![]() |
![]() |
#57 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,064
Karma: 144284144
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
There is no need to specify serif as the font family. serif is the default and besides, that may limit what people can do.
|
![]() |
![]() |
![]() |
#58 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 875
Karma: 2676800
Join Date: Aug 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
|
|
![]() |
![]() |
![]() |
#59 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,353
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Says the person who claimed an ' entity creates a prime mark.
![]() Last edited by DiapDealer; 08-24-2017 at 10:30 AM. |
![]() |
![]() |
![]() |
#60 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
RegEx Question: H1 ALL CAPS to All Caps | phossler | Sigil | 21 | 02-06-2014 02:44 PM |
Interesting PW bug, everything centered | twowheels | Amazon Kindle | 1 | 02-01-2013 12:27 PM |
Centered but left align? | mtrahan | ePub | 15 | 04-01-2012 03:56 PM |
would like toc to be centered | alansplace | Kindle Formats | 9 | 11-20-2011 11:47 AM |
mobi toc centered | alansplace | Conversion | 1 | 11-19-2011 07:45 PM |