Package writer2latex.latex.i18n
Class XeTeXI18n
- java.lang.Object
-
- writer2latex.latex.i18n.I18n
-
- writer2latex.latex.i18n.XeTeXI18n
-
public class XeTeXI18n extends I18n
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
Constructors Constructor Description XeTeXI18n(OfficeReader ofr, LaTeXConfig config, ConverterPalette palette)Construct a new XeTeXI18n as ConverterHelper
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappendDeclarations(LaTeXDocumentPortion pack, LaTeXDocumentPortion decl)Add declarations to the preamble to load the required packagesvoidapplyLanguage(StyleWithProperties style, boolean bDecl, boolean bInherit, BeforeAfter ba)Apply a languagejava.lang.Stringconvert(java.lang.String s, boolean bMathMode, java.lang.String sLang)Convert a string of characters into LaTeXvoidpopSpecialTable()Pop a font from the font stackvoidpushSpecialTable(java.lang.String sName)Push a font to the font stack-
Methods inherited from class writer2latex.latex.i18n.I18n
getDefaultCountry, getDefaultLanguage
-
-
-
-
Constructor Detail
-
XeTeXI18n
public XeTeXI18n(OfficeReader ofr, LaTeXConfig config, ConverterPalette palette)
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 Detail
-
appendDeclarations
public void appendDeclarations(LaTeXDocumentPortion pack, LaTeXDocumentPortion decl)
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
public void pushSpecialTable(java.lang.String sName)
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
public java.lang.String convert(java.lang.String s, boolean bMathMode, java.lang.String sLang)Convert a string of characters into LaTeX
-
-