You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

hyphenation.dtd 3.0KB

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