[sword-devel] Infinite loop bug in BosworthToller
DM Smith
dmsmith at crosswire.org
Sun Jan 17 18:10:32 MST 2016
> On Jan 17, 2016, at 7:20 PM, Karl Kleinpaste <karl at kleinpaste.org> wrote:
>
> FYI ZhEnglish also shows problems with mod2imp.
>
> $$$-PLATED
> <br />-plated · to plate 鍍 (镀) <i>dù</i> · 鋈 <i>wù</i>
> $$$-R ONE
> <br /><i>phonetic</i> · -r + one <i>chem.</i> 哢 <i>lòng</i>
> $$$-Z OLE
> <br /><i>phonetic</i> · -z + ole <i>chem.</i> 唑 <i>zuò</i>
> $$$0.6
> <br />0.6 零點六 (零点六) <i>líng diǎn liù</i>
> $$$1
> <br />0.6 零點六 (零点六) <i>líng diǎn liù</i>
> $$$1
> <br />0.6 零點六 (零点六) <i>líng diǎn liù</i>
> $$$1
> <br />0.6 零點六 (零点六) <i>líng diǎn liù</i>
If you add StrongsPadding=false, I think it will work. There are a bunch of keys that start with a number.
When SWORD encounters a key in a dictionary that begins with a digit, it feels obligated to treat the start of it as a Strong’s number, zero padding it.
Taking a look at swld.cpp, in 2009 strongsPadding was consolidated to swld and it added allowances for the Strong’s number to begin with G or H and to have a ! or letter following it.
In 2013, support was added for StrongsPadding in the conf.
I don’t think that this accounted for existing modules. ZhEnglish was created 2002 and not modified since.
I added a patch to MOD-81 to have the default for GreekDef and HebrewDef, StrongsPadding=true and false otherwise. Currently it doesn’t care whether it is a Strong’s module or not.
I’ve been in the process of surveying all the LexDict modules I can find.
Here are those entries:
[ZhEnglish]
Description=English/Chinese Dictionary
ModDrv=RawLD
index key value
19 0.6 <br />0.6 零點六 (零点六) <i>líng...
20 1 <br />1 · 10 of a peck 合 <i...
21 1 00 MILLION <br />1 00 million 一億 (一亿) ...
22 1 5TH PARTY CONGRESS <br />1 5th Party Congress <i>of Chinese...
23 1 CHRONICLES <br />1 Chronicles 歷代志上 (历代志上)&nb...
24 1 CORINTHIANS <br />1 Corinthians 哥林多前書 (哥林多前书)...
25 1 JOHN <br />1 John 約翰一書 (约翰一书) <i...
26 1 KINGS <br />1 Kings 列王紀上 (列王纪上) <...
27 1 PETER <br />1 Peter 彼得前書 (彼得前书) <...
28 1 SAMUEL <br />1 Samuel 撒母耳記上 (撒母耳记上) ...
29 1 THESSALONIANS <br />1 Thessalonians 帖撒羅尼迦前書 (帖撒...
30 1 TIMOTHY <br />1 Timothy 提摩太前書 (提摩太前书)&nbs...
31 1-3 A.M. <br />shameful · ugly · disgraceful · 2n...
32 1-3 P.M. <br />1-3 p.m. · 8th earthly branch · no...
33 10 OF A PECK @LINK 1
34 10 PECKS <br />10 pecks 石 <i>dàn</i>
35 10 PERCENT <br />10 percent · button · detain  ...
36 100 MU <br />100 mu · a short while ago ...
37 100-METER DASH <br />100-meter dash 百米賽跑 (百米赛跑)&...
38 1000 TONS <br />1000 tons 一千噸 (一千吨) <...
39 10000 <br /><i>surname</i> · 10,000 万&n...
40 105 BILLION <br />105 billion 一千零五十億 (一千零五十亿)...
41 10TH EARTHLY BRANCH <br />10th earthly branch · 5-7 p.m. &nb...
42 10TH HEAVENLY STEM <br />10th heavenly stem 癸 ...
43 11 A.M.-1 P.M. <br />11 a.m.-1 p.m. · 7th earthly branc...
44 11 P.M.-1 A.M. <br />11 p.m.-1 a.m. · 1st earthly branc...
45 11TH EARTHLY BRANCH <br />11th earthly branch · 7-9 p.m. &nb...
46 12 <br />12 · twelve 十二 <i>shí...
47 126 <br />126 一百二十六 <i>yī bǎi è...
48 12TH EARTHLY BRANCH <br />12th earthly branch · 9-11 p.m. &n...
49 13 <br />thirteen · 13 十三 <i>...
50 14 <br />fourteen · 14 十四 <i>...
51 140 BILLION <br />140 billion 一千四百億 (一千四百亿)&n...
52 14200 <br />14200 一萬四千二百 (一万四千二百) ...
53 1429 <br />1429 一千四百二十九 <i>yī qi...
54 15 BILLION <br />15 billion 一百五十億 (一百五十亿)&nb...
55 15 YEARS OLD <br />15 years old · hairpin for bun &nb...
56 15000 <br />15000 一萬五千 (一万五千) <i>...
57 15TH DAY OF MONTH <br />15th day of month <i>lunar calenda...
58 16 <br />sixteen · 16 十六 <i>sh...
59 17 <br />seventeen · 17 十七 <i>...
60 18 <br />eighteen · 18 十八 <i>s...
61 19 YEARS OLD <br />19 years old 十九歲 (十九岁) ...
62 1970S <br />the 1970's 七十年代 <i>qī...
63 1ST BIRTHDAY OF A CHILD <br />1st birthday of a child 晬&n...
64 1ST EARTHLY BRANCH @LINK 11 P.M.-1 A.M.
65 1ST HEAVENLY STEM <br />"A" <i>in a sequence of examples i...
66 1ST IN ORDER @LINK 1ST HEAVENLY STEM
67 2 1 9 <br />2 :1 9 <i>time of day</i> 兩...
68 2 BOATS LASHED TOGETHER <br />2 boats lashed together · large bo...
69 2 CHRONICLES <br />2 Chronicles 歷代志下 (历代志下)&nb...
70 2 CORINTHIANS <br />2 Corinthians 哥林多後書 (哥林多後书)...
71 2 JOHN <br />2 John 約翰二書 (约翰二书) <i...
72 2 KILOMETER <br />li, a Chinese unit of length = 1 ·...
73 2 KINGS <br />2 Kings 列王紀下 (列王纪下) <...
74 2 ND DAY OF THE MONTH <br />2 nd day of the month 二號 (二...
75 2 PETER <br />2 Peter 彼得後書 (彼得後书) <...
76 2 SAMUEL <br />2 Samuel 撒母耳記下 (撒母耳记下) ...
77 2 THESSALONIANS <br />2 Thessalonians 帖撒羅尼迦後書 (帖撒...
78 2 TIMOTHY <br />2 Timothy 提摩太后書 (提摩太后书)&nbs...
79 20 <br />twenty · 20 二十 <i>èr ...
80 200 <br />two hundred · 200 二百 ...
81 200 THOUSAND <br />200 thousand 二十萬 (二十万) ...
82 2000 YEARS <br />the year 2000 · 2000 years ...
83 21ST CENTURY <br />21st century 二十一世紀 (二十一世纪)&...
84 21ST OF MONTH <br />21st of month <i>tele.</i> · horse...
85 22 ND DAY OF A MONTH <br />22 nd day of a month 二十二號 (...
86 23 <br />23 二十三 <i>èr shí sān...
87 24 <br />24 二十四 <i>èr shí sì</i>
88 24 TH DAY OF A MONTH <br />24 th day of a month 二十四號 (...
89 26 YEARS OLD <br />26 years old 二十六歲 (二十六岁)&nb...
90 26TH DAY OF A MONTH <br />26th day of a month 二十六號 (二...
91 27TH DAY OF A MONTH <br />27th day of a month 二十七號 (二...
92 2816 <br />2816 兩千六百一十六 (两千六百一十六) ...
93 28TH DAY OF THE MONTH <br />28th day of the month 二十八號 ...
94 2ND EARTHLY BRANCH @LINK 1-3 A.M.
95 2ND HEAVENLY STEM <br />"B" <i>in a sequence of examples i...
96 2ND IN ORDER @LINK 2ND HEAVENLY STEM
97 2ND IN SENIORITY <br />2nd in seniority 仲 <i...
98 3 500 <br />3 500 三千五百 <i>sān qiā...
99 3 JOHN <br />3 John 約翰三書 (约翰三书) <i...
100 3-5 A.M. <br />3-5 a.m. · 3rd earthly branch &nbs...
101 3-5 P.M. <br />3-5 p.m. 晡 <i>bū</i><...
102 3.5 BILLION <br />3.5 billion 三十五億 (三十五亿)&nbs...
103 30 <br />thirty · 30 三十 <i>sān...
104 30 BILLION <br />30 billion 三百億 (三百亿) ...
105 30 CATTIES <br />30 catties · great · your <i>hon.<...
106 30 THOUSAND <br />30 thousand 三萬 (三万) <...
107 30 TO 50 MILLION <br />30 to 50 million 三千到五千萬 (三千...
108 34 <br />thirty-four · 34 三十四 ...
109 37 THOUSAND <br />37 thousand 三萬七千 (三万七千)&nbs...
110 3D <br />three dimensional · 3D 三維 (...
111 3RD EARTHLY BRANCH @LINK 3-5 A.M.
112 4 000 <br />four thousand · 4 000 四千&nb...
113 40 <br />forty · 40 四十 <i>sì s...
114 40 BILLION <br />40 billion 四百億 (四百亿) ...
115 43 <br />43 · forty three 四十三 ...
116 46 <br />forty six · 46 四十六 <i...
117 4TH EARTHLY BRANCH <br />4th earthly branch · 5-7 a.m. &nbs...
118 4TH HEAVENLY STEM <br /><i>surname</i> · 4th heavenly stem...
119 5 <br />five · 5 五 <i>wǔ</i>
120 5 PECKS <br />5 pecks <i>M</i> 斛 <i...
121 5-1 <br />5-1 <i>May 1st</i> 五一 ...
122 5-7 A.M. @LINK 4TH EARTHLY BRANCH
123 5-7 P.M. @LINK 10TH EARTHLY BRANCH
124 50 THOUSAND <br />50 thousand 五萬 (五万) <...
125 5000 TONS <br />5000 tons 五千噸 (五千吨) <...
126 5TH EARTHLY BRANCH <br />5th earthly branch · 7-9 a.m. &nbs...
127 5TH HEAVENLY STEM <br />5th heavenly stem 戊 <...
128 6 ACRE <br />about 1 · 6 acre <i>M</i> 畝...
129 6.6 <br />6.6 六點六 (六点六) <i>liù ...
130 60 <br />sixty · 60 六十 <i>liù ...
131 63 0 <br />half past six · 6:3 0 六點半 (...
132 64 0 000 <br />64 0 000 六十四萬 (六十四万) ...
133 6TH DAY OF THE MONTH <br />6th day of the month 六號 (六号...
134 6TH EARTHLY BRANCH <br />6th earthly branch · 9-11 a.m. &nb...
135 6TH HEAVENLY STEM <br />6th heavenly stem · self 己&...
136 7 <br />seven · 7 七 <i>qī</i>
137 7-9 A.M. @LINK 5TH EARTHLY BRANCH
138 7-9 P.M. @LINK 11TH EARTHLY BRANCH
139 7.2 <br />7.2 七點二 (七点二) <i>qī d...
140 7.5 <br />7.5 七點五 (七点五) <i>qī d...
141 70 <br />seventy · 70 七十 <i>qī...
142 7TH EARTHLY BRANCH @LINK 11 A.M.-1 P.M.
143 7TH HEAVENLY STEM <br />7th heavenly stem · age 庚&n...
144 8 <br />eight · 8 八 <i>bā</i>
145 8 IN. LENGTH UNIT OF ZHOU DYNASTY <br />8 in. length unit of Zhou dynasty ...
146 80 <br />eighty · 80 八十 <i>bā ...
147 8000 <br />eight thousand · 8000 八千&nb...
148 8TH EARTHLY BRANCH @LINK 1-3 P.M.
149 8TH HEAVENLY STEM <br />8th heavenly stem · tired 辛...
150 9 <br />nine · 9 九 <i>jiǔ</i>
151 9-11 A.M. @LINK 6TH EARTHLY BRANCH
152 9-11 P.M. @LINK 12TH EARTHLY BRANCH
153 90 PERCENT <br />90 percent 百分之九十 <i>b...
154 97 <br />'97 · the year 1997 九七年&nbs...
155 9TH EARTHLY BRANCH <br /><i>surname</i> · 3-5 p.m. · 9th ea...
156 9TH HEAVENLY STEM <br />9th heavenly stem 壬 <...
157 9TH OF MONTH <br />9th of month <i>tele.</i> · blue-g...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.crosswire.org/pipermail/sword-devel/attachments/20160117/b83ec0f0/attachment-0001.html>
More information about the sword-devel
mailing list