Nov 17, 2021, 6:11:57 PM11/17/21
to Group: okapi-devel
A heads up that several filters (xliff primary) make heavy use of
TextFragment.append. The default for append is to rewrite code id's
(basically renumbering starting at 1). Normally this wasn't an issue
since TextUnitMerger was matching primary on data. The problem with this
is that targets may have reordered codes, which result in different id's
if they are generated out of context with the source. The xliff filter
has also been updated to carefully match codes between source and target
(using the original id's in the xliff or generating them based on data).
I am adding several new methods (append, joinAll, createJoinedContent
etc.) to use a boolean keepCodeIds parameter. The default behavior is
kept (keepCodeIds=false), but if a filter uses these methods or any
other code that depends on keeping the id's as-is you will need to use
the new methods (keepCodeIds=true).