View Single Post
Old 01-29-2011, 03:25 PM   #5
KenJackson
Addict
KenJackson goes to infinity... and beyond!KenJackson goes to infinity... and beyond!KenJackson goes to infinity... and beyond!KenJackson goes to infinity... and beyond!KenJackson goes to infinity... and beyond!KenJackson goes to infinity... and beyond!KenJackson goes to infinity... and beyond!KenJackson goes to infinity... and beyond!KenJackson goes to infinity... and beyond!KenJackson goes to infinity... and beyond!KenJackson goes to infinity... and beyond!
 
Posts: 256
Karma: 112042
Join Date: Oct 2010
Location: Maryland, USA
Device: Sony PRS-650
Quote:
Originally Posted by Danny Fekete View Post
..., but have you considered converting the file into a PDF with Calibre and then trying it on the device? I'd be interested to hear whether that fixes the problem at all.
That's an interesting idea, since PDF includes its own font information.

But when I tried this command (using Calibre's ebook-convert program):
ebook-convert chinese_anonymous.epub chinese_anonymous.pdf
I got this output. Maybe I'll try another and see if it works.
Code:
1% Converting input to HTML...
InputFormatPlugin: EPUB Input running
on /home/ken/doc/epub/chinese_anonymous.epub
Parsing all content...
34% Running transforms on ebook...
Merging user specified metadata...
Detecting structure...
Flattening CSS and remapping font sizes...
Source base font size is 12.00000pt
Cleaning up manifest...
Trimming unused files from manifest...
Creating PDF Output...
67% Creating PDF Output
Traceback (most recent call last):
  File "/usr/lib64/calibre/calibre/ebooks/pdf/writer.py", line 167, in _render_html
    self._render_book()
  File "/usr/lib64/calibre/calibre/ebooks/pdf/writer.py", line 148, in _render_book
    self._write()
  File "/usr/lib64/calibre/calibre/ebooks/pdf/writer.py", line 196, in _write
    outPDF = PdfFileWriter(title=self.metadata.title, author=self.metadata.author)
TypeError: __init__() got an unexpected keyword argument 'title'
PDF output written to /home/ken/doc/epub/chinese_anonymous.pdf
Output saved to   /home/ken/doc/epub/chinese_anonymous.pdf
KenJackson is offline   Reply With Quote