10-14-2010, 08:38 AM | #1 |
Wizard
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
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 08:44 AM. |
10-14-2010, 09:09 AM | #2 |
Comparer of the Ephemeris
Posts: 1,496
Karma: 424697
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 |
Advert | |
|
10-14-2010, 09:58 AM | #3 |
Wizard
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
thanks - I thought that .txt files only contained standard characters i.e. those found on a keyboard. - I guess that's not quite right.
|
10-14-2010, 10:58 AM | #5 |
Wizard
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
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 ? |
Advert | |
|
10-14-2010, 11:02 AM | #6 |
Wizard
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
In Look & Feel tell it the correct input character encoding - probably cp1252.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem converting txt to mobi | toby39 | Calibre | 10 | 09-05-2010 02:16 PM |
iLiad iLiad can't read mobi/epub/txt | desertblues | iRex | 27 | 07-24-2010 10:59 AM |
Unable Convert Gutenberg TXT to Mobi | ascherjim | Calibre | 4 | 06-23-2009 08:55 AM |
Convert Mobi to txt | jflatto | Kindle Formats | 1 | 10-19-2008 04:14 PM |
New Illiad Can't Read my mobi or txt files | sherryk_us | iRex | 25 | 08-04-2008 11:46 AM |