Skip to content

kaleguy/xml2leo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Nov 30, 2019
e5e7107 · Nov 30, 2019

History

13 Commits
Nov 30, 2019
Nov 30, 2019
May 24, 2017
May 27, 2017
Nov 30, 2019
Nov 30, 2019
May 25, 2017
Nov 30, 2019
Nov 30, 2019
May 31, 2017

Repository files navigation

Dependency Status

Xml to Leo

This is a basic command-line utility for for converting various xml formats to .leo format. Leo is an open source outlining editor.

Currently the only format supported is for Shakespeare's plays.

To run the Shakespeare imports:

npm run shakespeare 

To create a new transformation type, edit the example shakespearetoleo.xsl file.

Installation

This script uses the npm java module. In order to get this to run with more recent versions of Java, you will need to edit the following file (on Mac):

/Library/Java/JavaVirtualMachines/<version>.jdk/Contents/Info.plist 

Edit the above file to include the lines below:

<key>JVMCapabilities</key>
<array>
    ...
    <string>JNI</string>
</array>

To install, download the project and:

npm install

If you get node-gyp errors, it may be because you need to install Java.

Use

To convert xml files to leo format, run::

node 2leo.js infolder outfolder xslfile

Or run as command line script:

chmod +x 2leo.js

./2leo.js infolder outfolder xslfile

For more options run

node 2leo.js  --help

Removed html-md due to inability to compile.

License

MIT

About

Convert xml files to leo format.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published