Open drdhaval2785 opened 10 years ago
Thanks for the information.
To summarize, there are two issues I identify:
So let's restrict this issue to discussing #1.
As I see it, to implement this, we'd like the metre-recognizing function to be passed in spaces as well, so that it can detect the beginning of words. The rest should be doable.
"As I see it, to implement this, we'd like the metre-recognizing function to be passed in spaces as well, so that it can detect the beginning of words. The rest should be doable."
I agree. Right now we are removing the space before starting guru / laghu identification. This should be avoided and space should be retained till we have completed guru / laghu identification.
short vowel -> space -> consonant -> consonant === % -> consonant, where % denotes both Guru and Laghu. Maybe we can set a counter here. If that counter is 1 -> we can change % to G and run the meter checker. and then we change % to L and run the meter checker again.
पुरा शतावधानिना गणेशेन एवमप्य् उक्तम् - https://groups.google.com/forum/#!search/%E0%A4%AA%E0%A5%8D%E0%A4%B0%E0%A4%B9%E0%A5%8D%E0%A4%B0%E0%A5%87/bvparishat/ya1cGLuhc14/U_biGQ4FJscJ ।
In light of the fact that this (≈shithila-dvitva) is more found in later Prākṛta-influenced poetry and the most classical poets have not used it, and the fact that metre-recognizer now takes all partial line matches into account (any verse is unlikely to require this option in all four lines), this seems low-priority.
Leaving this as-is for now, until I see examples of verses where this option is exploited in all four lines.
निद्रव्यो ह्रियमेति ह्रीपरिगतः प्रभ्रश्यते तेजसः still didnt give the correct result.
@drdhaval2785 -- if you type the entire verse, it does correctly identify the metre; see the following screenshot:
That's what I meant by the previous comment. Let me post another one to elaborate.
Let me summarise the issue again.
The traditional rule is that the presence of a conjunct consonant (consonant cluster) makes the preceding syllable a guru syllable. For purists, this is an inviolable rule, and there are no exceptions.
However, under the influence of Prākṛta and deśa-bhāṣā prosody, and also music, later prosodists give poets the option to either conform to this rule, or to occasionally indulge in an exception. This exception is stated differently by different authors:
All ways of stating the exception cover the example of "निद्रव्यो ह्रियमेति ह्रीपरिगतः प्रभ्रश्यते तेजसः", but Kedārabhaṭṭa's way doesn't cover the example of "राज्ञां मध्ये सपदि जह्रिषे मित्रविन्दामवन्तीम्" from the Nārāyaṇīyam. So far I don't see a reason to prefer Kedārabhaṭṭa's formulation over the others.
But anyway, to return to the main point:
Reference: see comments by Dr. Ganesh and Nityananda Misra in this thread started by Vishvas Vasuki: https://groups.google.com/forum/#!topic/bvparishat/ya1cGLuhc14/discussion
On the way forward, I see a couple of options:
My position is that (3) is not necessary, because, being at just edit distance 1 from the correct metre, it will be subsumed by the general effort to find closest matches to existing metres (mentioned as #43) — we will still identify the correct metre.
So I'm treating the TODO here as 2.
Option 2 would be great
2 is 100 times better than 1 is.
Inasmuch as every minute spent on this is a minute less spent on other things, I'm not even sure that's true. :-)
In the meantime, there is absolutely not a single known example of a verse for which the program will fail at its main purpose, that of identifying the metre. And even of its secondary purpose (that of pretty-printing the input verse), and even of the minor effect it has (something underlined in red), it only matters in a tiny number (close to zero) of all the verses that have ever been input to the program.
So I feel it is pointless to spend more time on this issue now, until the issues of far greater impact are fixed.
अलमतिविस्तरेण।
If https://github.com/shreevatsa/sanskrit/issues/53 possible, so be it :8ball:
2015-01-02 18:43 GMT-08:00 Shreevatsa notifications@github.com:
So I feel it is pointless to spend more time on this issue now, until the issues of far greater impact are fixed.
My vote is on building the collaborative flexible online Chandas table.
Vishvas /विश्वासः
collaborative flexible online Chandas table.
Without moderation - difficult task. Some one entering some wrong data may throw off the machine off scent
पालनं क्रियतामावाभ्याम्। नास्ति तत्र क्लेशः।
2015-01-04 8:25 GMT-08:00 Dr. Dhaval Patel notifications@github.com:
collaborative flexible online Chandas table.
Without moderation - difficult task. Some one entering some wrong data may throw off the machine off scent
— Reply to this email directly or view it on GitHub https://github.com/shreevatsa/sanskrit/issues/1#issuecomment-68638557.
Vishvas /विश्वासः
Again, I was thinking about this recently since last weekend, and it occurs to me that I was trying to solve too many problems during the metre identification phase. The problem becomes easier if we treat the job of that phase to simply throw up some candidate metres, and then we do some ranking of these candidate metres based on how well they match. During this ranking, we can consider aspects like this alternative scansion. That is a clean solution to this problem that had not occurred to me previously.
So I need to first implement some form of ranking, and then this problem can become solvable. Even with the “poetic license” used in every line!
first implement some form of ranking
Guess it remains as is, undone?
The website https://sanskritmetres.appspot.com/ is not working. Can you please fix it.
The website https://sanskritmetres.appspot.com/ is not working. Can you please fix it.
Created a new issue at https://github.com/shreevatsa/sanskrit/issues/133 (resolved now).
https://sanskritmetres.appspot.com/ is an absolutely awesome website. I use it very regularly. I would like to make a donation. How should I do it. Please let me know the procedure.
https://sanskritmetres.appspot.com/ is an absolutely awesome website. I use it very regularly. I would like to make a donation. How should I do it. Please let me know the procedure.
Thank you, that's nice to hear! The website costs no money to run, and I have a regular full-time job, so there is no need for any donation. (If the situation changes, I'll add a note on the website.) [In fact I already feel guilty about leaving so many bugs and issues unattended here, so taking money would make me feel even worse. :-)] But it's nice to hear that someone is using it regularly and finds it useful despite all the shortcomings; thank you.
[Note: There is an updated summary of this issue below.]
[Original subject: Defining Gurus and Laghus]
सानुस्वारो विसर्गान्तो दीर्घो युक्तपरश्च यः । वा पादान्तस्त्वसौ ग्वक्रो ज्ञेयोऽन्यो मातृको लृजुः ॥ ९
पदादाविह वर्णस्य संयोगः क्रमसंज्ञिकः । पुरःस्थितेन तेन स्याल्लघुताऽपि क्वचिद्गुरोः ॥ १०
These are the rules for Guru / Laghu in vRttaratnAkara. Rule 1: sAnusvAra - this is covered in the code by including M in the consonant list. Rule 2: visargAnta - this is also covered in the code by including H in the consonant list. Rule 3: dIrgha - This is also covered in the code by including the long_vowel variables. Rule 4: yuktapara - This needs a little refinement. This rule is made optional by the verse 10. Rule 5 - pAdAnta - pAdAnta laghu is treated as guru optionally. The commentary says पादस्तस्यान्ते वर्तमानो लघुरपि विभाषया गुरुः स्यात् । स च कविसमयव्यवहारात् द्वितीयचतुर्थयोरेव पादयोरन्ते वेदितव्यः । . Meaning thereby that this optionality will work only in case of the second or fourth pAda only. A laghu at the end of First or Third pAda will not have an option of being a guru optionally.
Rule 6: Others having short vowels are laghu.
Rule 7: This is important. This is an optional exception to the rule 4. When there is a conjoint at the start of a word (pada), (not pAda), the guru (as mandated by Rule 4) is sometimes treated as laghu. e.g. निद्रव्यो ह्रियमेति ह्रीपरिगतः प्रभ्रश्यते तेजसः Here, as the ति preceding ह्री is mandated to be guru by rule 4 - by rule 7, it remains laghu. If it is treated as guru - GGGLLGGGLLLG-GGLGGLG - doesnt correspond to zArdulavikrIDita meter. If it is treated as laghu - GGGLLGLGLLLG-GGLGGLG - corresponds to the meter.
This is optional. See: रागो नलिन्या हि निसर्गसिद्धस्तत्र भ्रमत्येव मुधा षडङ्घ्रिः ॥ Here, भ्र has त्र preceding, but still it got converted to dIrgha.
Also note that this applies only when the conjoint is at the start of a word (pada). see: प्रद्योतस्य प्रियदुहितरं वत्सराजोऽत्र जह्रे । Here, the ह्र in जह्रे is not at the beginning of a word. Therefore the guru is mandatory.