writer2latex.latex.i18n
Class XeTeXI18n
This class takes care of i18n in XeLaTeX
XeTeXI18n
public XeTeXI18n(OfficeReader ofr,
LaTeXConfig config,
ConverterPalette palette)
Construct a new XeTeXI18n as ConverterHelper
ofr
- the OfficeReader to get language information fromconfig
- the configuration which determines the symbols to usepalette
- the ConverterPalette (unused)
applyLanguage
public void applyLanguage(StyleWithProperties style,
boolean bDecl,
boolean bInherit,
BeforeAfter ba)
Apply a language language
- applyLanguage in interface I18n
style
- the OOo style to read attributesfrombDecl
- true if declaration form is requiredbInherit
- true if inherited properties should be usedba
- the BeforeAfter
to add LaTeX code to.
convert
public String convert(String s,
boolean bMathMode,
String sLang)
Convert a string of characters into LaTeX
- convert in interface I18n
s
- the source stringbMathMode
- true if the string should be rendered in math modesLang
- the iso language of the string
popSpecialTable
public void popSpecialTable()
Pop a font from the font stack
- popSpecialTable in interface I18n
pushSpecialTable
public void pushSpecialTable(String sName)
Push a font to the font stack
- pushSpecialTable in interface I18n
sName
- the name of the font