1 <?xml version="1.0" encoding="utf-8"?>
3 Copyright 1999-2004 The Apache Software Foundation
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
9 http://www.apache.org/licenses/LICENSE-2.0
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
17 <!-- $Id: hyphenation.dtd,v 1.3 2004/02/27 18:34:59 jeremias Exp $ -->
19 <!ELEMENT hyphenation-info (hyphen-char?, hyphen-min?,
20 classes, exceptions?, patterns)>
22 <!-- Hyphen character to be used in the exception list as shortcut for
23 <hyphen pre-break="-"/>. Defaults to '-'
25 <!ELEMENT hyphen-char EMPTY>
26 <!ATTLIST hyphen-char value CDATA #REQUIRED>
28 <!-- Default minimun length in characters of hyphenated word fragments
29 before and after the line break. For some languages this is not
30 only for aesthetic purposes, wrong hyphens may be generated if this
33 <!ELEMENT hyphen-min EMPTY>
34 <!ATTLIST hyphen-min before CDATA #REQUIRED>
35 <!ATTLIST hyphen-min after CDATA #REQUIRED>
37 <!-- Character equivalent classes: space separated list of character groups, all
38 characters in a group are to be treated equivalent as far as
39 the hyphenation algorithm is concerned. The first character in a group
40 is the group's equivalent character. Patterns should only contain
41 first characters. It also defines word characters, i.e. a word that
42 contains characters not present in any of the classes is not hyphenated.
44 <!ELEMENT classes (#PCDATA)>
46 <!-- Hyphenation exceptions: space separated list of hyphenated words.
47 A hyphen is indicated by the hyphen tag, but you can use the
48 hyphen-char defined previously as shortcut. This is in cases
49 when the algorithm procedure finds wrong hyphens or you want
50 to provide your own hyphenation for some words.
52 <!ELEMENT exceptions (#PCDATA|hyphen)* >
54 <!-- The hyphenation patterns, space separated. A pattern is made of 'equivalent'
55 characters as described before, between any two word characters a digit
56 in the range 0 to 9 may be specified. The absence of a digit is equivalent
57 to zero. The '.' character is reserved to indicate begining or ending
59 <!ELEMENT patterns (#PCDATA)>
61 <!-- A "full hyphen" equivalent to TeX's \discretionary
62 with pre-break, post-break and no-break attributes.
63 To be used in the exceptions list, the hyphen character is not
64 automatically added -->
65 <!ELEMENT hyphen EMPTY>
66 <!ATTLIST hyphen pre CDATA #IMPLIED>
67 <!ATTLIST hyphen no CDATA #IMPLIED>
68 <!ATTLIST hyphen post CDATA #IMPLIED>