hrishikeshrt / PyCDSL

Python Interface to Cologne Digital Sanskrit Lexicon (CDSL)
https://pypi.org/project/PyCDSL/
Other
12 stars 1 forks source link

Not able to search in more than one dictionary in CLI #18

Closed drdhaval2785 closed 2 years ago

drdhaval2785 commented 2 years ago

Description

I was trying to search across two dictionaries MW and AP90 via the commandline tool cdsl. I could search in MW and AP90 individually, but could not search in both simultaneously. Maybe I could not understand the usage instruction properly. I tried to pass both MW and AP90 as space separated. If there is a problem, kindly fix it. If I misunderstood the syntax, kindly post an example of multi-dictionary search in the documentation and change the title of this report from bug to documentation.

What I Did

dhaval@dhaval-Aspire-5750:~$ cdsl -d MW -is slp1 -os devanagari -s Davala
<MWEntry: 100564: धवल = धवल mf(आ)n. (fr. √ 2. धाव्? cf. Uṇ. i, 108 Sch.) white, dazzling wh°, Var.; Kāv.; Pur. &c.>
<MWEntry: 100565: धवल = handsome, beautiful, L.>
<MWEntry: 100566: धवल = धवल m. white (the colour), L.>
<MWEntry: 100567: धवल = a kind of dove, Bhpr.>
<MWEntry: 100568: धवल = an old or excellent bull, Hcar.>
<MWEntry: 100569: धवल = a kind of camphor, L.>
<MWEntry: 100570: धवल = Anogeissus Latifolia, L.>
<MWEntry: 100571: धवल = (in music) N. of a Rāga>
<MWEntry: 100572: धवल = N. of a man, Kathās.>
<MWEntry: 100573: धवल = of one of the elephants of the quarters, R.>
<MWEntry: 100574: धवल = of a dog>
<MWEntry: 100575: धवल = धवल f(आ and ई).  a white cow, Kād.>
dhaval@dhaval-Aspire-5750:~$ cdsl -d AP90 -is slp1 -os devanagari -s Davala
<AP90Entry: 15994: धवल = धवल a. [धवं कंपं लाति ला-क; Tv.] 1 White; धवलातपत्र, धवलगृहं, धवलवस्त्रं &c.  2 Handsome.  3 Clear, pure. — लः 1 The white colour.  2 An excellent bull.  3 China camphor (चीनकर्पूर).  4 N. of a tree (धव). — लं  Whitepepper. — ला A woman with a white complexion. — ली A white cow; (  धवला also).  Comp. — उत्पलं the white water-lily (said to open at  moonrise). — गिरिः N. of the highest peak of the Himālaya mountain. — गृहं a house whitened with  chunam, a palace. — पक्षः  1 a goose.  2 the bright half of a lunar month. — मृत्तिका chalk.>
dhaval@dhaval-Aspire-5750:~$ cdsl -d AP90 MW -is slp1 -os devanagari -s Davala
<AP90Entry: 15994: धवल = धवल a. [धवं कंपं लाति ला-क; Tv.] 1 White; धवलातपत्र, धवलगृहं, धवलवस्त्रं &c.  2 Handsome.  3 Clear, pure. — लः 1 The white colour.  2 An excellent bull.  3 China camphor (चीनकर्पूर).  4 N. of a tree (धव). — लं  Whitepepper. — ला A woman with a white complexion. — ली A white cow; (  धवला also).  Comp. — उत्पलं the white water-lily (said to open at  moonrise). — गिरिः N. of the highest peak of the Himālaya mountain. — गृहं a house whitened with  chunam, a palace. — पक्षः  1 a goose.  2 the bright half of a lunar month. — मृत्तिका chalk.>
dhaval@dhaval-Aspire-5750:~$ cdsl -d MW AP90 -is slp1 -os devanagari -s Davala
<AP90Entry: 15994: धवल = धवल a. [धवं कंपं लाति ला-क; Tv.] 1 White; धवलातपत्र, धवलगृहं, धवलवस्त्रं &c.  2 Handsome.  3 Clear, pure. — लः 1 The white colour.  2 An excellent bull.  3 China camphor (चीनकर्पूर).  4 N. of a tree (धव). — लं  Whitepepper. — ला A woman with a white complexion. — ली A white cow; (  धवला also).  Comp. — उत्पलं the white water-lily (said to open at  moonrise). — गिरिः N. of the highest peak of the Himālaya mountain. — गृहं a house whitened with  chunam, a palace. — पक्षः  1 a goose.  2 the bright half of a lunar month. — मृत्तिका chalk.>
hrishikeshrt commented 2 years ago

Thank you. Commit 52206280fdf0453e8e5caa5d5babd77f1568e424 addresses this.