Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 01-16-2013, 12:32 PM   #1
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: 36,223
Karma: 17169472
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
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.
JSWolf is offline   Reply With Quote
Old 01-16-2013, 01:04 PM   #2
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 5,999
Karma: 4346921
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.
Jellby is offline   Reply With Quote
Old 01-16-2013, 01:08 PM   #3
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: 36,223
Karma: 17169472
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
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.
JSWolf is offline   Reply With Quote
Old 01-16-2013, 03:21 PM   #4
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 8,771
Karma: 39540023
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Isn't calibre's font-subsetting feature still considered experimental?
DiapDealer is offline   Reply With Quote
Old 01-16-2013, 07:24 PM   #5
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: 36,223
Karma: 17169472
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
Quote:
Originally Posted by DiapDealer View Post
Isn't calibre's font-subsetting feature still considered experimental?
I have no idea. Other then this ligature issue, it's working fine.
JSWolf is offline   Reply With Quote
Old 01-17-2013, 12:56 AM   #6
AlexBell
Wizard
AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.
 
AlexBell's Avatar
 
Posts: 2,240
Karma: 3868686
Join Date: May 2008
Location: Launceston, Tasmania
Device: Kindle3, Kobo Touch, Sony PRS T3, Nexus 7, iPad mini
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.
AlexBell is offline   Reply With Quote
Old 01-17-2013, 01:14 AM   #7
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 2,867
Karma: 2714881
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
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.
Toxaris is offline   Reply With Quote
Old 01-17-2013, 03:18 AM   #8
Doitsu
Wizard
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 1,869
Karma: 4630362
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.
Attached Thumbnails
Click image for larger version

Name:	liga.JPG
Views:	28
Size:	36.7 KB
ID:	99537  
Attached Files
File Type: epub ligatures_test.epub (160.4 KB, 23 views)
Doitsu is offline   Reply With Quote
Old 01-17-2013, 04:11 AM   #9
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 5,999
Karma: 4346921
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by JSWolf View Post
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.
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).
Jellby is offline   Reply With Quote
Old 01-17-2013, 04:38 PM   #10
dgatwood
Curmudgeon
dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.
 
Posts: 248
Karma: 556004
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"/>
in various CMAP tables and

Code:
      <ClassDef glyph="fl" class="2"/>
in the GlyphClassDef. And there's an entry in the horizontal metrics table, too. And when I open it in Fontographer, I can see the "fl" glyph.

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.
dgatwood is offline   Reply With Quote
Old 01-17-2013, 06:43 PM   #11
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: 36,223
Karma: 17169472
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
Quote:
Originally Posted by Jellby View Post
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).
I know Calibre blanks out the characters not in use. I believe the table entry is still there as when the ligature is missing, and it's trying to be used, you get space instead of a character.
JSWolf is offline   Reply With Quote
Old 01-18-2013, 02:16 AM   #12
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 2,867
Karma: 2714881
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
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.
Toxaris is offline   Reply With Quote
Old 01-18-2013, 04:52 AM   #13
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 5,999
Karma: 4346921
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by JSWolf View Post
I know Calibre blanks out the characters not in use. I believe the table entry is still there as when the ligature is missing, and it's trying to be used, you get space instead of a character.
OK, so this does not help for your original answer, but I'd say that's a calibre bug. Have you (or anyone else) reported it?

As a hackish workaround, you could edit the font with FontForge (for instance) and delete the ligatures table (and variants, and others if present).
Jellby is offline   Reply With Quote
Old 01-18-2013, 02:37 PM   #14
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: 36,223
Karma: 17169472
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
Quote:
Originally Posted by Toxaris View Post
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.
Will it eventually read an ePub and subset the embedded fonts?
JSWolf is offline   Reply With Quote
Old 01-18-2013, 02:38 PM   #15
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: 36,223
Karma: 17169472
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
Quote:
Originally Posted by Jellby View Post
OK, so this does not help for your original answer, but I'd say that's a calibre bug. Have you (or anyone else) reported it?

As a hackish workaround, you could edit the font with FontForge (for instance) and delete the ligatures table (and variants, and others if present).
I did report it and the problem has been fixed as of today's Calibre update.
JSWolf is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 07:57 PM.


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