sanskrit-lexicon / MWS

Monier Monier-Williams, Sir; A Sanskrit-English dictionary. Oxford, 1899
Other
7 stars 5 forks source link

nikāya lost #128

Closed gasyoun closed 2 years ago

gasyoun commented 2 years ago

nikāya not showing up @funderburkjim

rerereerw

Never seen such an effect before

Andhrabharati commented 2 years ago

It is seen that the resulting data for nikAya entry is displayed for a flash and then disappeared. ------------------- Another related (?) observation-

image

Only 2 out of 5 results displayed on the right side window. (all the subsequent ones after the 'problematic' nikAya are hidden!!)

funderburkjim commented 2 years ago

nested ls

Noticed that mw.txt had an <ls> tag nested within another <ls> tag. Changing this removes the display problem.

<L>107850.5<pc>544,3<k1>nikAya<k2>ni-kAya/<e>1A
OLD:
the air, wind, <ls>VS. xv, 5 (<ls>Mahīdh.</ls>) </ls><info lex="inh"/>
NEW:
¦ the air, wind, <ls>VS. xv, 5</ls> (<ls>Mahīdh.</ls>) <info lex="inh"/>
<LEND>

Several other similar cases also found, and changed. 20 matches for "<ls>[^<]*<ls" in buffer: mw.txt

See commit dfca4c5 for details.

The two display examples of prior comments now work

funderburkjim commented 2 years ago

revise one.dtd

See the pywork commit b61e434.

The allowed children of the <ls> element revised to be more restrictive. This will help identify problems such as nested 'ls' elements. A couple of other changes made to mw and also pwg regarding xml children of 'ls' elements,

AFAIK, these changes will have no impact on xml validity for other dictionaries (pw validity with revised dtd was checked).

I think this issue can now be closed.

gasyoun commented 2 years ago

Several other similar cases also found, and changed.

Thanks.

AFAIK, these changes will have no impact on xml validity for other dictionaries (pw validity with revised dtd was checked).

Understood.