UTF-8 and ispell

Rafael Laboissiere rafael at debian.org
Thu Sep 27 08:24:24 UTC 2007


[Cc: to the pkg-jed-devel and dict-common-dev mailing lists]

Hi Paul,

Thanks for the patch, it took faster than I thought to adapt
dictionaries-common for the new ispell.sl with improved aspell and UTF-8
support.  I am attaching below the patch that I in fact applied to jed-extra
2.4. Notice that I have made aspell the default program, instead of ispell.

I have changed the dictionaries-common package to generate the necessary
calls to aspell_add_dictionary in jed-ispell-dicts.sl file.  I am attaching
below this file as it is generated in my system.  Note that the appropriate
strings are wrapped around "if (_slang_utf8_ok) {...} else {...}".  I did
not implemented the \x{...} encoding as you suggested.  This would
complicate DictonariesCommon without necessity.

The changed dictionaries-common package is available in my private
apt-getable repository [1], just in case someone wants to try it.

Now, we have to make a plan to release this to Debian.  The first step would
be to integrate the new ispell.sl in jed-extra, either by making a new
upstream release of jedmodes or simply by integrating the patch. The second
step will be to release the new dictionaries-common package [Agustín: please
review my patch to the dictionaries-common package attached below; it
applies against the CVS sources as two days ago].  It has to be done in this
order, otherwise jed will fail when loading jed-ispell-dicts.sl.

-- 
Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ispell-mode-aspell.patch
Type: text/x-diff
Size: 6890 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-jed-devel/attachments/20070927/c898c331/attachment.patch 
-------------- next part --------------
%%% This file is part of the dictionaries-common package.
%%% It has been automatically generated.
%%% DO NOT EDIT!

ispell_add_dictionary (
  "brasileiro",
  "brasileiro",
  "??????????????????????????????????",
  "[---']",
  "",
  "");


ispell_add_dictionary (
  "francais",
  "francais",
  "??????????????????????????",
  "[-']",
  "~list",
  "");


ispell_add_dictionary (
  "american",
  "american",
  "",
  "[']",
  "",
  "-B -d american");


if (_slang_utf8_ok) {
aspell_add_dictionary (
  "portugues",
  "pt_PT",
  "áéíóúàèìòùãõçâêôÁÉÍÓÚÀÈÌÒÙÃÕÇÂÊÔ",
  "'",
  "");
} else {
aspell_add_dictionary (
  "portugues",
  "pt_PT",
  "????????????????????????????????",
  "'",
  "");
}

if (_slang_utf8_ok) {
aspell_add_dictionary (
  "brasileiro",
  "pt_BR",
  "áéíóúàèìòùãõçüâêôÁÉÍÓÚÀÈÌÒÙÃÕÇÜÂÊÔ",
  "---'",
  "");
} else {
aspell_add_dictionary (
  "brasileiro",
  "pt_BR",
  "??????????????????????????????????",
  "---'",
  "");
}

if (_slang_utf8_ok) {
aspell_add_dictionary (
  "nederlands8",
  "dutch",
  "àâäçèéêëîïñöóûüÀÂÄÇÈÉÊËÎÏÑÖÓÛÜ",
  "'",
  "-C -d dutch");
} else {
aspell_add_dictionary (
  "nederlands8",
  "dutch",
  "??????????????????????????????",
  "'",
  "-C -d dutch");
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dict-common-jed-aspell.patch
Type: text/x-diff
Size: 4717 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-jed-devel/attachments/20070927/c898c331/attachment-0001.patch 


More information about the Pkg-jed-devel mailing list