ambuda-org / vidyut

Infrastructure for Sanskrit software. For Python bindings, see `vidyut-py`.
48 stars 21 forks source link

prakriya: add search box for dhatus #21

Closed akprasad closed 1 year ago

akprasad commented 1 year ago

Similar to sites like ashtadhyayi.com. A list of 2000 dhatus is too much to reasonably scroll through, especially since they are in their aupadeshika forms.

akprasad commented 1 year ago

Not sure when I can get to this, so I'm unassigning myself for now.

akprasad commented 1 year ago

Added a primitive box to search by number. Marking this as done for now, but we should improve it.

shreevatsa commented 1 year ago

Nice!

As for improvements: yeah ideally should also be searchable by the dhātu itself.

(Also it's confusing that the numbers are rendered in Devanagari but we don't search with Devanagari numerals: maybe the digits shouldn't be transliterated into Devanagari in the first place?)

akprasad commented 1 year ago

The placeholder text is misleading, but both roman and devanagari numerals should work. Ihave a WIP PR that allows search on the aupadeshika dhatu and meaning (I.e. we can search वदिँ but not वन्द् -- not great, but still an improvement!) and I'll fix the text there.