sanskrit icon indicating copy to clipboard operation
sanskrit copied to clipboard

User feedback

Open suryasriram opened this issue 2 years ago • 3 comments

I have an issue to report about the results for the following input:

viśuddha-vijñāna-ghanaṁ sva-saṁsthayā
samāpta-sarvārtham amogha-vāñchitam
sva-tejasā nitya-nivṛtta-māyā-
guṇa-pravāhaṁ bhagavantam īmahi

The issue is: The first syllables of the third line svatejasā ... Namely 'sva' is a laghu syllable, but is being identified as guru, perhaps due to the samyuktakshara?

suryasriram avatar Jul 08 '22 18:07 suryasriram

Thanks for reporting! This was surprising, so I took a closer look… This is what I see for that input:

image

Actually what's happened is that it has correctly identified the sva as laghu (see the "Scanning the input" part of the debugging output, which I expanded in the above screenshot, or hover over the sva), but because it has stupidly matched a specific metre that happens to have G in that position (one of the "concrete" versions / "crystallizations" of Vaṃśastha), it is highlighting the syllable in red and pointing out that (if the poem was indeed intended to be specifically in "vaidhātrī" metre), then this is wrong.

The right solution here would be:

  • identify the metre as a partial match for Vaṃśastha more generally (rather than "vaidhātrī" specifically), which allows that syllable to be either L or G,
  • highlight only the missing syllable in māyā

I'd be happy with that but actually, this is a tricky case, because the metre is clearly "broken" in a sense, and yet (searching online) that seems to be the verse text… so maybe we should say lines 1, 2, 4 are in Vaṃśastha and line 3 is in Upajāti (specifically upendravajrā)?

shreevatsa avatar Jul 09 '22 01:07 shreevatsa

Thank you for the reply! Understood to a certain extent why this error occurred.

So it is then just an irregular Vamshastha with no particular name? Since Bhagavatam is replete with many such types of shlokas.

Also I really appreciate your efforts in project, being a coder and a Sanskrit enthusiast myself. It's a monumental effort from your side, which will benefit students and scholars greatly.

Thanks and Regards, Surya.

On Sat, 9 Jul, 2022, 07:24 Shreevatsa, @.***> wrote:

Thanks for reporting! This was surprising, so I took a closer look… This is what I see for that input:

[image: image] https://user-images.githubusercontent.com/767530/178086894-a4abbaab-f373-49b9-9a12-e75d935cf9ef.png

Actually what's happened is that it has correctly identified the sva as laghu (see the "Scanning the input" part of the debugging output, which I expanded in the above screenshot, or hover over the sva), but because it has stupidly matched a specific metre that happens to have G in that position (one of the "concrete" versions / "crystallizations" of Vaṃśastha), it is highlighting the syllable in red and pointing out that (if the poem was indeed intended to be specifically in "vaidhātrī" metre), then this is wrong.

The right solution here would be:

  • identify the metre as a partial match for Vaṃśastha more generally (rather than "vaidhātrī" specifically), which allows that syllable to be either L or G,
  • highlight only the missing syllable in māyā

I'd be happy with that but actually, this is a tricky case, because the metre is clearly "broken" in a sense, and yet (searching online) that seems to be the verse text… so maybe we should say lines 1, 2, 4 are in Vaṃśastha and line 3 is in Upajāti (specifically upendravajrā)?

— Reply to this email directly, view it on GitHub https://github.com/shreevatsa/sanskrit/issues/135#issuecomment-1179457775, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKLVQQOBE5SKXXHO2SP4TPDVTDLUVANCNFSM53B2QABA . You are receiving this because you authored the thread.Message ID: @.***>

suryasriram avatar Jul 09 '22 17:07 suryasriram

Right, see the scansion (same as what the tool shows except I changed the very last syllable to G):

LGLGGLLGLGLG
LGLGGLLGLGLG
LGLGGLLGLGG
LGLGGLLGLGLG

— here lines 1, 2, 4 are in one metre and line 3 is in another. I've heard think such "mixtures" do occur in the literature… are there many more in the Bhagavatam?

(Thanks for your appreciation about the project… maybe it will give the motivation to return to this some day and fix remaining bugs / make improvements!)

shreevatsa avatar Jul 09 '22 19:07 shreevatsa