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 TypeMethodDescriptionvoidAdd declarations to the preamble to load the required packagesvoidapplyLanguage(StyleWithProperties style, boolean bDecl, boolean bInherit, BeforeAfter ba) Apply a languageConvert a string of characters into LaTeXvoidPop a font from the font stackvoidpushSpecialTable(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:
appendDeclarationsin classI18n- Parameters:
pack- usepackage declarationsdecl- other declarations
-
applyLanguage
public void applyLanguage(StyleWithProperties style, boolean bDecl, boolean bInherit, BeforeAfter ba) Apply a language- Specified by:
applyLanguagein classI18n- Parameters:
style- the OOo style to read attributes frombDecl- true if declaration form is requiredbInherit- true if inherited properties should be usedba- theBeforeAfterto add LaTeX code to.
-
pushSpecialTable
Push a font to the font stack- Specified by:
pushSpecialTablein classI18n- Parameters:
sName- the name of the font
-
popSpecialTable
public void popSpecialTable()Pop a font from the font stack- Specified by:
popSpecialTablein classI18n
-
convert
Convert a string of characters into LaTeX
-