Class XLIFF2TerminologyPackageWriter

    • Constructor Detail

      • XLIFF2TerminologyPackageWriter

        public XLIFF2TerminologyPackageWriter()
    • Method Detail

      • addGlossaryReferences

        protected void addGlossaryReferences​(Segment xliffSegment,
                                             GlossaryAnnotation glossaryAnnotation)
        Method which annotates source and target XLIFF segments with references to generated glossary entry ids. It is possible to override the default behavior.
        Parameters:
        xliffSegment - XLIFF segment where glossary entries annotation will be done
        glossaryAnnotation - glossary annotation for XLIFF segment
      • addGlossary

        protected void addGlossary​(Unit xliffUnit,
                                   GlossaryAnnotation glossaryAnnotation)
        Method which converts OKAPI glossary entries to XLIFF format and adds them to XLIFF glossary element. It is possible to override the default behaviour.
        Parameters:
        xliffUnit - XLIFF unit
        glossaryAnnotation - okapi glossary annotation taken from source segment