Not having used the RailroadDiagram utility that the ooRexx project uses for the documentation in a
while I was surprised about the new standalone version of it such that I downloaded the latest
version (January 2023). After some checking out and seeing that now all svgs get exported as part of
a single xhtml file I came up with a little utility that is capable of extracting the svg
definitions and use the ooRexx css formatting on them.
In order for everyone being able to take advantage of it the following was done (cf.
(https://sourceforge.net/p/oorexx/code-0/12634>):
* created "docs/trunk/tools/RailRoadDiagram"
* downloaded and unzipped "rr-1.67-java8.zip" from
<https://www.bottlecaps.de/rr/ui>
o to run the standalone, local version, change into
"docs/trunk/tools/RailRoadDiagram" and run
"java -jar rr.war -gui" and you'll get by default the URL:
http://localhost:8080 which
allows you to locally supply the ebnf, create the syntax diagrams from
them and save them
locally in a xhtml file
* wrote a little script and saved it as
"docs/trunk/tools/RailRoadDiagram/extract_svg_from_rr_xhtml.rex"
o run it and supply it the name of the downloaded xhtml file
o the utility will take the ebnf definition names and use them as the filenames
adding ".svg"
to them and stores the extracted svg data in it in the current directory
---rony
_______________________________________________
Oorexx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-devel