;;; hyphen-de@t.el --- hyphenation patterns for traditional German. ;; Copyright (C) 1998--2004 Ralph Schleicher ;; Author: Ralph Schleicher ;; Keywords: wp local ;; This file is not part of GNU Emacs. ;; This program is free software; you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by ;; the Free Software Foundation; either version 2, or (at your option) ;; any later version. ;; This program is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;; GNU General Public License for more details. ;; You should have received a copy of the GNU General Public License ;; along with this program; see the file COPYING. If not, write to ;; the Free Software Foundation, Inc., 59 Temple Place, Suite 330, ;; Boston, MA 02111-1307, USA. ;;; Code: (hyphen-define-locale "de@t" :left-min 2 :right-min 2 :patterns "hyphen-de@t.pat") (hyphen-define-locale-alias "deutsch" "de@t") (hyphen-define-locale-alias "german" "de@t") (defun hyphen-de@t-prepare-patterns () "Don't use this yourself." (let (from to) (mapcar (lambda (regexp) (setq from (car regexp) to (cdr regexp)) (goto-char (point-min)) (while (re-search-forward from nil t) (replace-match to t))) '(("\\\\n{\\([^}]*\\)}" . "\\1") ("\\\\c{\\([^}]*\\)}" . "") ("\"a" . "ä") ("\"o" . "ö") ("\"u" . "ü") ("\\\\3" . "ß") ("^[ \t]*\n" . "") ("^[ \t]+" . "") ("[ \t]+$" . "") ("[ \t]+" . "\n"))) nil)) ;; local variables: ;; coding: iso-latin-1 ;; end: ;;; hyphen-de@t.el ends here