> On Jan 17, 2016, at 7:20 PM, Karl Kleinpaste <k...@kleinpaste.org> wrote:
> 
> FYI ZhEnglish also shows problems with mod2imp.
> 
> $$$-PLATED 
> <br />-plated · to plate &nbsp; 鍍 (镀)&nbsp; <i>dù</i>&nbsp; · &nbsp;鋈&nbsp; 
> <i>wù</i>
> $$$-R ONE 
> <br /><i>phonetic</i> · -r + one <i>chem.</i> &nbsp; 哢&nbsp; <i>lòng</i>
> $$$-Z OLE 
> <br /><i>phonetic</i> · -z + ole <i>chem.</i> &nbsp; 唑&nbsp; <i>zuò</i>
> $$$0.6 
> <br />0.6 &nbsp; 零點六 (零点六)&nbsp; <i>líng diǎn liù</i>
> $$$1 
> <br />0.6 &nbsp; 零點六 (零点六)&nbsp; <i>líng diǎn liù</i>
> $$$1 
> <br />0.6 &nbsp; 零點六 (零点六)&nbsp; <i>líng diǎn liù</i>
> $$$1 
> <br />0.6 &nbsp; 零點六 (零点六)&nbsp; <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 &nbsp; 零點六 (零点六)&nbsp; <i>líng...
20      1       <br />1 · 10 of a peck &nbsp; 合&nbsp; <i...
21      1 00 MILLION    <br />1 00 million &nbsp; 一億 (一亿)&nbsp; ...
22      1 5TH PARTY CONGRESS    <br />1 5th Party Congress <i>of Chinese...
23      1 CHRONICLES    <br />1 Chronicles &nbsp; 歷代志上 (历代志上)&nb...
24      1 CORINTHIANS   <br />1 Corinthians &nbsp; 哥林多前書 (哥林多前书)...
25      1 JOHN  <br />1 John &nbsp; 約翰一書 (约翰一书)&nbsp; <i...
26      1 KINGS         <br />1 Kings &nbsp; 列王紀上 (列王纪上)&nbsp; <...
27      1 PETER         <br />1 Peter &nbsp; 彼得前書 (彼得前书)&nbsp; <...
28      1 SAMUEL        <br />1 Samuel &nbsp; 撒母耳記上 (撒母耳记上)&nbsp...
29      1 THESSALONIANS         <br />1 Thessalonians &nbsp; 帖撒羅尼迦前書 (帖撒...
30      1 TIMOTHY       <br />1 Timothy &nbsp; 提摩太前書 (提摩太前书)&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 &nbsp; 石&nbsp; <i>dàn</i>
35      10 PERCENT      <br />10 percent · button · detain &nbsp...
36      100 MU  <br />100 mu · a short while ago &nbsp; ...
37      100-METER DASH  <br />100-meter dash &nbsp; 百米賽跑 (百米赛跑)&...
38      1000 TONS       <br />1000 tons &nbsp; 一千噸 (一千吨)&nbsp; <...
39      10000   <br /><i>surname</i> · 10,000 &nbsp; 万&n...
40      105 BILLION     <br />105 billion &nbsp; 一千零五十億 (一千零五十亿)...
41      10TH EARTHLY BRANCH     <br />10th earthly branch · 5-7 p.m. &nb...
42      10TH HEAVENLY STEM      <br />10th heavenly stem &nbsp; 癸&nbsp; ...
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 &nbsp; 十二&nbsp; <i>shí...
47      126     <br />126 &nbsp; 一百二十六&nbsp; <i>yī bǎi è...
48      12TH EARTHLY BRANCH     <br />12th earthly branch · 9-11 p.m. &n...
49      13      <br />thirteen · 13  &nbsp; 十三&nbsp; <i>...
50      14      <br />fourteen · 14  &nbsp; 十四&nbsp; <i>...
51      140 BILLION     <br />140 billion &nbsp; 一千四百億 (一千四百亿)&n...
52      14200   <br />14200 &nbsp; 一萬四千二百 (一万四千二百)&nbsp;...
53      1429    <br />1429 &nbsp; 一千四百二十九&nbsp; <i>yī qi...
54      15 BILLION      <br />15 billion &nbsp; 一百五十億 (一百五十亿)&nb...
55      15 YEARS OLD    <br />15 years old · hairpin for bun &nb...
56      15000   <br />15000 &nbsp; 一萬五千 (一万五千)&nbsp; <i>...
57      15TH DAY OF MONTH       <br />15th day of month <i>lunar calenda...
58      16      <br />sixteen · 16 &nbsp; 十六&nbsp; <i>sh...
59      17      <br />seventeen · 17 &nbsp; 十七&nbsp; <i>...
60      18      <br />eighteen · 18 &nbsp; 十八&nbsp; <i>s...
61      19 YEARS OLD    <br />19 years old &nbsp; 十九歲 (十九岁)&nbsp...
62      1970S   <br />the 1970's &nbsp; 七十年代&nbsp; <i>qī...
63      1ST BIRTHDAY OF A CHILD         <br />1st birthday of a child &nbsp; 
晬&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> &nbsp; 兩...
68      2 BOATS LASHED TOGETHER         <br />2 boats lashed together · large 
bo...
69      2 CHRONICLES    <br />2 Chronicles &nbsp; 歷代志下 (历代志下)&nb...
70      2 CORINTHIANS   <br />2 Corinthians &nbsp; 哥林多後書 (哥林多後书)...
71      2 JOHN  <br />2 John &nbsp; 約翰二書 (约翰二书)&nbsp; <i...
72      2 KILOMETER     <br />li, a Chinese unit of length = 1 ·...
73      2 KINGS         <br />2 Kings &nbsp; 列王紀下 (列王纪下)&nbsp; <...
74      2 ND DAY OF THE MONTH   <br />2 nd day of the month &nbsp; 二號 (二...
75      2 PETER         <br />2 Peter &nbsp; 彼得後書 (彼得後书)&nbsp; <...
76      2 SAMUEL        <br />2 Samuel &nbsp; 撒母耳記下 (撒母耳记下)&nbsp...
77      2 THESSALONIANS         <br />2 Thessalonians &nbsp; 帖撒羅尼迦後書 (帖撒...
78      2 TIMOTHY       <br />2 Timothy &nbsp; 提摩太后書 (提摩太后书)&nbs...
79      20      <br />twenty · 20 &nbsp; 二十&nbsp; <i>èr ...
80      200     <br />two hundred · 200 &nbsp; 二百&nbsp; ...
81      200 THOUSAND    <br />200 thousand &nbsp; 二十萬 (二十万)&nbsp...
82      2000 YEARS      <br />the year 2000 · 2000 years &nbsp; ...
83      21ST CENTURY    <br />21st century &nbsp; 二十一世紀 (二十一世纪)&...
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 &nbsp; 二十二號 (...
86      23      <br />23  &nbsp; 二十三&nbsp; <i>èr shí sān...
87      24      <br />24  &nbsp; 二十四&nbsp; <i>èr shí sì</i>
88      24 TH DAY OF A MONTH    <br />24 th day of a month &nbsp; 二十四號 (...
89      26 YEARS OLD    <br />26 years old &nbsp; 二十六歲 (二十六岁)&nb...
90      26TH DAY OF A MONTH     <br />26th day of a month &nbsp; 二十六號 (二...
91      27TH DAY OF A MONTH     <br />27th day of a month &nbsp; 二十七號 (二...
92      2816    <br />2816 &nbsp; 兩千六百一十六 (两千六百一十六)&nbsp...
93      28TH DAY OF THE MONTH   <br />28th day of the month &nbsp; 二十八號 ...
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 &nbsp; 仲&nbsp; <i...
98      3 500   <br />3 500 &nbsp; 三千五百&nbsp; <i>sān qiā...
99      3 JOHN  <br />3 John &nbsp; 約翰三書 (约翰三书)&nbsp; <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. &nbsp; 晡&nbsp; <i>bū</i><...
102     3.5 BILLION     <br />3.5 billion &nbsp; 三十五億 (三十五亿)&nbs...
103     30      <br />thirty · 30 &nbsp; 三十&nbsp; <i>sān...
104     30 BILLION      <br />30 billion &nbsp; 三百億 (三百亿)&nbsp; ...
105     30 CATTIES      <br />30 catties · great · your <i>hon.<...
106     30 THOUSAND     <br />30 thousand &nbsp; 三萬 (三万)&nbsp; <...
107     30 TO 50 MILLION        <br />30 to 50 million &nbsp; 三千到五千萬 (三千...
108     34      <br />thirty-four · 34 &nbsp; 三十四&nbsp; ...
109     37 THOUSAND     <br />37 thousand &nbsp; 三萬七千 (三万七千)&nbs...
110     3D      <br />three dimensional · 3D &nbsp; 三維 (...
111     3RD EARTHLY BRANCH      @LINK 3-5 A.M.
112     4 000   <br />four thousand · 4 000 &nbsp; 四千&nb...
113     40      <br />forty · 40 &nbsp; 四十&nbsp; <i>sì s...
114     40 BILLION      <br />40 billion &nbsp; 四百億 (四百亿)&nbsp; ...
115     43      <br />43 · forty three &nbsp; 四十三&nbsp; ...
116     46      <br />forty six · 46 &nbsp; 四十六&nbsp; <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 &nbsp; 五&nbsp; <i>wǔ</i>
120     5 PECKS         <br />5 pecks <i>M</i> &nbsp; 斛&nbsp; <i...
121     5-1     <br />5-1 <i>May 1st</i> &nbsp; 五一&nbsp;...
122     5-7 A.M.        @LINK 4TH EARTHLY BRANCH
123     5-7 P.M.        @LINK 10TH EARTHLY BRANCH
124     50 THOUSAND     <br />50 thousand &nbsp; 五萬 (五万)&nbsp; <...
125     5000 TONS       <br />5000 tons &nbsp; 五千噸 (五千吨)&nbsp; <...
126     5TH EARTHLY BRANCH      <br />5th earthly branch · 7-9 a.m. &nbs...
127     5TH HEAVENLY STEM       <br />5th heavenly stem &nbsp; 戊&nbsp; <...
128     6 ACRE  <br />about 1 · 6 acre <i>M</i> &nbsp; 畝...
129     6.6     <br />6.6 &nbsp; 六點六 (六点六)&nbsp; <i>liù ...
130     60      <br />sixty · 60 &nbsp; 六十&nbsp; <i>liù ...
131     63 0    <br />half past six · 6:3 0 &nbsp; 六點半 (...
132     64 0 000        <br />64 0 000 &nbsp; 六十四萬 (六十四万)&nbsp; ...
133     6TH DAY OF THE MONTH    <br />6th day of the month &nbsp; 六號 (六号...
134     6TH EARTHLY BRANCH      <br />6th earthly branch · 9-11 a.m. &nb...
135     6TH HEAVENLY STEM       <br />6th heavenly stem · self &nbsp; 己&...
136     7       <br />seven · 7 &nbsp; 七&nbsp; <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 &nbsp; 七點二 (七点二)&nbsp; <i>qī d...
140     7.5     <br />7.5 &nbsp; 七點五 (七点五)&nbsp; <i>qī d...
141     70      <br />seventy · 70 &nbsp; 七十&nbsp; <i>qī...
142     7TH EARTHLY BRANCH      @LINK 11 A.M.-1 P.M.
143     7TH HEAVENLY STEM       <br />7th heavenly stem · age &nbsp; 庚&n...
144     8       <br />eight · 8 &nbsp; 八&nbsp; <i>bā</i>
145     8 IN. LENGTH UNIT OF ZHOU DYNASTY       <br />8 in. length unit of Zhou 
dynasty ...
146     80      <br />eighty · 80 &nbsp; 八十&nbsp; <i>bā ...
147     8000    <br />eight thousand · 8000 &nbsp; 八千&nb...
148     8TH EARTHLY BRANCH      @LINK 1-3 P.M.
149     8TH HEAVENLY STEM       <br />8th heavenly stem · tired &nbsp; 辛...
150     9       <br />nine · 9 &nbsp; 九&nbsp; <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 &nbsp; 百分之九十&nbsp; <i>b...
154     97      <br />'97 · the year 1997 &nbsp; 九七年&nbs...
155     9TH EARTHLY BRANCH      <br /><i>surname</i> · 3-5 p.m. · 9th ea...
156     9TH HEAVENLY STEM       <br />9th heavenly stem &nbsp; 壬&nbsp; <...
157     9TH OF MONTH    <br />9th of month <i>tele.</i> · blue-g...


_______________________________________________
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

Reply via email to