Re: MSWord DOC


Subject: Re: MSWord DOC
From: Vlad Harchev (hvv@hippo.ru)
Date: Sat Nov 11 2000 - 02:54:55 CST


On Sat, 11 Nov 2000, Chih-Wei Huang wrote:

 Hi,

 I attach a patch to fix this crash. Please tell me whether content is
imported properly now.
 I believe the crash happened because content of your BIG5/fonts.dir declared
fonts with CJK names different from ones Word uses. This patch remaps
unknown CJK fonts to "helvetic" (of course, corresponding CJK font will be
used for them, not Helvetic for iso8859-1 that is shipped with AW).

> Here is a MSWord2K CJK doc.
> Unfortunately, AW crashed when I open it...
>
> ** ERROR **: file ut_string.cpp: line 112 (char * UT_strdup(const char
> *)): assertion failed: (szSource)
> aborting...
> Aborted
>
> BTW, now I can open MSWord exported RTF with your p4 patch,
> and the content is correct. :)

 This is expected behaviour :)

 Are there any problems with CJK support in AW? I guess the only thing that
wasn't test is latex export. Function XAP_EncodingManager::getTexPrologue()
should return a piece of text to be inserted at the beginging of exported
latex file, so it should be taught what to return for various CJK locales.

 BTW, thank you for testing .doc import - I was going to ask you CJK guys to
test it Nth time this week.
 
> --
> ~ Chih-Wei Huang (cwhuang)
> 'v' E-Mail : cwhuang@linux.org.tw
> // \\ CLDP Project : http://www.linux.org.tw/CLDP/ (Coordinator)
> /( )\ CLE Project : http://cle.linux.org.tw/CLE/ (Developer)
> ^`~'^ HomePage : http://www.cwhuang.idv.tw/

 Best regards,
  -Vlad

--- ie_imp_MsWord_97.cpp-was Sat Nov 11 12:44:20 2000
+++ ie_imp_MsWord_97.cpp Sat Nov 11 12:40:08 2000
@@ -629,7 +629,7 @@
                            else
                                  {
                                    FREEP(fname);
- fname=UT_strdup(f);
+ fname=UT_strdup(f ? f : "helvetic");
                                  }
                       }
                    }



This archive was generated by hypermail 2b25 : Sat Nov 11 2000 - 03:14:16 CST