Hubert Figuiere wrote:
>
> According to ha shao <[EMAIL PROTECTED]>:
> >
> > Patch to add codepage items for Chinese. Really useful?
>
> I think it is.
>
> I'll add it anyway.
It is useful. They should've been in the second
version of my patch. I also found a few more for
Mac Roman, Korean Johab, and OEM which I sent as
a separate patch. Here is that patch again in
case it was missed.
Andrew.
--
http://linguaphile.sourceforge.net
Index: src/wp/impexp//xp/ie_imp_RTF.cpp
===================================================================
RCS file: /cvsroot/abi/src/wp/impexp/xp/ie_imp_RTF.cpp,v
retrieving revision 1.63
diff -u -r1.63 ie_imp_RTF.cpp
--- src/wp/impexp//xp/ie_imp_RTF.cpp 2001/05/21 14:30:08 1.63
+++ src/wp/impexp//xp/ie_imp_RTF.cpp 2001/05/21 16:00:21
@@ -236,12 +236,18 @@
UT_DEBUGMSG(("RTF Font charset 'Symbol' not
implemented\n"));
UT_ASSERT(UT_NOT_IMPLEMENTED);
break;
+ case 77: // Mac Roman - as in OpenOffice
+ m_szEncoding = "MACINTOSH";
+ break;
case 128: // SHIFTJIS_CHARSET
m_szEncoding = "CP932";
break;
case 129: // Hangul - undocumented?
m_szEncoding = "CP949";
break;
+ case 130: // Johab - as in OpenOffice
+ m_szEncoding = "CP1361";
+ break;
case 134: // Chinese GB - undocumented?
m_szEncoding = "CP936";
break;
@@ -295,10 +301,8 @@
UT_DEBUGMSG(("RTF Font charset 'PC437'??\n"));
UT_ASSERT(UT_NOT_IMPLEMENTED);
break;
- case 255: // OEM_CHARSET
- // TODO Can iconv do this?
- UT_DEBUGMSG(("RTF Font charset 'OEM'??\n"));
- UT_ASSERT(UT_NOT_IMPLEMENTED);
+ case 255: // OEM_CHARSET - IBM 850 as in OpenOffice
+ m_szEncoding = "CP850";
break;
default:
UT_DEBUGMSG(("RTF Font charset unknown: %d\n",
m_charSet));