\textsuperscript{..}, \textsubscript{..}, and math ^/_
are converted to Unicode super-/subscript characters. Disable to keep them verbatim so
that a later Unicode→LaTeX conversion can round-trip
(see JabRef issue 3644)
$...$ / \[...\] spans are handled
defaults() and derive variants with the
with* methods.
| Modifier and Type | Class and Description |
|---|---|
| public static enum | ConversionOptions.
Handling of math spans. |
| public static enum | ConversionOptions.
Handling of commands that neither the parser's vocabulary nor the conversion table covers. |
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | convertScripts
Record Component accessed by convertScripts(). whether\textsuperscript{..}, \textsubscript{..}, and math ^/_
are converted to Unicode super-/subscript characters.
|
| private final ConversionOptions. | |
| private final ConversionOptions. | unknownCommandPolicy
Record Component accessed by unknownCommandPolicy(). how commands absent from the conversion table are handled |
| Access | Constructor and Description |
|---|---|
| public | ConversionOptions(boolean convertScripts, ConversionOptions.
|
| Modifier and Type | Method and Description |
|---|---|
| public boolean | convertScripts()
Record Component getter of convertScripts.
Record Component
whether |
| public static ConversionOptions | |
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public final int | |
| public ConversionOptions. | |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| public ConversionOptions. | unknownCommandPolicy()
Record Component getter of unknownCommandPolicy.
Record Component how commands absent from the conversion table are handled |
| public ConversionOptions | |
| public ConversionOptions | |
| public ConversionOptions |
| convertScripts | back to summary |
|---|---|
| private final boolean convertScripts Record Component accessed by convertScripts(). whether | |
| mathMode | back to summary |
|---|---|
| private final ConversionOptions. Record Component accessed by mathMode(). how | |
| unknownCommandPolicy | back to summary |
|---|---|
| private final ConversionOptions. Record Component accessed by unknownCommandPolicy(). how commands absent from the conversion table are handled | |
| ConversionOptions | back to summary |
|---|---|
| public ConversionOptions(boolean convertScripts, ConversionOptions. | |
| convertScripts | back to summary |
|---|---|
| public boolean convertScripts() Record Component getter of convertScripts.
| |
| defaults | back to summary |
|---|---|
| public static ConversionOptions defaults()
| |
| equals | back to summary |
|---|---|
| public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
| |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of | |
| mathMode | back to summary |
|---|---|
| public ConversionOptions. Record Component getter of mathMode.
| |
| toString | back to summary |
|---|---|
| public final String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves. | |
| unknownCommandPolicy | back to summary |
|---|---|
| public ConversionOptions. Record Component getter of unknownCommandPolicy.
| |
| withConvertScripts | back to summary |
|---|---|
| public ConversionOptions withConvertScripts(boolean convertScripts) | |
| withMathMode | back to summary |
|---|---|
| public ConversionOptions withMathMode(ConversionOptions. | |
| withUnknownCommandPolicy | back to summary |
|---|---|
| public ConversionOptions withUnknownCommandPolicy(ConversionOptions. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final ConversionOptions. | PASSTHROUGH
Math spans are emitted verbatim, delimiters included, for a downstream math renderer |
| public static final ConversionOptions. | UNICODE
Best-effort conversion of math content to Unicode ( |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ConversionOptions. | |
| public static ConversionOptions. |
| PASSTHROUGH | back to summary |
|---|---|
| public static final ConversionOptions. Math spans are emitted verbatim, delimiters included, for a downstream math renderer | |
| UNICODE | back to summary |
|---|---|
| public static final ConversionOptions. Best-effort conversion of math content to Unicode ( | |
| MathMode | back to summary |
|---|---|
| private MathMode() | |
| valueOf | back to summary |
|---|---|
| public static ConversionOptions. | |
| values | back to summary |
|---|---|
| public static ConversionOptions. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final ConversionOptions. | DROP
Drop the command including its arguments |
| public static final ConversionOptions. | KEEP_COMMAND
Emit the command and its brace arguments exactly as written ( |
| public static final ConversionOptions. | UNWRAP
Drop the command but keep its argument content ( |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ConversionOptions. | |
| public static ConversionOptions. |
| DROP | back to summary |
|---|---|
| public static final ConversionOptions. Drop the command including its arguments | |
| KEEP_COMMAND | back to summary |
|---|---|
| public static final ConversionOptions. Emit the command and its brace arguments exactly as written ( | |
| UNWRAP | back to summary |
|---|---|
| public static final ConversionOptions. Drop the command but keep its argument content ( | |
| UnknownCommandPolicy | back to summary |
|---|---|
| private UnknownCommandPolicy() | |
| valueOf | back to summary |
|---|---|
| public static ConversionOptions. | |
| values | back to summary |
|---|---|
| public static ConversionOptions. | |