* NTEmacs, German, ispell
@ 2003-01-18 13:53 Sören Vogel
2003-01-18 19:15 ` Eli Zaretskii
` (2 more replies)
0 siblings, 3 replies; 11+ messages in thread
From: Sören Vogel @ 2003-01-18 13:53 UTC (permalink / raw)
Hi,
I'm using ntemacs 21.2.1 on German Windows XP. Spell checking does
ispell and in order to provide German Umlaut support in
conjunction with the new dictionary I placed the following lines
into my .emacs:
'(current-language-environment "German")
'(default-input-method "german-postfix");; ???
'(enable-multibyte-characters nil)
'(ispell-help-in-bufferp t)
'(ispell-local-dictionary "deutsch8")
'(set-language-environment "German")
Seems like emacs recognizes German words, e.g. müssen (must, have
to). But ispell marks the whole word red and suggests _the same
word_ from the spelling context menu! Meaning: "You should change
"müssen" to "müssen". Okay, I cange (click on the suggested
alternative). But the word remains marked red -- misspelled. Only
picking up the word into my private dict ~/.ispell-private makes
the mark dissappearing. The line in the private dict then
represents
mu"ssen
I've found out that some distributed ispell German dicts contain a
bug by representing German Umlaute with "u instead of u". So I
changed the default dict with the sed command
sed 's/"\(.\)/\1"/g' wrong-dictionary > proper-dictionary
but emacs spelling behavior did not change.
Anyone suggestions?
Thanks a lot, Sören from Germany.
PS: Could you please reply via email, too.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: NTEmacs, German, ispell
2003-01-18 13:53 NTEmacs, German, ispell Sören Vogel
@ 2003-01-18 19:15 ` Eli Zaretskii
[not found] ` <mailman.533.1042921042.21513.help-gnu-emacs@gnu.org>
2003-01-20 7:28 ` Heinz Rommerskirchen
2 siblings, 0 replies; 11+ messages in thread
From: Eli Zaretskii @ 2003-01-18 19:15 UTC (permalink / raw)
> From: =?ISO-8859-1?Q?S=F6ren_Vogel?= <soeren.vogel@phil.tu-chemnitz.de>
> Newsgroups: gnu.emacs.help
> Date: Sat, 18 Jan 2003 14:53:42 +0100
>
> But ispell marks the whole word red and suggests _the same
> word_ from the spelling context menu!
I suspect that you type Latin-9 characters while Ispell suggests
Latin-1 characters (they are different characters as far as Emacs is
concerned).
What does Emacs print if you go to the seemingly-identical characters
and type "C-u C-x ="?
^ permalink raw reply [flat|nested] 11+ messages in thread
[parent not found: <mailman.533.1042921042.21513.help-gnu-emacs@gnu.org>]
* Re: NTEmacs, German, ispell
[not found] ` <mailman.533.1042921042.21513.help-gnu-emacs@gnu.org>
@ 2003-01-18 21:50 ` Sören Vogel
2003-01-19 6:14 ` Eli Zaretskii
0 siblings, 1 reply; 11+ messages in thread
From: Sören Vogel @ 2003-01-18 21:50 UTC (permalink / raw)
Hello Eli,
On Sat, 18 Jan 2003, Eli Zaretskii wrote:
character: s (0163, 115, 0x73)
charset: ascii (ASCII (ISO646 IRV))
code point: 115
syntax: word
category: a:ASCII l:Latin
buffer code: 0x73
file code: 0x73 (encoded by coding system raw-text-dos)
font:
-outline-Courier
New-bold-r-normal-normal-13-97-96-96-c-80-iso8859-1
Doesn't say nothing to me :-/
Sören.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: NTEmacs, German, ispell
2003-01-18 21:50 ` Sören Vogel
@ 2003-01-19 6:14 ` Eli Zaretskii
0 siblings, 0 replies; 11+ messages in thread
From: Eli Zaretskii @ 2003-01-19 6:14 UTC (permalink / raw)
On Sat, 18 Jan 2003, =?ISO-8859-1?Q?S=F6ren_Vogel?= wrote:
> character: s (0163, 115, 0x73)
> charset: ascii (ASCII (ISO646 IRV))
I meant non-ASCII characters, such as u-umlaut. ASCII characters are
guaranteed to be identical everywhere in Emacs.
> Doesn't say nothing to me :-/
Well, how about reading the description of the command invoked by
"C-x ="? Here's a key sequence that should land you at the appropriate
place in the on-line manual:
C-h i d m emacs RET i what-cursor-position RET
Does the description there help to understand how would "C-u C-x =" be
useful in solving your mystery?
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: NTEmacs, German, ispell
2003-01-18 13:53 NTEmacs, German, ispell Sören Vogel
2003-01-18 19:15 ` Eli Zaretskii
[not found] ` <mailman.533.1042921042.21513.help-gnu-emacs@gnu.org>
@ 2003-01-20 7:28 ` Heinz Rommerskirchen
2 siblings, 0 replies; 11+ messages in thread
From: Heinz Rommerskirchen @ 2003-01-20 7:28 UTC (permalink / raw)
Sören Vogel <soeren.vogel@phil.tu-chemnitz.de> writes:
> Hi,
>
> I'm using ntemacs 21.2.1 on German Windows XP. Spell checking does
> ispell and in order to provide German Umlaut support in
> conjunction with the new dictionary I placed the following lines
> into my .emacs:
>
> '(current-language-environment "German")
> '(default-input-method "german-postfix");; ???
> '(enable-multibyte-characters nil)
> '(ispell-help-in-bufferp t)
> '(ispell-local-dictionary "deutsch8")
> '(set-language-environment "German")
I'm no expert but the line
(enable-multibyte-characters nil)
looks fishy to me. Also
(default-input-method "german-postfix")
is not needed, if you have a German keyboard
--
Regards
Heinz
^ permalink raw reply [flat|nested] 11+ messages in thread
[parent not found: <mailman.543.1042956938.21513.help-gnu-emacs@gnu.org>]
* Re: NTEmacs, German, ispell
[not found] <mailman.543.1042956938.21513.help-gnu-emacs@gnu.org>
@ 2003-01-19 9:20 ` Sören Vogel
2003-01-19 14:17 ` Kai Großjohann
2003-01-19 14:21 ` Eli Zaretskii
0 siblings, 2 replies; 11+ messages in thread
From: Sören Vogel @ 2003-01-19 9:20 UTC (permalink / raw)
Hi Eli,
On Sun, 19 Jan 2003, Eli Zaretskii wrote:
> Does the description there help to understand how would "C-u C-x
> =" be useful in solving your mystery?
Great, helped :-)! And here is what emacs says:
character: ü (0374, 252, 0xfc)
charset: eight-bit-graphic (8-bit graphic char (0xA0..0xFF))
code point: 252
syntax: word
category:
buffer code: 0xFC
file code: 0xFC (encoded by coding system raw-text-dos)
font:
-outline-Courier
New-bold-r-normal-normal-13-97-96-96-c-80-iso8859-
Think this describes the character ü, and now I have to check,
whether emacs uses the same set to display characters. In addition
I expect me to check whether ispell uses the same set?
And how can that be done?
Sören.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: NTEmacs, German, ispell
2003-01-19 9:20 ` Sören Vogel
@ 2003-01-19 14:17 ` Kai Großjohann
2003-01-19 14:21 ` Eli Zaretskii
1 sibling, 0 replies; 11+ messages in thread
From: Kai Großjohann @ 2003-01-19 14:17 UTC (permalink / raw)
Sören Vogel <soeren.vogel@phil.tu-chemnitz.de> writes:
> character: ü (0374, 252, 0xfc)
> charset: eight-bit-graphic (8-bit graphic char (0xA0..0xFF))
eight-bit-graphic is the worst character set of all the possible ones
that can display this glyph.
Does your keyboard generate Latin-1? So how about doing C-x RET k
latin-1 RET? And then enter ü and do the C-u C-x = dance on it. Do
you now get latin-1 instead of eight-bit-graphic?
Does ispell work better on that word?
--
Ambibibentists unite!
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: NTEmacs, German, ispell
2003-01-19 9:20 ` Sören Vogel
2003-01-19 14:17 ` Kai Großjohann
@ 2003-01-19 14:21 ` Eli Zaretskii
1 sibling, 0 replies; 11+ messages in thread
From: Eli Zaretskii @ 2003-01-19 14:21 UTC (permalink / raw)
On Sun, 19 Jan 2003, =?ISO-8859-1?Q?S=F6ren_Vogel?= wrote:
> character: ü (0374, 252, 0xfc)
> charset: eight-bit-graphic (8-bit graphic char (0xA0..0xFF))
This means Emacs didn't recognized the file as being in Latin-1 encoding,
probably because it has some Windows-specific characters that Microsoft
added to the Latin-1 charset.
Does it help to visit the file with "C-x RET c latin-1 RET C-x C-f"
instead of the usual "C-x C-f"? That is, if you use C-x RET C, does
Ispell work as you'd expect?
^ permalink raw reply [flat|nested] 11+ messages in thread
[parent not found: <mailman.550.1042986241.21513.help-gnu-emacs@gnu.org>]
* Re: NTEmacs, German, ispell
[not found] <mailman.550.1042986241.21513.help-gnu-emacs@gnu.org>
@ 2003-01-19 20:32 ` Sören Vogel
2003-01-20 5:48 ` Eli Zaretskii
0 siblings, 1 reply; 11+ messages in thread
From: Sören Vogel @ 2003-01-19 20:32 UTC (permalink / raw)
I hope f'ups to more than one person is possible ...?
Kai wrote:
> ... how about doing C-x RET k latin-1 RET? And then enter ü and
> do the C-u C-x = dance on it. Do you now get latin-1 instead of
> eight-bit-graphic?
Eli wrote:
> Does it help to visit the file with "C-x RET c latin-1 RET C-x
> C-f" instead of the usual "C-x C-f"?
No, remains saying eight-bit-graphic and ispell does not work
properly in both cases: defining the coding system or loading from
within a defined one. Hm, maybe emacs in fact has _no_ problem
with my stuff but ispell does so? And how about the mystery that
ispell suggests exactly the same word "müssen" but does not (or
does -- that't not to observe) replace the "misspelled" but
remains saying: wrong. Perhaps I should try to set up the ultimate
options to work with a German keyboard on WinXP-text-files and try
all stuff again -- but what are the options to place into
".emacs"? Meaning: Does anyone successfully work with emacs on
German WinXP in conjunction with ispell and what did he/she set
up?
Thanks a lot, Sören.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: NTEmacs, German, ispell
2003-01-19 20:32 ` Sören Vogel
@ 2003-01-20 5:48 ` Eli Zaretskii
0 siblings, 0 replies; 11+ messages in thread
From: Eli Zaretskii @ 2003-01-20 5:48 UTC (permalink / raw)
On Sun, 19 Jan 2003, =?ISO-8859-1?Q?S=F6ren_Vogel?= wrote:
> > Does it help to visit the file with "C-x RET c latin-1 RET C-x
> > C-f" instead of the usual "C-x C-f"?
>
> No, remains saying eight-bit-graphic and ispell does not work
> properly in both cases: defining the coding system or loading from
> within a defined one.
Strange. What kind of file is that, anyway?
What happens if you begin with an empty buffer and then type German words
using those characters--does Ispell work then?
> Hm, maybe emacs in fact has _no_ problem
> with my stuff but ispell does so?
The problem is that Emacs doesn't recognize characters such as u-umlaut
as Latin-1 characters. (That's why it says eight-bit-graphic instead.)
Ispell is set up in your locale for Latin-1 characters, so it cannot work
with other characters.
> And how about the mystery that
> ispell suggests exactly the same word "müssen" but does not (or
> does -- that't not to observe) replace the "misspelled" but
> remains saying: wrong.
It's not the same word: the character code of what is displayed as
u-umlaut is different. The illusion that the words are identical is
because both characters are (by default) displayed the same. Try
accepting Ispell's correction, and then do a "C-u C-x =" on u-umlaut in
the replaced word, and you will see the difference.
> Perhaps I should try to set up the ultimate
> options to work with a German keyboard on WinXP-text-files
What ``ultimate options'' are you talking about? What do you have now in
your .emacs?
^ permalink raw reply [flat|nested] 11+ messages in thread
[parent not found: <mailman.569.1043041741.21513.help-gnu-emacs@gnu.org>]
* Re: NTEmacs, German, ispell
[not found] <mailman.569.1043041741.21513.help-gnu-emacs@gnu.org>
@ 2003-01-21 21:55 ` Sören Vogel
0 siblings, 0 replies; 11+ messages in thread
From: Sören Vogel @ 2003-01-21 21:55 UTC (permalink / raw)
Hi All,
I've tried a lot and figured out that nothing works so good as to
download a new binary and link the spell checking to aspell with
options
(setq-default ispell-program-name "aspell")
(setq-default ispell-extra-args '("--lang=de"))
defined in my .emacs.
I've downloaded the new emacs-windows-fullbin.tar.gz (?) from
ftp.gnu.org using FileZilla and now everything works fine, meaning
German Umlaute are recognized to be usual latin-1 characters. I
guess some corrupt char tables were responsible for the bad
behaviour. This might have occured after transferring the
whole emacs-dir from one computer to another via ftp.
Currently I try to incorporate aspell into and the first trials
look good. In addition it is praised to be much better as ispell,
especially for German language.
Special thanks to Eli and Kai for their helping posts.
Sören (with a latin-1-OE) :-).
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2003-01-21 21:55 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-18 13:53 NTEmacs, German, ispell Sören Vogel
2003-01-18 19:15 ` Eli Zaretskii
[not found] ` <mailman.533.1042921042.21513.help-gnu-emacs@gnu.org>
2003-01-18 21:50 ` Sören Vogel
2003-01-19 6:14 ` Eli Zaretskii
2003-01-20 7:28 ` Heinz Rommerskirchen
[not found] <mailman.543.1042956938.21513.help-gnu-emacs@gnu.org>
2003-01-19 9:20 ` Sören Vogel
2003-01-19 14:17 ` Kai Großjohann
2003-01-19 14:21 ` Eli Zaretskii
[not found] <mailman.550.1042986241.21513.help-gnu-emacs@gnu.org>
2003-01-19 20:32 ` Sören Vogel
2003-01-20 5:48 ` Eli Zaretskii
[not found] <mailman.569.1043041741.21513.help-gnu-emacs@gnu.org>
2003-01-21 21:55 ` Sören Vogel
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.