indic-dict / stardict-sanskrit-vyAkaraNa

3 stars 4 forks source link

dhaval-prakriya should indicate vidhi rules #14

Open vvasuki opened 2 years ago

vvasuki commented 2 years ago

https://github.com/indic-dict/stardict-sanskrit-vyAkaraNa/tree/master/dhaval-prakriya should specially indicate vidhi rules (vide https://github.com/drdhaval2785/prakriya/issues/202 for an example. ) @drdhaval2785 - mind setting up some auto-update mechanism for this very useful dict?

akprasad commented 11 months ago

I am happy to help with this for vidyut-prakriya, which generally has much more detailed information in its prakriyas. Please let me know what the data format should be.

drdhaval2785 commented 11 months ago

Babylon file in the link provided by Vishvas can serve as a template to generate similar babylon file for Vidyut-prakriya.

vvasuki commented 11 months ago

@akprasad Could you show the generated prakriyA for भवति in devanAgarI? As an example, currently dhaval-prakriya shows:

[
  {
    "verbaccent": "भू॑",
    "meaning": "सत्तायाम्",
    "gana": "भ्वादि",
    "number": "०१।०००१",
    "madhaviya": "http://sanskrit.uohyd.ac.in/scl/dhaatupaatha/files-15-03-2017//mA1.html",
    "kshiratarangini": "http://sanskrit.uohyd.ac.in/scl/dhaatupaatha/files-15-03-2017//kRi1.html",
    "dhatupradipa": "http://sanskrit.uohyd.ac.in/scl/dhaatupaatha/files-15-03-2017//XA1.html",
    "uohyd": "http://sanskrit.uohyd.ac.in/cgi-bin/scl/skt_gen/verb/verb_gen.cgi?vb=BU1_BU_BvAxiH_sawwAyAm&prayoga=karwari&encoding=WX&upasarga=-&paxI=parasmEpaxI",
    "jnu": "http://sanskrit.jnu.ac.in/tinanta/tinanta.jsp?t=1",
    "verb": "भू",
    "lakara": "लट्",
    "padadecider_id": "परस्मैपदी",
    "padadecider_sutra": "",
    "it_sutra": "",
    "it_id": "",
    "it_status": "",
    "suffix": "तिप्",
    "purusha": "प्रथम",
    "vachana": "एक",
    "upasarga": "",
    "prakriya": [
      {
        "sutra": "भूवादयो धातवः",
        "sutra_num": "१।३।१",
        "form": "भू"
      },
      {
        "sutra": "लः कर्मणि च भावे चाकर्मकेभ्यः।",
        "sutra_num": "३।४।६९",
        "form": "भू"
      },
      {
        "sutra": "वर्तमाने लट्",
        "sutra_num": "३।२।१२३",
        "form": "भू+लँट्"
      },
      {
        "sutra": "लस्य",
        "sutra_num": "३।४।७७",
        "form": "भू+लँट्"
      },
      {
        "sutra": "हलन्त्यम्",
        "sutra_num": "१।३।३",
        "form": "भू+लँट्"
      },
      {
        "sutra": "तस्य लोपः",
        "sutra_num": "१।३।९",
        "form": "भू+लँ"
      },
      {
        "sutra": "उपदेशेऽजनुनासिक इत्",
        "sutra_num": "१।३।२",
        "form": "भू+लँ"
      },
      {
        "sutra": "तस्य लोपः",
        "sutra_num": "१।३।९",
        "form": "भू+ल्"
      },
      {
        "sutra": "तिप्तस्झिसिप्थस्थमिब्वस्मस् तातांझथासाथांध्वमिड्वहिमहिङ्",
        "sutra_num": "३।४।७८",
        "form": "भू+तिप्"
      },
      {
        "sutra": "लः परस्मैपदम्",
        "sutra_num": "१।४।९९",
        "form": "भू+तिप्"
      },
      {
        "sutra": "तिङस्त्रीणि त्रीणि प्रथममध्यमोत्तमाः",
        "sutra_num": "१।४।१०१",
        "form": "भू+तिप्"
      },
      {
        "sutra": "तान्येकवचनद्विवचनबहुवचनान्येकशः",
        "sutra_num": "१।४।१०२",
        "form": "भू+तिप्"
      },
      {
        "sutra": "शेषे प्रथमः",
        "sutra_num": "१।४।१०८",
        "form": "भू+तिप्"
      },
      {
        "sutra": "तिङ्शित्सार्वधातुकम्",
        "sutra_num": "३।४।११३",
        "form": "भू+तिप्"
      },
      {
        "sutra": "कर्तरि शप्‌",
        "sutra_num": "३।१।६८",
        "form": "भू+शप्+तिप्"
      },
      {
        "sutra": "तिङ्शित्सार्वधातुकम्",
        "sutra_num": "३।४।११३",
        "form": "भू+शप्+तिप्"
      },
      {
        "sutra": "लशक्वतद्धिते",
        "sutra_num": "१।३।८",
        "form": "भू+शप्+तिप्"
      },
      {
        "sutra": "तस्य लोपः",
        "sutra_num": "१।३।९",
        "form": "भू+अप्+तिप्"
      },
      {
        "sutra": "हलन्त्यम्",
        "sutra_num": "१।३।३",
        "form": "भू+अप्+तिप्"
      },
      {
        "sutra": "तस्य लोपः",
        "sutra_num": "१।३।९",
        "form": "भू+अ+ति"
      },
      {
        "sutra": "सार्वधातुकार्धधातुकयोः",
        "sutra_num": "७।३।८४",
        "form": "भो+अ+ति"
      },
      {
        "sutra": "एचोऽयवायावः",
        "sutra_num": "६।१।७८",
        "form": "भव्+अ+ति"
      },
      {
        "sutra": "अन्तिमं रूपम्",
        "sutra_num": "-२",
        "form": "भवति"
      }
    ]
  }
]
akprasad commented 11 months ago

Most of this looks doable. Some challenges I foresee:

1. Cross-linking to other dhatupathas

i.e.:

    "madhaviya": "http://sanskrit.uohyd.ac.in/scl/dhaatupaatha/files-15-03-2017//mA1.html",
    "kshiratarangini": "http://sanskrit.uohyd.ac.in/scl/dhaatupaatha/files-15-03-2017//kRi1.html",
    "dhatupradipa": "http://sanskrit.uohyd.ac.in/scl/dhaatupaatha/files-15-03-2017//XA1.html",
    "uohyd": "http://sanskrit.uohyd.ac.in/cgi-bin/scl/skt_gen/verb/verb_gen.cgi?vb=BU1_BU_BvAxiH_sawwAyAm&prayoga=karwari&encoding=WX&upasarga=-&paxI=parasmEpaxI",
    "jnu": "http://sanskrit.jnu.ac.in/tinanta/tinanta.jsp?t=1",

I'm using the dhatupatha from ashtadhyayi.com, which (I think) doesn't have this cross-linking info. I would need a source for how to do this.

2. Sutra structure

I see this uses normal string labels, which is fine. Sometimes, though, vidyut-prakriya will run a sutra from the Dhatupatha (e.g. for मित्त्व) or something from the SK that I didn't see documented elsewhere. How much flexibility do I have here in deciding how to encode these?

3. UI example

This would help me plan what to optimize for.

vvasuki commented 11 months ago

Come to think of it - rather than replicating the prakriyA offline, it might suffice to just link to some (preferably static?) webpage, with a short url. Interested users can easily look up prakriyA within the context of a dictionary lookup. This would leave @akprasad full flexibility regarding the data sources to link, sUtra numbering, the UI etc..

Reasoning - (Since folks are generally more interested in the final form, rather than the prakriyA, offline users who would be inconvenienced might be scarce. If someone complains, then we can take the trouble of maintaining offline prakriyA copies)

Ideas for UI for the webpage can be had from dhaval's site .

So, the babylon entries would look like:

भवति
<a href="https://yaahi.github.io/?t=1_1_1" target="_blank">भू लट् तिप्</a>

भवतः
<a href="https://yaahi.github.io/?t=1_1_2" target="_blank">भू लट् तस्</a>

cc @suhasm