![]() |
#1 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: May 2010
Device: Sony PRS300
|
Problem with double L's converting PDF to EPUB
Hello,
I checked the FAQs, but couldn't find anything on this problem. I converted a few books from PDFs to EPUBs and it seems that some of the double L's in certain words (Examples: carefully, filled, and well) don't convert properly. The second L in the word is missing and in place of it is a space. However, it's not all of the double L's. I found some words like 'totally' and 'falling' which worked perfectly. This isn't a huge problem as I can typically figure out what the word is, but still, if anyone knows how to fix this I'd greatly appreciate it. Thanks, Jeff |
![]() |
![]() |
![]() |
#2 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: May 2010
Device: Sony PRS300
|
Oh, I forgot to mention this: I checked the PDF version on my computer and it look fine, but the EPUB version, again checked on my computer, had the problem.
|
![]() |
![]() |
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
It may be that the double ll is a grapheme in which two letters are combined into a single glyph. Where it worked, they just used two l's. I'm not enough of a font expert to know how to fix this correctly. If you can search and replace in a format that you like, that's where I'd start. You can also try opening the file in a hex editor (I use UltraEdit) to find what code is used and then S&R there.
|
![]() |
![]() |
![]() |
#4 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: May 2010
Device: Sony PRS300
|
Thanks for your quick reply!
What file should I try opening in the hex editor? |
![]() |
![]() |
![]() |
#5 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,353
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
IIRC, Kovid said that the new PDF conversion engine handles ligatures correctly. I don't know its release status, though. Last edited by chaley; 05-18-2010 at 12:33 PM. Reason: note ll as a ligature. |
|
![]() |
![]() |
![]() |
#6 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
You'll have to try various formats, and even then, this may not work. Also try exporting from the pdf as text using Acrobat. There are lots of things that might work, but none I can say with certainty will. |
|
![]() |
![]() |
![]() |
#7 | |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,229
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
|
|
![]() |
![]() |
![]() |
#8 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 469
Karma: 600816
Join Date: Sep 2009
Device: Kobo Aura HD, Kobo Aura One
|
IMHO, the easiest way to handle that is use a font that contains the necessary ligatures and embed it in your epub file (or if you're up to hacking your reader, replace the default fonts on the reader). Alternatively you can convert from PDF to HTML first and clean up a bit, including the ligatures.
|
![]() |
![]() |
![]() |
#9 | |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: May 2010
Device: Sony PRS300
|
Quote:
Thanks, Jeff |
|
![]() |
![]() |
![]() |
#10 | |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 469
Karma: 600816
Join Date: Sep 2009
Device: Kobo Aura HD, Kobo Aura One
|
Quote:
check out these threads here: https://www.mobileread.com/forums/showthread.php?t=36361 https://www.mobileread.com/forums/showthread.php?t=66102 |
|
![]() |
![]() |
![]() |
#11 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: May 2010
Device: Sony PRS300
|
Okay, fantastic!
I've successfully replaced the font in the EPUB with Fontin (like the guy used in his tutorial). However, I still have the problem. How should I go about finding a font that will work? Just trial and error? Thanks again |
![]() |
![]() |
![]() |
#12 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
1. Open the PDF, and choose Advanced > Print Production > Output Preview 2. Select "Object Inspector" for the Preview. 3. Click on the ligature, and the font that was used should be displayed in the Output Preview panel. Then you can try to find that font elsewhere. This is the "correct" method, and works for most normal fonts. However, there's no guarantee that you'll be able to find the font you need for the EPUB. |
|
![]() |
![]() |
![]() |
#13 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,229
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
the next release of calibre will automatically convert ligatures to normal characters.
|
![]() |
![]() |
![]() |
#14 | |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 469
Karma: 600816
Join Date: Sep 2009
Device: Kobo Aura HD, Kobo Aura One
|
Quote:
Another option is to check dafont.com, they allow you to preview the fonts. Copy/Paste the ligatures from the PDF and see which fonts support them. Last edited by dmapr; 05-21-2010 at 03:42 PM. |
|
![]() |
![]() |
![]() |
#15 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Jun 2010
Device: PALM Zire, Sony TRS
|
PDF with Minion Pro Font gives problems
I just want to add that I have a similar problem when I convert a PDF containg the font Minion Pro. The original file is in german and could be easily mapped to a standard character set.
But combination like Th or ff or fi cause the conversion to HTML to go wrong. I am looking forward to the new PDF conversion. I am using calibre 0-72. ![]() |
![]() |
![]() |
![]() |
Tags |
conversion, epub, letter, letter l, ligatures, pdf |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
double l's | jjansen | Conversion | 33 | 04-29-2013 07:52 AM |
Problem converting pdf to epub (size) using calibre | abadguy | 6 | 03-23-2012 05:33 AM | |
Problem with accents converting PDF to EPUB | madeira | Calibre | 0 | 07-09-2010 05:15 PM |
Problem converting PDF to EPUB in calibre | adgpro | Calibre | 2 | 07-09-2010 01:10 AM |
Problem converting pdf to epub | smartin | Calibre | 3 | 05-02-2010 06:55 AM |