[sword-devel] OSIS markup best practice: sanity check

Matěj Cepl mcepl at cepl.eu
Wed Sep 30 13:28:55 MST 2015


On 2015-09-30, 16:10 GMT, DM Smith wrote:
> I think Troy has a binding to the SWORD library in Java. If it 
> exposes the same as Peter mentions, you can call out from xslt 
> to Java. We do something similar for JSword.
>
> JSword can do some level of parsing of the references, but 
> your example is not in a form that JSword can parse.

I don’t care that much about Java, it is no problem to add 
postprocessing script to my Makefile, and then I prefer some 
scripting languages (my job is being a Python programmer).  
I will certainly take a look at what I can get from the Perl 
scripts. However, I am not sure 

So, I will take a look, but I am not sure what you can offer me 
really. Parsing of XML is really not a problem in Python, and 
concerning parsing of the free text itself, I am not sure what 
I can get better (well, lex/yacc parser would be lovely, but not 
sure I can get that; if the worst comes to worst I can write one 
myself, but hopefully it won't get to that). The current state 
of the script is

https://gitlab.com/mcepl/CZEKMS-CSP_Bible/blob/parse_notes/generate_reference.py

and testsuite is

https://gitlab.com/mcepl/CZEKMS-CSP_Bible/blob/parse_notes/test_generate_reference.py

We will see. Thanks for the hints anyway.

Matěj

-- 
http://www.ceplovi.cz/matej/, Jabber: mcepl at ceplovi.cz
GPG Finger: 89EF 4BC6 288A BF43 1BAB  25C3 E09F EF25 D964 84AC
 
в чужой монастырь со своим уставом не ходят.
    -- Russian proverb (this time actually checked by a native
       Russian)




More information about the sword-devel mailing list