Re: Problem mit xemacs encoding und Umlaute ispell
Hallo Emal,
keine Ahnung ob dir meine files helfen, aber zumindest das
Ispell-Problem kommt mir bekannt vor und mit diesen Konfigurationen
hatte ich es während meiner Diplomarbeit nicht.
Viel Erfolg.
Gruß
Lars
~/.xemacs/custom.el
-----8<-----
(custom-set-variables
'(font-lock-auto-fontify t)
'(gnuplot-delay 0.001)
'(gnuplot-display-process (quote window))
'(fill-column 60)
'(ispell-local-dictionary "deutsch8")
'(gnuserv-program (concat exec-directory "/gnuserv"))
'(buffers-tab-max-size 0)
'(gnuserv-visit-hook (lambda nil (raise-frame) (recenter)))
'(gnuplot-echo-command-line-flag t)
'(line-number-mode t)
'(gnuserv-frame t)
'(indent-tabs-mode t)
'(font-lock-mode t nil (font-lock)))
(custom-set-faces)
----->8------
Folgende ist aber wohl wichtiger, für dich vielleicht besonders der
zweite große Block nach den ganzen ;;;;;;;;;;;;
~/.xemacs/init.el
------8<------
; ---- language-env DON'T MODIFY THIS LINE!
; $Id: emacs,v 1.4 1998/02/20 18:35:26 leutloff Exp leutloff $
(setq text-mode-hook
'(lambda nil
(setq fill-column 80)
(auto-fill-mode 1)))
(setq bell-volume 0)
(global-set-key [button4] 'scroll-down)
(global-set-key [button5] 'scroll-up)
(global-set-key [f10] 'kill-buffer)
;(global-set-key [f6] 'TeX-command-master)
(global-set-key [f7] 'TeX-next-error)
(global-set-key [f2] 'save-buffer)
(global-set-key [f3] 'ispell-buffer)
(global-set-key [(shift f3)] 'ispell-change-dictionary)
(add-hook 'LaTeX-mode-hook '(lambda ()
(turn-on-reftex); Turn on RefTeX Minor Mode for all LaTeX files
(define-key LaTeX-mode-map [f4] 'TeX-next-error)
(define-key LaTeX-mode-map [f6]
'(lambda () (interactive)
(TeX-command-menu "LaTeX")))
(define-key LaTeX-mode-map [f5]
'(lambda () (interactive)
(TeX-command-menu "View")))
(define-key LaTeX-mode-map [f8]
'(lambda () (interactive)
(TeX-command-menu "BibTeX")))))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;,
;;;;; HIER !!!!!!
(setq
ispell-local-dictionary-alist
'(("german"
"[a-zA-Z\"]" "[^a-zA-Z\"]" "[']" t ("-C") "~tex" iso-8859-1)
("german8"
"[a-zA-ZÄÖÜäöüß]"
"[^a-zA-ZÄÖÜäöüß]"
"[']" t ("-C" "-d" "german") "~latin1" iso-8859-1)))
(setq ispell-dictionary "ndeutsch8")
(setq ispell-local-dictionary "ndeutsch8")
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;,
(require 'iso-cvt)
(gnuserv-start)
;(add-hook 'TeX-mode-hook
; (function (lambda()
; (TeX-run-style-hooks "german")
; (format-encode-buffer 'plain)
; (format-decode-buffer 'gtex))))
(require 'tex-site)
(turn-on-reftex)
(setq TeX-default-mode 'LaTeX-mode)
(setq LaTeX-command-style '(("." "latex --src-specials")))
;;--- support european keys -------------------------------
(set-input-mode (car (current-input-mode))
(nth 1 (current-input-mode))
0)
; `standard-display-european' is semi-obsolete and conflicts
; with multibyte characters. `set-language-environment' is
; a substitute.
; (standard-display-european t)
; don't use non-ascii (i.e. german umlauts) as word delimiter
(if (>= emacs-major-version 21)
(progn
(set-language-environment "Latin-9")
(setq selection-coding-system 'compound-text-with-extensions)
)
(if (>= emacs-major-version 20)
(set-language-environment "Latin-1")
(require 'iso-syntax)))
(require 'disp-table)
;;--- redefine some keys ----------------------------------
;(global-set-key [backspace] 'backward-delete-char-untabify)
; the following line should not break delete char during incremental
; search - has this other disadvantages?
(global-set-key "\177" 'backward-delete-char-untabify)
(global-set-key [delete] 'delete-char)
(global-set-key [home] 'beginning-of-line)
(global-set-key [end] 'end-of-line)
;(global-set-key [C-home] 'beginning-of-buffer)
;(global-set-key [C-end] 'end-of-buffer)
; entries needed by XEmacs:
(global-set-key [(control home)] 'beginning-of-buffer)
(global-set-key [(control end)] 'end-of-buffer)
;;--- Names for calendar command -------------------------
(defvar calendar-day-name-array
["Son" "Mon" "Die" "Mit" "Don" "Fre" "Sam"])
(defvar calendar-month-name-array
["Januar" "Februar" "März" "April" "Mai" "Juni"
"Juli" "August" "September" "Oktober" "November" "Dezember"])
; ---- language-env end DON'T MODIFY THIS LINE!
----->8-----
On Sun, 2003-10-05 at 12:51, M. Emal Alekozai wrote:
> Hallo Mailingliste,
>
> ich habe folgende zwei Probleme mit xemacs und Ispell die auch beim suchen in Google nich t gelöst
> wurden:
>
> 1. wenn ich aus kedit Wörter mit Umlaute über die mittlere Maustaste in xemacs einfüge, werden die
> Umlaute falsch dargestellt (ich vermute es liegt an der Einstellung des Encodings). Wass mus in der
> xemacs konfigurations Datei stehen ?
>
> z.B:
> kedit: Lösung gesucht?
> xemacs: LESC%/1<80><8C>iso8859-15^Bösung gesucht
>
> 2. Ispell erkennt in xemacs Umlaute und ß in Wörter nicht.In der Konsole funktioniert es perfekt.
> Ispell in xemacs erkkennt beim Wort:
> - "Fällen" nur "allen" als Wort
> - "große" wird zu "grosS"
> Nachfolgend ist meine xemacs konfigurations Datei.
>
> Bin für jeden Tip dankbar.
>
> Viele Grüsse
> Emal Alekozai
>
>
>
> ----------------Inhalt von ~/.xemacs/custom.el---------------------
> (custom-set-variables
> '(font-lock-maximum-decoration t)
> '(column-number-mode t)
> '(gnuserv-program (concat exec-directory "/gnuserv"))
> '(truncate-lines nil)
> '(line-number-mode t)
> '(font-lock-mode t nil (font-lock)))
> (custom-set-faces
> '(default ((t (:size "12pt" :family "Helvetica"))) t))
>
> (add-hook 'LaTeX-mode-hook
> '(lambda ()
> (ispell-change-dictionary "deutsch (latin1)")))
--
LarsWeissflog
L@rs-W dot DE
Reply to: