sanskrit icon indicating copy to clipboard operation
sanskrit copied to clipboard

Enhancement: Multiple shlokas in one go

Open khari777 opened this issue 3 years ago • 18 comments

Hi,

Your chandas checking is excellent. I find it very useful.

Can you do an enhancement to allow for checking multiple shlokas at once? You can use delimiters like "||" or just a new line to separate out different shlokas. This feature will be awesome.

Also, can you publish a table of chandas and expected LG combinations? This will be very useful as well.

Thank you, K

khari777 avatar Jul 20 '20 16:07 khari777

Thanks for the feedback, both are good suggestions.

  • A previous version actually worked this way (allowing multiple shlokas) accidentally, though it wasn't very robust. But having it explicitly specified by the user should take care of most of those issues.

  • The table of chandas is in the source repo here on Github but there's also a "dictionary" of them maintained elsewhere (by the stardict-sanskrit project)… I have some plans for merging the two and providing it under a nice UI, let's see.

Sorry for an answer with nothing concrete right now — actually I haven't been able to devote attention / mental energy to this project for quite some time now, but feedback like this is highly motivating and hopefully it will push me over the barrier and I'll return to do some useful work on this at some point :-)

shreevatsa avatar Jul 20 '20 17:07 shreevatsa

Hi Shreevatsa,

What you've done is amazing and commendable work. Your knowledge of Sanskrit and software skills is an awesome combination. I appreciate your diligence on this.

K

khari777 avatar Jul 20 '20 19:07 khari777

Hello Shreevatsa,

Could you please provide me the table for different Chandas, as soon as possible. Formatting may not be necessary. I just want the basics on names and patterns.

Thanks, K

On Mon, Jul 20, 2020 at 12:48 PM Shreevatsa [email protected] wrote:

Thanks for the feedback, both are good suggestions.

A previous version actually worked this way (allowing multiple shlokas) accidentally, though it wasn't very robust. But having it explicitly specified by the user should take care of most of those issues.

The table of chandas is in the source repo here on Github but there's also a "dictionary" of them maintained elsewhere (by the stardict-sanskrit project)… I have some plans for merging the two and providing it under a nice UI, let's see.

Sorry for an answer with nothing concrete right now — actually I haven't been able to devote attention / mental energy to this project for quite some time now, but feedback like this is highly motivating and hopefully it will push me over the barrier and I'll return to do some useful work on this at some point :-)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/shreevatsa/sanskrit/issues/114#issuecomment-661238137, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQLBOILZOQ2NPALTDOV62NLR4R7O5ANCNFSM4PCP33SQ .

khari777 avatar Oct 04 '20 02:10 khari777

Sure, in my earlier comment I only mentioned it and didn't link to it; here's the directory in this repo which has all the data: https://github.com/shreevatsa/sanskrit/tree/6748493/data — the JSON files are probably what you want. The other source I mentioned is this one: https://github.com/indic-dict/stardict-sanskrit-kAvya/tree/91d9f56/Chandas

Hope this helps,

shreevatsa avatar Oct 04 '20 03:10 shreevatsa

Hello Shreevatsa,

Thanks for your email. This is very helpful.

I would like you to implement Anushtup with below definition.

श्लोके षष्ठं गुरु ज्ञेयं सर्वत्र लघु पञ्चमम्। द्विचतुष्पादयोर्ह्रस्वं सप्तमं दीर्घमन्ययोः॥

5th L in all four padas 6th G in all four padas 7th G in first and third 7th L in second and fourth

This check will greatly help me. Now, I've to do this manually.

K

On Sat, Oct 3, 2020 at 10:51 PM Shreevatsa [email protected] wrote:

Sure, in my earlier comment I only mentioned it and didn't link to it; here's the directory in this repo which has all the data: https://github.com/shreevatsa/sanskrit/tree/6748493/data — the JSON files are probably what you want. The other source I mentioned is this one: https://github.com/indic-dict/stardict-sanskrit-kAvya/tree/91d9f56/Chandas

Hope this helps,

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/shreevatsa/sanskrit/issues/114#issuecomment-703197732, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQLBOIMP2CWXPUSZQC4VFY3SI7WNNANCNFSM4PCP33SQ .

khari777 avatar Oct 21 '20 21:10 khari777

Hello Shreevatsa,

Your help needs to be acknowledged. Could you share your full name?

Thank you,

On Wed, Oct 21, 2020 at 4:41 PM Keshava Hari [email protected] wrote:

Hello Shreevatsa,

Thanks for your email. This is very helpful.

I would like you to implement Anushtup with below definition.

श्लोके षष्ठं गुरु ज्ञेयं सर्वत्र लघु पञ्चमम्। द्विचतुष्पादयोर्ह्रस्वं सप्तमं दीर्घमन्ययोः॥

5th L in all four padas 6th G in all four padas 7th G in first and third 7th L in second and fourth

This check will greatly help me. Now, I've to do this manually.

K

On Sat, Oct 3, 2020 at 10:51 PM Shreevatsa [email protected] wrote:

Sure, in my earlier comment I only mentioned it and didn't link to it; here's the directory in this repo which has all the data: https://github.com/shreevatsa/sanskrit/tree/6748493/data — the JSON files are probably what you want. The other source I mentioned is this one: https://github.com/indic-dict/stardict-sanskrit-kAvya/tree/91d9f56/Chandas

Hope this helps,

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/shreevatsa/sanskrit/issues/114#issuecomment-703197732, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQLBOIMP2CWXPUSZQC4VFY3SI7WNNANCNFSM4PCP33SQ .

khari777 avatar Oct 31 '20 04:10 khari777

Bulk mode back is badly wanted.

gasyoun avatar Nov 05 '20 06:11 gasyoun

Hello Shreevatsa, Your help needs to be acknowledged. Could you share your full name?

Where does it need to be acknowledged? Please use "Shreevatsa R" or (if needed) "Shreevatsa Rajagopalan".

Bulk mode back is badly wanted.

Yes, I understand. It would be nice to have. If I had a lot of time I'd have liked to implement this. Unfortunately at this moment I don't have the time, or rather the ability to overcome some emotional hurdles, to work on this project :-| As you can see, the last real commit was in 2018, and last sustained work was in 2015.

When I started this project, it was as a small script, and I was hoping that by making it open-source from the beginning, other people can extend it as they wish, but it hasn't happened in practice; maybe I've made some mistakes (technical or social), or maybe the code is too messy or whatever. I'm sorry.

If someone wants to “take over” maintaining this project, they can just do so… if someone is serious I can maybe get over my “ugh” feeling about this codebase, and take some 1:1 time to try to explain what this code does (there is not all that much, really).

Anyway, sorry for the long digression… that's where things stand.

BTW, this code is also usable from the commandline or as a Python library (I think… it has been a while since I tried) so one can write a script to check verses in bulk mode. (But do you really want to use such buggy code as this project? Maybe not…)

shreevatsa avatar Nov 05 '20 08:11 shreevatsa

Thank you

On Thu, Nov 5, 2020 at 2:18 AM Shreevatsa [email protected] wrote:

Hello Shreevatsa, Your help needs to be acknowledged. Could you share your full name?

Where does it need to be acknowledged? Please use "Shreevatsa R" or (if needed) "Shreevatsa Rajagopalan".

Bulk mode back is badly wanted.

Yes, I understand. It would be nice to have. If I had a lot of time I'd have liked to implement this. Unfortunately at this moment I don't have the time, or rather the ability to overcome some emotional hurdles, to work on this project :-| As you can see, the last real commit was in 2018, and last sustained work was in 2015.

When I started this project, it was as a small script, and I was hoping that by making it open-source from the beginning, other people can extend it as they wish, but it hasn't happened in practice; maybe I've made some mistakes (technical or social), or maybe the code is too messy or whatever. I'm sorry.

If someone wants to “take over” maintaining this project, they can just do so… if someone is serious I can maybe get over my “ugh” feeling about this codebase, and take some 1:1 time to try to explain what this code does (there is not all that much, really).

Anyway, sorry for the long digression… that's where things stand.

BTW, this code is also usable from the commandline or as a Python library (I think… it has been a while since I tried) so one can write a script to check verses in bulk mode. (But do you really want to use such buggy code as this project? Maybe not…)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/shreevatsa/sanskrit/issues/114#issuecomment-722219462, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQLBOILMDYKOC6HIGLOLL73SOJNV7ANCNFSM4PCP33SQ .

khari777 avatar Nov 06 '20 07:11 khari777

Where can I find json table for विषमवृत्त?

On Sat, Oct 3, 2020 at 10:51 PM Shreevatsa [email protected] wrote:

Sure, in my earlier comment I only mentioned it and didn't link to it; here's the directory in this repo which has all the data: https://github.com/shreevatsa/sanskrit/tree/6748493/data — the JSON files are probably what you want. The other source I mentioned is this one: https://github.com/indic-dict/stardict-sanskrit-kAvya/tree/91d9f56/Chandas

Hope this helps,

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/shreevatsa/sanskrit/issues/114#issuecomment-703197732, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQLBOIMP2CWXPUSZQC4VFY3SI7WNNANCNFSM4PCP33SQ .

khari777 avatar Nov 06 '20 07:11 khari777

Where can I find json table for विषमवृत्त?

There is no separate table; it's in the same data files: if the array has 4 elements, it's a viṣamavṛttta. For example:

        ["Udgatā", ["LL  G L  G L LL GL",
                    "LL LL L  G L  G LG",
                    " G LL L LL L  G LLG",
                    "LL  G L  G L LL  GLGLG"]],

or

        ["udgatā", ["LLGLGLLLGL", "LLLLLGLGLG", "GLLLLLLGLLG", "LLGLGLLLGLGLG"]],

or

        ["udgatā", ["LLGLGLLLGL",
                 "LLLLLGLGLG",
                 "GLLLLLLGLLG",
                 "LLGLGLLLGLGLG"]],

— see you have to remove duplicates and spaces etc.

shreevatsa avatar Nov 06 '20 19:11 shreevatsa

Just remembered that I had implemented a UI for checking multiple shlokas one evening 2 years ago, and forgotten about it as it was still unfinished etc. But see http://sanskritmetres.appspot.com/fulltext — totally unsupported, please don't report bugs in it :-) (I think it splits by newlines; don't remember the details now…)

shreevatsa avatar Nov 06 '20 22:11 shreevatsa

Hi

I get following error. Can you help?

Error

Over QuotaThis application is temporarily over its serving quota. Please try again later.

On Sat, Nov 7, 2020, 4:21 AM Shreevatsa @.***> wrote:

Just remembered that I had implemented a UI for checking multiple shlokas one evening 2 years ago, and forgotten about it as it was still unfinished etc. But see http://sanskritmetres.appspot.com/fulltext — totally unsupported, please don't report bugs in it :-) (I think it splits by newlines; don't remember the details now…)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/shreevatsa/sanskrit/issues/114#issuecomment-723335007, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQLBOIJMVTOT44ZNYQCQ2BDSOR4YDANCNFSM4PCP33SQ .

khari777 avatar May 20 '21 05:05 khari777

Hi I get following error. Can you help? Error Over QuotaThis application is temporarily over its serving quota. Please try again later.

Sorry to hear this. Are you still getting this error? I tried a few times and it seems to be fine. The app is running on App Engine's free tier, and I have received a bunch of nag emails in the past to set up billing information; I wonder if it is related. Please try a few times and see if it happens consistently; if so I'll look into potential solutions.

shreevatsa avatar May 21 '21 17:05 shreevatsa

Now it's working!! Thank you

On Fri, May 21, 2021, 11:16 PM Shreevatsa @.***> wrote:

Hi I get following error. Can you help? Error Over QuotaThis application is temporarily over its serving quota. Please try again later.

Sorry to hear this. Are you still getting this error? I tried a few times and it seems to be fine. The app is running on App Engine's free tier, and I have received a bunch of nag emails in the past to set up billing information; I wonder if it is related. Please try a few times and see if it happens consistently; if so I'll look into potential solutions.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/shreevatsa/sanskrit/issues/114#issuecomment-846131007, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQLBOIPR6NSQTRJHHXX44FLTO2L7LANCNFSM4PCP33SQ .

khari777 avatar May 21 '21 20:05 khari777

Hello Shreevatsa,

Can you send me lakshana for Giti and Arya?

Thank you

On Mon, Jul 20, 2020, 11:18 PM Shreevatsa @.***> wrote:

Thanks for the feedback, both are good suggestions.

A previous version actually worked this way (allowing multiple shlokas) accidentally, though it wasn't very robust. But having it explicitly specified by the user should take care of most of those issues.

The table of chandas is in the source repo here on Github but there's also a "dictionary" of them maintained elsewhere (by the stardict-sanskrit project)… I have some plans for merging the two and providing it under a nice UI, let's see.

Sorry for an answer with nothing concrete right now — actually I haven't been able to devote attention / mental energy to this project for quite some time now, but feedback like this is highly motivating and hopefully it will push me over the barrier and I'll return to do some useful work on this at some point :-)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/shreevatsa/sanskrit/issues/114#issuecomment-661238137, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQLBOILZOQ2NPALTDOV62NLR4R7O5ANCNFSM4PCP33SQ .

khari777 avatar Sep 04 '22 11:09 khari777

@khari777

Gīti = BB Āryā = BC

where B (the first half of Āryā, and both halves of Gīti) is a line of 30=12+18 mātrās, in groups of 4 mātrās each (mostly), specifically:

image

and C (the second half of Āryā) is a line of 27 (=12+15) mātrās, in groups of 4 mātrās each (mostly), specifically:

image

shreevatsa avatar Sep 04 '22 14:09 shreevatsa

Thank you

Is there a Sanskrit description of lakshana?

Thank you

On Sun, Sep 4, 2022, 8:25 PM Shreevatsa @.***> wrote:

@khari777 https://github.com/khari777

Gīti = BB Āryā = BC

where B (the first half of Āryā, and both halves of Gīti) is a line of 30=12+18 mātrās, in groups of 4 mātrās each (mostly), specifically:

[image: image] https://user-images.githubusercontent.com/767530/188319662-feb508bb-ff6b-42e6-af51-c5bd32f58fc6.png

and C (the second half of Āryā) is a line of 27 (=12+15) mātrās, in groups of 4 mātrās each (mostly), specifically:

[image: image] https://user-images.githubusercontent.com/767530/188319785-170b182c-dfbd-4048-aa16-620dd6cef9ae.png

— Reply to this email directly, view it on GitHub https://github.com/shreevatsa/sanskrit/issues/114#issuecomment-1236358727, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQLBOILEGQYDPO6IPYQQFTLV4SZ57ANCNFSM4PCP33SQ . You are receiving this because you were mentioned.Message ID: @.***>

khari777 avatar Sep 05 '22 10:09 khari777