writer2latex.latex.i18n

Class I18n


public class I18n
extends java.lang.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 int
ANY_ENC
static int
ASCII
static int
CP1250
static int
CP1251
static int
ISO_8859_7
static int
KOI8_R
static int
LATIN1
static int
LATIN2
static int
LGR_ENC
static int
OT1_ENC
static int
T1_ENC
static int
T2A_ENC
static int
T3_ENC
static int
UTF8

Constructor Summary

I18n(String sSymbols)
I18n(OfficeReader ofr, Config config, ConverterPalette palette)

Method Summary

void
appendDeclarations(LaTeXDocumentPortion pack, LaTeXDocumentPortion decl)
void
applyLanguage(StyleWithProperties style, boolean bDecl, boolean bInherit, BeforeAfter ba)
Apply language.
String
convert(String s, boolean bMathMode, String sLang)
String
convert(char c, boolean bMathMode, String sLang)
boolean
cyrillic()
static String
getBabelLanguage(String sLanguage)
int
getCharCount()
static int
getFontenc(String sLang)
static int
getFontenc(int nFontencs)
static String
getFontencCs(int nFontenc)
String
getMajorityLanguage()
boolean
greek()
boolean
polytonicGreek()
void
popSpecialTable()
void
pushSpecialTable(String sName)
static int
readFontencs(String sFontencs)
static int
readInputenc(String sInputenc)
void
setDefaultLanguage(String sDefaultLang)
static boolean
supportsFontenc(int nFontencs, int nFontenc)
static String
writeFontenc(int nFontenc)
static String
writeInputenc(int nInputenc)
static String
writeJavaEncoding(int nInputenc)

Field Details

ANY_ENC

public static final int ANY_ENC
Field Value:
31

ASCII

public static final int ASCII
Field Value:
0

CP1250

public static final int CP1250
Field Value:
4

CP1251

public static final int CP1251
Field Value:
5

ISO_8859_7

public static final int ISO_8859_7
Field Value:
3

KOI8_R

public static final int KOI8_R
Field Value:
6

LATIN1

public static final int LATIN1
Field Value:
1

LATIN2

public static final int LATIN2
Field Value:
2

LGR_ENC

public static final int LGR_ENC
Field Value:
16

OT1_ENC

public static final int OT1_ENC
Field Value:
1

T1_ENC

public static final int T1_ENC
Field Value:
2

T2A_ENC

public static final int T2A_ENC
Field Value:
4

T3_ENC

public static final int T3_ENC
Field Value:
8

UTF8

public static final int UTF8
Field Value:
7

Constructor Details

I18n

public I18n(String sSymbols)

I18n

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

Method Details

appendDeclarations

public void appendDeclarations(LaTeXDocumentPortion pack,
                               LaTeXDocumentPortion decl)

applyLanguage

public void applyLanguage(StyleWithProperties style,
                          boolean bDecl,
                          boolean bInherit,
                          BeforeAfter ba)
Apply language.
Parameters:

convert

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

convert

public String convert(char c,
                      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(String sLang)

getFontenc

public static final int getFontenc(int nFontencs)

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)