Re: commit: i18n megapatch to AW


Subject: Re: commit: i18n megapatch to AW
From: Vlad Harchev (hvv@hippo.ru)
Date: Tue Oct 10 2000 - 03:52:12 CDT


On Tue, 10 Oct 2000, Martin Sevior wrote:

>
> Commit:
>
> Vlad's Russian megapatch along with Tom Brigg's fixes to enable the code
> to compile in Windows and merges by me to get things up to date.

 I'm very happy that this patch was integrated into official AW's source so
fast. My thanks to AbiWord Team and especially to Martin and Tom.

> This is an incrediable amount of work which finally allows the Unix
> version of abiword to use non-latin fonts. Hopefully we'll rapidly see
> Chinese, Japanese and Korean versions of Abiword and we can make use of
> our 16 bit internal representation of all text strings.

  In fact, multibyte characters won't work out of the box with AW wit hthis
patch - more hacking is needed. The megapatch makes AW ready for scripts with
single byte encodings (e.g. various based on cyrillic such as russian,
ukrainian, serbian, and not based on cyrillic - greek, vietnamesse and
probably some others). As for CJK - some additional tweaks are needed. The
major tweaks are needed to support CJK printing. As for other places - I think
only cut and paste to/from text will need to be tweaked (since current
EncodingManager assumes single byte symbols). As for importing/exporting RTF
and word - there are two paths: if word uses unicode (instead of various other
encodings for CJK) than no tweaks are needed. If it uses some other encoding -
additional tweaks would be required. I didn't add full support for CJK since
I'm not familiar with it.

> Vald, can you post step by step instructions on how a CKJ developer can
> add support for her Language?

 I think composing this description right now will take a lot of my time that
I'm lacking. So I suggest the following: let's find CJK developer first, and I
will describe him what to do and consult fully (I think that searching for CJK
developer will take some time :). But I repeat - rather big (30K) patch
(not counting translations of UI) will be required to bring AW to full support
of CJK scripts. So let's search for developer first. I think that a AbiWord
weekly news should include call for CJK developers, proclaiming that only
small amount of efforts is needed to add support for CJK scripts to AW. I hope
a lot of potential CJK developers read Linux Weekly News that reviews AW
weekly news.

> THINGS TO FIX. The columns dialog now looks weird in gtk because of the
> removal of the gtk_set_usize to the drawing area. I'll test the other
> dialogs too.

 Hmm, I'm sorry about this. As I remember, I didn't remove _set_usize on
drawing areas of other dialogs (the only other one with drawing area was font
dialog, but AFAIR I didn't remove _set_usize on it). As for columns dialog -
does it look that weird? :) Seems the "page" in preview slightly reduced its
width (tell me if it looks really ugly for you).
 
> Special thanks to Tom Briggs for downloading the tarball and doing the
> Windows fixes.
>
> Have fun with our significant new feature!
>
> Cheers
>
> Martin
>
> CVS:
> ----------------------------------------------------------------------
> CVS: Enter Log. Lines beginning with `CVS:' are removed automatically
> CVS:
> CVS: Committing in .
> CVS:
> CVS: Modified Files:
> CVS: af/ev/unix/ev_UnixKeyboard.cpp af/ev/xp/ev_EditBinding.cpp
> CVS: af/gr/xp/gr_Graphics.cpp af/util/xp/ut_string.cpp
> CVS: af/util/xp/ut_string.h af/xap/Makefile af/xap/unix/Makefile
> CVS: af/xap/unix/xap_UnixApp.cpp
> CVS: af/xap/unix/xap_UnixDlg_FontChooser.cpp
> CVS: af/xap/unix/xap_UnixDlg_Zoom.cpp af/xap/unix/xap_UnixFont.cpp
> CVS: af/xap/unix/xap_UnixFontManager.cpp
> CVS: af/xap/unix/xap_UnixPSGenerate.cpp
> CVS: af/xap/unix/xap_UnixToolbar_Icons.cpp af/xap/xp/Makefile
> CVS: af/xap/xp/xap_App.cpp af/xap/xp/xap_App.h
> CVS: af/xap/xp/xap_Strings.cpp other/spell/newMain.c
> CVS: pkg/common/unix/data/tbz_install.sh
> CVS: pkg/common/unix/data/tgz_install.sh
> CVS: pkg/common/unix/scripts/makewrapper.sh
> CVS: wp/ap/unix/ap_UnixApp.cpp wp/ap/unix/ap_UnixDialog_Columns.cpp
> CVS: wp/ap/unix/ap_UnixDialog_Insert_DateTime.cpp
> CVS: wp/ap/unix/ap_UnixPrefs.cpp wp/ap/xp/ap_Menu_LabelSet.cpp
> CVS: wp/ap/xp/ap_Menu_LabelSet_Languages.h wp/ap/xp/ap_Strings.cpp
> CVS: wp/ap/xp/ap_TB_LabelSet_Languages.h
> CVS: wp/ap/xp/ap_Toolbar_Icons_All.h
> CVS: wp/ap/xp/ap_Toolbar_LabelSet.cpp wp/impexp/xp/ie_exp.cpp
> CVS: wp/impexp/xp/ie_exp_AbiWord_1.cpp wp/impexp/xp/ie_exp_HTML.cpp
> CVS: wp/impexp/xp/ie_exp_LaTeX.cpp wp/impexp/xp/ie_exp_RTF.cpp
> CVS: wp/impexp/xp/ie_exp_RTF.h
> CVS: wp/impexp/xp/ie_exp_RTF_listenerWriteDoc.cpp
> CVS: wp/impexp/xp/ie_exp_Text.cpp wp/impexp/xp/ie_imp_AbiWord_1.cpp
> CVS: wp/impexp/xp/ie_imp_RTF.cpp wp/impexp/xp/ie_imp_RTF.h
> CVS: wp/impexp/xp/ie_types.h
> wp/main/unix/UnixMain.cpp

  The patch to UnixMain.cpp is not necessary for megapatch to function and
probably should be commented out in production release. But I found it very
useful for debugging initialization functions of AW (if TELLPID env var is
defined, AW will tell its pid and will wait for keypress - this simplifies
attaching to it with gdb).
 
> CVS: Added Files:
> CVS: af/xap/unix/xap_UnixEncodingManager.cpp
> CVS: af/xap/unix/xap_UnixEncodingManager.h
> CVS: af/xap/xp/xap_EncodingManager.cpp
> CVS: af/xap/xp/xap_EncodingManager.h
> CVS: wp/ap/xp/ap_Menu_LabelSet_ru-RU.h
> CVS: wp/ap/xp/ap_TB_LabelSet_ru-RU.h
> CVS:
> ----------------------------------------------------------------------
>
>

 Best regards,
  -Vlad



This archive was generated by hypermail 2b25 : Tue Oct 10 2000 - 04:09:34 CDT