Module Tools
  1. Module Tools
  2. MODTOOLS-37

Perl script usfm2osis.pl does not handle an ampersand within the source text

    Details

    • Type: Bug Bug
    • Status: Closed (View Workflow)
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      The following line

      \d \tl Beatus vir, qui non abiit, &c.\tl*

      became

      <title type="psalm"><hi type="italic">Beatus vir, qui non abiit, &c.</hi></title>

      and the XML validation fails because the "&c." was not processed.

        Activity

        Hide
        DM Smith added a comment - - edited

        David, the change is simple.
        Just add the following at the top of the main loop:
        s/&/&/go;

        or you can do the following on the file before running osis2osis.pl

        perl -p -i.orig -e 's/&/&/go;' filename

        This will do the expansion for you, editing your input file and backing it up to filename.orig.

        Show
        DM Smith added a comment - - edited David, the change is simple. Just add the following at the top of the main loop: s/&/&/go; or you can do the following on the file before running osis2osis.pl perl -p -i.orig -e 's/&/&/go;' filename This will do the expansion for you, editing your input file and backing it up to filename.orig.
        Hide
        Chris Little added a comment -

        fixed in r423

        Show
        Chris Little added a comment - fixed in r423

          People

          • Assignee:
            Chris Little
            Reporter:
            David Haslam
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: