UnicodeEmitter, from the same
conversion table.
Differences from JabRef's historical UnicodeToLatexFormatter: characters without a mapping
are kept as-is instead of being dropped, command emissions are wrapped in a single brace
group ({\aa}, not {{\aa}}), and runs of Unicode super-/subscript characters merge into
one \textsuperscript{...}/\textsubscript{...} so the conversion round-trips
(JabRef issue #3644).
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static String | |
| public static String | |
| private static int | countMappedMarks(int[] codePoints, int start)
Number of consecutive codepoints from |
| private static int | |
| private static String |
| UnicodeToLatexConverter | back to summary |
|---|---|
| private UnicodeToLatexConverter() | |
| accentForm | back to summary |
|---|---|
| private static String accentForm(int[] codePoints, int baseIndex, int marks) | |
| convert | back to summary |
|---|---|
| public static String convert(String text) | |
| countMappedMarks | back to summary |
|---|---|
| private static int countMappedMarks(int[] codePoints, int start) Number of consecutive codepoints from | |
| emitScriptRun | back to summary |
|---|---|
| private static int emitScriptRun(int[] codePoints, int start, StringBuilder out, boolean superscript) | |
| wrap | back to summary |
|---|---|
| private static String wrap(String latex, int codePoint) | |