As a followup or potential resolution of https://bitbucket.org/okapiframework/okapi/issues/966
Add an option to the XLIFFFilter which allows it to encode <sub> tags as seperate Okapi TextUnits. This makes it so that they can be treated “externally” and are translated independently. This should be in line with how sub flows are handled in the HTML filter.
At first I was hesitant about making <sub> a TextUnit because the Okapi Object model is rather close to the XLIFF Object model and this is a major deviation but overall I feel like the handling of <sub> feels more natural this way.
What do you think?