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

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 10-14-2010, 09:38 AM   #1
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 2,984
Karma: 1285294
Join Date: Sep 2010
Device: Kobo aura HD, Kobo Arc, Kindle Fire HDX 8.9 , Kindle for PC
txt to mobi - dashes becoming ?

I have a txt document that I want converted into mobi.

it converts OK except that any dash character is rendered as a ? inside of a black diamond?
what is causing this & is there an easy workaround ?

e.g.where txt input, in notepad looks like this:
"From each sensor a lead, fine as gossamer, ran to the sole object — apart from the steel chair and two other chairs, both softly padded — that might be said to furnish the room."

the mobi output ( in calibre reader) displays as:
" From each sensor a lead, fine as gossamer, ran to the sole object � apart from the steel chair and two other chairs, both softly padded � that might be said to furnish the room"

I've worked around the problem like this: I don't find that long dash mark anywhere on my keyboard but I open the txt file in notepad, paste that dash into the find replace box then go replace all to change it to " - ". that comes out as expected in .mobi.

I'd still be grateful for an explanation of the original bug/issue though, please

Last edited by cybmole; 10-14-2010 at 09:44 AM.
cybmole is offline   Reply With Quote
Old 10-14-2010, 10:09 AM   #2
GRiker
Comparer of the Ephemeris
GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.
 
Posts: 1,497
Karma: 424627
Join Date: Mar 2009
Device: iPad
The hyphens in your source file are probably endashes or emdashes, not hyphens. They look very similar. See this discussion of dashes in wikipedia.

G
GRiker is offline   Reply With Quote
Old 10-14-2010, 10:58 AM   #3
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 2,984
Karma: 1285294
Join Date: Sep 2010
Device: Kobo aura HD, Kobo Arc, Kindle Fire HDX 8.9 , Kindle for PC
thanks - I thought that .txt files only contained standard characters i.e. those found on a keyboard. - I guess that's not quite right.
cybmole is offline   Reply With Quote
Old 10-14-2010, 11:07 AM   #4
GRiker
Comparer of the Ephemeris
GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.
 
Posts: 1,497
Karma: 424627
Join Date: Mar 2009
Device: iPad
It depends upon the strictness of the authoring application. My guess is that your original file is encoded in cp1252 - I'm guessing your dashes are #150 or #151 as shown here.

G
GRiker is offline   Reply With Quote
Old 10-14-2010, 11:58 AM   #5
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 2,984
Karma: 1285294
Join Date: Sep 2010
Device: Kobo aura HD, Kobo Arc, Kindle Fire HDX 8.9 , Kindle for PC
I'm happy enough with my work around, but let's say that I fussily wanted the Calibre .mobi output to look exactly like the .txt input i.e. to contain those same emdash thingies -

Is there a way to make that happen by tweaking calibre preferences ?
cybmole is offline   Reply With Quote
Old 10-14-2010, 12:02 PM   #6
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by cybmole View Post
I'm happy enough with my work around, but let's say that I fussily wanted the Calibre .mobi output to look exactly like the .txt input i.e. to contain those same emdash thingies -

Is there a way to make that happen by tweaking calibre preferences ?
In Look & Feel tell it the correct input character encoding - probably cp1252.
Starson17 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
Problem converting txt to mobi toby39 Calibre 10 09-05-2010 03:16 PM
iLiad iLiad can't read mobi/epub/txt desertblues iRex 27 07-24-2010 11:59 AM
Unable Convert Gutenberg TXT to Mobi ascherjim Calibre 4 06-23-2009 09:55 AM
Convert Mobi to txt jflatto Kindle Formats 1 10-19-2008 05:14 PM
New Illiad Can't Read my mobi or txt files sherryk_us iRex 25 08-04-2008 12:46 PM


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


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