Clear-Bible / macula-greek

Syntax trees, morphology, and linguistic annotations for the Greek Bible
Other
23 stars 6 forks source link

`after` attribute #20

Closed themikejr closed 2 years ago

themikejr commented 2 years ago

The macula-hebrew lowfat syntax trees use an attribute called after that helps one join <w> elements to correctly form graphical words. This is great! In react / jsx it becomes very simple to render graphical words. Example:

<span>{w.text}</span>
{w.after && (<span>{w.after}</span>)}

If the macula greek lowfat trees also offered an after attribute, consuming applications of both hebrew and greek syntax tree could use the same simple rendering algorithm for all text. The usefulness of consistently including this attribute likely stretches beyond web app front ends too.