calibre-devs team mailing list archive
-
calibre-devs team
-
Mailing list archive
-
Message #00073
Re: oeb2mobi ready for merge
OK code is merged (I changed the Serializing images message log level to info
from warn.
Feel free to start a MOBI output thread on mobileread when I make the next
release, which should be soon.
Incidentally, any2lit is broken
Traceback (most recent call last):
File "/usr/bin/any2lit", line 8, in <module>
load_entry_point('calibre==0.4.128', 'console_scripts', 'any2lit')()
File "/home/kovid/work/calibre/src/calibre/ebooks/lit/from_any.py", line 55,
in main
any2lit(opts, args[1])
File "/home/kovid/work/calibre/src/calibre/ebooks/lit/from_any.py", line 45,
in any2lit
oeb2lit(opts, opf)
File "/home/kovid/work/calibre/src/calibre/ebooks/lit/writer.py", line 733,
in oeb2lit
mangler.transform(oeb, context)
File
"/home/kovid/work/calibre/src/calibre/ebooks/oeb/transforms/manglecase.py",
line 36, in transform
self.mangle_spine()
File
"/home/kovid/work/calibre/src/calibre/ebooks/oeb/transforms/manglecase.py",
line 46, in mangle_spine
stylizer = Stylizer(html, item.href, self.oeb, self.profile)
File "/home/kovid/work/calibre/src/calibre/ebooks/oeb/stylizer.py", line
150, in __init__
rules.extend(self.flatten_rule(rule, href, index))
File "/home/kovid/work/calibre/src/calibre/ebooks/oeb/stylizer.py", line
168, in flatten_rule
style = self.flatten_style(rule.style)
File "/home/kovid/work/calibre/src/calibre/ebooks/oeb/stylizer.py", line
193, in flatten_style
style['font-size'] = "%dpt" % self.profile.fnames[size]
AttributeError: 'str' object has no attribute 'fnames'
Kovid.
On Saturday 17 January 2009 11:54:30 Marshall T. Vandegrift wrote:
> On Sat, Jan 17, 2009 at 2:02 PM, Kovid Goyal <kovid@xxxxxxxxxxxxxx> wrote:
> > 1) Why is PalmDoc compression not the default?
>
> It takes a reaaaally long time, like several minutes. If/when we move
> PalmDOC compression into C, I think it should be the default, but
> probably not as it is now.
>
> > 2) Do you mind if I change the verbose option of oeb2mobi to an
> > integer to specify levels of verbosity. That way it will be compatible
> > with the usage in html2epub and eventually the whole conversion
> > toolset.
>
> Nope, not at all -- I'd just duplicated oeb2lit there.
>
> > Other than that, it look ready to merge. I haven't done any actual
> > testing of the MOBI output, but that's what Mobileread is for ;)
>
> Awesome. I did just find one minor bug in my font-size normalization,
> which I pushed up as one more revision in lp:~llasram/calibre/mobi2oeb.
>
> And from your following e-mails:
> > Should any2mobi disable splitting (including splitting on page breaks
> > in the epub conversion? This will cause a significant speedup.
> >
> > oeb2mobi seems to be doing its own font size rationalization, in which
> > case any2mobi should probably turn off font size rationalization in
> > any2epub.
>
> Aaaand yes to both of those. Definitely good ideas.
>
> -Marshall
>
> _______________________________________________
> Mailing list: https://launchpad.net/~calibre-devs
> Post to : calibre-devs@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~calibre-devs
> More help : https://help.launchpad.net/ListHelp
>
> !DSPAM:3,4972377d75721779515482!
--
_____________________________________
Kovid Goyal MC 452-48
California Institute of Technology
1200 E California Blvd
Pasadena, CA 91125
cell : +01 626 390 8699
office: +01 626 395 6595 (449 Lauritsen)
email : kovid@xxxxxxxxxxxxxxxxxx
web : http://www.kovidgoyal.net
_____________________________________
Follow ups
References