[sword-devel] Where is the source code for individual SWORD modules?
Timothy Allen
thristian at gmail.com
Sat Oct 21 03:20:48 EDT 2023
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://crosswire.org/pipermail/sword-devel/attachments/20231021/a5b788f3/attachment.htm>
More information about the sword-devel
mailing list