Hi folks,
I have attached a patch that should enable stuff for dutch speakers,
but I would like to have somebody look at it who knows a bit more about
this aspect of abiword.
Several comments:
* In the ispell dictionary I use, there is a dutch93.hash and a
dutch96.hash file, due to the spellings reform here. I don't know
what most distributions do - I have used `dutch96.hash', but if it
turns out that (almost) all distributions rename it to `dutch.hash',
we should change the system.profile and ispell_checker.cpp diles.
* Somebody used `da-NL' as localename, but the proper name is `nl-NL'.
I have changed this in ut_Language.c. The `strings'-file should be
renamed too, from du-NL.strings to nl-NL.strings. Is it enough to
do so and changeathe language attribute in the root element? Should
abi2po be rerun? I just don't know.
A more general question: I sometimes need the dutch spell checking, but
I don't want to use the nl-NL locale (mostly because I want AbiWord itself
to talk english to me, not dutch). How does one do this? I see a
Format/Language menu item, but it has nothing behind it. What is its status?
Is it just not implemented in the Gnome build, or is there an issue
with my installation?
And yet another question: is it possible to specify somewhere where
abiword will look for ispell dictionaries? My current hack is to link
the abiword dictionary directory to /usr/lib/ispell, but that is not a
very elegant solution.
Thanks,
Frodo
--
Frodo Looijaard <[EMAIL PROTECTED]> PGP key and more: http://huizen.dds.nl/~frodol
Defenestration n. (formal or joc.):
The act of removing Windows from your computer in disgust, usually followed
by the installation of Linux or some other Unix-like operating system.
? user/wp/system.profile-nl
? user/wp/strings/nl-NL.strings
Index: src/af/util/xp/ut_Language.cpp
===================================================================
RCS file: /cvsroot/abi/src/af/util/xp/ut_Language.cpp,v
retrieving revision 1.10
diff -u -2 -r1.10 ut_Language.cpp
--- src/af/util/xp/ut_Language.cpp 2001/06/13 09:52:54 1.10
+++ src/af/util/xp/ut_Language.cpp 2001/06/13 21:01:40
@@ -21,5 +21,4 @@
{"cs-CZ", NULL, XAP_STRING_ID_LANG_4},
{"da-DK", NULL, XAP_STRING_ID_LANG_13},
- {"da-NL", NULL, XAP_STRING_ID_LANG_14},
//{"de-AU", NULL, XAP_STRING_ID_LANG_5},
{"de-DE", NULL, XAP_STRING_ID_LANG_6},
@@ -33,4 +32,5 @@
{"iw-IL", NULL, XAP_STRING_ID_LANG_8},
{"lt-LT", NULL, XAP_STRING_ID_LANG_18},
+ {"nl-NL", NULL, XAP_STRING_ID_LANG_14},
{"nn-NO", NULL, XAP_STRING_ID_LANG_17},
{"pt-PT", NULL, XAP_STRING_ID_LANG_11},
Index: src/other/spell/xp/ispell_checker.cpp
===================================================================
RCS file: /cvsroot/abi/src/other/spell/xp/ispell_checker.cpp,v
retrieving revision 1.7
diff -u -2 -r1.7 ispell_checker.cpp
--- src/other/spell/xp/ispell_checker.cpp 2001/06/13 09:53:08 1.7
+++ src/other/spell/xp/ispell_checker.cpp 2001/06/13 21:01:41
@@ -312,4 +312,5 @@
{ "american.hash", "en-US" },
{ "spanish.hash", "es-ES" },
+ { "dutch96.hash", "nl-NL" },
{ "nynorsk.hash", "nn-NO" },
{ "french.hash", "fr-FR" },
--- /dev/null Wed Apr 19 18:09:34 2000
+++ user/wp/system.profile-nl Wed Jun 13 21:16:55 2001
@@ -0,0 +1,19 @@
+<!-- AbiSuite/AbiWord/system.profile
+**** This file contains the system default values for AbiWord Preferences.
+**** AbiWord is an GPL, Open Source desktop word processor developed by
+**** AbiSource, Inc. Information about this application can be found at
+**** http://www.abisource.com
+****
+**** This file consists of one tag "SystemDefaults" and a series of attributes
+**** (name/value pairs). These attributes will be loaded *after* the internal
+**** (and thus replace the) "_builtin_" values. This file should only list the
+**** values that are different from the builtin default value. The complete
+**** set of name/value pairs can be found in your personal profile or in the
+**** source in the files: {xap,ap}_Prefs_SchemeIds.h
+**** ************************************************************************** -->
+
+<SystemDefaults
+ SpellCheckWordList="dutch96.hash"
+ RulerUnits="cm"
+ DefaultPageSize="A4"
+/>