tylergneill / skrutable

Toolkit for manipulating Sanskrit text with Python
Other
14 stars 3 forks source link

विषमवृत्त metres #7

Open drdhaval2785 opened 3 years ago

drdhaval2785 commented 3 years ago

Input

बलीमुखो मर्कटको वनौकाः, प्लवङ्गमः स्यात्प्लवगः प्लवङ्गः । हरिः कपिः कीश इमे च शब्दाः, शाखामृगो वानर इत्यभिन्नाः ॥ २३१ ॥

Output from skrutable

lglggllglggl    {m: 18}    [12: jtjt]
  glggllglgg    {m: 16}    [10: rBrg]
lglggllglggg    {m: 19}    [12: jtjm]
  glggllglgg    {m: 16}    [10: rBrg]

    ba    lī    mu   kho    ma   rka    ṭa    ko    va   nau   kāḥ   pla
     l     g     l     g     g     l     l     g     l     g     g     l
    va   ṅga   maḥ   syā  tpla    va   gaḥ   pla    va  ṅgaḥ
     g     l     g     g     l     l     g     l     g     g
    ha   riḥ    ka   piḥ    kī    śa     i    me    ca    śa  bdāḥ    śā
     l     g     l     g     g     l     l     g     l     g     g     g
   khā    mṛ    go    vā    na    ra     i   tya   bhi  nnāḥ
     g     l     g     g     l     l     g     l     g     g

ajñātārdhasamavṛttam [jtjt, rBrg]

Output from sanskritmeters.appspot.com

māyā is a viṣama-vṛtta. It contains 4 pādas, which have respectively the patterns:
LGLGGLLGLGG
LGLGGLLGLGG
LGLGGLLGLGG
GGLGGLLGLGG

The input verse matches māyā (माया):
balīmukho markaṭako vanaukāḥ
plavaṅgamaḥ syātplavagaḥ plavaṅgaḥ
hariḥ kapiḥ kīśa ime ca śabdāḥ
śākhāmṛgo vānara ityabhinnāḥ 
drdhaval2785 commented 3 years ago

Same with the following

जनार्दनाधोक्षजवासुदेवं दामोदरं श्रीधरमच्युतं च । उपेन्द्रमिन्द्रावरजं च बभ्रं हरिं हृषीकेशमुदाहरन्ति ॥ २३ ॥

It is ऋद्धि metre.

drdhaval2785 commented 3 years ago

Maybe the list of metres in https://github.com/shreevatsa/sanskrit/tree/master/data may help in case we want to expand the code to other metres.

tylergneill commented 1 year ago

It's true, Skrutable could support more meters. The most common viṣamavṛtta is high on my to-do list. I don't aspire to be anything like comprehensive in my coverage, however. It's just not my goal. Hopefully the other projects will continue to place their greater emphasis on this, to serve as good alternatives.