Quote:
Originally Posted by JSWolf
How would you regex ligatures other than to maybe surround one letter with a <span> so if cannot happen?
|
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