Re: 82b919e: revised xml/html importers

2017-08-03 Thread Edward K. Ream
On Wed, Aug 2, 2017 at 7:58 AM, Joe Orr wrote: > Sorry for slow reply, joined a startup so my spare time has gone way down. > ​Congratulations, I think ;-)​ > > Doesn't seem to be causing any problems but if I notice any I will add the > code to duplicate the timestamp IDs. > ​Thanks for the

Re: 82b919e: revised xml/html importers

2017-08-02 Thread Joe Orr
Sorry for slow reply, joined a startup so my spare time has gone way down. Doesn't seem to be causing any problems but if I notice any I will add the code to duplicate the timestamp IDs. Going to post soon with some updates to the HTML5 project. Joe On Friday, June 16, 2017 at 9:39:49 AM UTC-

Re: 82b919e: revised xml/html importers

2017-06-16 Thread Edward K. Ream
On Sat, Jun 3, 2017 at 9:29 AM, Joe Orr wrote: > I gave up on that approach, decided it would be better to make specific > transformers to get exactly the output I want. > > Here is a project with a transformer for the Moby Shakespeare xml. I'm > planning to make a bunch more, for each xml format

Re: 82b919e: revised xml/html importers

2017-06-03 Thread Joe Orr
I gave up on that approach, decided it would be better to make specific transformers to get exactly the output I want. Here is a project with a transformer for the Moby Shakespeare xml. I'm planning to make a bunch more, for each xml format just need to write the xsl. https://github.com/kaleguy

Re: 82b919e: revised xml/html importers

2017-04-27 Thread Edward K. Ream
On Sun, Apr 23, 2017 at 8:38 AM, Joe Orr wrote: > Thanks for quick reply. New to python world here, tried sudo port install > py27-lxml > but same result. Any ideas on what is missing? > ​Just checking on this thread. Joe, have you been able to install lxml? Edward -- You received this messa

Re: 82b919e: revised xml/html importers

2017-04-23 Thread Terry Brown
On Sun, 23 Apr 2017 06:25:11 -0500 "Edward K. Ream" wrote: > On Sat, Apr 22, 2017 at 10:25 PM, Terry Brown > wrote: > > > On Sat, 22 Apr 2017 16:41:40 -0700 (PDT) > > Joe Orr wrote: > > > > > Probably a dumb question, but how do I convert this file to Leo > > > format: https://www.ibiblio.org/

Re: 82b919e: revised xml/html importers

2017-04-23 Thread lewis
I enabled the xml_edit plugin and installed lxml via pip; It installed v3.7.3 *pip install lxml* Created a new leo file, then plugins> xml_edit> xml2leo (browse to file) and it successfully imports the Lear.xml file which I had downloaded. I'm running Python 3.6.1, PyQt version 5.8.0 on Windows

Re: 82b919e: revised xml/html importers

2017-04-23 Thread Joe Orr
Thanks for quick reply. New to python world here, tried sudo port install py27-lxml but same result. Any ideas on what is missing? I'll try on Linux later if I can't get Mac to work. Joe On Sunday, April 23, 2017 at 8:33:55 AM UTC-4, Terry Brown wrote: > > Ah, I guess you need to install lxml

Re: 82b919e: revised xml/html importers

2017-04-23 Thread Terry Brown
Ah, I guess you need to install lxml for that to work. Not something that can be bundled with Leo. On April 23, 2017 6:39:50 AM CDT, Joe Orr wrote: >Oh realized I needed to add it in myLeoSettings.py. > >Did so, and got this message: > >loadOnePlugin: error importing plugin: leo.plugins.xml_edit

Re: 82b919e: revised xml/html importers

2017-04-23 Thread Joe Orr
Oh realized I needed to add it in myLeoSettings.py. Did so, and got this message: loadOnePlugin: error importing plugin: leo.plugins.xml_edit Traceback (most recent call last): File "/Users/josephorr/Development/leo-editor/leo/core/leoPlugins.py", line 502, in loadOnePlugin __import__(modu

Re: 82b919e: revised xml/html importers

2017-04-23 Thread Joe Orr
Any tips on how to get that plugin to work? Does not show on the plugins menu pulldown. Leo 5.5, Mac OS. Also, when I click on 'plugins menu' item, get raw md text in view rendered pane. View rendered pane does only displays raw output, both Mac and Windows. Joe On Saturday, April 22, 2017 at

Re: 82b919e: revised xml/html importers

2017-04-23 Thread Edward K. Ream
On Sat, Apr 22, 2017 at 10:25 PM, Terry Brown wrote: > On Sat, 22 Apr 2017 16:41:40 -0700 (PDT) > Joe Orr wrote: > > > Probably a dumb question, but how do I convert this file to Leo > > format: https://www.ibiblio.org/xml/examples/shakespeare/lear.xml > > > > I tried the import entry on the fil

Re: 82b919e: revised xml/html importers

2017-04-22 Thread Terry Brown
On Sat, 22 Apr 2017 16:41:40 -0700 (PDT) Joe Orr wrote: > Probably a dumb question, but how do I convert this file to Leo > format: https://www.ibiblio.org/xml/examples/shakespeare/lear.xml > > I tried the import entry on the file menu, that didn't seem to work. What do you expect it to look li

Re: 82b919e: revised xml/html importers

2017-04-22 Thread Joe Orr
Probably a dumb question, but how do I convert this file to Leo format: https://www.ibiblio.org/xml/examples/shakespeare/lear.xml I tried the import entry on the file menu, that didn't seem to work. I can write an XSL stylesheet to do the conversion if necessary, but it that is the case, is ther

82b919e: revised xml/html importers

2017-04-16 Thread Edward K. Ream
The new code is simpler than the old, and should be more robust in the face of dubious syntax. All unit tests pass, and Rob's recent files import correctly. Still, more real-world testing is required. Please report any problems immediately. Edward P.S. The code that handles "<", "" and "/>" h