Package writer2latex.latex.i18n
Class XeTeXI18n
java.lang.Object
writer2latex.latex.i18n.I18n
writer2latex.latex.i18n.XeTeXI18n
This class takes care of i18n in XeLaTeX
-
Field Summary
Fields inherited from class writer2latex.latex.i18n.I18n
bAlwaysUseDefaultLang, bGreekMath, config, languages, ofr, sDefaultCountry, sDefaultCTLCountry, sDefaultCTLLanguage, sDefaultLanguage, stringReplace
-
Constructor Summary
ConstructorsConstructorDescriptionXeTeXI18n
(OfficeReader ofr, LaTeXConfig config, ConverterPalette palette) Construct a new XeTeXI18n as ConverterHelper -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add declarations to the preamble to load the required packagesvoid
applyLanguage
(StyleWithProperties style, boolean bDecl, boolean bInherit, BeforeAfter ba) Apply a languageConvert a string of characters into LaTeXvoid
Pop a font from the font stackvoid
pushSpecialTable
(String sName) Push a font to the font stackMethods inherited from class writer2latex.latex.i18n.I18n
getDefaultCountry, getDefaultLanguage
-
Constructor Details
-
XeTeXI18n
Construct a new XeTeXI18n as ConverterHelper- Parameters:
ofr
- the OfficeReader to get language information fromconfig
- the configuration which determines the symbols to usepalette
- the ConverterPalette (unused)
-
-
Method Details
-
appendDeclarations
Add declarations to the preamble to load the required packages- Specified by:
appendDeclarations
in classI18n
- Parameters:
pack
- usepackage declarationsdecl
- other declarations
-
applyLanguage
public void applyLanguage(StyleWithProperties style, boolean bDecl, boolean bInherit, BeforeAfter ba) Apply a language- Specified by:
applyLanguage
in classI18n
- Parameters:
style
- the OOo style to read attributes frombDecl
- true if declaration form is requiredbInherit
- true if inherited properties should be usedba
- theBeforeAfter
to add LaTeX code to.
-
pushSpecialTable
Push a font to the font stack- Specified by:
pushSpecialTable
in classI18n
- Parameters:
sName
- the name of the font
-
popSpecialTable
public void popSpecialTable()Pop a font from the font stack- Specified by:
popSpecialTable
in classI18n
-
convert
Convert a string of characters into LaTeX
-