The program "docs\trunktools\RailRoadDiagrams\extract_svg_from_rr_xhtml.rex" got changed in the past weeks a little bit:

         - 20240316: changed the svg name needle from '<xhtml:a name="' to '<a 
          - 20240323: now probing if '<xhtml:a' needle is available, if so it 
will get used,
                      otherwise the '<a' needle (to support both encodings)
          - 20240324: - if no argument, then do a sysFileTree from current 
directory to locate
                        all xhtml files and process them
                      - if argument is a directory, then do a sysFileTree from 
                        directory and its subdirectories to locate all xhtml 
files and process them
                      - make sure that the extracted svg data is ended with 
CRLF by turning
                        the data into a string array and back into a string 
defining CRLF
                        to be used as the line delimiter

Background: some of the xhtml files had Unix LF, some Windows CR-LF. Extracting the svg data causes svn problems at commit time, if the line-ends are mixed up (hence making sure that the extracted svg data ends with CR-LF).

Enhancing the program to allow supplying a directory (no argument defaults to '.', current directory) which will cause it and all its subdirectories to be searched for xhtml files and have all svg files extracted and saved in the directory where the xhtml file resides.


The xhtml files get created with the "Railroad-Diagram-Generator" which moved to: <> (one can download a Java war-file and run it locally via a browser)". Just copy the content of the respective ooRexx ".ebnf" text file into the "Edit Grammar" tab, remove the check mark from "Inline literals" in the "Options" tab and then go to "View Diagram" to generate the syntax diagrams, then save the document as a single xhtml (attention: use the base name of the ebnf file for "exporting"/storing).


P.S.: For the rexxref book I recreated all svg-syntax diagrams from the xhtml 

Oorexx-devel mailing list

Reply via email to