Re: [Mac-emacs-users] Emacs.app, german umlaute
Brought to you by:
akochoi
|
From: Andrew C. <ak...@cs...> - 2001-12-12 03:03:42
|
> > M-x set-frame-font RET fontset-mac RET
> > M-x set-frame-font RET
> > -apple-monaco-medium-r-normal--12-120-75-75-m-120-mac-roman
>
> no different result.
Hi Patrick,
Could you please try the first command by itself? I.e., just do
M-x set-frame-font RET fontset-mac RET
Please also check that you didn't do anything in the .emacs to prevent
this from working. Since we can't specify an option when running in
GUI mode, one way to do this now is to temporarily rename the .emacs
file.
> But, I am getting closer!
> with
> (standard-display-european 1)
> and
> (standard-display-8bit 0 255)
> I can display the ö (o with two dots) an other 'special characters'.
Both of these commands turn the buffer into unibyte coding. The
current recommended way is to use multibyte buffers. So perhaps it's
better to try to get characters to display correctly using fontsets.
> But now I have an input problem... I press the key with the ö (o
> with two dots) and emacs beeps (no output in the buffer). Pressing
> C-h l to see the recent key presses, it displays the ö correctly. So
> it seems that the key is recognized correctly.
>
> Setting the default coding system (C-x RET k) to latin-1 or
> mac-roman did not help:
>
> with mac-roman, it dispays a ^ (hat) instead of the ö. With latin-1
> there is no output. In both cases the C-h l reports the correct
> keys.
>
> Copy and paste from the key-caps application works fine.
>
> Setting mac-keybord-text-encoding to kTextEncodingISOLatin1 did not
> do anything that I noticed.
>
> With coding system for keybord input set to mac-roman, the ö for
> example is bound to encoded-kbd-self-insert-ccl.
>
> Any hints for the correct input method?
>
> By the way, I use an iBook with the keybord set to the german
> 'language' on MacOS X
All these "problems" are due to the use of the unibyte buffer. Again
I recommend first getting characters to display correctly using
fontsets. If you cannot type them to see if they work, display the
German tutorial by saying
C-u M-x help-with-tutorial RET German RET
or looking at the HELLO file (C-h h). Once this works, there are a
number of ways you can edit a file with German characters.
1. The file is in Mac Roman encoding. You set the file/buffer
coding system to mac-roman (for example by typing C-x RET c
mac-roman before finding the file) and the keyboard coding system
to mac-roman (by typing C-x RET k mac-roman). You also set your
Keyboard control panel to German.
2. The file is in ISO 8859-1 encoding. This is the default coding
for a buffer (unless you change prefer-coding-system) so you
shouldn't need to do anything special to find/create it.
2.1. You can edit it using one of the Emacs input methods, in
which case you set the language environment to German and
select an input method such as german-postfix. With this
setting Emacs assumes an plain ASCII keyboard so the
Keyboard control panel should probably be set to US.
2.2. To typing German characters as one would in other
applications with a German Keyboard control panel setting
and insert them in ISO 8859-1 encoding, set
mac-keybord-text-encoding to kTextEncodingISOLatin1.
Could you please try these methods? Could other users share their
experience?
Andrew.
|