On 21/10/23 16:48, Aaron Rainbolt wrote:
mod2imp claims to be able to generate LaTeX (something like `mod2imp -r LATEX AKJV`) but at least the Ubuntu build of libsword-utils mod2imp is broken in this regard - any time I try to use any of the filters, it tells me "mod2imp: Unknown argument: LATEX" or something similar for every single possible output format (OSIS, XHTML, RTF, etc.).

That's because it doesn't use a flexible argument parser like getopt or similar. When the help text says:

   usage: mod2imp <module_name> [options]

...it really means it, the options have to go *after* the module name, not before:

   mod2imp -r LATEX AKJV # fails with "Unknown argument"

   mod2imp AKJV -r LATEX # succeeds

...although in this case, the IMP markup and the LaTeX markup get a bit mixed and it's not the easiest to work with. You may have better luck with the example command-line SWORD tool, diatheke:

   diatheke -b AKJV -f LATEX -k Genesis


Timothy
_______________________________________________
sword-devel mailing list: sword-devel@crosswire.org
http://crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

Reply via email to