From: michael.cadilhac@lrde.org (Michaël Cadilhac)
Cc: "Sébastien Vauban" <ewgeocaufsfb@spammotel.com>, help-gnu-emacs@gnu.org
Subject: Re: Do-you Aspell for French?
Date: Thu, 31 Aug 2006 00:27:35 +0200 [thread overview]
Message-ID: <87sljd3lm0.fsf@lrde.org> (raw)
In-Reply-To: <E34FD273-8BAB-429A-A84B-3FE95475979B@Web.DE> (Peter Dyballa's message of "Wed, 30 Aug 2006 23:42:33 +0200")
[-- Attachment #1.1: Type: text/plain, Size: 2665 bytes --]
Peter Dyballa <Peter_Dyballa@Web.DE> writes:
> Am 30.08.2006 um 22:53 schrieb Michaël Cadilhac:
>
>> Peter Dyballa <Peter_Dyballa@Web.DE> writes:
>>
>>> Am 30.08.2006 um 21:44 schrieb Sébastien Vauban:
>>>
>>>>> (defun ispell-get-otherchars ()
>>>>> (replace-regexp-in-string "-" "" (ispell-get-decoded-string 3)))
>>>>
>>>> I did add your function, but... no, it does not work... I still
>>>> got the coumpound words underlined...
>>
>> Strange... I use CVS Emacs, what version are you running?
>
> 21.3.50, 22.0.50, 23.0.0.
>
>>
>> Where did you put it? If it's in your .emacs, did you put a (require
>> 'ispell) before?
>
> No. But I can tell you that your lines change the value of OTHERCHARS,
> from default "[-'^`\".@]" (in a version running some time) to "[-']".
Gosh! How come? In ispell.el, (ispell-get-otherchars) is
(defun ispell-get-otherchars ()
(ispell-get-decoded-string 3))
What I just did is to REMOVE the "-" from this string. I really don't
see how (replace-regexp-in-string) could lead to the result you say it
leads!
However, I've made a big mistake so far, you guys were talking about
ispell, will I had flyspell in mind. Flyspell using ispell-get-word
(or so), the underlining is rightly done with the fix I propose. But
M-x ispell-buffer using ispell-get-line (or so) and calling ispell on
it, the result is not the same.
> I'm not sure whether it's an Emacs thing to decide where a word ends.
Depends on the case. The present one is not determined by Emacs (my
mistake).
> IMO Emacs passes a region or a buffer to the ispell process which
> then reads through this. And so it's ispell then, that decides where
> a word ends. Since I think ispell's not correctly set up ...
You're completely right, my bad.
> In Fink Martin Costabel is the maintainer of this package; in
> francais.aff this is recorded: Copyright 1999, Christophe Pythoud et
> GUTenberg.
From here, I consider I don't have the necessary knowledge to help,
sorry.
> Would it work to subtract - from OTHERCHARS in
> ispell-dictionary-alist-3?
No, that's what my proposition did, even if it seems not to work with
you (any idea why?).
However, this solution is maybe equivalent (but at another level,
ispell's one) to remove ``boundarychars [-]'' from francais.aff.
--
| Michaël `Micha' Cadilhac | Isn't vi that text editor with |
| Epita/LRDE Promo 2007 | two modes... One that beeps and |
| http://www.lrde.org/~cadilh_m | one that corrupts your file? |
`-- - JID: micha@amessage.be --' -- Dan Jacobson - --'
[-- Attachment #1.2: Type: application/pgp-signature, Size: 188 bytes --]
[-- Attachment #2: Type: text/plain, Size: 152 bytes --]
_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
next prev parent reply other threads:[~2006-08-30 22:27 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-29 10:31 cc mode, c offset alist Florian Kaufmann
2006-08-29 19:09 ` Do-you Aspell for French? Sébastien Vauban
2006-08-29 20:29 ` Michaël Cadilhac
[not found] ` <mailman.5961.1156884196.9609.help-gnu-emacs@gnu.org>
2006-08-30 19:44 ` Sébastien Vauban
2006-08-30 20:30 ` Peter Dyballa
2006-08-30 20:53 ` Michaël Cadilhac
2006-08-30 21:42 ` Peter Dyballa
2006-08-30 22:27 ` Michaël Cadilhac [this message]
[not found] ` <mailman.6056.1156976889.9609.help-gnu-emacs@gnu.org>
2006-08-31 21:01 ` Sébastien Vauban
2006-09-22 10:25 ` Sébastien Vauban
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87sljd3lm0.fsf@lrde.org \
--to=michael.cadilhac@lrde.org \
--cc=ewgeocaufsfb@spammotel.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).