all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* ispell spanish problem
@ 2004-04-21 21:19 Luis O. Silva
  0 siblings, 0 replies; 11+ messages in thread
From: Luis O. Silva @ 2004-04-21 21:19 UTC (permalink / raw)


Dear Emacs community,

After failing to obtain on the web any hint to solve the
following problem, I decided to post it.  I have ispell 3.1
installed on my system and GNU Emacs 21.2.1
(i386-debian-linux-gnu, X toolkit, Xaw3d scroll bars) of
2002-03-22 on raven, modified by Debian.  I also have the
following element in the alist of dictionaries
`ispell-dictionary-alist'

("castellano8"
 "[A-Z\301\311\315\321\323\332\334a-z\341\351\355\361\363\372\374]"
 "[^A-Z\301\311\315\321\323\332\334a-z\341\351\355\361\363\372\374]"
 "[-]"
 nil
 ("-B" "-d" "castellano")
  "~latin1" iso-8859-1)

For all the others entries of this alist: "russian", "american"
and "british", `ispell-buffer' and `ispell-region' work fine,
however `ispell-buffer' and `ispell-region' with the
"castellano8" dictionary can not recognize non-ascii
characters. It must be noted that in a terminal the command:

ispell -T latin1 -d castellano <file>

works fine. Do you have any hint for solving this problem?

Thank you very much in advance.
luis

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: ispell spanish problem
       [not found] <mailman.779.1082578636.1061.help-gnu-emacs@gnu.org>
@ 2004-04-22 18:15 ` Reiner Steib
  2004-04-23  7:20   ` Oliver Scholz
  0 siblings, 1 reply; 11+ messages in thread
From: Reiner Steib @ 2004-04-22 18:15 UTC (permalink / raw)


On Wed, Apr 21 2004, Luis O. Silva wrote:

> I have ispell 3.1 installed on my system and GNU Emacs 21.2.1
> (i386-debian-linux-gnu, X toolkit, Xaw3d scroll bars) of 2002-03-22
> on raven, modified by Debian.  I also have the following element in
> the alist of dictionaries `ispell-dictionary-alist'
>
> ("castellano8"
>  "[A-Z\301\311\315\321\323\332\334a-z\341\351\355\361\363\372\374]"
>  "[^A-Z\301\311\315\321\323\332\334a-z\341\351\355\361\363\372\374]"
>  "[-]"
>  nil
>  ("-B" "-d" "castellano")
>   "~latin1" iso-8859-1)

Hm, a quite similar element works for me (Emacs 21.3, International
Ispell Version 3.2.06 08/01/01):

 ("espanol-latin1"
  "[A-Za-z\301\311\315\321\323\332\334\341\351\355\361\363\372\374]"
  "[^A-Za-z\301\311\315\321\323\332\334\341\351\355\361\363\372\374]"
  "[']" nil
  ("-B" "-d" "espanol")
  "~latin1" iso-latin-1)

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo--- PGP key available via WWW   http://rsteib.home.pages.de/

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: ispell spanish problem
  2004-04-22 18:15 ` ispell spanish problem Reiner Steib
@ 2004-04-23  7:20   ` Oliver Scholz
  2004-04-23 10:36     ` Reiner Steib
  0 siblings, 1 reply; 11+ messages in thread
From: Oliver Scholz @ 2004-04-23  7:20 UTC (permalink / raw)


Reiner Steib <4.uce.03.r.s@nurfuerspam.de> wrote in message news:<v9vfjrangn.fsf@marauder.physik.uni-ulm.de>...
> On Wed, Apr 21 2004, Luis O. Silva wrote:
> 

> > ("castellano8"
> >  "[A-Z\301\311\315\321\323\332\334a-z\341\351\355\361\363\372\374]"
> >  "[^A-Z\301\311\315\321\323\332\334a-z\341\351\355\361\363\372\374]"
> >  "[-]"
> >  nil
> >  ("-B" "-d" "castellano")
> >   "~latin1" iso-8859-1)
> 
> Hm, a quite similar element works for me (Emacs 21.3, International
> Ispell Version 3.2.06 08/01/01):

I bet this is yet another latin-9 problem.
 
>  ("espanol-latin1"
>   "[A-Za-z\301\311\315\321\323\332\334\341\351\355\361\363\372\374]"
>   "[^A-Za-z\301\311\315\321\323\332\334\341\351\355\361\363\372\374]"

I'd recommend to use "[[:alpha:]]" and "[^[:alpha:]]" here in general.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: ispell spanish problem
  2004-04-23  7:20   ` Oliver Scholz
@ 2004-04-23 10:36     ` Reiner Steib
  2004-04-23 16:33       ` Oliver Scholz
                         ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Reiner Steib @ 2004-04-23 10:36 UTC (permalink / raw)


On Fri, Apr 23 2004, Oliver Scholz wrote:

> I bet this is yet another latin-9 problem.

Ah, I remember now that we discussed this previously.  But I don't
remember which was the best solution.  Setting the locale to Latin-1
or adding corresponding `ispell-dictionary-alist' entries for Latin-0?

> I'd recommend to use "[[:alpha:]]" and "[^[:alpha:]]" here in general.

Probably didn't use [:alpha:] for Emacs-20 compatibility.

Bye, Reiner.

PS: Nice to see you back in Usenet.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo--- PGP key available via WWW   http://rsteib.home.pages.de/

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: ispell spanish problem
  2004-04-23 10:36     ` Reiner Steib
@ 2004-04-23 16:33       ` Oliver Scholz
  2004-04-23 19:34         ` Reiner Steib
       [not found]       ` <mailman.1717.1082992402.1061.help-gnu-emacs@gnu.org>
  2004-04-26 15:47       ` Luis O. Silva
  2 siblings, 1 reply; 11+ messages in thread
From: Oliver Scholz @ 2004-04-23 16:33 UTC (permalink / raw)


Reiner Steib <4.uce.03.r.s@nurfuerspam.de> wrote in message news:<v9zn93c75s.fsf@marauder.physik.uni-ulm.de>...
> On Fri, Apr 23 2004, Oliver Scholz wrote:
> 
> > I bet this is yet another latin-9 problem.
> 
> Ah, I remember now that we discussed this previously.  But I don't
> remember which was the best solution.  Setting the locale to Latin-1
> or adding corresponding `ispell-dictionary-alist' entries for Latin-0?

Latin-*WHAT*??  :)

Anyways, fixing the locale is of course the proper thing to do.

[Slightly more seriously:  It should be enough to make sure that the
regexps match latin-9 characters.  I don't think that additional
entries for `ispell-dictionary-alist' are really necessary.]
 
> > I'd recommend to use "[[:alpha:]]" and "[^[:alpha:]]" here in general.
> 
> Probably didn't use [:alpha:] for Emacs-20 compatibility.

I see.  What about "\\w" and "\\W"?  Did those already exist in Emacs
20?

Otherwise one would have to specify each necessary character for every
relevant charset (in the mule sense) separately, using \x.. in the
regexp.
 
> Bye, Reiner.
> 
> PS: Nice to see you back in Usenet.

Thanks. I won't be really back for another five to six weeks, though,
due to both technical problems and a serious lack of time.  OTOH I am
finally going to have a permanent DSL connection to the 'net in my new
flat.  Horrayh!

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: ispell spanish problem
  2004-04-23 16:33       ` Oliver Scholz
@ 2004-04-23 19:34         ` Reiner Steib
  0 siblings, 0 replies; 11+ messages in thread
From: Reiner Steib @ 2004-04-23 19:34 UTC (permalink / raw)


On Fri, Apr 23 2004, Oliver Scholz wrote:

> Reiner Steib wrote:
>> On Fri, Apr 23 2004, Oliver Scholz wrote:
>> 
>> > I bet this is yet another latin-9 problem.
>> 
>> Ah, I remember now that we discussed this previously.  But I don't
>> remember which was the best solution.  Setting the locale to Latin-1
>> or adding corresponding `ispell-dictionary-alist' entries for Latin-0?
>
> Latin-*WHAT*??  :)

*You* already mentioned the evil charset. ;-)

> Anyways, fixing the locale is of course the proper thing to do.

@Luis:

Please show us the output of "locale" in an xterm before starting
Emacs.  Call emacs with "emacs -q -no-site-file" and show us the
output of `M-x describe-coding-system RET' in this Emacs session.

>> Probably didn't use [:alpha:] for Emacs-20 compatibility.
>
> I see.  What about "\\w" and "\\W"?  Did those already exist in Emacs
> 20?

I don't really need Emacs-20 compatibility anymore.  I was just to
lazy to change it as long as it works.  If I change it, I can as well
use [:alpha:].

> Thanks. I won't be really back for another five to six weeks, though,
> due to both technical problems and a serious lack of time.

I already recognized that something is wrong: Not posting with
charset=utf-8, posting via Google instead of Unicode-Emacs/Gnus ...

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo--- PGP key available via WWW   http://rsteib.home.pages.de/

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: ispell spanish problem
       [not found]       ` <mailman.1717.1082992402.1061.help-gnu-emacs@gnu.org>
@ 2004-04-26 15:24         ` David Kastrup
       [not found]           ` <mailman.1972.1083080499.1061.help-gnu-emacs@gnu.org>
  2004-04-27 16:43           ` Luis O. Silva
  0 siblings, 2 replies; 11+ messages in thread
From: David Kastrup @ 2004-04-26 15:24 UTC (permalink / raw)


"Luis O. Silva" <l.o.silva@mail.ru> writes:

> I'm very sorry for the false alarm and very grateful for your
> comments. May be it's time for writing an elisp function that
> pop-up a window with the local variables of the file you are
> opening.

enable-local-variables's value is t

*Control use of local variables in files you visit.
The value can be t, nil or something else.
A value of t means file local variables specifications are obeyed;
nil means they are ignored; anything else means query.
This variable also controls use of major modes specified in
a -*- line.

[...]

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: ispell spanish problem
  2004-04-23 10:36     ` Reiner Steib
  2004-04-23 16:33       ` Oliver Scholz
       [not found]       ` <mailman.1717.1082992402.1061.help-gnu-emacs@gnu.org>
@ 2004-04-26 15:47       ` Luis O. Silva
  2 siblings, 0 replies; 11+ messages in thread
From: Luis O. Silva @ 2004-04-26 15:47 UTC (permalink / raw)


Hi Reiner,

On Fri, 23 Apr 2004 12:36:47 +0200, Reiner Steib writes:

   R> On Fri, Apr 23 2004, Oliver Scholz wrote:
     >> I bet this is yet another latin-9 problem.

   R> Ah, I remember now that we discussed this previously.

That was not another latin-9 problem, that was my stupidity.
The element in `ispell-dictionary-alist' that I posted first,
together with yours, and the one recomended by Oliver (using
"[[:alpha:]]" and "[^[:alpha:]]") all work fine. The problem
was (I must acknowledge) that I was working with large old
files, near the beginning of them, without realizing that at
the end of the file there were local variables defined :-( and
among them "Local IspellDict:"

I'm very sorry for the false alarm and very grateful for your
comments. May be it's time for writing an elisp function that
pop-up a window with the local variables of the file you are
opening.

Best regards,
luis

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: ispell spanish problem
       [not found]           ` <mailman.1972.1083080499.1061.help-gnu-emacs@gnu.org>
@ 2004-04-27 16:02             ` David Kastrup
  2004-04-28 18:14               ` Luis O. Silva
  0 siblings, 1 reply; 11+ messages in thread
From: David Kastrup @ 2004-04-27 16:02 UTC (permalink / raw)


"Luis O. Silva" <l.o.silva@mail.ru> writes:

> On 26 Apr 2004 17:24:21 +0200, David Kastrup writes:
> 
>     > "Luis O. Silva" <l.o.silva@mail.ru> writes:
> 
>     >> I'm very sorry for the false alarm and very grateful for
>     >> your comments. May be it's time for writing an elisp
>     >> function that pop-up a window with the local variables
>     >> of the file you are opening.
> 
>     > enable-local-variables's value is t
> 
>     > *Control use of local variables in files you visit.  The
>     > value can be t, nil or something else.  A value of t
>     > means file local variables specifications are obeyed;
>     > nil means they are ignored; anything else means query.
>     > This variable also controls use of major modes specified
>     > in a -*- line.
> 
> Thank you very much, I overlooked this information in the
> manual. This is not exactly what I want but it is useful. Opening
> most of my files I'd like to keep the local variables values
> defined in the files, but I want to be aware of them. That's
> why I was thinking of a window popup with this information
> when opening a file.

You didn't try it, right?  Setting enable-local-variables to a value
different from t and nil _will_ open a popup with this information.

It _is_ exactly what you were asking for.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: ispell spanish problem
  2004-04-26 15:24         ` David Kastrup
       [not found]           ` <mailman.1972.1083080499.1061.help-gnu-emacs@gnu.org>
@ 2004-04-27 16:43           ` Luis O. Silva
  1 sibling, 0 replies; 11+ messages in thread
From: Luis O. Silva @ 2004-04-27 16:43 UTC (permalink / raw)


Hi David,

On 26 Apr 2004 17:24:21 +0200, David Kastrup writes:

    > "Luis O. Silva" <l.o.silva@mail.ru> writes:

    >> I'm very sorry for the false alarm and very grateful for
    >> your comments. May be it's time for writing an elisp
    >> function that pop-up a window with the local variables
    >> of the file you are opening.

    > enable-local-variables's value is t

    > *Control use of local variables in files you visit.  The
    > value can be t, nil or something else.  A value of t
    > means file local variables specifications are obeyed;
    > nil means they are ignored; anything else means query.
    > This variable also controls use of major modes specified
    > in a -*- line.

Thank you very much, I overlooked this information in the
manual. This is not exactly what I want but it is useful. Opening
most of my files I'd like to keep the local variables values
defined in the files, but I want to be aware of them. That's
why I was thinking of a window popup with this information
when opening a file.

Thank you again.
luis

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: ispell spanish problem
  2004-04-27 16:02             ` David Kastrup
@ 2004-04-28 18:14               ` Luis O. Silva
  0 siblings, 0 replies; 11+ messages in thread
From: Luis O. Silva @ 2004-04-28 18:14 UTC (permalink / raw)


Hi David,

On 27 Apr 2004 18:02:34 +0200, David Kastrup writes:

   > "Luis O. Silva" <l.o.silva@mail.ru> writes:

   >> On 26 Apr 2004 17:24:21 +0200, David Kastrup writes:

   >> enable-local-variables's value is t
   >>
   >> *Control use of local variables in files you visit.
   >> The > value can be t, nil or something else.  A value of
   >> t > means file local variables specifications are
   >> obeyed; > nil means they are ignored; anything else
   >> means query.  > This variable also controls use of major
   >> modes specified > in a -*- line.
   >>
   >> Thank you very much, I overlooked this information in
   >> the manual. This is not exactly what I want but it is
   >> useful. Opening most of my files I'd like to keep the
   >> local variables values defined in the files, but I want
   >> to be aware of them. That's why I was thinking of a
   >> window popup with this information when opening a file.

   > You didn't try it, right?

You're right, I didn't. I was taking the documentation of the
variable literally and it says: "anything else means query",
so I thought that, in that case, a message asking whether to
enable the variables was displayed without showing the
variables themselves. Now, I realized that such a message
would be incomplete, so the documentation is probably fine.

   > It _is_ exactly what you were asking for.

That is exactly. Thank you and I'm sorry, I misinterpreted the
documentation of the variable.

Best regards,
luis

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2004-04-28 18:14 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.779.1082578636.1061.help-gnu-emacs@gnu.org>
2004-04-22 18:15 ` ispell spanish problem Reiner Steib
2004-04-23  7:20   ` Oliver Scholz
2004-04-23 10:36     ` Reiner Steib
2004-04-23 16:33       ` Oliver Scholz
2004-04-23 19:34         ` Reiner Steib
     [not found]       ` <mailman.1717.1082992402.1061.help-gnu-emacs@gnu.org>
2004-04-26 15:24         ` David Kastrup
     [not found]           ` <mailman.1972.1083080499.1061.help-gnu-emacs@gnu.org>
2004-04-27 16:02             ` David Kastrup
2004-04-28 18:14               ` Luis O. Silva
2004-04-27 16:43           ` Luis O. Silva
2004-04-26 15:47       ` Luis O. Silva
2004-04-21 21:19 Luis O. Silva

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.