[sword-devel] usfm2osis.py
David Haslam
dfhmch at googlemail.com
Thu Sep 27 02:39:41 MST 2012
Of the six instances of "x-indent-" in the script, three of them use the
passed parameter in the form of "\1".
I guess those must be the places to look. Probably something being
mis-parsed. The regexps are not simple in these lines.
Search "x-indent-\1" (3 hits in 1 file)
D:\Download\Bible Software\CrossWire\Utilities\Python\usfm2osis.py (3
hits)
Line 515: osis =
re.sub(r'\\ili(\d)\b\s*(.*?)(?=(['+'\uFDD0\uFDD1\uFDD3\uFDD4'+r']|\\ili[\d\s]|<lb\b|<title\b|<item\b))',
'<item type="x-indent-\1"
subType="x-introduction">\uFDE0'+r'\2'+'\uFDE0</item>', osis,
flags=re.DOTALL)
Line 522: osis =
re.sub(r'\\io(\d)\b\s*(.*?)(?=(['+'\uFDD0\uFDD1\uFDD3\uFDD4'+r']|\\io[t\d\s]|\\iex?|<lb\b|<title\b|<item\b))',
'<item type="x-indent-\1"
subType="x-introduction">\uFDE1'+r'\2'+'\uFDE1</item>', osis,
flags=re.DOTALL)
Line 719: osis =
re.sub(r'\\li(\d)\b\s*(.*?)(?=(['+'\uFDD0\uFDD1\uFDD3\uFDD4'+r']|\\li[\d\s]|<lb\b|<title\b|<item\b))',
r'<item type="x-indent-\1">\2</item>', osis, flags=re.DOTALL)
David
--
View this message in context: http://sword-dev.350566.n4.nabble.com/usfm2osis-py-tp4651104p4651106.html
Sent from the SWORD Dev mailing list archive at Nabble.com.
More information about the sword-devel
mailing list