Bug #291

Line-medial markers in Paratext files not handled correctly

Added by John Wimbish almost 3 years ago.

Status:Closed Start:07/09/2009
Priority:Low Due date:07/09/2009
Assigned to:John Wimbish % Done:

100%

Category:Windows Spent time: -
Target version:1.1.x Estimated time:4.00 hours

Description

Consider this line from a Paratext-generated SFM file that failed to import properly into OurWord:

\q1 <<Ranivara nya marova maror, nyo anaisye raunanto po raisy, \q2 muno awa ngkangkamandi, nyo mana raunanto po ramanam. \q1 Nya ana nyo rave tai maisy, weamo nya marova so

Two problems:
(1) The line has \q2's and \q1's in it that are not line-initial
(2) The line has a line-medial \q1 (it should be \q, but my normalize routine wasn't dealing with line-medial ones.)

The fixes involved splitting lines (to solve #1) and scanning lines (to solve #2).

The proper output is now achieved:

\q <<Ranivara nya marova maror, nyo anaisye raunanto po raisy,
\q2 muno awa ngkangkamandi, nyo mana raunanto po ramanam.
\q Nya ana nyo rave tai maisy, weamo nya marova so

Also available in: Atom PDF