If there are two instances of the same root's xml:id in a word's hyph, it's because the root morpheme is split up by an infix. These infixes need to be handled as follows:
-- when printing the hyph, replace the following strings:
-ʔ- with <ʔ>
+a+ with <a>
+C₂+ with <C₂>
+CVC+ with <CVC>
-- when generating the translated hyph,
a) Delete the second/rightmost instance of the root after these morphemes: inchoative (xml:id="ʔ"), characteristic (xml:id="CHAR"), out of control (xml:id="OC"):
For example: [[√ʔiɬ<CVC>n-úl • √eat<char>-attrib]]
BUT, if the root has no gloss, DO keep the second part of the root:
For example: [[k-√cúwˀ<CVC>x=ánaʔ • loc-√cúwˀ<char>x=ear]]
b) Delete the first/leftmost instance of the root before the repetitive morpheme (xml:id="REP"), and put the root symbol before the second part of the root.
For example: [[√p<a>tix̣ʷ • <rep>√test]]
Again, if the root has no gloss, keep the first part of the root.
For example: [[√p<a>tix̣ʷ • √p<rep>tix̣ʷ]]