#98796#remove thai word breakiterator, let it fallback to ICU implementation

This commit is contained in:
Karl Hong 2002-05-02 20:43:34 +00:00
parent a3d41042ff
commit 2a72fabd29
3 changed files with 24 additions and 55 deletions

View file

@ -2,9 +2,9 @@
*
* $RCSfile: breakiterator_ctl.cxx,v $
*
* $Revision: 1.3 $
* $Revision: 1.4 $
*
* last change: $Author: khong $ $Date: 2002-04-16 00:05:32 $
* last change: $Author: khong $ $Date: 2002-05-02 21:43:33 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@ -154,4 +154,19 @@ void SAL_CALL BreakIterator_CTL::makeIndex(const OUString& text, sal_Int32 pos)
throw RuntimeException();
}
/*
LineBreakResults SAL_CALL BreakIterator_ctl::getLineBreak(
const OUString& Text, sal_Int32 nStartPos,
const lang::Locale& rLocale, sal_Int32 nMinBreakPos,
const LineBreakHyphenationOptions& hOptions,
const LineBreakUserOptions& bOptions ) throw(RuntimeException)
{
LineBreakResults result = BreakIterator_Unicode::getLineBreak(Text, nStartPos,
rLocale, nMinBreakPos, hOptions, bOptions )
makeIndex(Text, nStartPos);
result.breakIndex = previousCellIndex[ result.breakIndex ];
return result;
}
*/
} } } }

View file

@ -2,9 +2,9 @@
*
* $RCSfile: breakiterator_th.cxx,v $
*
* $Revision: 1.2 $
* $Revision: 1.3 $
*
* last change: $Author: er $ $Date: 2002-03-26 16:55:00 $
* last change: $Author: khong $ $Date: 2002-05-02 21:43:33 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@ -75,39 +75,11 @@ namespace com { namespace sun { namespace star { namespace i18n {
// ----------------------------------------------------;
BreakIterator_th::BreakIterator_th()
{
dict = new xdictionary("th");
cBreakIterator = "com.sun.star.i18n.BreakIterator_th";
dict->setCellBoundary(nextCellIndex);
}
BreakIterator_th::~BreakIterator_th()
{
delete dict;
}
Boundary SAL_CALL
BreakIterator_th::previousWord(const OUString& text, sal_Int32 anyPos,
const lang::Locale& nLocale, sal_Int16 wordType) throw(RuntimeException)
{
makeIndex(text, anyPos);
return dict->previousWord(text.getStr(), anyPos, text.getLength());
}
Boundary SAL_CALL
BreakIterator_th::nextWord(const OUString& text, sal_Int32 anyPos,
const lang::Locale& nLocale, sal_Int16 wordType) throw(RuntimeException)
{
makeIndex(text, anyPos);
return dict->nextWord(text.getStr(), anyPos, text.getLength());
}
Boundary SAL_CALL
BreakIterator_th::getWordBoundary( const OUString& text, sal_Int32 anyPos,
const lang::Locale& nLocale, sal_Int16 wordType, sal_Bool bDirection )
throw(RuntimeException)
{
makeIndex(text, anyPos);
return dict->getWordBoundary(text.getStr(), anyPos, text.getLength(), bDirection);
}
#define SARA_AM 0x0E33

View file

@ -2,9 +2,9 @@
#*
#* $RCSfile: makefile.mk,v $
#*
#* $Revision: 1.1 $
#* $Revision: 1.2 $
#*
#* last change: $Author: bustamam $ $Date: 2002-03-26 06:28:32 $
#* last change: $Author: khong $ $Date: 2002-05-02 21:43:34 $
#*
#* The Contents of this file are made available subject to the terms of
#* either of the following licenses
@ -65,32 +65,19 @@ SHL1OBJS= \
LIB1TARGET= $(SLB)$/$(SHL1TARGET).lib
LIB1OBJFILES=$(SHL1OBJS)
# Thai dictionary
SHL2TARGET=dict_th
# Chinese dictionary
SHL2TARGET=dict_zh
SHL2IMPLIB= i$(SHL2TARGET)
DEF2DEPN= $(MISC)$/$(SHL2TARGET).flt
SHL2DEF= $(MISC)$/$(SHL2TARGET).def
DEF2NAME= $(SHL2TARGET)
DEFLIB2NAME= $(SHL2TARGET)
SHL2OBJS= \
$(SLO)$/dict_th.obj
$(SLO)$/dict_zh.obj
LIB2TARGET= $(SLB)$/$(SHL2TARGET).lib
LIB2OBJFILES=$(SHL2OBJS)
# Chinese dictionary
SHL3TARGET=dict_zh
SHL3IMPLIB= i$(SHL3TARGET)
DEF3DEPN= $(MISC)$/$(SHL3TARGET).flt
SHL3DEF= $(MISC)$/$(SHL3TARGET).def
DEF3NAME= $(SHL3TARGET)
DEFLIB3NAME= $(SHL3TARGET)
SHL3OBJS= \
$(SLO)$/dict_zh.obj
LIB3TARGET= $(SLB)$/$(SHL3TARGET).lib
LIB3OBJFILES=$(SHL3OBJS)
# --- Targets ------------------------------------------------------
.INCLUDE : target.mk
@ -106,8 +93,3 @@ $(MISC)$/$(SHL2TARGET).flt: makefile.mk
@echo ------------------------------
@echo Making: $@
@echo Provider>> $@
$(MISC)$/$(SHL3TARGET).flt: makefile.mk
@echo ------------------------------
@echo Making: $@
@echo Provider>> $@