Giter Club home page Giter Club logo

Comments (4)

schierlm avatar schierlm commented on May 26, 2024

Have a look at the current implementation if it suffices your needs. In case you need more / anything else, feel free to reopen.

from biblemulticonverter.

AlisterH avatar AlisterH commented on May 26, 2024

Hi, how do you actually export to USFM? For other formats you add an output filename to the end of the command to avoid the error message as per #13, but I can't work out what to do for usfm.

Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1

from biblemulticonverter.

schierlm avatar schierlm commented on May 26, 2024

There are other formats that need more than one output parameter. That's what the help command is for.

C:\BibleMultiConverter-0.0.6>java -jar BibleMultiConverter-AllInOneEdition.jar help USFM
USFM - Bible format used by Paratext

Bible format used by Paratext

Usage (export): USFM <outdir> <filenamepattern>

Point the importer to a directory that contains the .usfm files.

When exporting, you need to give a file name pattern. You can use # for
the book number and * for the book name.

In other words, enter the name of a (nonexisting or empty) directory as first parameter, and the desired filename pattern (e.g. #-*.usfm) as second one.

from biblemulticonverter.

shadow-light avatar shadow-light commented on May 26, 2024

Thanks for this great tool. I was also confused by the traceback from missing an arg since it wasn't clear what the problem was. I thought it was an issue parsing the file. Perhaps the exception can be caught and "Argument missing" or something printed instead?

WARNING: Skipping unknown tag \fig
WARNING: Skipping unknown end tag \fig*
WARNING: Skipping mismatched end tag \fig*
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0
        at biblemulticonverter.format.paratext.AbstractParatextFormat.doExportBooks(AbstractParatextFormat.java:430)
        at biblemulticonverter.tools.ParatextConverter.run(ParatextConverter.java:41)
        at biblemulticonverter.Main.main(Main.java:58)

from biblemulticonverter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.