| Class | Text::Hyphen::Language |
| In: |
lib/text/hyphen/language.rb
|
| Parent: | Object |
Language scaffolding support for Text::Hyphen. Language hyphenation patterns are defined as instances of this class — and only this class. This is a deliberate "breaking" of Ruby‘s concept of duck-typing and is intended to provide an indication that the patterns have been converted from TeX encodings to other encodings (e.g., latin1 or UTF-8) that are more suitable to general text manipulations.
| WORD_START_RE | = | %r{^\.} |
| WORD_END_RE | = | %r{\.$} |
| DIGIT_RE | = | %r{\d} |
| NONDIGIT_RE | = | %r{\D} |
| DASH_RE | = | %r{-} |
| EXCEPTION_DASH0_RE | = | %r{[^-](?=[^-])} |
| EXCEPTION_DASH1_RE | = | %r{[^-]-} |
| EXCEPTION_NONUM_RE | = | %r{[^01]} |
| ZERO_INSERT_RE | = | %r{(\D)(?=\D)} |
| ZERO_START_RE | = | %r{^(?=\D)} |
| exceptions | [RW] | |
| isocode | [RW] | |
| left | [RW] | |
| right | [RW] |