| Thread Previous • Date Previous • Date Next • Thread Next |
OK sounds good, let me know when you feel the code is ready. I can certainly add at least a command line any2lit pretty quickly. I envisage that as working like this: any2lit = any2epub (without splitting and other 505 customizations) -> oeb2lit So the options for any2lit will be the same as for any2epub (barring epub specific things) in addition to any special options lit conversion requires. This will automatically take care of page breaks and TOC creation. Kovid. On Thursday 04 December 2008 12:01:01 Marshall T. Vandegrift wrote: > On Thu, Dec 4, 2008 at 2:38 PM, Kovid Goyal <kovid@xxxxxxxxxxxxxx> wrote: > > That's great, I'll integrate it into calibre at the earliest opportunity. > > From my perspective (having to maintain build systems on 3 platforms), > > the best solution for lzxcomp is to simply add it to the current lzx > > module. > > Ok, I can do that. It is the most reasonable thing to do, but ctypes > really is super-slick. > > > I suggest putting oeb.py into the calibre.ebooks.lit package for now > > as it will only be used there. In the future, if we decide to use it > > elsewhere, for example, for a mobi output plugin, we can move it into > > ebooks.metadata > > Sensible enough. > > > Incidentally how do you losslessly serialize opf 2 to opf 1? > > Fair call :-). The only real problems I'm aware of (for valid OPF 2) > are extra-namespace metadata attributes and the arbitrarily nested NCX > ToC. For the former I'm currently choosing fidelity over compliance and > creating attributes and namespaces not allowed by the OEBPS Package DTD. > For the NCX TOC I'm loosing the nesting and any "class" attributes by > converting into a single flat <tour/> element, although it could use > multiple <tour/>s to preserve the information in an albeit non-standard > method. > > -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,4938386f75721141110934! -- _____________________________________ 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 _____________________________________
| Thread Previous • Date Previous • Date Next • Thread Next |