Open akprasad opened 6 months ago
@MSSRPRAD I think this would be a great project to work on.
context on meters.tsv
-- I didn't want to serve two files for the frontend, so I put everything in meters.tsv
. The data has three columns: meter name in SLP1, format (currently just vrtta
), and data. So jatis can be put in the same file with a jati
column.
Problem
vidyut-chandas currently supports vrtta meters but not jati meters. Our API returns
Vrtta
, our internal data is just vrttas, and we cannot recognize anything but vrttas.Proposed fix
Add support for recognizing jati meters. This seemingly simple feature will require several changes:
meters.tsv
to also support jati dataimpl Jati
with logic to match against aVec<Vec<Akshara>>
.Padya
enum that can be either a Vrtta or a Jati, and use that in our public API. This is so we can avoid having to deal withdyn
data.