01-16-2013, 12:32 PM | #1 |
Resident Curmudgeon
Posts: 74,228
Karma: 129333566
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
How do I turn off ligatures in ADE?
In the new ADE 2.0, it takes characters such as fl, fi, ff and converts them to ligatures. How do I tell ADE not to do this? The problem is that if the font in use does not have ligatures, the ligatures come out as space.
|
01-16-2013, 01:04 PM | #2 |
frumious Bandersnatch
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
If that's its behaviour, it's a severe bug.
It should only use ligatures if they are defined in the font (and that is indeed what happens in my reader). So, either ADE 2.0 is broken or the font is broken (i.e. it defines a ligature that it doesn't really have). Is the font maybe a subset? In that case the subsetting software is probably breaking the font. I don't know if you can disable ligatures in ADE, probably not (I believe the Cybook Odyssey allows that, though). You could prevent ligatures by inserting zero-width-no-break spaces (whatever the code is) between the letters... but that's an UGLY hack for this use. |
Advert | |
|
01-16-2013, 01:08 PM | #3 |
Resident Curmudgeon
Posts: 74,228
Karma: 129333566
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Currently Calibre's subsetting doesn't take into account reading software that makes ligatures and if the ligatures are not already in the text, the ligatures are gone. So when ADE 2.0 renders the ligatures, you get space instead of the ligatures.
I have reported this, but for now, I'd like to fix some eBooks that I've already subsetted. |
01-16-2013, 03:21 PM | #4 |
Grand Sorcerer
Posts: 27,568
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Isn't calibre's font-subsetting feature still considered experimental?
|
01-16-2013, 07:24 PM | #5 |
Resident Curmudgeon
Posts: 74,228
Karma: 129333566
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
Advert | |
|
01-17-2013, 12:56 AM | #6 |
Wizard
Posts: 3,413
Karma: 13369310
Join Date: May 2008
Location: Launceston, Tasmania
Device: Sony PRS T3, Kobo Glo, Kindle Touch, iPad, Samsung SB 2 tablet
|
I'm sorry, I may be missing something. Surely the easiest way would be to go into the html and remove the ligature? & a e lig; or &# 230 shows as the æ, the a e ligature. Taking that out and putting an a and an e removes the ligature.
I've put spaces in above so the markup will show. |
01-17-2013, 01:14 AM | #7 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
You just took the wrong ligature. The æ is actually something different than ae. The sound is different. What is being meant here, I think, that if in the text there is for example 'fi' that ADE wants to use the ligature for that. However, if you use your own fonts and have subsetted this (so, removed all the characters you don't use), it will not display the ligature since it is not in the font.
Oh, and the feature in Calibre is still experimental. |
01-17-2013, 03:18 AM | #8 |
Grand Sorcerer
Posts: 5,585
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Most likely Calbre's font subsetting feature messed with the font's ligatures table. I just did a quick test and didn't notice any problems with ligatures in embedded fonts.
If you must use your subset font with ADE 2.0, you can suppress ligatures by inserting a Zero-width non-joiner (‌) between f and i, f and l etc. |
01-17-2013, 04:11 AM | #9 |
frumious Bandersnatch
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
That shouldn't cause the problem you are seeing, unless it doesn't remove the ligature table; i.e., if the font file is left with a table indicating that the combination "f + j" should use the glyph name "fj.lig", but the "fj.lig" glyph is undefined or blank. A good subsetting should either keep or remove both together, the table and the glyph (a better subsetting should keep both only if "f" and "j" are also included in the subset).
|
01-17-2013, 04:38 PM | #10 |
Curmudgeon
Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
|
I don't know what's wrong with the font, but it makes the FDK's ttxn tool crash, which probably isn't good.
Code:
macbookpro:osx dg$ ./ttxn /Users/dg/Downloads/ex/OEBPS/Fonts/DejaVuLGCSerif-Italic.ttf Dumping "/Users/dg/Downloads/ex/OEBPS/Fonts/DejaVuLGCSerif-Italic.ttf" to "/Users/dg/Downloads/ex/OEBPS/Fonts/DejaVuLGCSerif-Italic#1.ttx"... Dumping 'FFTM' table... Dumping 'GDEF' table... Dumping 'OS/2' table... Dumping 'cmap' table... Dumping 'cvt ' table... Dumping 'fpgm' table... Dumping 'gasp' table... Dumping 'head' table... Dumping 'hhea' table... Dumping 'hmtx' table... Dumping 'kern' table... Dumping 'loca' table... Dumping 'maxp' table... Dumping 'name' table... Dumping 'post' table... Dumping 'prep' table... Dumping 'GSUB' table ... Dumping 'GPOS' table ... Dumping 'glyf' table ... Traceback (most recent call last): File "./../SharedData/FDKScripts/ttxn.py", line 2185, in <module> run(sys.argv[1:]) File "./../SharedData/FDKScripts/ttxn.py", line 2177, in run ttf = ttnDump(input, output, options, showExtensionFlag, supressHints, supressVersions) File "./../SharedData/FDKScripts/ttxn.py", line 2131, in ttnDump dumpFont(writer, input, supressHints) File "./../SharedData/FDKScripts/ttxn.py", line 1954, in dumpFont dictTxt = shellcmd(["tx", "-dump", "-0", fontPath]) File "./../SharedData/FDKScripts/ttxn.py", line 1944, in shellcmd p = subprocess.Popen(cmdList,stdout=tempFile, stderr=subprocess.STDOUT) File "/Users/dg/Downloads/FDK/Tools/osx/Python/Current/lib/python2.7/subprocess.py", line 672, in __init__ errread, errwrite) File "/Users/dg/Downloads/FDK/Tools/osx/Python/Current/lib/python2.7/subprocess.py", line 1202, in _execute_child raise child_exception From the partial output, though: Code:
<map code="0xfb02" name="fl"/> Code:
<ClassDef glyph="fl" class="2"/> Is the attached file perhaps the original? [Edit: Never mind. That sample was from a different poster. Still, there's something dubious about that font. ] Last edited by dgatwood; 01-17-2013 at 04:49 PM. |
01-17-2013, 06:43 PM | #11 | |
Resident Curmudgeon
Posts: 74,228
Karma: 129333566
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
01-18-2013, 02:16 AM | #12 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
I am working on an program that can subset a font. I hope to have a first draft available after this weekend. It will not automatically read an ePUB, you either have to enter the characters (doubles will be filtered) or character sets (uppercase, lowercase, typography, etc)).
If it works, I will post it here somewhere. |
01-18-2013, 04:52 AM | #13 | |
frumious Bandersnatch
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
As a hackish workaround, you could edit the font with FontForge (for instance) and delete the ligatures table (and variants, and others if present). |
|
01-18-2013, 02:37 PM | #14 | |
Resident Curmudgeon
Posts: 74,228
Karma: 129333566
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
01-18-2013, 02:38 PM | #15 | |
Resident Curmudgeon
Posts: 74,228
Karma: 129333566
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Odyssey Hyphenation and Ligatures? | owly | Bookeen | 2 | 12-21-2011 02:49 PM |
old english ligatures | bobcdy | Workshop | 3 | 08-26-2011 05:18 PM |
ligatures and indent questions | speakingtohe | Calibre | 2 | 08-23-2010 07:33 PM |
Converting ligatures does not work | Duglum | Calibre | 2 | 06-08-2010 12:45 PM |
What's with ligatures. | frabjous | ePub | 44 | 03-03-2010 08:02 PM |