Barahkhadi (Hindi) #32
recursivezero
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
To organize the Barakhadi for each consonant into a separate object where the key is the consonant and the value is an array of its 12 variations (including the base consonant and its combinations with matras)
Code Implementation
Explanation:
hindiConsonants
:String.fromCodePoint
.matras
:generateBarakhadi
:reduce
to iterate over each consonant.acc
).map
.completeBarakhadi
:generateBarakhadi
with thehindiConsonants
array to generate the complete Barakhadi.Output:
The
completeBarakhadi
object will look like this:Example Usage with a Subset of Consonants
If you want to generate Barakhadi for a subset of consonants, you can pass a custom array:
Output for Custom Consonants:
Summary
Beta Was this translation helpful? Give feedback.
All reactions