On Tuesday, January 03, 2012 10:14:44 AM Pavel Sanda wrote: > Steve Litt wrote: > > Hi all, > > > > I've just put version 0.0.2 of lyx2kindle.py on the web, right > > here: > > > > http://www.troubleshooters.com/projects/lyx2kindle/ > > > > It's free software so anyone can use it, modify it, or distribute > > it. > > > > Version 0.0.2 is much more practical than 0.0.1. It can be used > > to make a Kindle specification compliant .mobi. It's not dufus > > simple, and the documentation is insufficient, and who knows, > > it's possible you might need someone to go in and change the > > Python code a little bit (although I doubt it), but IMHO it's > > much simpler than, for instance, authoring in Sigil. And I can't > > help feeling the final result will be likely to be better than > > something authored in MSWord. > > > > So far this has only been tested on two books by me, both on the > > Linux operating system. But for people who have asked me about > > making Kindle books, I think this is better than most > > alternatives, especially if you're starting from scratch and can > > use LyX for your authoring tool. > > > > Hope you like it. > > how far is it from the point to be usable with native lyx xhtml > output? we could ship it together with lyx and add it as export > format then... > > pavel
Hi Pavel, You're going to love the answer to this question: I don't know. What I do know for sure is the following: 1) I've never even tried it on native LyX HTML export. 2) Right now it has a kludge "anchors first" subroutine that's dependent on eLyXer's exact linefeed patterns. It would take me about 8-16 hours to replace the Kludge with a real xml parse with stack. Time's a little tight for me right now. 3) The overall quality of the current product is not yet anywhere near as good as the overall quality of LyX. In its current condition it would not be a good advertisement for LyX to include it with the LyX distribution. 4) It has been run only on Ubuntu 11.04 Linux. I have no idea whether it would work on Windows or Mac, although I see no reason why it wouldn't at least come close to running on those -- given Python's portability. 5) One important feature is missing: The ability to tell lyx2kindle.py to refrain from processing until a certain label is encountered within the LyX file. This would greatly enhance the ability to export both to PDF and to Kindle with the same LyX file. I'm hoping that, at this preliminary stage, some people will try it and see if it works. How much manual finessing did they have to do to get it to work? Does it work on Windows? Mac? Does anyone see a simpler way to present it to the user? I'd imagine that, always assuming that LyX native xhtml format faithfully passes environments down to HTML as styles, making it work with LyX xhtml is simply a matter of rewriting my Kludged "anchors first" subroutine, adding a metadata file switch telling whether to use LyX xhtml or eLyXer, and then addressing little differences between LyX xhtml and eLyXer. By the way, this same thing could easily be done for ePub. HTH SteveT Steve Litt Author: The Key to Everyday Excellence http://www.troubleshooters.com/bookstore/key_excellence.htm Twitter: http://www.twitter.com/stevelitt