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 2.8KB

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