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, 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 void
appendDeclarations(LaTeXDocumentPortion pack, LaTeXDocumentPortion decl)
Add declarations to the preamble to load the required packagesvoid
applyLanguage(StyleWithProperties style, boolean bDecl, boolean bInherit, BeforeAfter ba)
Apply a language languagejava.lang.String
convert(java.lang.String s, boolean bMathMode, java.lang.String sLang)
Convert a string of characters into LaTeXvoid
popSpecialTable()
Pop a font from the font stackvoid
pushSpecialTable(java.lang.String sName)
Push a font to the font stack
-
-
-
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:
appendDeclarations
in classI18n
- Parameters:
pack
- usepackage declarationsdecl
- other declarations
-
applyLanguage
public void applyLanguage(StyleWithProperties style, boolean bDecl, boolean bInherit, BeforeAfter ba)
Apply a language language- Specified by:
applyLanguage
in classI18n
- Parameters:
style
- the OOo style to read attributesfrombDecl
- true if declaration form is requiredbInherit
- true if inherited properties should be usedba
- theBeforeAfter
to add LaTeX code to.
-
pushSpecialTable
public void pushSpecialTable(java.lang.String sName)
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
public java.lang.String convert(java.lang.String s, boolean bMathMode, java.lang.String sLang)
Convert a string of characters into LaTeX
-
-