Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 10-21-2010, 02:24 AM   #1
ReD
Enthusiast
ReD shares his or her toysReD shares his or her toysReD shares his or her toysReD shares his or her toysReD shares his or her toysReD shares his or her toysReD shares his or her toysReD shares his or her toysReD shares his or her toysReD shares his or her toysReD shares his or her toys
 
Posts: 44
Karma: 5752
Join Date: Feb 2009
Location: BC, Canada
Device: Sony PRS-700, PRS-300, PRS-T1, Kobo Arc
How do I prevent ' from replacing apostrophes?

I'm trying to convert a mobi file to lrf (or epub) but find that ' has replaced the apostrophes. I considered editing the document with Book Designer but the program wouldn't open the book in any format. Is there any way to get the apostrophes back? Search results all seem to involve the terms css, ASCII, and XML but I have no clue what any of that means so a dumbed down solution is necessary. Thanks in advance!
ReD is offline   Reply With Quote
Old 10-21-2010, 04:50 AM   #2
ldolse
Wizard
ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.
 
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
Why does it matter to you that they get replaced? Calibre does normalization/escaping at different points in it's conversion pipeline. The code might get converted, but the display to the end user in the reader won't change...
ldolse is offline   Reply With Quote
Advert
Old 10-21-2010, 05:51 AM   #3
ReD
Enthusiast
ReD shares his or her toysReD shares his or her toysReD shares his or her toysReD shares his or her toysReD shares his or her toysReD shares his or her toysReD shares his or her toysReD shares his or her toysReD shares his or her toysReD shares his or her toysReD shares his or her toys
 
Posts: 44
Karma: 5752
Join Date: Feb 2009
Location: BC, Canada
Device: Sony PRS-700, PRS-300, PRS-T1, Kobo Arc
I think my original post didn't explain the problem very well. The conversions result in sentences that don't make for a smooth reading experience. I never realised the great number of apostrophes that can show up on a page until I saw the recurring '. The sentences turn out like the following:

A night's piano playing had earned her enough for a bed at Miss Killgoran's boardinghouse or a meal, but not both.

Another example:

“I'm sorry. You'd be a fine companion to Brigham's children, and you're a handsome woman in the bargain.”

I would prefer to see:

A night's piano playing had earned her enough for a bed at Miss Killgoran's boardinghouse or a meal, but not both.

“I'm sorry. You'd be a fine companion to Brigham's children, and you're a handsome woman in the bargain.”

Is it at all possible to make this change?
ReD is offline   Reply With Quote
Old 10-21-2010, 06:11 AM   #4
Manichean
Wizard
Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.
 
Manichean's Avatar
 
Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
Without knowing how to fix the underlying problem, a quick search & replace in an editor (I'd suggest Sigil) should get you the apostrophes back.
Manichean is offline   Reply With Quote
Old 10-21-2010, 08:12 AM   #5
ldolse
Wizard
ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.
 
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
Most likely your source format has apostrophe's escaped to entities using a bad syntax. Did you confirm that they look correct in the source document with a native viewer for that format? If your source document is correct then you should open a bug at bugs.calibre-ebook.com

As Manichean notes, if the problem is your source format Sigil is the best bet to fix it, after you do the conversion from mobi to epub.
ldolse is offline   Reply With Quote
Advert
Old 10-21-2010, 10:46 AM   #6
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,047
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by ldolse View Post
Most likely your source format has apostrophe's escaped to entities using a bad syntax. Did you confirm that they look correct in the source document with a native viewer for that format? If your source document is correct then you should open a bug at bugs.calibre-ebook.com

As Manichean notes, if the problem is your source format Sigil is the best bet to fix it, after you do the conversion from mobi to epub.
I did a quick look at my w3c "entity list
Is ' a valid entity?
theducks is offline   Reply With Quote
Old 10-24-2010, 12:16 AM   #7
ReD
Enthusiast
ReD shares his or her toysReD shares his or her toysReD shares his or her toysReD shares his or her toysReD shares his or her toysReD shares his or her toysReD shares his or her toysReD shares his or her toysReD shares his or her toysReD shares his or her toysReD shares his or her toys
 
Posts: 44
Karma: 5752
Join Date: Feb 2009
Location: BC, Canada
Device: Sony PRS-700, PRS-300, PRS-T1, Kobo Arc
Thanks for the suggestions. I'll try editing with Sigil over the next few days and see if that works out. The original mobi book, which I bought from Fictionwise, does show apostrophes where they should be.
ReD is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Prevent calibre from using second monitor Barty Calibre 2 10-08-2010 02:06 PM
How to prevent ellipsis orphan? Chad48309 ePub 2 08-16-2010 08:43 PM
Kobo reader cannot parse html file names with space/apostrophes. Can calibre fix this Bismar Calibre 1 05-20-2010 01:12 PM
Birmingham drops apostrophes HarryT Lounge 22 01-31-2009 06:44 AM
Help - Calibre stripping out apostrophes and quotes GingerTez Calibre 3 11-13-2008 04:31 PM


All times are GMT -4. The time now is 11:37 AM.


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