-
-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[chandas] Add support for yati #98
Conversation
Should resolve ambuda-org#97 1. Added pAdAnta yati in the meters.tsv data 2. The yati information is stored in each pada as offset numbers according to how suggested by @akprasad
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for doing this!
vidyut-chandas/src/vrtta.rs
Outdated
@@ -91,22 +94,39 @@ fn to_counts(text: &str) -> Vec<usize> { | |||
.collect() | |||
} | |||
|
|||
/// Models a *feet/leg* of a verse, which constitutes of a specific pattern of light and heavy syllables along with some additional information like the yati positions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps:
/// Models a *pāda*, which is one of the four "feet" or "legs" of a verse. A *pāda* defines a specific pattern of light and heavy syllables and might also define one or more *yati*s (caesuras).
Make sure to wrap text as well.
The non-trivial Changes: 1. `to_weights` is now a TryFrom trait 2. Removed the `weights_as_vector` method 3. Removed the yati at the end of each pada from the data.
Code LGTM, but it looks like some lints are failing. Once those are resolved, let's merge it in! |
Formatted! |
Should resolve #97