Order it now! Amazon prioritizes orders on a first come, first served basis.


View Full Version : Calibre convert Chinese PDF to EPUB well, but not TXT and HTML


jimmyzou
03-23-2009, 05:17 PM
I know this is my 2nd post regarding EPUB converting Chinese, I think posting another is easier to understand...

These 2 days I tried using Calibre 5.0 to convert Chinese books into EPUB format. It actually works well, but only on PDFs so far...
I did not do anything to my PRS505, just use the universal flasher flashed into Chinese fonts which work perfectly with Chinese LRF I made witt Calibre.

The steps I made the EPUB are all the same with making LRF, except a little extra:
1. Set output format to EPUB - of course.
2. After click“Convert Ebooks", In "Look&Feel" option, paste code below into“Override CSS”

@font-face { font-family:"Swis721 BT"; src:url(res:///Data/fonts/tt0003m_.ttf), url(res:///tt0003m_.ttf); }

body {
font-family: "Swis721 BT", serif;
}

The Chinese PDF(not fonts embeded) books are very nicely been converted to EPUB, but TXT and HTML were convert to EPUB with all "????". Any idea?

kovidgoyal
03-23-2009, 06:03 PM
Use the encoding setting when converting txt and html to specify the character encoding the original files are in

jimmyzou
03-23-2009, 06:12 PM
Use the encoding setting when converting txt and html to specify the character encoding the original files are in

Thanks! I will try it..
Question: What should I put in "Source Encoding"? "Unicode" or "ANIS"?

Another question: Why it's missing a few letter at the right edge?

jimmyzou
03-24-2009, 10:06 AM
OK, thanks for kovidgoyal's answer, I managed to convert a TXT file successfully. I don't know what's the code name of UNICODE and ANSI, as I saved the TXT in these 2 code and put the name in the command line, it does not work.
So I tried UTF-8 txt, it's working!

But HTML, I use IE to open the TXT file, and save as UTF-8 HTML, no luck in Calbire