tylergneill / skrutable

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

Āryā metre not identified #3

Closed drdhaval2785 closed 1 year ago

drdhaval2785 commented 3 years ago

स्वः स्वर्गः सुरसद्म त्रिदशावासस्त्रिविष्टपं त्रिदिवम् । द्यौर्गौरमर्त्यभुवनं नाकः स्यादूर्ध्वलोकश्च ॥ ३ ॥

http://sanskritmetres.appspot.com/identify shows that it is an exact match for Āryā metre.

Output by skrutable is

स्वः स्वर्गः सुरसद्म त्रिदशावासस्त्रिविष्टपं त्रिदिवम् । द्यौर्गौरमर्त्यभुवनं नाकः स्यादूर्ध्वलोकश्च ॥ ३ ॥

   gggllggl   [13]   [msgl]
   lggglgll   [12]   [yrll]
   llggglgl   [12]   [stgl]
llggggglggl   [18]   [smrgl]

    sva   ḥsva    rga    ḥsu     ra     sa    dma    tri
      g      g      g      l      l      g      g      l
     da     śā     vā     sa   stri     vi    ṣṭa     pa
      l      g      g      g      l      g      l      l
   ṃtri     di     va  mdyau   rgau     ra     ma   rtya
      l      l      g      g      g      l      g      l
    bhu     va     na    ṃnā     ka   ḥsyā     dū  rdhva     lo     ka    śca
      l      l      g      g      g      g      g      l      g      g      l

anuṣṭubh (ab: pathyā, cd: asamīcīna)
tylergneill commented 3 years ago

Ok, please give a look again. I've implemented some new options. For jātis, when the midpoint is marked, the new option "resplit max keep mid" should work best. The other options produce more errors, but different ones, depending on the specifics of the verse. I've tested this on the Saptaśatī and "resplit max keep mid" now gets nearly all of the verses right, except when there's a textual problem (spreadsheet attached if you're curious). sattasai resplit comparison.xlsx Thanks very much for this input. I'll be happy to know what you think so far.