Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 10-16-2012, 05:22 PM   #1
dvd8n
Connoisseur
dvd8n will give the Devil his due.dvd8n will give the Devil his due.dvd8n will give the Devil his due.dvd8n will give the Devil his due.dvd8n will give the Devil his due.dvd8n will give the Devil his due.dvd8n will give the Devil his due.dvd8n will give the Devil his due.dvd8n will give the Devil his due.dvd8n will give the Devil his due.dvd8n will give the Devil his due.
 
Posts: 75
Karma: 77598
Join Date: Apr 2010
Device: Sony PRS-650, Hanvon h516, Kobo Aura HD
Help with Apostrophes

I imported a few hundred text files into Calibre, spending quite a bit of time carefully setting up the author, series etc. I converted them to ePub and imported them into my Sony reader.

Only after doing all the work did I notice that a lot of them were displaying apostrophes on the reader as a question mark. In Calibre's reader they were not displaying at all.

I traced the problem to the originator of the text files choosing to use 0x92 as an apostrophe in a lot of the files. This is actually an acute accent, I think. And, interestingly, Calibre is converting it to a 0xC2 followed by a 0x92 in the epub. And not displaying it / them.

I'm not blaming Calibre for this, But, can anyone suggest how to recover from this without an insane amount of work?

Thanks, D
dvd8n is offline   Reply With Quote
Old 10-17-2012, 12:44 AM   #2
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,896
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
Moderator Notice
Moved thread to the conversion sub-forum. Hopefully someone will stop by with some help.

You might find Sigil and the Sigil forum a source of help in solving your problem.

Good Luck.
DoctorOhh is offline   Reply With Quote
Advert
Old 10-17-2012, 08:04 AM   #3
WillAdams
Wizard
WillAdams ought to be getting tired of karma fortunes by now.WillAdams ought to be getting tired of karma fortunes by now.WillAdams ought to be getting tired of karma fortunes by now.WillAdams ought to be getting tired of karma fortunes by now.WillAdams ought to be getting tired of karma fortunes by now.WillAdams ought to be getting tired of karma fortunes by now.WillAdams ought to be getting tired of karma fortunes by now.WillAdams ought to be getting tired of karma fortunes by now.WillAdams ought to be getting tired of karma fortunes by now.WillAdams ought to be getting tired of karma fortunes by now.WillAdams ought to be getting tired of karma fortunes by now.
 
WillAdams's Avatar
 
Posts: 1,258
Karma: 3439432
Join Date: Feb 2008
Device: Amazon Kindle Paperwhite (300ppi), Samsung Galaxy Book 12
Should be trivial.

Use a tool to unarchive the ePub files (they're really .zip archives), then use a global search-replace tool which will work on all files w/in a sub-directory to make the change, then re-archive the files back to .ePub.

Mac OS X Applescripts for this here:

http://code.google.com/p/epub-apples...downloads/list
WillAdams is offline   Reply With Quote
Old 10-17-2012, 04:31 PM   #4
dvd8n
Connoisseur
dvd8n will give the Devil his due.dvd8n will give the Devil his due.dvd8n will give the Devil his due.dvd8n will give the Devil his due.dvd8n will give the Devil his due.dvd8n will give the Devil his due.dvd8n will give the Devil his due.dvd8n will give the Devil his due.dvd8n will give the Devil his due.dvd8n will give the Devil his due.dvd8n will give the Devil his due.
 
Posts: 75
Karma: 77598
Join Date: Apr 2010
Device: Sony PRS-650, Hanvon h516, Kobo Aura HD
Thanks.

However I decided that trying to fix the epubs was thinking about it the wrong way, as getting Calibre to regenerate them is no big deal. And all the work was in establishing the books in the library, with their tags, not in the conversion.

I deleted the epubs from the library, leaving the texts in place.

I then used Agent Ransack to find all files containing 0x92. I then used Notepad++ to a global replace on the 0x92, changing them to a normal apostrophe.

All that's left to do now is reconvert.

Thanks everyone for their interest.

D
dvd8n is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding Apostrophes in Recipes Steven630 Recipes 2 07-30-2012 05:53 AM
Quotes, apostrophes, what a pain. draconic Conversion 4 12-30-2011 10:23 AM
Articles with apostrophes in title_sort riki Calibre 3 08-13-2011 01:56 PM
Birmingham drops apostrophes HarryT Lounge 22 01-31-2009 06:44 AM


All times are GMT -4. The time now is 09:35 AM.


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