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

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

Notices

Reply
 
Thread Tools Search this Thread
Old 01-17-2011, 07:54 PM   #1
VelvetElvis
Addict
VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.
 
VelvetElvis's Avatar
 
Posts: 253
Karma: 20028
Join Date: Jan 2011
Location: Canada
Device: Fire HD8, Asus, Sony (T1, PRS-300), Kobo (Glo, Touch, Wireless)
Quotes and question marks

Converted a .mobi format book to .epub and loaded it to my Sony PRS-300.
Noticed that all apostrophes and quotes have been replaced by question marks.

Take the word "I've"
On the Sony, it's "I?ve". In the Calibre reader, it's "Ive" (no question mark, nor apostrophe)

Downloaded Sigil (which I've never seen before) and looked at the source code. It also shows "Ive"

Tried to read what I could in the help and various forums. Tried re-converting, using various different Input Character Coding options in Calibre. No joy.

My questions are:
- Why does the Sony show question marks while Calibre's reader doesn't?
- How can I fix this?

Sorry if I've missing something obvious, but I've looked all over and can't find the solution on my own.
VelvetElvis is offline   Reply With Quote
Old 01-17-2011, 08:16 PM   #2
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: 29,689
Karma: 54369090
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 VelvetElvis View Post
Converted a .mobi format book to .epub and loaded it to my Sony PRS-300.
Noticed that all apostrophes and quotes have been replaced by question marks.

Take the word "I've"
On the Sony, it's "I?ve". In the Calibre reader, it's "Ive" (no question mark, nor apostrophe)

Downloaded Sigil (which I've never seen before) and looked at the source code. It also shows "Ive"

Tried to read what I could in the help and various forums. Tried re-converting, using various different Input Character Coding options in Calibre. No joy.

My questions are:
- Why does the Sony show question marks while Calibre's reader doesn't?
- How can I fix this?

Sorry if I've missing something obvious, but I've looked all over and can't find the solution on my own.
You typed the quote and Apostrophe found on the keyboard (straight quote).
Those are probably "curly quotes" that are from a different code page.
try setting a code page (AKA input character encoding) when converting:cp1252 is a good start. the box is under Look and feel section on the conversion options that displays when you click "convert"
theducks is offline   Reply With Quote
Old 01-18-2011, 12:02 AM   #3
slantybard
my parent's oops...
slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.
 
Posts: 463
Karma: 1477570
Join Date: Feb 2009
Device: Vx->Handera->Clie-> Axim->505->650->KPW/Aura ->iOS/L2
Your original source material may have more than one text encoding that is the result of very poor editing and formatting from the publishing purchase. One way of fixing this is opening your file in a text editor and copy the whole text into a new document window, saving it, and taking a look for any find+replace fixes.
slantybard is offline   Reply With Quote
Old 01-18-2011, 05:43 AM   #4
VelvetElvis
Addict
VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.
 
VelvetElvis's Avatar
 
Posts: 253
Karma: 20028
Join Date: Jan 2011
Location: Canada
Device: Fire HD8, Asus, Sony (T1, PRS-300), Kobo (Glo, Touch, Wireless)
Quote:
Originally Posted by theducks View Post
You typed the quote and Apostrophe found on the keyboard (straight quote).
Those are probably "curly quotes" that are from a different code page.
try setting a code page (AKA input character encoding) when converting:cp1252 is a good start. the box is under Look and feel section on the conversion options that displays when you click "convert"
Thank you. I will try a few more. Tried that one already. :-/
VelvetElvis is offline   Reply With Quote
Old 01-18-2011, 05:48 AM   #5
VelvetElvis
Addict
VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.
 
VelvetElvis's Avatar
 
Posts: 253
Karma: 20028
Join Date: Jan 2011
Location: Canada
Device: Fire HD8, Asus, Sony (T1, PRS-300), Kobo (Glo, Touch, Wireless)
Quote:
Originally Posted by slantybard View Post
Your original source material may have more than one text encoding that is the result of very poor editing and formatting from the publishing purchase. One way of fixing this is opening your file in a text editor and copy the whole text into a new document window, saving it, and taking a look for any find+replace fixes.
The frustrating part is that when viewing the source, there's no characters showing that I can replace. As mentioned, "I've" becomes "Ive" when viewing the source. The Sony is the only thing that knows there's an apostrophe there. Unfortunately, it shows it as a question mark.
VelvetElvis is offline   Reply With Quote
Old 01-18-2011, 05:53 AM   #6
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
You'll probably need to convert the original Mobi book to HTML, edit that, and then convert it to ePub.
HarryT is offline   Reply With Quote
Old 01-18-2011, 07:31 AM   #7
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
Posts: 4,552
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
Quote:
Originally Posted by VelvetElvis View Post
The frustrating part is that when viewing the source, there's no characters showing that I can replace. As mentioned, "I've" becomes "Ive" when viewing the source. The Sony is the only thing that knows there's an apostrophe there. Unfortunately, it shows it as a question mark.
An ePub file is just a zipped HTML book with some special control files added. Since the Sony knows there is a character there it must be present in the ePub file at that point. You could therefore use the 'Tweak Epub facility in Calibre to get at the HTML inside the ePub to examine (and possibly correct) the issue.
itimpi is offline   Reply With Quote
Old 01-18-2011, 04:02 PM   #8
VelvetElvis
Addict
VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.
 
VelvetElvis's Avatar
 
Posts: 253
Karma: 20028
Join Date: Jan 2011
Location: Canada
Device: Fire HD8, Asus, Sony (T1, PRS-300), Kobo (Glo, Touch, Wireless)
Quote:
Originally Posted by itimpi View Post
An ePub file is just a zipped HTML book with some special control files added. Since the Sony knows there is a character there it must be present in the ePub file at that point. You could therefore use the 'Tweak Epub facility in Calibre to get at the HTML inside the ePub to examine (and possibly correct) the issue.
Thanks for replying.

You and HarryT both mentioned the HTML.
I have this book in HTML format as well. The .rar archive contained only 3 files:
book.html
book.ncx
book.opf

I have looked at the .html file, and the example word I keep using ("I've")
appears right in the raw html as "Ive". There's _no_ characters at all between the "I" and the "v".
It appears the problem lies either in a tag somewhere in the .html file, or with the .ncx or .opf file, neither of which I am familiar with.
I'd love to be able to edit this, but I'm at a loss what to look for.
VelvetElvis is offline   Reply With Quote
Old 01-18-2011, 07:54 PM   #9
VelvetElvis
Addict
VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.
 
VelvetElvis's Avatar
 
Posts: 253
Karma: 20028
Join Date: Jan 2011
Location: Canada
Device: Fire HD8, Asus, Sony (T1, PRS-300), Kobo (Glo, Touch, Wireless)
Well I've finally made some progress.

I took the suggestion to try different code pages. CP1252 replaced the missing apostrophe/single quotes, but prefixed them all with An "A" with a caret on top.

I then used the Calibre "tweak ePub" function to open the source files, then did a search & replace on all the unneeded characters. A bit of hassle, but I seem to have a serviceable novel.

Thank you to all who posted suggestions! I'd be lost without your help.
VelvetElvis is offline   Reply With Quote
Old 01-18-2011, 08:16 PM   #10
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: 29,689
Karma: 54369090
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 VelvetElvis View Post
Well I've finally made some progress.

I took the suggestion to try different code pages. CP1252 replaced the missing apostrophe/single quotes, but prefixed them all with An "A" with a caret on top.

I then used the Calibre "tweak ePub" function to open the source files, then did a search & replace on all the unneeded characters. A bit of hassle, but I seem to have a serviceable novel.
Thank you to all who posted suggestions! I'd be lost without your help.


Try another code page:
That one was not the right one if that was what you saw. (closer )

Give this help section a look over.
http://calibre-ebook.com/user_manual/conversion.html
theducks is offline   Reply With Quote
Old 01-19-2011, 04:21 AM   #11
VelvetElvis
Addict
VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.
 
VelvetElvis's Avatar
 
Posts: 253
Karma: 20028
Join Date: Jan 2011
Location: Canada
Device: Fire HD8, Asus, Sony (T1, PRS-300), Kobo (Glo, Touch, Wireless)
Quote:
Originally Posted by theducks View Post
Try another code page:
That one was not the right one if that was what you saw. (closer )

Give this help section a look over.
http://calibre-ebook.com/user_manual/conversion.html
I tried CP1250, CP1251, CP1252, Latin, and UTF8.
Oddly, CP1250 and CP1252 seemed to give the same, closest results. I will play around later and see if one of the others works 100%.

Thank you for the conversion link. On the top of my reading list.
VelvetElvis is offline   Reply With Quote
Old 01-19-2011, 05:19 AM   #12
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,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by VelvetElvis View Post
I have this book in HTML format as well. The .rar archive contained only 3 files:
book.html
book.ncx
book.opf

I have looked at the .html file, and the example word I keep using ("I've")
appears right in the raw html as "Ive".
Was this html file already added to calibre when you were viewing it. Part of adding a html book to calibre causes it to be converted on adding the book. With html files the character encoding has to be set in the html2zip file plugin prior to adding the book. Check #2 of this section of the FAQ.
DoctorOhh is offline   Reply With Quote
Old 01-19-2011, 04:20 PM   #13
VelvetElvis
Addict
VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.
 
VelvetElvis's Avatar
 
Posts: 253
Karma: 20028
Join Date: Jan 2011
Location: Canada
Device: Fire HD8, Asus, Sony (T1, PRS-300), Kobo (Glo, Touch, Wireless)
Quote:
Originally Posted by dwanthny View Post
Was this html file already added to calibre when you were viewing it. Part of adding a html book to calibre causes it to be converted on adding the book. With html files the character encoding has to be set in the html2zip file plugin prior to adding the book. Check #2 of this section of the FAQ.
I had 3 versions of the same book: .epub, .mobi, and .html. All gave the same results when converted and loaded on my Sony.

I'm a fairly new user of Calibre, and I didn't realize what a minefield converting ebooks can be.

Thanks for the faq link. More must-read material!
VelvetElvis is offline   Reply With Quote
Old 01-19-2011, 07:23 PM   #14
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,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by VelvetElvis View Post
I had 3 versions of the same book: .epub, .mobi, and .html. All gave the same results when converted and loaded on my Sony.
Remember if a html file gives you this error on conversion you have to remove the html from calibre, add the character encoding in the html2zip plugin, then add the html fresh to calibre.

Good Luck.
DoctorOhh is offline   Reply With Quote
Old 01-20-2011, 04:24 AM   #15
VelvetElvis
Addict
VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.
 
VelvetElvis's Avatar
 
Posts: 253
Karma: 20028
Join Date: Jan 2011
Location: Canada
Device: Fire HD8, Asus, Sony (T1, PRS-300), Kobo (Glo, Touch, Wireless)
Quote:
Originally Posted by dwanthny View Post
Remember if a html file gives you this error on conversion you have to remove the html from calibre, add the character encoding in the html2zip plugin, then add the html fresh to calibre.

Good Luck.
Hmm... never received an "error on conversion", per se. No warning or anything.
The only thing amiss in Calibre was the loss of apostrophe's (which were also used for quotes.). I only noticed it when using the Sony reader.
I still don't understand why the Calibre built-in reader didn't show the question marks.

Thanks for the info. It's been added to my own FAQ file.
VelvetElvis 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
Classic New to Nook - Question marks in sentences??? pcantral Barnes & Noble NOOK 7 10-08-2010 02:10 AM
What's with all the straight quotes (inch marks)? DGReader ePub 35 03-03-2010 02:48 PM
Quotes become question marks in RTF output Phil_C Calibre 3 01-06-2010 09:16 AM
Questionable Question Marks diggozo Sony Reader 2 12-29-2009 11:01 AM
Question Marks goose61282 Sigil 4 10-23-2009 08:33 AM


All times are GMT -4. The time now is 08:09 PM.


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