;;; hyphen-dk.el --- hyphenation patterns for Danish. ;; Copyright (C) 1998, 1999 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 "dk" :left-min 2 :right-min 2 :patterns "hyphen-dk.pat") (hyphen-define-locale-alias "Dansk" "dk") (hyphen-define-locale-alias "Danish" "dk") (defun hyphen-dk-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))) '(("\\\\aa\\({}\\|[ \t]*\\)" . "å") ("\\\\ae\\({}\\|[ \t]*\\)" . "æ") ("\\\\o\\({}\\|[ \t]*\\)" . "ø") ("^[ \t]*\n" . "") ("^[ \t]+" . "") ("[ \t]+$" . "") ("[ \t]+" . "\n"))) nil)) ;; local variables: ;; coding: iso-latin-1 ;; end: ;;; hyphen-dk.el ends here