diff options
author | Peter von Kaehne <refdoc@gmx.net> | 2015-02-18 08:27:48 +0000 |
---|---|---|
committer | Peter von Kaehne <refdoc@gmx.net> | 2015-02-18 08:27:48 +0000 |
commit | ea1370209e15014a2990584c166dbb0c3cab05d9 (patch) | |
tree | 91c3b94fbba496d5bda71064eb40979d28c504d1 /modules/python | |
parent | f76e224af60fd7ed39b6afde7fdcd31de0138f94 (diff) | |
download | sword-tools-ea1370209e15014a2990584c166dbb0c3cab05d9.tar.gz |
created directory for locales necessary for some module making, but unsuitable for general consumption. They may well be toxic.
corrected typo in usfm2osis.py- missing "
git-svn-id: https://www.crosswire.org/svn/sword-tools/trunk@491 07627401-56e2-0310-80f4-f8cd0041bdcd
Diffstat (limited to 'modules/python')
-rwxr-xr-x | modules/python/usfm2osis.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/python/usfm2osis.py b/modules/python/usfm2osis.py index a6bbb00..39948b2 100755 --- a/modules/python/usfm2osis.py +++ b/modules/python/usfm2osis.py @@ -782,7 +782,7 @@ def convertToOsis(sFile): # \thr#_text... # \tc#_text... # \tcr#_text... - tType = {'th':' role="label"', 'thr':' role="label" type="x-right"', 'tc':'', 'tcr':' type="x-right'} + tType = {'th':' role="label"', 'thr':' role="label" type="x-right"', 'tc':'', 'tcr':' type="x-right"'} osis = re.sub(r'\\(thr?|tcr?)\d*\b\s*(.*?)(?=(\\t[hc]|</row))', lambda m: '<cell' + tType[m.group(1)] + '>' + m.group(2) + '</cell>', osis, flags=re.DOTALL) osis = re.sub(r'(<row>.*?</row>)(?=(['+'\uFDD0\uFDD1\uFDD3\uFDD4'+r']|\\tr\s|<(lb|title)\b))', r'<table>\1</table>', osis, flags=re.DOTALL) |