Re: Where is the source code for individual SWORD modules?

Timothy Allen <[email protected]>
Newsgroups gmane.comp.literature.sword.devel
Message-ID <[email protected]>
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: [email protected]
http://crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.