Re: Introducing eLyXer: LyX to HTML converter
Hi folks, On Sat, Mar 14, 2009 at 3:21 AM, Christian Ridderström christian.ridderst...@gmail.com wrote: I believe there are free hosting facilities for git repositories, or you can surely get an account within the LyX repository (Subversion at the moment). Just google for free git repository, or something like that. Or ask on the developers list... Following Christian's recommendation the project is now hosted at Savannah.nongnu.org. Be sure to visit the main page (with its cheesy logo): http://www.nongnu.org/elyxer/ The wiki page now points there too. http://wiki.lyx.org/Tools/ELyXer And to celebrate it I have published version 0.6 over there. It supports Flex URLs and code, and alignment. In a little while it should hit the mirrors: https://savannah.nongnu.org/files/?group=elyxer This means that from now on I will publish all versions there without announcing them here in the lyx-users list. (That is, unless enough people request it; I could post a little notice over here every time a new version is ready, which from now on should be more infrequent.) Thanks to everyone who has so far downloaded the tool and tested it. With your help it can only get better. Alex.
Re: Introducing eLyXer: LyX to HTML converter
On Sat, 2009-03-14 at 00:47 +0100, Alex Fernandez wrote: Hi folks, A new version of eLyXer is online: http://wiki.lyx.org/Tools/ELyXer Direct downloads: http://wiki.lyx.org/uploads/Tools/eLyXer/elyxer-0.5.tar.gz http://wiki.lyx.org/uploads/Tools/eLyXer/elyxer-0.5.zip Richard Talley: image filenames with spaces should now be working. Nested lists are supported. Nikos Alexandris: Section*s are working. Images are harder than I thought ;) only scaling is working. To avoid the copyright notice just run: $ elyxer --nocopy source.lyx destination.html Joachim Osnabryg: mostly running under Python 2.3.5, may need some further work. Thanks, Alex. That's really GREAT :-) Thank you for your work Alex. It started working and giving meaningful/useful html output. There are, of course, always details which can be improved but the beginning is half of everything! I'll report sooner or later more details. Le me/us know how we can help more from an end-user perspective. Cheers, Nikos
Re: Introducing eLyXer: LyX to HTML converter
Hi folks, On Sat, Mar 14, 2009 at 3:21 AM, Christian Ridderström christian.ridderst...@gmail.com wrote: I believe there are free hosting facilities for git repositories, or you can surely get an account within the LyX repository (Subversion at the moment). Just google for free git repository, or something like that. Or ask on the developers list... Following Christian's recommendation the project is now hosted at Savannah.nongnu.org. Be sure to visit the main page (with its cheesy logo): http://www.nongnu.org/elyxer/ The wiki page now points there too. http://wiki.lyx.org/Tools/ELyXer And to celebrate it I have published version 0.6 over there. It supports Flex URLs and code, and alignment. In a little while it should hit the mirrors: https://savannah.nongnu.org/files/?group=elyxer This means that from now on I will publish all versions there without announcing them here in the lyx-users list. (That is, unless enough people request it; I could post a little notice over here every time a new version is ready, which from now on should be more infrequent.) Thanks to everyone who has so far downloaded the tool and tested it. With your help it can only get better. Alex.
Re: Introducing eLyXer: LyX to HTML converter
On Sat, 2009-03-14 at 00:47 +0100, Alex Fernandez wrote: Hi folks, A new version of eLyXer is online: http://wiki.lyx.org/Tools/ELyXer Direct downloads: http://wiki.lyx.org/uploads/Tools/eLyXer/elyxer-0.5.tar.gz http://wiki.lyx.org/uploads/Tools/eLyXer/elyxer-0.5.zip Richard Talley: image filenames with spaces should now be working. Nested lists are supported. Nikos Alexandris: Section*s are working. Images are harder than I thought ;) only scaling is working. To avoid the copyright notice just run: $ elyxer --nocopy source.lyx destination.html Joachim Osnabryg: mostly running under Python 2.3.5, may need some further work. Thanks, Alex. That's really GREAT :-) Thank you for your work Alex. It started working and giving meaningful/useful html output. There are, of course, always details which can be improved but the beginning is half of everything! I'll report sooner or later more details. Le me/us know how we can help more from an end-user perspective. Cheers, Nikos
Re: Introducing eLyXer: LyX to HTML converter
Hi folks, On Sat, Mar 14, 2009 at 3:21 AM, Christian Ridderströmwrote: > I believe there are free hosting facilities for git repositories, or you can > surely get an account within the LyX repository (Subversion at the moment). > Just google for free git repository, or something like that. Or ask on the > developers list... Following Christian's recommendation the project is now hosted at Savannah.nongnu.org. Be sure to visit the main page (with its cheesy logo): http://www.nongnu.org/elyxer/ The wiki page now points there too. http://wiki.lyx.org/Tools/ELyXer And to celebrate it I have published version 0.6 over there. It supports Flex URLs and code, and alignment. In a little while it should hit the mirrors: https://savannah.nongnu.org/files/?group=elyxer This means that from now on I will publish all versions there without announcing them here in the lyx-users list. (That is, unless enough people request it; I could post a little notice over here every time a new version is ready, which from now on should be more infrequent.) Thanks to everyone who has so far downloaded the tool and tested it. With your help it can only get better. Alex.
Re: Introducing eLyXer: LyX to HTML converter
On Sat, 2009-03-14 at 00:47 +0100, Alex Fernandez wrote: > Hi folks, > > A new version of eLyXer is online: > http://wiki.lyx.org/Tools/ELyXer > Direct downloads: > http://wiki.lyx.org/uploads/Tools/eLyXer/elyxer-0.5.tar.gz > http://wiki.lyx.org/uploads/Tools/eLyXer/elyxer-0.5.zip > > Richard Talley: image filenames with spaces should now be working. > Nested lists are supported. > Nikos Alexandris: Section*s are working. Images are harder than I > thought ;) only scaling is working. To avoid the copyright notice just > run: > $ elyxer --nocopy source.lyx destination.html > Joachim Osnabryg: mostly running under Python 2.3.5, may need some further > work. > > Thanks, > > Alex. That's really GREAT :-) Thank you for your work Alex. It started working and giving meaningful/useful html output. There are, of course, always details which can be improved but "the beginning is half of everything"! I'll report sooner or later more details. Le me/us know how we can help more from an end-user perspective. Cheers, Nikos
Re: Introducing eLyXer: LyX to HTML converter
Am 13.03.2009, 03:18 Uhr, schrieb Alex Fernandez: It seems that your Python is not understanding the decorator syntax for classmethods, which were introduced in Python 2.4: http://pyref.infogami.com/classmethod I believe, but I'm not the one to understand these things. The following command would verify that this is indeed the problem: $ python --version I tried out: joachim$ python --version Unknown option: -- usage: python [option] ... [-c cmd | file | -] [arg] ... ... perhaps again specific to Mac-OSX, but: joachim$ python -V Python 2.3.5 localhost:/Developer/Applications joachim$ python_select -l Available versions: current none python23-apple python25 i. e. I have - besides python23-apple - also some python25, might be incomplete. It had been installed together with some MacPorts program I don't remember spontaneously. Because of a problem with LyX starting Document = New, on advice of Konrad Hofbauer, I did then as I decribed in that thread »defaults.lyx, lyx2lyx error in LyX 1.6 - resolved«: - localhost:/opt joachim$ sudo python_select python23-apple Password: Selecting version python23-apple for python That resolved the problem. Experimentally today I tried to reselect python25 again, but the problem with LyX New came back, so I went immediately back to python23-apple. It would appear that Tiger comes with a Python 2.3 version. It is easy to upgrade to a more current version: http://www.python.org/download/mac/ Unfortunately, on http://www.pythonmac.org/packages/ for Mac-OSX 10.4 Tiger there are only packages up to Python 2.4.1 and PPC ONLY. Python 2.5 seems to run only on Mac-OSX 10.5 Leopard, if I understand well. I would commit to make eLyXer work with Tiger, but only if you are willing to be the guinea pig ... What do you think? No problem with the role of guinea pig (the German Versuchskaninchen) with the perspective of becoming a truffle pig and having eLyXer running correctly on Mac-OSX 10.4. But it seems rather impossible because of the python25 problem, as far as I see. =Has somebody activated python25 running on Mac-OSX 10.4 without problems with LyX New? And if, which python 2.5 had you installed and how? =Or have you, Alex, still an idea of resolving the problem? But might be this would be wasted effort in the moment, for the time being I share the happiness of Linuxers with eLyXer :-( joachim -- MacTeXLive 2008 - TeXShop 2.18-svn - LyX 1.6.1 MacBook Pro OSX 10.4.11 Tiger
Re: Introducing eLyXer: LyX to HTML converter
=Or have you, Alex, still an idea of resolving the problem? With such a committed test subject as you, we may try to make eLyXer work with Python 2.3 :D I will send you a test version as soon as possible. Thanks, Alex.
Re: Introducing eLyXer: LyX to HTML converter
Thank you for elyxer. Running OS X 10.4.11 Tiger PPC with a Fink installed Python 2.5.2 in /sw/bin/python. I dropped a copy of elyxer into /usr/local/bin with the appropriate owners and permissions. I tried to process ~60 page document, book class, dozens of PNG floating graphics, TOC, List of Figures, cross references. It's a pretty generic technical document. Lots of errors like this: Parsing line 3000 Image images3/tweakui/my not found Image images3/tweakui/internet not found Error at 3246: \begin_deeper Error at 3265: \end_deeper Output html file had no graphics and no TOC. -- Rich On Thu, Mar 12, 2009 at 8:18 PM, Alex Fernandez alejandro...@gmail.com wrote: Hi, Joachim, OK, I dared to download and uncompress it. Great, another brave soul! And proceeded to the first step, with the response: joachim$ ../elyxer userguide.lyx userguide2.html File ../elyxer, line 21 @classmethod ^ SyntaxError: invalid syntax It seems that your Python is not understanding the decorator syntax for classmethods, which were introduced in Python 2.4: http://pyref.infogami.com/classmethod The following command would verify that this is indeed the problem: $ python --version Might be because of Mac-OSX (as you haven’t tested it on Mac OS X)??? You are right: MacBook Pro OSX 10.4.11 Tiger It would appear that Tiger comes with a Python 2.3 version. It is easy to upgrade to a more current version: http://www.python.org/download/mac/ I would commit to make eLyXer work with Tiger, but only if you are willing to be the guinea pig -- I don't have a Python 2.3 installation and don't have the resources to create one. What do you think? Just to report it. Thanks! Alex.
Re: Introducing eLyXer: LyX to HTML converter
On Friday 13 March 2009 14:59:20 Alex Fernandez wrote: With such a committed test subject as you, we may try to make eLyXer work with Python 2.3 :D I will send you a test version as soon as possible. If that helps the minimum python version required by lyx is python-2.3.4 (if you are wondering about why the last 4 that is related with some unicode fixes there were only applied at that sub-version). Thanks, Alex. -- José Abílio
Re: Introducing eLyXer: LyX to HTML converter
Lots of errors like this: Parsing line 3000 Image images3/tweakui/my not found Image images3/tweakui/internet not found I presume that the images have spaces in the path? -- the next version should correct this problem. Error at 3246: \begin_deeper Error at 3265: \end_deeper This is an unknown command (to eLyXer). I will modify the error description to make it more specific. Output html file had no graphics and no TOC. TOC is not supported yet. Could you please send me (privately) a copy of your document, or at least the complete list of errors? In case there is any problem: remove any sensitive material, I promise to keep it confidential. Let's try to make it work. Thanks, Alex.
Re: Introducing eLyXer: LyX to HTML converter
If that helps the minimum python version required by lyx is python-2.3.4 (if you are wondering about why the last 4 that is related with some unicode fixes there were only applied at that sub-version). It sure does help. I will try to make eLyXer compatible with at least 2.3.5. Thanks, Alex.
Re: Introducing eLyXer: LyX to HTML converter
Hi folks, A new version of eLyXer is online: http://wiki.lyx.org/Tools/ELyXer Direct downloads: http://wiki.lyx.org/uploads/Tools/eLyXer/elyxer-0.5.tar.gz http://wiki.lyx.org/uploads/Tools/eLyXer/elyxer-0.5.zip Richard Talley: image filenames with spaces should now be working. Nested lists are supported. Nikos Alexandris: Section*s are working. Images are harder than I thought ;) only scaling is working. To avoid the copyright notice just run: $ elyxer --nocopy source.lyx destination.html Joachim Osnabryg: mostly running under Python 2.3.5, may need some further work. Thanks, Alex.
Re: Introducing eLyXer: LyX to HTML converter
On Thu, 12 Mar 2009, Alex Fernandez wrote: I have not published the repository for lack of a hosting facility (and lack of knowledge to set it up), but once I find a suitable place I will make it public. Hi Alex, I believe there are free hosting facilities for git repositories, or you can surely get an account within the LyX repository (Subversion at the moment). Just google for free git repository, or something like that. Or ask on the developers list... Btw, you may want more than just the repository, if people start giving you bug reports etc. regards, Christian -- Christian Ridderström Mobile: +46-70 687 39 44
Re: Introducing eLyXer: LyX to HTML converter
Am 13.03.2009, 03:18 Uhr, schrieb Alex Fernandez: It seems that your Python is not understanding the decorator syntax for classmethods, which were introduced in Python 2.4: http://pyref.infogami.com/classmethod I believe, but I'm not the one to understand these things. The following command would verify that this is indeed the problem: $ python --version I tried out: joachim$ python --version Unknown option: -- usage: python [option] ... [-c cmd | file | -] [arg] ... ... perhaps again specific to Mac-OSX, but: joachim$ python -V Python 2.3.5 localhost:/Developer/Applications joachim$ python_select -l Available versions: current none python23-apple python25 i. e. I have - besides python23-apple - also some python25, might be incomplete. It had been installed together with some MacPorts program I don't remember spontaneously. Because of a problem with LyX starting Document = New, on advice of Konrad Hofbauer, I did then as I decribed in that thread »defaults.lyx, lyx2lyx error in LyX 1.6 - resolved«: - localhost:/opt joachim$ sudo python_select python23-apple Password: Selecting version python23-apple for python That resolved the problem. Experimentally today I tried to reselect python25 again, but the problem with LyX New came back, so I went immediately back to python23-apple. It would appear that Tiger comes with a Python 2.3 version. It is easy to upgrade to a more current version: http://www.python.org/download/mac/ Unfortunately, on http://www.pythonmac.org/packages/ for Mac-OSX 10.4 Tiger there are only packages up to Python 2.4.1 and PPC ONLY. Python 2.5 seems to run only on Mac-OSX 10.5 Leopard, if I understand well. I would commit to make eLyXer work with Tiger, but only if you are willing to be the guinea pig ... What do you think? No problem with the role of guinea pig (the German Versuchskaninchen) with the perspective of becoming a truffle pig and having eLyXer running correctly on Mac-OSX 10.4. But it seems rather impossible because of the python25 problem, as far as I see. =Has somebody activated python25 running on Mac-OSX 10.4 without problems with LyX New? And if, which python 2.5 had you installed and how? =Or have you, Alex, still an idea of resolving the problem? But might be this would be wasted effort in the moment, for the time being I share the happiness of Linuxers with eLyXer :-( joachim -- MacTeXLive 2008 - TeXShop 2.18-svn - LyX 1.6.1 MacBook Pro OSX 10.4.11 Tiger
Re: Introducing eLyXer: LyX to HTML converter
=Or have you, Alex, still an idea of resolving the problem? With such a committed test subject as you, we may try to make eLyXer work with Python 2.3 :D I will send you a test version as soon as possible. Thanks, Alex.
Re: Introducing eLyXer: LyX to HTML converter
Thank you for elyxer. Running OS X 10.4.11 Tiger PPC with a Fink installed Python 2.5.2 in /sw/bin/python. I dropped a copy of elyxer into /usr/local/bin with the appropriate owners and permissions. I tried to process ~60 page document, book class, dozens of PNG floating graphics, TOC, List of Figures, cross references. It's a pretty generic technical document. Lots of errors like this: Parsing line 3000 Image images3/tweakui/my not found Image images3/tweakui/internet not found Error at 3246: \begin_deeper Error at 3265: \end_deeper Output html file had no graphics and no TOC. -- Rich On Thu, Mar 12, 2009 at 8:18 PM, Alex Fernandez alejandro...@gmail.com wrote: Hi, Joachim, OK, I dared to download and uncompress it. Great, another brave soul! And proceeded to the first step, with the response: joachim$ ../elyxer userguide.lyx userguide2.html File ../elyxer, line 21 @classmethod ^ SyntaxError: invalid syntax It seems that your Python is not understanding the decorator syntax for classmethods, which were introduced in Python 2.4: http://pyref.infogami.com/classmethod The following command would verify that this is indeed the problem: $ python --version Might be because of Mac-OSX (as you haven’t tested it on Mac OS X)??? You are right: MacBook Pro OSX 10.4.11 Tiger It would appear that Tiger comes with a Python 2.3 version. It is easy to upgrade to a more current version: http://www.python.org/download/mac/ I would commit to make eLyXer work with Tiger, but only if you are willing to be the guinea pig -- I don't have a Python 2.3 installation and don't have the resources to create one. What do you think? Just to report it. Thanks! Alex.
Re: Introducing eLyXer: LyX to HTML converter
On Friday 13 March 2009 14:59:20 Alex Fernandez wrote: With such a committed test subject as you, we may try to make eLyXer work with Python 2.3 :D I will send you a test version as soon as possible. If that helps the minimum python version required by lyx is python-2.3.4 (if you are wondering about why the last 4 that is related with some unicode fixes there were only applied at that sub-version). Thanks, Alex. -- José Abílio
Re: Introducing eLyXer: LyX to HTML converter
Lots of errors like this: Parsing line 3000 Image images3/tweakui/my not found Image images3/tweakui/internet not found I presume that the images have spaces in the path? -- the next version should correct this problem. Error at 3246: \begin_deeper Error at 3265: \end_deeper This is an unknown command (to eLyXer). I will modify the error description to make it more specific. Output html file had no graphics and no TOC. TOC is not supported yet. Could you please send me (privately) a copy of your document, or at least the complete list of errors? In case there is any problem: remove any sensitive material, I promise to keep it confidential. Let's try to make it work. Thanks, Alex.
Re: Introducing eLyXer: LyX to HTML converter
If that helps the minimum python version required by lyx is python-2.3.4 (if you are wondering about why the last 4 that is related with some unicode fixes there were only applied at that sub-version). It sure does help. I will try to make eLyXer compatible with at least 2.3.5. Thanks, Alex.
Re: Introducing eLyXer: LyX to HTML converter
Hi folks, A new version of eLyXer is online: http://wiki.lyx.org/Tools/ELyXer Direct downloads: http://wiki.lyx.org/uploads/Tools/eLyXer/elyxer-0.5.tar.gz http://wiki.lyx.org/uploads/Tools/eLyXer/elyxer-0.5.zip Richard Talley: image filenames with spaces should now be working. Nested lists are supported. Nikos Alexandris: Section*s are working. Images are harder than I thought ;) only scaling is working. To avoid the copyright notice just run: $ elyxer --nocopy source.lyx destination.html Joachim Osnabryg: mostly running under Python 2.3.5, may need some further work. Thanks, Alex.
Re: Introducing eLyXer: LyX to HTML converter
On Thu, 12 Mar 2009, Alex Fernandez wrote: I have not published the repository for lack of a hosting facility (and lack of knowledge to set it up), but once I find a suitable place I will make it public. Hi Alex, I believe there are free hosting facilities for git repositories, or you can surely get an account within the LyX repository (Subversion at the moment). Just google for free git repository, or something like that. Or ask on the developers list... Btw, you may want more than just the repository, if people start giving you bug reports etc. regards, Christian -- Christian Ridderström Mobile: +46-70 687 39 44
Re: Introducing eLyXer: LyX to HTML converter
Am 13.03.2009, 03:18 Uhr, schrieb Alex Fernandez: It seems that your Python is not understanding the decorator syntax for classmethods, which were introduced in Python 2.4: http://pyref.infogami.com/classmethod I believe, but I'm not the one to understand these things. The following command would verify that this is indeed the problem: $ python --version I tried out: joachim$ python --version Unknown option: -- usage: python [option] ... [-c cmd | file | -] [arg] ... ... perhaps again specific to Mac-OSX, but: joachim$ python -V Python 2.3.5 localhost:/Developer/Applications joachim$ python_select -l Available versions: current none python23-apple python25 i. e. I have - besides python23-apple - also some python25, might be incomplete. It had been installed together with some MacPorts program I don't remember spontaneously. Because of a problem with LyX starting "Document => New", on advice of Konrad Hofbauer, I did then as I decribed in that thread »defaults.lyx, lyx2lyx error in LyX 1.6 - resolved«: - localhost:/opt joachim$ sudo python_select python23-apple Password: Selecting version "python23-apple" for python That resolved the problem. Experimentally today I tried to reselect python25 again, but the problem with LyX "New" came back, so I went immediately back to python23-apple. It would appear that Tiger comes with a Python 2.3 version. It is easy to upgrade to a more current version: http://www.python.org/download/mac/ Unfortunately, on http://www.pythonmac.org/packages/ for Mac-OSX 10.4 Tiger there are only packages up to Python 2.4.1 and PPC ONLY. Python 2.5 seems to run only on Mac-OSX 10.5 Leopard, if I understand well. I would commit to make eLyXer work with Tiger, but only if you are willing to be the guinea pig ... What do you think? No problem with the role of guinea pig (the German Versuchskaninchen) with the perspective of becoming a truffle pig and having eLyXer running correctly on Mac-OSX 10.4. But it seems rather impossible because of the python25 problem, as far as I see. =>Has somebody activated python25 running on Mac-OSX 10.4 without problems with LyX "New"? And if, which python 2.5 had you installed and how? =>Or have you, Alex, still an idea of resolving the problem? But might be this would be wasted effort in the moment, for the time being I share the happiness of Linuxers with eLyXer :-( joachim -- MacTeXLive 2008 - TeXShop 2.18-svn - LyX 1.6.1 MacBook Pro OSX 10.4.11 Tiger
Re: Introducing eLyXer: LyX to HTML converter
> =>Or have you, Alex, still an idea of resolving the problem? With such a committed test subject as you, we may try to make eLyXer work with Python 2.3 :D I will send you a test version as soon as possible. Thanks, Alex.
Re: Introducing eLyXer: LyX to HTML converter
Thank you for elyxer. Running OS X 10.4.11 Tiger PPC with a Fink installed Python 2.5.2 in /sw/bin/python. I dropped a copy of elyxer into /usr/local/bin with the appropriate owners and permissions. I tried to process ~60 page document, book class, dozens of PNG floating graphics, TOC, List of Figures, cross references. It's a pretty generic technical document. Lots of errors like this: Parsing line 3000 Image images3/tweakui/my not found Image images3/tweakui/internet not found Error at 3246: \begin_deeper Error at 3265: \end_deeper Output html file had no graphics and no TOC. -- Rich On Thu, Mar 12, 2009 at 8:18 PM, Alex Fernandezwrote: > Hi, Joachim, > >> OK, I dared to download and uncompress it. > > Great, another brave soul! > >> And proceeded to the first step, with the response: >> >> joachim$ ../elyxer userguide.lyx userguide2.html >> File "../elyxer", line 21 >>@classmethod >>^ >> SyntaxError: invalid syntax > > It seems that your Python is not understanding the decorator syntax > for classmethods, which were introduced in Python 2.4: > http://pyref.infogami.com/classmethod > The following command would verify that this is indeed the problem: > $ python --version > >> Might be because of Mac-OSX (as you "haven’t tested it on Mac OS X")??? > > You are right: >> MacBook Pro OSX 10.4.11 Tiger > > It would appear that Tiger comes with a Python 2.3 version. It is easy > to upgrade to a more current version: > http://www.python.org/download/mac/ > I would commit to make eLyXer work with Tiger, but only if you are > willing to be the guinea pig -- I don't have a Python 2.3 installation > and don't have the resources to create one. What do you think? > >> Just to report it. > > Thanks! > > Alex. >
Re: Introducing eLyXer: LyX to HTML converter
On Friday 13 March 2009 14:59:20 Alex Fernandez wrote: > With such a committed test subject as you, we may try to make eLyXer > work with Python 2.3 :D > > I will send you a test version as soon as possible. If that helps the minimum python version required by lyx is python-2.3.4 (if you are wondering about why the last 4 that is related with some unicode fixes there were only applied at that sub-version). > Thanks, > > Alex. -- José Abílio
Re: Introducing eLyXer: LyX to HTML converter
> Lots of errors like this: > > Parsing line 3000 > Image images3/tweakui/my not found > Image images3/tweakui/internet not found I presume that the images have spaces in the path? -- the next version should correct this problem. > Error at 3246: \begin_deeper > Error at 3265: \end_deeper This is an unknown command (to eLyXer). I will modify the error description to make it more specific. > Output html file had no graphics and no TOC. TOC is not supported yet. Could you please send me (privately) a copy of your document, or at least the complete list of errors? In case there is any problem: remove any sensitive material, I promise to keep it confidential. Let's try to make it work. Thanks, Alex.
Re: Introducing eLyXer: LyX to HTML converter
> If that helps the minimum python version required by lyx is python-2.3.4 (if > you are wondering about why the last 4 that is related with some unicode fixes > there were only applied at that sub-version). It sure does help. I will try to make eLyXer compatible with at least 2.3.5. Thanks, Alex.
Re: Introducing eLyXer: LyX to HTML converter
Hi folks, A new version of eLyXer is online: http://wiki.lyx.org/Tools/ELyXer Direct downloads: http://wiki.lyx.org/uploads/Tools/eLyXer/elyxer-0.5.tar.gz http://wiki.lyx.org/uploads/Tools/eLyXer/elyxer-0.5.zip Richard Talley: image filenames with spaces should now be working. Nested lists are supported. Nikos Alexandris: Section*s are working. Images are harder than I thought ;) only scaling is working. To avoid the copyright notice just run: $ elyxer --nocopy source.lyx destination.html Joachim Osnabryg: mostly running under Python 2.3.5, may need some further work. Thanks, Alex.
Re: Introducing eLyXer: LyX to HTML converter
On Thu, 12 Mar 2009, Alex Fernandez wrote: I have not published the repository for lack of a hosting facility (and lack of knowledge to set it up), but once I find a suitable place I will make it public. Hi Alex, I believe there are free hosting facilities for git repositories, or you can surely get an account within the LyX repository (Subversion at the moment). Just google for free git repository, or something like that. Or ask on the developers list... Btw, you may want more than just the repository, if people start giving you bug reports etc. regards, Christian -- Christian Ridderström Mobile: +46-70 687 39 44
Re: Introducing eLyXer: LyX to HTML converter
Alex Fernandez wrote: Dear LyX users, Hi, That looks like a very nice tool. The HTML code is indeed good-looking! LyX is a wonderful editor; its PDF output is perhaps unmatched by other graphical editors. But the most common interchange method of today is HTML, and LyX does not produce good HTML. There are some tools for TeX - HTML conversion, and even LyX - HTML, but the results tend to be poor and rigid. So undeterred by the myriad of similar efforts I set to the task of producing a simple, specialized tool for LyX - HTML conversion, and the result is eLyXer. It is meant to produce acceptable-to-beautiful HTML code, depending on your browser's Unicode and CSS rendering merits. To use it just type at the prompt: $ elyxer document.lyx document.html This command takes a LyX document called (surprisingly) document.lyx, and produces (just as surprisingly) a web page called document.html. Ta-dah! The conversion is complete. For better results you may need to copy the file docs/lyx.css to your working directory, and perhaps customize it a bit. See this wiki page for details: http://wiki.lyx.org/Tools/ELyXer and be sure to read the user guide included in the package. A pretty example can be seen at http://vecinos-productions.com/rayleigh/book.html Is there a problem with the bibliography export ? It looks like the above example contains many more entries in the bibliography that there are references in the text, most having not numbers between the brackets. Best regards, Olivier PS: I noticed you use #!/usr/bin/python while the python scripts of LyX use #! /usr/bin/env python I'm not sure, but the later my be more 'universal' (tolerant/portable)
Re: Introducing eLyXer: LyX to HTML converter
A pretty example can be seen at http://vecinos-productions.com/rayleigh/book.html It even validates. http://validator.w3.org/check?uri=http%3A%2F%2Fvecinos-productions.com%2Frayleigh%2Fbook.htmlcharset= (detect+automatically)doctype=Inlinegroup=0verbose=1 Please make sure this remains so. Sincerely, Wolfgang
Re: Introducing eLyXer: LyX to HTML converter
Hi Olivier, That looks like a very nice tool. The HTML code is indeed good-looking! Thanks a lot! In time I hope it will be useful to other users. It is the least I can do after having used LyX for several years so satisfactorily. Is there a problem with the bibliography export ? It looks like the above example contains many more entries in the bibliography that there are references in the text, most having not numbers between the brackets. No problem at all, just that my sample document contained both referenced and unreferenced bibliography entries. In other words: I cut most of the text but left the bibliography entries. PS: I noticed you use #!/usr/bin/python while the python scripts of LyX use #! /usr/bin/env python I'm not sure, but the later my be more 'universal' (tolerant/portable) Changed now. I will release a new version later on today with the latter line :D Thanks, Alex.
Re: Introducing eLyXer: LyX to HTML converter
Am 11.03.2009, 02:08 Uhr, schrieb Alex Fernandez alejandro...@gmail.com: eLyXer is very much a work in progress, since it only supports a pretty small subset of LyX features Being very impressed of the quality of the example http://vecinos-productions.com/rayleigh/book.html I suppose that margin notes in LyX (or better footnotes as numbered margin notes in the Handout (Tufte) LyX layout) will not yet be translated as such (i. e. marginals) by eLyXer. (Sorry, I didn't install and try out eLyXer yet.) But if you and others who are able to develope eLyXer would build that capability in, it would serve very well my publications plans of texts with many short helping/illuminating notes in the margin (for less disconnect someone's reading of the main text. Just to make you know my wish, Good luck, joachim
Re: Introducing eLyXer: LyX to HTML converter
It even validates. http://validator.w3.org/check?uri=http%3A%2F%2Fvecinos-productions.com%2Frayleigh%2Fbook.htmlcharset= (detect+automatically)doctype=Inlinegroup=0verbose=1 Please make sure this remains so. Sure. If you find an example of invalid XHTML please notify me. Quoting from the user guide: The HTML code generated is technically XHTML Transitional, version 1.0, using UTF-8 encoding. It passes the W3C tests [w3c-validator]. If your particular web page doesn't pass the tests, then it is a bug and it will be treated as such. Thanks, Alex.
Re: Introducing eLyXer: LyX to HTML converter
Hi, But if you and others who are able to develope eLyXer would build that capability in, it would serve very well my publications plans of texts with many short helping/illuminating notes in the margin (for less disconnect someone's reading of the main text. Right now, and with the kind help of Nikos Alexandris, I have added basic support for footnotes: they appear as floating boxes on the right, although not numbered. You will find them in the next release, probably sometime this afternoon. Just to make you know my wish, Great! If there is any other missing feature be sure to tell me. You can send document samples privately and I will do my best. Thanks, Alex.
Re: Introducing eLyXer: LyX to HTML converter
On Thu, 2009-03-12 at 16:43 +0100, Alex Fernandez wrote: Hi again, Version 0.4 (20090312) is uploaded: http://wiki.lyx.org/Tools/ELyXer Direct link: http://wiki.lyx.org/uploads/Tools/eLyXer/elyxer-20090312.tar.gz It now ignores ERT, and supports footnotes, newlines, bibitem entries and citations. If you are interested in living on the rough frontiers of command line tools please give it a spin. Thanks, Alex. Alex, thanks a million :-). Just as a side-note: I don't know how you manage your source code locally. I want only to mention that git is an excellent tool. It's something more than a tool actually. And it's not that difficult to start working with it. There are very nice and clean tutorials. I use git locally for my LyX documents :-). Afterall, LyX files are like source code :-). No need to save with multiple names and get lost with tens of files. I have to thank a friend of mine who pointed out to the use of git. Cheers, Nikos
Re: Introducing eLyXer: LyX to HTML converter
On Thu, 2009-03-12 at 17:11 +0100, Alex Fernandez wrote: [...] Actually (and coincidentally) I am using git to manage the source code :D I can confirm that it is very nice to work with, even easier to use than Subversion with which I have some previous experience. I have not published the repository for lack of a hosting facility (and lack of knowledge to set it up), but once I find a suitable place I will make it public. Thanks, Alex. Great :D
Re: Introducing eLyXer: LyX to HTML converter
On Thu, 2009-03-12 at 16:43 +0100, Alex Fernandez wrote: Hi again, Version 0.4 (20090312) is uploaded: http://wiki.lyx.org/Tools/ELyXer Direct link: http://wiki.lyx.org/uploads/Tools/eLyXer/elyxer-20090312.tar.gz It now ignores ERT, and supports footnotes, newlines, bibitem entries and citations. If you are interested in living on the rough frontiers of command line tools please give it a spin. Thanks, Alex. OK, it started producing html's for me :D Notes (which you probably already know): # using the KOMA-Script article class 1. All footnotes appear as normal text exactly there where they are inserted in LyX' document and therefore cannot be distinguished from the text-body. 2. The section titles defined as Section* environments are ignored and appear as normal text 3. The lstparams (parameters for the listings package) appear also in the text. 4. Indentation of the LyX-Code environment is ignored 5. Pictures are used without the scaling that is defined within LyX (well... I don't know how hard this would be to implement). 6. I would like to be able to control the Copyright (C) 2009 by... message if possible, i.e. to be able to switch it off. Cheers, Nikos
Re: Introducing eLyXer: LyX to HTML converter
Nikos, it started producing html's for me :D Great! Notes (which you probably already know): # using the KOMA-Script article class 1. All footnotes appear as normal text exactly there where they are inserted in LyX' document and therefore cannot be distinguished from the text-body. As to the first point you may try to copy the docs/lyx.css file to your html directory. It will improve significantly. The rest will have to wait for the 0.5 (20090313) version :D 5. Pictures are used without the scaling that is defined within LyX (well... I don't know how hard this would be to implement). Actually it doesn't looks too difficult. Thanks for the report, Alex.
Re: Introducing eLyXer: LyX to HTML converter
Am 12.03.2009, 16:43 Uhr, schrieb Alex Fernandez alejandro...@gmail.com: Version 0.4 (20090312) is uploaded: http://wiki.lyx.org/Tools/ELyXer OK, I dared to download and uncompress it. And proceeded to the first step, with the response: joachim$ ../elyxer userguide.lyx userguide2.html File ../elyxer, line 21 @classmethod ^ SyntaxError: invalid syntax There is no userguide2.html in my /elyxer/docs directory. So far, according to your userguide.lyx and .html not everything is working fine. Might be because of Mac-OSX (as you haven’t tested it on Mac OS X)??? Just to report it. Good luck, joachim -- MacTeXLive 2008 - TeXShop 2.18-svn - LyX 1.6.1 MacBook Pro OSX 10.4.11 Tiger
Re: Introducing eLyXer: LyX to HTML converter
Hi, Joachim, OK, I dared to download and uncompress it. Great, another brave soul! And proceeded to the first step, with the response: joachim$ ../elyxer userguide.lyx userguide2.html File ../elyxer, line 21 �...@classmethod ^ SyntaxError: invalid syntax It seems that your Python is not understanding the decorator syntax for classmethods, which were introduced in Python 2.4: http://pyref.infogami.com/classmethod The following command would verify that this is indeed the problem: $ python --version Might be because of Mac-OSX (as you haven’t tested it on Mac OS X)??? You are right: MacBook Pro OSX 10.4.11 Tiger It would appear that Tiger comes with a Python 2.3 version. It is easy to upgrade to a more current version: http://www.python.org/download/mac/ I would commit to make eLyXer work with Tiger, but only if you are willing to be the guinea pig -- I don't have a Python 2.3 installation and don't have the resources to create one. What do you think? Just to report it. Thanks! Alex.
Re: Introducing eLyXer: LyX to HTML converter
Alex Fernandez wrote: Dear LyX users, Hi, That looks like a very nice tool. The HTML code is indeed good-looking! LyX is a wonderful editor; its PDF output is perhaps unmatched by other graphical editors. But the most common interchange method of today is HTML, and LyX does not produce good HTML. There are some tools for TeX - HTML conversion, and even LyX - HTML, but the results tend to be poor and rigid. So undeterred by the myriad of similar efforts I set to the task of producing a simple, specialized tool for LyX - HTML conversion, and the result is eLyXer. It is meant to produce acceptable-to-beautiful HTML code, depending on your browser's Unicode and CSS rendering merits. To use it just type at the prompt: $ elyxer document.lyx document.html This command takes a LyX document called (surprisingly) document.lyx, and produces (just as surprisingly) a web page called document.html. Ta-dah! The conversion is complete. For better results you may need to copy the file docs/lyx.css to your working directory, and perhaps customize it a bit. See this wiki page for details: http://wiki.lyx.org/Tools/ELyXer and be sure to read the user guide included in the package. A pretty example can be seen at http://vecinos-productions.com/rayleigh/book.html Is there a problem with the bibliography export ? It looks like the above example contains many more entries in the bibliography that there are references in the text, most having not numbers between the brackets. Best regards, Olivier PS: I noticed you use #!/usr/bin/python while the python scripts of LyX use #! /usr/bin/env python I'm not sure, but the later my be more 'universal' (tolerant/portable)
Re: Introducing eLyXer: LyX to HTML converter
A pretty example can be seen at http://vecinos-productions.com/rayleigh/book.html It even validates. http://validator.w3.org/check?uri=http%3A%2F%2Fvecinos-productions.com%2Frayleigh%2Fbook.htmlcharset= (detect+automatically)doctype=Inlinegroup=0verbose=1 Please make sure this remains so. Sincerely, Wolfgang
Re: Introducing eLyXer: LyX to HTML converter
Hi Olivier, That looks like a very nice tool. The HTML code is indeed good-looking! Thanks a lot! In time I hope it will be useful to other users. It is the least I can do after having used LyX for several years so satisfactorily. Is there a problem with the bibliography export ? It looks like the above example contains many more entries in the bibliography that there are references in the text, most having not numbers between the brackets. No problem at all, just that my sample document contained both referenced and unreferenced bibliography entries. In other words: I cut most of the text but left the bibliography entries. PS: I noticed you use #!/usr/bin/python while the python scripts of LyX use #! /usr/bin/env python I'm not sure, but the later my be more 'universal' (tolerant/portable) Changed now. I will release a new version later on today with the latter line :D Thanks, Alex.
Re: Introducing eLyXer: LyX to HTML converter
Am 11.03.2009, 02:08 Uhr, schrieb Alex Fernandez alejandro...@gmail.com: eLyXer is very much a work in progress, since it only supports a pretty small subset of LyX features Being very impressed of the quality of the example http://vecinos-productions.com/rayleigh/book.html I suppose that margin notes in LyX (or better footnotes as numbered margin notes in the Handout (Tufte) LyX layout) will not yet be translated as such (i. e. marginals) by eLyXer. (Sorry, I didn't install and try out eLyXer yet.) But if you and others who are able to develope eLyXer would build that capability in, it would serve very well my publications plans of texts with many short helping/illuminating notes in the margin (for less disconnect someone's reading of the main text. Just to make you know my wish, Good luck, joachim
Re: Introducing eLyXer: LyX to HTML converter
It even validates. http://validator.w3.org/check?uri=http%3A%2F%2Fvecinos-productions.com%2Frayleigh%2Fbook.htmlcharset= (detect+automatically)doctype=Inlinegroup=0verbose=1 Please make sure this remains so. Sure. If you find an example of invalid XHTML please notify me. Quoting from the user guide: The HTML code generated is technically XHTML Transitional, version 1.0, using UTF-8 encoding. It passes the W3C tests [w3c-validator]. If your particular web page doesn't pass the tests, then it is a bug and it will be treated as such. Thanks, Alex.
Re: Introducing eLyXer: LyX to HTML converter
Hi, But if you and others who are able to develope eLyXer would build that capability in, it would serve very well my publications plans of texts with many short helping/illuminating notes in the margin (for less disconnect someone's reading of the main text. Right now, and with the kind help of Nikos Alexandris, I have added basic support for footnotes: they appear as floating boxes on the right, although not numbered. You will find them in the next release, probably sometime this afternoon. Just to make you know my wish, Great! If there is any other missing feature be sure to tell me. You can send document samples privately and I will do my best. Thanks, Alex.
Re: Introducing eLyXer: LyX to HTML converter
On Thu, 2009-03-12 at 16:43 +0100, Alex Fernandez wrote: Hi again, Version 0.4 (20090312) is uploaded: http://wiki.lyx.org/Tools/ELyXer Direct link: http://wiki.lyx.org/uploads/Tools/eLyXer/elyxer-20090312.tar.gz It now ignores ERT, and supports footnotes, newlines, bibitem entries and citations. If you are interested in living on the rough frontiers of command line tools please give it a spin. Thanks, Alex. Alex, thanks a million :-). Just as a side-note: I don't know how you manage your source code locally. I want only to mention that git is an excellent tool. It's something more than a tool actually. And it's not that difficult to start working with it. There are very nice and clean tutorials. I use git locally for my LyX documents :-). Afterall, LyX files are like source code :-). No need to save with multiple names and get lost with tens of files. I have to thank a friend of mine who pointed out to the use of git. Cheers, Nikos
Re: Introducing eLyXer: LyX to HTML converter
On Thu, 2009-03-12 at 17:11 +0100, Alex Fernandez wrote: [...] Actually (and coincidentally) I am using git to manage the source code :D I can confirm that it is very nice to work with, even easier to use than Subversion with which I have some previous experience. I have not published the repository for lack of a hosting facility (and lack of knowledge to set it up), but once I find a suitable place I will make it public. Thanks, Alex. Great :D
Re: Introducing eLyXer: LyX to HTML converter
On Thu, 2009-03-12 at 16:43 +0100, Alex Fernandez wrote: Hi again, Version 0.4 (20090312) is uploaded: http://wiki.lyx.org/Tools/ELyXer Direct link: http://wiki.lyx.org/uploads/Tools/eLyXer/elyxer-20090312.tar.gz It now ignores ERT, and supports footnotes, newlines, bibitem entries and citations. If you are interested in living on the rough frontiers of command line tools please give it a spin. Thanks, Alex. OK, it started producing html's for me :D Notes (which you probably already know): # using the KOMA-Script article class 1. All footnotes appear as normal text exactly there where they are inserted in LyX' document and therefore cannot be distinguished from the text-body. 2. The section titles defined as Section* environments are ignored and appear as normal text 3. The lstparams (parameters for the listings package) appear also in the text. 4. Indentation of the LyX-Code environment is ignored 5. Pictures are used without the scaling that is defined within LyX (well... I don't know how hard this would be to implement). 6. I would like to be able to control the Copyright (C) 2009 by... message if possible, i.e. to be able to switch it off. Cheers, Nikos
Re: Introducing eLyXer: LyX to HTML converter
Nikos, it started producing html's for me :D Great! Notes (which you probably already know): # using the KOMA-Script article class 1. All footnotes appear as normal text exactly there where they are inserted in LyX' document and therefore cannot be distinguished from the text-body. As to the first point you may try to copy the docs/lyx.css file to your html directory. It will improve significantly. The rest will have to wait for the 0.5 (20090313) version :D 5. Pictures are used without the scaling that is defined within LyX (well... I don't know how hard this would be to implement). Actually it doesn't looks too difficult. Thanks for the report, Alex.
Re: Introducing eLyXer: LyX to HTML converter
Am 12.03.2009, 16:43 Uhr, schrieb Alex Fernandez alejandro...@gmail.com: Version 0.4 (20090312) is uploaded: http://wiki.lyx.org/Tools/ELyXer OK, I dared to download and uncompress it. And proceeded to the first step, with the response: joachim$ ../elyxer userguide.lyx userguide2.html File ../elyxer, line 21 @classmethod ^ SyntaxError: invalid syntax There is no userguide2.html in my /elyxer/docs directory. So far, according to your userguide.lyx and .html not everything is working fine. Might be because of Mac-OSX (as you haven’t tested it on Mac OS X)??? Just to report it. Good luck, joachim -- MacTeXLive 2008 - TeXShop 2.18-svn - LyX 1.6.1 MacBook Pro OSX 10.4.11 Tiger
Re: Introducing eLyXer: LyX to HTML converter
Hi, Joachim, OK, I dared to download and uncompress it. Great, another brave soul! And proceeded to the first step, with the response: joachim$ ../elyxer userguide.lyx userguide2.html File ../elyxer, line 21 �...@classmethod ^ SyntaxError: invalid syntax It seems that your Python is not understanding the decorator syntax for classmethods, which were introduced in Python 2.4: http://pyref.infogami.com/classmethod The following command would verify that this is indeed the problem: $ python --version Might be because of Mac-OSX (as you haven’t tested it on Mac OS X)??? You are right: MacBook Pro OSX 10.4.11 Tiger It would appear that Tiger comes with a Python 2.3 version. It is easy to upgrade to a more current version: http://www.python.org/download/mac/ I would commit to make eLyXer work with Tiger, but only if you are willing to be the guinea pig -- I don't have a Python 2.3 installation and don't have the resources to create one. What do you think? Just to report it. Thanks! Alex.
Re: Introducing eLyXer: LyX to HTML converter
Alex Fernandez wrote: Dear LyX users, Hi, That looks like a very nice tool. The HTML code is indeed good-looking! LyX is a wonderful editor; its PDF output is perhaps unmatched by other graphical editors. But the most common interchange method of today is HTML, and LyX does not produce good HTML. There are some tools for TeX -> HTML conversion, and even LyX -> HTML, but the results tend to be poor and rigid. So undeterred by the myriad of similar efforts I set to the task of producing a simple, specialized tool for LyX -> HTML conversion, and the result is eLyXer. It is meant to produce acceptable-to-beautiful HTML code, depending on your browser's Unicode and CSS rendering merits. To use it just type at the prompt: $ elyxer document.lyx document.html This command takes a LyX document called (surprisingly) document.lyx, and produces (just as surprisingly) a web page called document.html. Ta-dah! The conversion is complete. For better results you may need to copy the file docs/lyx.css to your working directory, and perhaps customize it a bit. See this wiki page for details: http://wiki.lyx.org/Tools/ELyXer and be sure to read the user guide included in the package. A pretty example can be seen at http://vecinos-productions.com/rayleigh/book.html Is there a problem with the bibliography export ? It looks like the above example contains many more entries in the bibliography that there are references in the text, most having not numbers between the brackets. Best regards, Olivier PS: I noticed you use #!/usr/bin/python while the python scripts of LyX use #! /usr/bin/env python I'm not sure, but the later my be more 'universal' (tolerant/portable)
Re: Introducing eLyXer: LyX to HTML converter
> A pretty example can be seen at > http://vecinos-productions.com/rayleigh/book.html It even validates. http://validator.w3.org/check?uri=http%3A%2F%2Fvecinos-productions.com%2Frayleigh%2Fbook.html= (detect+automatically)=Inline=0=1 Please make sure this remains so. Sincerely, Wolfgang
Re: Introducing eLyXer: LyX to HTML converter
Hi Olivier, > That looks like a very nice tool. The HTML code is indeed good-looking! Thanks a lot! In time I hope it will be useful to other users. It is the least I can do after having used LyX for several years so satisfactorily. > Is there a problem with the bibliography export ? It looks like the above > example contains many more entries in the bibliography that there are > references in the text, most having not numbers between the brackets. No problem at all, just that my sample document contained both referenced and unreferenced bibliography entries. In other words: I cut most of the text but left the bibliography entries. > PS: I noticed you use > #!/usr/bin/python > while the python scripts of LyX use > #! /usr/bin/env python > > I'm not sure, but the later my be more 'universal' (tolerant/portable) Changed now. I will release a new version later on today with the latter line :D Thanks, Alex.
Re: Introducing eLyXer: LyX to HTML converter
Am 11.03.2009, 02:08 Uhr, schrieb Alex Fernandez: eLyXer is very much a work in progress, since it only supports a pretty small subset of LyX features Being very impressed of the quality of the example http://vecinos-productions.com/rayleigh/book.html I suppose that margin notes in LyX (or better footnotes as numbered margin notes in the Handout (Tufte) LyX layout) will not yet be translated as such (i. e. marginals) by eLyXer. (Sorry, I didn't install and try out eLyXer yet.) But if you and others who are able to develope eLyXer would build that capability in, it would serve very well my publications plans of texts with many short helping/illuminating notes in the margin (for less disconnect someone's reading of the main text. Just to make you know my wish, Good luck, joachim
Re: Introducing eLyXer: LyX to HTML converter
> It even validates. > > http://validator.w3.org/check?uri=http%3A%2F%2Fvecinos-productions.com%2Frayleigh%2Fbook.html= > (detect+automatically)=Inline=0=1 > > Please make sure this remains so. Sure. If you find an example of invalid XHTML please notify me. Quoting from the user guide: "The HTML code generated is technically XHTML Transitional, version 1.0, using UTF-8 encoding. It passes the W3C tests [w3c-validator]. If your particular web page doesn't pass the tests, then it is a bug and it will be treated as such." Thanks, Alex.
Re: Introducing eLyXer: LyX to HTML converter
Hi, > But if you and others who are able to develope eLyXer would build that > capability in, it would serve very well my publications plans of texts > with many short helping/illuminating notes in the margin (for less > disconnect someone's reading of the main text. Right now, and with the kind help of Nikos Alexandris, I have added basic support for footnotes: they appear as floating boxes on the right, although not numbered. You will find them in the next release, probably sometime this afternoon. > Just to make you know my wish, Great! If there is any other missing feature be sure to tell me. You can send document samples privately and I will do my best. Thanks, Alex.
Re: Introducing eLyXer: LyX to HTML converter
On Thu, 2009-03-12 at 16:43 +0100, Alex Fernandez wrote: > Hi again, > > Version 0.4 (20090312) is uploaded: > http://wiki.lyx.org/Tools/ELyXer > Direct link: > http://wiki.lyx.org/uploads/Tools/eLyXer/elyxer-20090312.tar.gz > It now ignores ERT, and supports footnotes, newlines, bibitem entries > and citations. If you are interested in living on the rough frontiers > of command line tools please give it a spin. > > Thanks, > > Alex. Alex, thanks a million :-). Just as a side-note: I don't know how you manage your source code locally. I want only to mention that git is an excellent tool. It's something more than a tool actually. And it's not that difficult to start working with it. There are very nice and clean tutorials. I use git locally for my LyX documents :-). Afterall, LyX files are like source code :-). No need to save with multiple names and get lost with tens of files. I have to thank a friend of mine who pointed out to the use of git. Cheers, Nikos
Re: Introducing eLyXer: LyX to HTML converter
On Thu, 2009-03-12 at 17:11 +0100, Alex Fernandez wrote: [...] > Actually (and coincidentally) I am using git to manage the source code > :D I can confirm that it is very nice to work with, even easier to > use than Subversion with which I have some previous experience. > > I have not published the repository for lack of a hosting facility > (and lack of knowledge to set it up), but once I find a suitable place > I will make it public. > > Thanks, > Alex. Great :D
Re: Introducing eLyXer: LyX to HTML converter
On Thu, 2009-03-12 at 16:43 +0100, Alex Fernandez wrote: > Hi again, > > Version 0.4 (20090312) is uploaded: > http://wiki.lyx.org/Tools/ELyXer > Direct link: > http://wiki.lyx.org/uploads/Tools/eLyXer/elyxer-20090312.tar.gz > It now ignores ERT, and supports footnotes, newlines, bibitem entries > and citations. If you are interested in living on the rough frontiers > of command line tools please give it a spin. > > Thanks, > > Alex. OK, it started producing html's for me :D Notes (which you probably already know): # using the KOMA-Script article class 1. All footnotes appear as normal text exactly there where they are inserted in LyX' document and therefore cannot be distinguished from the text-body. 2. The section titles defined as "Section*" environments are ignored and appear as normal text 3. The lstparams (parameters for the listings package) appear also in the text. 4. Indentation of the LyX-Code environment is ignored 5. Pictures are used without the scaling that is defined within LyX (well... I don't know how hard this would be to implement). 6. I would like to be able to control the "Copyright (C) 2009 by..." message if possible, i.e. to be able to switch it off. Cheers, Nikos
Re: Introducing eLyXer: LyX to HTML converter
Nikos, > it started producing html's for me :D Great! > Notes (which you probably already know): > # using the KOMA-Script article class > > 1. All footnotes appear as normal text exactly there where they are > inserted in LyX' document and therefore cannot be distinguished from the > text-body. As to the first point you may try to copy the docs/lyx.css file to your html directory. It will improve significantly. The rest will have to wait for the 0.5 (20090313) version :D > 5. Pictures are used without the scaling that is defined within LyX > (well... I don't know how hard this would be to implement). Actually it doesn't looks too difficult. Thanks for the report, Alex.
Re: Introducing eLyXer: LyX to HTML converter
Am 12.03.2009, 16:43 Uhr, schrieb Alex Fernandez: Version 0.4 (20090312) is uploaded: http://wiki.lyx.org/Tools/ELyXer OK, I dared to download and uncompress it. And proceeded to the first step, with the response: joachim$ ../elyxer userguide.lyx userguide2.html File "../elyxer", line 21 @classmethod ^ SyntaxError: invalid syntax There is no userguide2.html in my /elyxer/docs directory. So far, according to your userguide.lyx and .html not "everything is working fine". Might be because of Mac-OSX (as you "haven’t tested it on Mac OS X")??? Just to report it. Good luck, joachim -- MacTeXLive 2008 - TeXShop 2.18-svn - LyX 1.6.1 MacBook Pro OSX 10.4.11 Tiger
Re: Introducing eLyXer: LyX to HTML converter
Hi, Joachim, > OK, I dared to download and uncompress it. Great, another brave soul! > And proceeded to the first step, with the response: > > joachim$ ../elyxer userguide.lyx userguide2.html > File "../elyxer", line 21 > �...@classmethod > ^ > SyntaxError: invalid syntax It seems that your Python is not understanding the decorator syntax for classmethods, which were introduced in Python 2.4: http://pyref.infogami.com/classmethod The following command would verify that this is indeed the problem: $ python --version > Might be because of Mac-OSX (as you "haven’t tested it on Mac OS X")??? You are right: > MacBook Pro OSX 10.4.11 Tiger It would appear that Tiger comes with a Python 2.3 version. It is easy to upgrade to a more current version: http://www.python.org/download/mac/ I would commit to make eLyXer work with Tiger, but only if you are willing to be the guinea pig -- I don't have a Python 2.3 installation and don't have the resources to create one. What do you think? > Just to report it. Thanks! Alex.
Re: Introducing eLyXer: LyX to HTML converter
Hi Nikos, first of all thank you for your efforts. All sounds very promising. I just ran eLyXer (under Ubuntu II/ 64-bit) a couple of times. Your example-files userguide.lyx and devguide.lyx are translated without errors. Good to know! Thanks for trying it out, you are indeed a brave soul. Unfortunately, by testing on my own documents I receive only errors. Some examples (of output) below. Let me know if you need full-preamble and/or other details. Right, it's a bug in the parsing tree. Now corrected to accept generic insets. Could you please try again? Same download link: http://wiki.lyx.org/uploads/Tools/eLyXer/elyxer-20090311.tar.gz I would like to try a newer version; I am right now compiling LyX 1.6.2rc2 but it is going to take a while. Could you send me privately a sample document, even if it is a large one? It is probably the fastest way to diagnose any remaining problems. Thanks, Alex.
Re: Introducing eLyXer: LyX to HTML converter
Nikos: first of all thank you for your efforts. All sounds very promising. I just ran eLyXer (under Ubuntu II/ 64-bit) a couple of times. Your example-files userguide.lyx and devguide.lyx are translated without errors. Unfortunately, by testing on my own documents I receive only errors. Some examples (of output) below. Let me know if you need full-preamble and/or other details. Alex: Right, it's a bug in the parsing tree. Now corrected to accept generic insets. Could you please try again? Same download link: http://wiki.lyx.org/uploads/Tools/eLyXer/elyxer-20090311.tar.gz I would like to try a newer version; I am right now compiling LyX 1.6.2rc2 but it is going to take a while. Could you send me privately a sample document, even if it is a large one? It is probably the fastest way to diagnose any remaining problems. Alex, the simple article with Title, a Section and some text lines is translated now :-). The complete article though (both the KOMA-Script and the standard article class) causes trouble. I am sending you off-list my article (both versions, KOMA-Script and standard article). ( And FWIW, regarding commands presented in any document (call it userguide or tutorial or whatever) I think it's better if you use Program Listings for code and set the font to courier. It's what this environment is there for so you can manipulate all of your _listings_ at once. ) Keep up the good work and let us enjoy at some point full functionality of eLyXer :-). Kindest regards, Nikos
Re: Introducing eLyXer: LyX to HTML converter
Hi Nikos, first of all thank you for your efforts. All sounds very promising. I just ran eLyXer (under Ubuntu II/ 64-bit) a couple of times. Your example-files userguide.lyx and devguide.lyx are translated without errors. Good to know! Thanks for trying it out, you are indeed a brave soul. Unfortunately, by testing on my own documents I receive only errors. Some examples (of output) below. Let me know if you need full-preamble and/or other details. Right, it's a bug in the parsing tree. Now corrected to accept generic insets. Could you please try again? Same download link: http://wiki.lyx.org/uploads/Tools/eLyXer/elyxer-20090311.tar.gz I would like to try a newer version; I am right now compiling LyX 1.6.2rc2 but it is going to take a while. Could you send me privately a sample document, even if it is a large one? It is probably the fastest way to diagnose any remaining problems. Thanks, Alex.
Re: Introducing eLyXer: LyX to HTML converter
Nikos: first of all thank you for your efforts. All sounds very promising. I just ran eLyXer (under Ubuntu II/ 64-bit) a couple of times. Your example-files userguide.lyx and devguide.lyx are translated without errors. Unfortunately, by testing on my own documents I receive only errors. Some examples (of output) below. Let me know if you need full-preamble and/or other details. Alex: Right, it's a bug in the parsing tree. Now corrected to accept generic insets. Could you please try again? Same download link: http://wiki.lyx.org/uploads/Tools/eLyXer/elyxer-20090311.tar.gz I would like to try a newer version; I am right now compiling LyX 1.6.2rc2 but it is going to take a while. Could you send me privately a sample document, even if it is a large one? It is probably the fastest way to diagnose any remaining problems. Alex, the simple article with Title, a Section and some text lines is translated now :-). The complete article though (both the KOMA-Script and the standard article class) causes trouble. I am sending you off-list my article (both versions, KOMA-Script and standard article). ( And FWIW, regarding commands presented in any document (call it userguide or tutorial or whatever) I think it's better if you use Program Listings for code and set the font to courier. It's what this environment is there for so you can manipulate all of your _listings_ at once. ) Keep up the good work and let us enjoy at some point full functionality of eLyXer :-). Kindest regards, Nikos
Re: Introducing eLyXer: LyX to HTML converter
Hi Nikos, > first of all thank you for your efforts. All sounds very promising. I > just ran eLyXer (under Ubuntu II/ 64-bit) a couple of times. Your > example-files userguide.lyx and devguide.lyx are translated without > errors. Good to know! Thanks for trying it out, you are indeed a brave soul. > Unfortunately, by testing on my own documents I receive only errors. > Some examples (of output) below. Let me know if you need full-preamble > and/or other details. Right, it's a bug in the parsing tree. Now corrected to accept generic insets. Could you please try again? Same download link: http://wiki.lyx.org/uploads/Tools/eLyXer/elyxer-20090311.tar.gz I would like to try a newer version; I am right now compiling LyX 1.6.2rc2 but it is going to take a while. Could you send me privately a sample document, even if it is a large one? It is probably the fastest way to diagnose any remaining problems. Thanks, Alex.
Re: Introducing eLyXer: LyX to HTML converter
Nikos: > > first of all thank you for your efforts. All sounds very promising. I > > just ran eLyXer (under Ubuntu II/ 64-bit) a couple of times. Your > > example-files userguide.lyx and devguide.lyx are translated without > > errors. > > Unfortunately, by testing on my own documents I receive only errors. > > Some examples (of output) below. Let me know if you need full-preamble > > and/or other details. Alex: > Right, it's a bug in the parsing tree. Now corrected to accept generic > insets. Could you please try again? Same download link: > http://wiki.lyx.org/uploads/Tools/eLyXer/elyxer-20090311.tar.gz > > I would like to try a newer version; I am right now compiling LyX > 1.6.2rc2 but it is going to take a while. Could you send me privately > a sample document, even if it is a large one? It is probably the > fastest way to diagnose any remaining problems. Alex, the simple article with Title, a Section and some text lines is translated now :-). The complete article though (both the KOMA-Script and the standard article class) causes trouble. I am sending you off-list my article (both versions, KOMA-Script and standard article). ( And FWIW, regarding commands presented in any document (call it userguide or tutorial or whatever) I think it's better if you use Program Listings for code and set the font to courier. It's what this environment is there for so you can manipulate all of your _listings_ at once. ) Keep up the good work and let us enjoy at some point full functionality of eLyXer :-). Kindest regards, Nikos
Re: Introducing eLyXer: LyX to HTML converter
Alex: So undeterred by the myriad of similar efforts I set to the task of producing a simple, specialized tool for LyX - HTML conversion, and the result is eLyXer. It is meant to produce acceptable-to-beautiful HTML code, depending on your browser's Unicode and CSS rendering merits. Dear Alex, first of all thank you for your efforts. All sounds very promising. I just ran eLyXer (under Ubuntu II/ 64-bit) a couple of times. Your example-files userguide.lyx and devguide.lyx are translated without errors. Unfortunately, by testing on my own documents I receive only errors. Some examples (of output) below. Let me know if you need full-preamble and/or other details. Kindest regards, Nikos # article(KOMA-script) ./elyxer UpSideDown_World.lyx UpSideDown_world.html Error at 223: \noindent Line \begin_inset Newline newline not found Traceback (most recent call last): File ./elyxer, line 1159, in module createbook(args) File ./elyxer, line 1155, in createbook book.parsecontents(reader, writer) File ./elyxer, line 1135, in parsecontents container = ContainerFactory.create(reader) File ./elyxer, line 1128, in create container.parse(reader) File ./elyxer, line 353, in parse self.contents = self.parser.parse(reader) File ./elyxer, line 176, in parse container = self.factory.create(reader) File ./elyxer, line 1128, in create container.parse(reader) File ./elyxer, line 353, in parse self.contents = self.parser.parse(reader) File ./elyxer, line 161, in parse container = self.factory.create(reader) File ./elyxer, line 1124, in create type = ContainerFactory.root.find(reader) File ./elyxer, line 134, in find return tree[ParseTree.default] KeyError: '~~default~~' # the same file as above but using the standard article class ./elyxer UpSideDown_World_standard_article.lyx UpSideDown_world_standard_article.html Error at 213: \noindent Line \begin_inset Newline newline not found Traceback (most recent call last): File ./elyxer, line 1159, in module createbook(args) File ./elyxer, line 1155, in createbook book.parsecontents(reader, writer) File ./elyxer, line 1135, in parsecontents container = ContainerFactory.create(reader) File ./elyxer, line 1128, in create container.parse(reader) File ./elyxer, line 353, in parse self.contents = self.parser.parse(reader) File ./elyxer, line 176, in parse container = self.factory.create(reader) File ./elyxer, line 1128, in create container.parse(reader) File ./elyxer, line 353, in parse self.contents = self.parser.parse(reader) File ./elyxer, line 161, in parse container = self.factory.create(reader) File ./elyxer, line 1124, in create type = ContainerFactory.root.find(reader) File ./elyxer, line 134, in find return tree[ParseTree.default] KeyError: '~~default~~' # standard article, just with a Title, Section and some text lines ./elyxer test_greek_Dictum.lyx test_greek_Dictum.html Line \begin_inset Newline newline not found Traceback (most recent call last): File ../lyx-stuff/elyxer/elyxer, line 1159, in module createbook(args) File ../lyx-stuff/elyxer/elyxer, line 1155, in createbook book.parsecontents(reader, writer) File ../lyx-stuff/elyxer/elyxer, line 1135, in parsecontents container = ContainerFactory.create(reader) File ../lyx-stuff/elyxer/elyxer, line 1128, in create container.parse(reader) File ../lyx-stuff/elyxer/elyxer, line 353, in parse self.contents = self.parser.parse(reader) File ../lyx-stuff/elyxer/elyxer, line 176, in parse container = self.factory.create(reader) File ../lyx-stuff/elyxer/elyxer, line 1124, in create type = ContainerFactory.root.find(reader) File ../lyx-stuff/elyxer/elyxer, line 134, in find return tree[ParseTree.default] KeyError: '~~default~~'
Re: Introducing eLyXer: LyX to HTML converter
Alex: So undeterred by the myriad of similar efforts I set to the task of producing a simple, specialized tool for LyX - HTML conversion, and the result is eLyXer. It is meant to produce acceptable-to-beautiful HTML code, depending on your browser's Unicode and CSS rendering merits. Dear Alex, first of all thank you for your efforts. All sounds very promising. I just ran eLyXer (under Ubuntu II/ 64-bit) a couple of times. Your example-files userguide.lyx and devguide.lyx are translated without errors. Unfortunately, by testing on my own documents I receive only errors. Some examples (of output) below. Let me know if you need full-preamble and/or other details. Kindest regards, Nikos # article(KOMA-script) ./elyxer UpSideDown_World.lyx UpSideDown_world.html Error at 223: \noindent Line \begin_inset Newline newline not found Traceback (most recent call last): File ./elyxer, line 1159, in module createbook(args) File ./elyxer, line 1155, in createbook book.parsecontents(reader, writer) File ./elyxer, line 1135, in parsecontents container = ContainerFactory.create(reader) File ./elyxer, line 1128, in create container.parse(reader) File ./elyxer, line 353, in parse self.contents = self.parser.parse(reader) File ./elyxer, line 176, in parse container = self.factory.create(reader) File ./elyxer, line 1128, in create container.parse(reader) File ./elyxer, line 353, in parse self.contents = self.parser.parse(reader) File ./elyxer, line 161, in parse container = self.factory.create(reader) File ./elyxer, line 1124, in create type = ContainerFactory.root.find(reader) File ./elyxer, line 134, in find return tree[ParseTree.default] KeyError: '~~default~~' # the same file as above but using the standard article class ./elyxer UpSideDown_World_standard_article.lyx UpSideDown_world_standard_article.html Error at 213: \noindent Line \begin_inset Newline newline not found Traceback (most recent call last): File ./elyxer, line 1159, in module createbook(args) File ./elyxer, line 1155, in createbook book.parsecontents(reader, writer) File ./elyxer, line 1135, in parsecontents container = ContainerFactory.create(reader) File ./elyxer, line 1128, in create container.parse(reader) File ./elyxer, line 353, in parse self.contents = self.parser.parse(reader) File ./elyxer, line 176, in parse container = self.factory.create(reader) File ./elyxer, line 1128, in create container.parse(reader) File ./elyxer, line 353, in parse self.contents = self.parser.parse(reader) File ./elyxer, line 161, in parse container = self.factory.create(reader) File ./elyxer, line 1124, in create type = ContainerFactory.root.find(reader) File ./elyxer, line 134, in find return tree[ParseTree.default] KeyError: '~~default~~' # standard article, just with a Title, Section and some text lines ./elyxer test_greek_Dictum.lyx test_greek_Dictum.html Line \begin_inset Newline newline not found Traceback (most recent call last): File ../lyx-stuff/elyxer/elyxer, line 1159, in module createbook(args) File ../lyx-stuff/elyxer/elyxer, line 1155, in createbook book.parsecontents(reader, writer) File ../lyx-stuff/elyxer/elyxer, line 1135, in parsecontents container = ContainerFactory.create(reader) File ../lyx-stuff/elyxer/elyxer, line 1128, in create container.parse(reader) File ../lyx-stuff/elyxer/elyxer, line 353, in parse self.contents = self.parser.parse(reader) File ../lyx-stuff/elyxer/elyxer, line 176, in parse container = self.factory.create(reader) File ../lyx-stuff/elyxer/elyxer, line 1124, in create type = ContainerFactory.root.find(reader) File ../lyx-stuff/elyxer/elyxer, line 134, in find return tree[ParseTree.default] KeyError: '~~default~~'
Re: Introducing eLyXer: LyX to HTML converter
Alex: > So undeterred by the myriad of similar efforts I set to the task of > producing a simple, specialized tool for LyX -> HTML conversion, and > the result is eLyXer. It is meant to produce acceptable-to-beautiful > HTML code, depending on your browser's Unicode and CSS rendering > merits. Dear Alex, first of all thank you for your efforts. All sounds very promising. I just ran eLyXer (under Ubuntu II/ 64-bit) a couple of times. Your example-files userguide.lyx and devguide.lyx are translated without errors. Unfortunately, by testing on my own documents I receive only errors. Some examples (of output) below. Let me know if you need full-preamble and/or other details. Kindest regards, Nikos # article(KOMA-script) ./elyxer UpSideDown_World.lyx UpSideDown_world.html Error at 223: \noindent Line \begin_inset Newline newline not found Traceback (most recent call last): File "./elyxer", line 1159, in createbook(args) File "./elyxer", line 1155, in createbook book.parsecontents(reader, writer) File "./elyxer", line 1135, in parsecontents container = ContainerFactory.create(reader) File "./elyxer", line 1128, in create container.parse(reader) File "./elyxer", line 353, in parse self.contents = self.parser.parse(reader) File "./elyxer", line 176, in parse container = self.factory.create(reader) File "./elyxer", line 1128, in create container.parse(reader) File "./elyxer", line 353, in parse self.contents = self.parser.parse(reader) File "./elyxer", line 161, in parse container = self.factory.create(reader) File "./elyxer", line 1124, in create type = ContainerFactory.root.find(reader) File "./elyxer", line 134, in find return tree[ParseTree.default] KeyError: '~~default~~' # the same file as above but using the standard article class ./elyxer UpSideDown_World_standard_article.lyx UpSideDown_world_standard_article.html Error at 213: \noindent Line \begin_inset Newline newline not found Traceback (most recent call last): File "./elyxer", line 1159, in createbook(args) File "./elyxer", line 1155, in createbook book.parsecontents(reader, writer) File "./elyxer", line 1135, in parsecontents container = ContainerFactory.create(reader) File "./elyxer", line 1128, in create container.parse(reader) File "./elyxer", line 353, in parse self.contents = self.parser.parse(reader) File "./elyxer", line 176, in parse container = self.factory.create(reader) File "./elyxer", line 1128, in create container.parse(reader) File "./elyxer", line 353, in parse self.contents = self.parser.parse(reader) File "./elyxer", line 161, in parse container = self.factory.create(reader) File "./elyxer", line 1124, in create type = ContainerFactory.root.find(reader) File "./elyxer", line 134, in find return tree[ParseTree.default] KeyError: '~~default~~' # standard article, just with a Title, Section and some text lines ./elyxer test_greek_Dictum.lyx test_greek_Dictum.html Line \begin_inset Newline newline not found Traceback (most recent call last): File "../lyx-stuff/elyxer/elyxer", line 1159, in createbook(args) File "../lyx-stuff/elyxer/elyxer", line 1155, in createbook book.parsecontents(reader, writer) File "../lyx-stuff/elyxer/elyxer", line 1135, in parsecontents container = ContainerFactory.create(reader) File "../lyx-stuff/elyxer/elyxer", line 1128, in create container.parse(reader) File "../lyx-stuff/elyxer/elyxer", line 353, in parse self.contents = self.parser.parse(reader) File "../lyx-stuff/elyxer/elyxer", line 176, in parse container = self.factory.create(reader) File "../lyx-stuff/elyxer/elyxer", line 1124, in create type = ContainerFactory.root.find(reader) File "../lyx-stuff/elyxer/elyxer", line 134, in find return tree[ParseTree.default] KeyError: '~~default~~'