public class Okp2X2Converter extends Object
| Constructor and Description |
|---|
Okp2X2Converter(boolean originalWasX2,
LocaleId trgLoc) |
| Modifier and Type | Method and Description |
|---|---|
net.sf.okapi.lib.xliff2.core.Unit |
convert(ITextUnit tu) |
static void |
convertNotesFromXliff12ToXliff2(XLIFFNoteAnnotation xl12Notes,
net.sf.okapi.lib.xliff2.core.IWithNotes xl2NotesAware)
Converts the objects handling Notes from XLIFF 1.2 based class to XLIFF 2 based class.
|
public Okp2X2Converter(boolean originalWasX2,
LocaleId trgLoc)
public net.sf.okapi.lib.xliff2.core.Unit convert(ITextUnit tu)
public static void convertNotesFromXliff12ToXliff2(XLIFFNoteAnnotation xl12Notes, net.sf.okapi.lib.xliff2.core.IWithNotes xl2NotesAware)
| XLIFF 1.2 | XLIFF 2 | Value Mapping Rules |
| annotates | appliesTo | identical if not "general"; empty if "general" |
| from | category | identical |
| priority | identical |
xl12Notes - The XLIFF 1.2's way to keep multiple notes. (Input)xl2NotesAware - The XLIFF 2's way to keep multiple notes. (Output)Copyright © 2019. All rights reserved.