writer2latex.latex.i18n

Class I18n

public class I18n extends Object

I18n.java This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License version 2.1, as published by the Free Software Foundation. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Copyright: 2002-2007 by Henrik Just All Rights Reserved. Version 0.5 (2007-07-24)
Field Summary
static intANY_ENC
static intASCII
static intCP1250
static intCP1251
static intISO_8859_7
static intKOI8_R
static intLATIN1
static intLATIN2
static intLGR_ENC
static intOT1_ENC
static intT1_ENC
static intT2A_ENC
static intT3_ENC
static intUTF8
Constructor Summary
I18n(OfficeReader ofr, Config config, ConverterPalette palette)
I18n(String sSymbols)
Method Summary
voidappendDeclarations(LaTeXDocumentPortion pack, LaTeXDocumentPortion decl)
voidapplyLanguage(StyleWithProperties style, boolean bDecl, boolean bInherit, BeforeAfter ba)

Apply language.

Stringconvert(char c, boolean bMathMode, String sLang)
Stringconvert(String s, boolean bMathMode, String sLang)
booleancyrillic()
static StringgetBabelLanguage(String sLanguage)
intgetCharCount()
static intgetFontenc(int nFontencs)
static intgetFontenc(String sLang)
static StringgetFontencCs(int nFontenc)
StringgetMajorityLanguage()
booleangreek()
booleanpolytonicGreek()
voidpopSpecialTable()
voidpushSpecialTable(String sName)
static intreadFontencs(String sFontencs)
static intreadInputenc(String sInputenc)
voidsetDefaultLanguage(String sDefaultLang)
static booleansupportsFontenc(int nFontencs, int nFontenc)
static StringwriteFontenc(int nFontenc)
static StringwriteInputenc(int nInputenc)
static StringwriteJavaEncoding(int nInputenc)

Field Detail

ANY_ENC

public static final int ANY_ENC

ASCII

public static final int ASCII

CP1250

public static final int CP1250

CP1251

public static final int CP1251

ISO_8859_7

public static final int ISO_8859_7

KOI8_R

public static final int KOI8_R

LATIN1

public static final int LATIN1

LATIN2

public static final int LATIN2

LGR_ENC

public static final int LGR_ENC

OT1_ENC

public static final int OT1_ENC

T1_ENC

public static final int T1_ENC

T2A_ENC

public static final int T2A_ENC

T3_ENC

public static final int T3_ENC

UTF8

public static final int UTF8

Constructor Detail

I18n

public I18n(OfficeReader ofr, Config config, ConverterPalette palette)

I18n

public I18n(String sSymbols)

Method Detail

appendDeclarations

public void appendDeclarations(LaTeXDocumentPortion pack, LaTeXDocumentPortion decl)

applyLanguage

public void applyLanguage(StyleWithProperties style, boolean bDecl, boolean bInherit, BeforeAfter ba)

Apply language.

Parameters: style the OOo style to read attributesfrom bDecl true if declaration form is required bInherit true if inherited properties should be used ba the BeforeAfter to add LaTeX code to.

convert

public String convert(char c, boolean bMathMode, String sLang)

convert

public String convert(String s, boolean bMathMode, String sLang)

cyrillic

public boolean cyrillic()

getBabelLanguage

public static final String getBabelLanguage(String sLanguage)

getCharCount

public int getCharCount()

getFontenc

public static final int getFontenc(int nFontencs)

getFontenc

public static final int getFontenc(String sLang)

getFontencCs

public static final String getFontencCs(int nFontenc)

getMajorityLanguage

public String getMajorityLanguage()

greek

public boolean greek()

polytonicGreek

public boolean polytonicGreek()

popSpecialTable

public void popSpecialTable()

pushSpecialTable

public void pushSpecialTable(String sName)

readFontencs

public static final int readFontencs(String sFontencs)

readInputenc

public static final int readInputenc(String sInputenc)

setDefaultLanguage

public void setDefaultLanguage(String sDefaultLang)

supportsFontenc

public static final boolean supportsFontenc(int nFontencs, int nFontenc)

writeFontenc

public static final String writeFontenc(int nFontenc)

writeInputenc

public static final String writeInputenc(int nInputenc)

writeJavaEncoding

public static final String writeJavaEncoding(int nInputenc)