sanskrit-lexicon / csl-pywork

A template for creating pywork repository for each dictionary.
3 stars 1 forks source link

Support 'fem' tag in hwtype #30

Open drdhaval2785 opened 1 year ago

drdhaval2785 commented 1 year ago

I recently added feminine alternate headwords in LRV. See https://github.com/sanskrit-lexicon/LRV/issues/19 for details. To separate this kind of headwords from alt i.e. alternate headwords and sub i.e. subheadwords, I used a separate hwtype i.e. fem.

Sample entries in lrv_hwextra.txt are as follow:

<L>30773.1<pc>583-23<k1>mfdvI<k2>mfdu(dvI)<type>fem<LP>30773<k1P>mfdu
<L>31168.1<pc>590-04<k1>yajvarI<k2>yajvan(jvarI)<type>fem<LP>31168<k1P>yajvan
<L>35020.1<pc>665-09<k1>viduzI<k2>vidvas(viduzI)<type>fem<LP>35020<k1P>vidvas

Note the <type>fem part to denote that these are feminine forms of the given word.

localhost now shows the following message (विदुषी is feminine form of विद्वस्.)

The programs make_xml.py and one.dtd were modified to allow this change.

Now, it should be possible to add feminine forms in other dictionaries too.