public class ClassicI18n extends I18n
Modifier and Type | Field and Description |
---|---|
static int |
ASCII |
static int |
CP1250 |
static int |
CP1251 |
static int |
ISO_8859_7 |
static int |
KOI8_R |
static int |
LATIN1 |
static int |
LATIN2 |
static int |
UTF8 |
bAlwaysUseDefaultLang, bGreekMath, config, languages, ofr, sDefaultCountry, sDefaultCTLCountry, sDefaultCTLLanguage, sDefaultLanguage, stringReplace
Constructor and Description |
---|
ClassicI18n(LaTeXConfig config)
Construct a new I18n for general use
|
ClassicI18n(OfficeReader ofr,
LaTeXConfig config,
ConverterPalette palette)
Construct a new ClassicI18n as ConverterHelper
|
Modifier and Type | Method and Description |
---|---|
void |
appendDeclarations(LaTeXDocumentPortion pack,
LaTeXDocumentPortion decl)
Add declarations to the preamble to load the required packages
|
void |
applyLanguage(StyleWithProperties style,
boolean bDecl,
boolean bInherit,
BeforeAfter ba)
Apply a language language
|
java.lang.String |
convert(java.lang.String s,
boolean bMathMode,
java.lang.String sLang)
Convert a string of characters into LaTeX
|
int |
getCharCount()
Get the number of characters defined in the current table
(for informational purposes only)
|
void |
popSpecialTable()
Pop a font from the font stack
|
void |
pushSpecialTable(java.lang.String sName)
Push a font to the font stack
|
static int |
readFontencs(java.lang.String sFontencs) |
static int |
readInputenc(java.lang.String sInputenc) |
static java.lang.String |
writeInputenc(int nInputenc) |
static java.lang.String |
writeJavaEncoding(int nInputenc) |
getDefaultCountry, getDefaultLanguage
public static final int ASCII
public static final int LATIN1
public static final int LATIN2
public static final int ISO_8859_7
public static final int CP1250
public static final int CP1251
public static final int KOI8_R
public static final int UTF8
public ClassicI18n(OfficeReader ofr, LaTeXConfig config, ConverterPalette palette)
ofr
- the OfficeReader to get language information fromconfig
- the configuration which determines the symbols to usepalette
- the ConverterPalette (unused)public ClassicI18n(LaTeXConfig config)
config
- the configuration which determines the symbols to usepublic static final int readInputenc(java.lang.String sInputenc)
public static final java.lang.String writeInputenc(int nInputenc)
public static final java.lang.String writeJavaEncoding(int nInputenc)
public static final int readFontencs(java.lang.String sFontencs)
public void appendDeclarations(LaTeXDocumentPortion pack, LaTeXDocumentPortion decl)
appendDeclarations
in class I18n
pack
- usepackage declarationsdecl
- other declarationspublic void applyLanguage(StyleWithProperties style, boolean bDecl, boolean bInherit, BeforeAfter ba)
applyLanguage
in class I18n
style
- the OOo style to read attributes frombDecl
- true if declaration form is requiredbInherit
- true if inherited properties should be usedba
- the BeforeAfter
to add LaTeX code to.public void pushSpecialTable(java.lang.String sName)
pushSpecialTable
in class I18n
sName
- the name of the fontpublic void popSpecialTable()
popSpecialTable
in class I18n
public int getCharCount()
public java.lang.String convert(java.lang.String s, boolean bMathMode, java.lang.String sLang)