Closed charlesLoder closed 1 year ago
This branch adds access to the "parent" object from the child.
Char
Cluster
Syllable
Word
The only exception is that there is no Text parent on the Word class. Because
Text
Word.text
Word.Text
new Text("דָּבָר").clusters[1].syllable.isClosed; // true
Now the Cluster has access to knowledge about the Syllable
Primarily to feed into the transliteration package so when using a callback the user can access the parent.
What this does
This branch adds access to the "parent" object from the child.
Char
has access toCluster
Cluster
has access toSyllable
Syllable
has access toWord
The only exception is that there is no
Text
parent on theWord
class. BecauseText
class is only its childrenWord.text
andWord.Text
would be confusingExample
Now the
Cluster
has access to knowledge about theSyllable
Why
Primarily to feed into the transliteration package so when using a callback the user can access the parent.