summaryrefslogtreecommitdiff
path: root/transex3/source
diff options
context:
space:
mode:
authorNils Fuhrmann <nf@openoffice.org>2002-08-15 10:13:17 +0000
committerNils Fuhrmann <nf@openoffice.org>2002-08-15 10:13:17 +0000
commitecedeb41445831f51c154cf8049bf9524f53395b (patch)
tree178888dcfadf0046972115de1ffd34b52f53d585 /transex3/source
parentdd7bf040baa5fef0744dcc73f51e6207426729ae (diff)
#102341# autoconversion of hw katakana to fw katakana to solve problems with unconverted files
Diffstat (limited to 'transex3/source')
-rw-r--r--transex3/source/makefile.mk20
-rw-r--r--transex3/source/merge.cxx11
2 files changed, 19 insertions, 12 deletions
diff --git a/transex3/source/makefile.mk b/transex3/source/makefile.mk
index 1c5fdc36a469..41ceafe4d036 100644
--- a/transex3/source/makefile.mk
+++ b/transex3/source/makefile.mk
@@ -2,9 +2,9 @@
#
# $RCSfile: makefile.mk,v $
#
-# $Revision: 1.24 $
+# $Revision: 1.25 $
#
-# last change: $Author: nf $ $Date: 2002-05-07 09:31:20 $
+# last change: $Author: nf $ $Date: 2002-08-15 11:13:16 $
#
# The Contents of this file are made available subject to the terms of
# either of the following licenses
@@ -95,8 +95,8 @@ LIB1FILES= $(LB)$/transex3.lib
# extractor and merger for *.src and *.hrc
APP1TARGET= $(TARGET)
APP1STACK= 16000
-APP1OBJS= $(OBJ)$/src_yy.obj
-APP1STDLIBS+=$(BTSTRPLIB) $(STATIC_LIBS)
+APP1OBJS= $(OBJ)$/src_yy.obj
+APP1STDLIBS+=$(BTSTRPLIB) $(STATIC_LIBS)
APP1LIBS+= $(LB)$/$(TARGET).lib
APP1DEPN= $(OBJ)$/src_yy.obj $(LB)$/$(TARGET).lib
@@ -108,7 +108,7 @@ APP1DEPN= $(OBJ)$/src_yy.obj $(LB)$/$(TARGET).lib
# extractor and merger for *.lng and *.lng
APP3TARGET= lngex
APP3STACK= 16000
-APP3OBJS= $(OBJ)$/lngmerge.obj $(OBJ)$/merge.obj $(OBJ)$/export2.obj $(OBJ)$/lngex.obj $(OBJ)$/utf8conv.obj
+APP3OBJS= $(OBJ)$/lngmerge.obj $(OBJ)$/hw2fw.obj $(OBJ)$/merge.obj $(OBJ)$/export2.obj $(OBJ)$/lngex.obj $(OBJ)$/utf8conv.obj
APP3STDLIBS=$(BTSTRPLIB) $(STATIC_LIBS)
# encoding converter for *.gsi
@@ -126,31 +126,31 @@ APP5STDLIBS=$(STATIC_LIBS)
# extractor and merger for *.cfg
APP6TARGET= cfgex
APP6STACK= 16000
-APP6OBJS= $(OBJ)$/cfgmerge.obj $(OBJ)$/cfg_yy.obj $(OBJ)$/merge.obj $(OBJ)$/export2.obj $(OBJ)$/utf8conv.obj
+APP6OBJS= $(OBJ)$/cfgmerge.obj $(OBJ)$/cfg_yy.obj $(OBJ)$/hw2fw.obj $(OBJ)$/merge.obj $(OBJ)$/export2.obj $(OBJ)$/utf8conv.obj
APP6STDLIBS=$(BTSTRPLIB) $(STATIC_LIBS)
# extractor and merger for *.xrm
APP7TARGET= xrmex
APP7STACK= 16000
-APP7OBJS= $(OBJ)$/xrmmerge.obj $(OBJ)$/xrm_yy.obj $(OBJ)$/merge.obj $(OBJ)$/export2.obj $(OBJ)$/utf8conv.obj
+APP7OBJS= $(OBJ)$/xrmmerge.obj $(OBJ)$/xrm_yy.obj $(OBJ)$/hw2fw.obj $(OBJ)$/merge.obj $(OBJ)$/export2.obj $(OBJ)$/utf8conv.obj
APP7STDLIBS=$(BTSTRPLIB) $(STATIC_LIBS)
#APP8TARGET= xgfconv
#APP8STACK= 16000
#APP8OBJS= $(OBJ)$/utf8conv.obj $(OBJ)$/xgfconv.obj $(OBJ)$/export2.obj
-#APP8STDLIBS=$(BTSTRPLIB) $(STATIC_LIBS)
+#APP8STDLIBS=$(BTSTRPLIB) $(STATIC_LIBS)
# encoding converter for text files
#APP9TARGET= txtconv
#APP9STACK= 16000
-#APP9OBJS= $(OBJ)$/utf8conv.obj $(OBJ)$/txtconv.obj $(OBJ)$/hw2fw.obj
+#APP9OBJS= $(OBJ)$/utf8conv.obj $(OBJ)$/txtconv.obj $(OBJ)$/hw2fw.obj
#APP9STDLIBS=$(STATIC_LIBS)
# localizer for l10n framework
APP9TARGET= localize
APP9STACK= 16000
APP9OBJS= $(OBJ)$/localize.obj $(OBJ)$/utf8conv.obj $(OBJ)$/srciter.obj $(OBJ)$/export2.obj
-APP9STDLIBS+=$(BTSTRPLIB) $(STATIC_LIBS)
+APP9STDLIBS+=$(BTSTRPLIB) $(STATIC_LIBS)
DEPOBJFILES=$(APP1OBJS) $(APP2OBJS) $(APP3OBJS) $(APP4OBJS) $(APP5OBJS) $(APP6OBJS) $(APP7OBJS) $(APP8OBJS) $(APP9OBJS)
diff --git a/transex3/source/merge.cxx b/transex3/source/merge.cxx
index 45549657d5e5..a60cd1f7c3bc 100644
--- a/transex3/source/merge.cxx
+++ b/transex3/source/merge.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: merge.cxx,v $
*
- * $Revision: 1.9 $
+ * $Revision: 1.10 $
*
- * last change: $Author: nf $ $Date: 2002-04-04 13:44:01 $
+ * last change: $Author: nf $ $Date: 2002-08-15 11:13:17 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -63,6 +63,8 @@
#include "export.hxx"
#include "utf8conv.hxx"
+extern void ConvertHalfwitdhToFullwidth( String& rString );
+
//
// class PFormEntrys
//
@@ -219,6 +221,11 @@ MergeDataFile::MergeDataFile( const ByteString &rFileName, BOOL bErrLog,
if ( bUTF8 )
sLine = UTF8Converter::ConvertFromUTF8( sLine, Export::GetCharSet( nLANG ));
+ if (( nLANG == JAPANESE ) && ( Export::GetCharSet( nLANG ) == RTL_TEXTENCODING_UTF8 )) {
+ String sSLine( sLine, RTL_TEXTENCODING_UTF8 );
+ ConvertHalfwitdhToFullwidth( sSLine );
+ sLine = ByteString( sSLine, RTL_TEXTENCODING_UTF8 );
+ }
sTEXT = sLine.GetToken( 6, '\t' );
sTEXT = sTEXT.Copy( 1 ); sTEXT.Erase( sTEXT.Len() - 1 );