Skip to content
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

Merged
merged 3 commits into from
Jan 2, 2024
Merged

[chandas] Add support for yati #98

merged 3 commits into from
Jan 2, 2024

Conversation

MSSRPRAD
Copy link
Contributor

@MSSRPRAD MSSRPRAD commented Jan 1, 2024

Should resolve #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

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
Copy link
Contributor

@akprasad akprasad left a 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 Show resolved Hide resolved
vidyut-chandas/data/meters.tsv Outdated Show resolved Hide resolved
@@ -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.
Copy link
Contributor

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.

vidyut-chandas/src/vrtta.rs Outdated Show resolved Hide resolved
vidyut-chandas/src/vrtta.rs Outdated Show resolved Hide resolved
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.
@akprasad
Copy link
Contributor

akprasad commented Jan 2, 2024

Code LGTM, but it looks like some lints are failing. Once those are resolved, let's merge it in!

@MSSRPRAD
Copy link
Contributor Author

MSSRPRAD commented Jan 2, 2024

Formatted!

@akprasad akprasad changed the title Added support for yati [chandas] Add support for yati Jan 2, 2024
@akprasad akprasad merged commit a1e7ec9 into ambuda-org:main Jan 2, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for capturing 'yati' positions in a metre.
2 participants