1 '''
2 Word parsing related constants.
3
4 @var FORMAT_TEXT: Words will be output without spelling
5 @type FORMAT_TEXT: integer
6 @var FORMAT_PRONOUNCE: Punctuation will be pronounced
7 @type FORMAT_PRONOUNCE: integer
8 @var FORMAT_SPELL: All characters in a word will be spelled
9 @type FORMAT_SPELL: integer
10 @var FORMAT_PHONETIC: All characters in a word will be spelled using a phonetic
11 spelling table
12 @type FORMAT_PHONETIC: integer
13 @var WORD_NON_BLANK: Definition indicating all non-blank characters should be
14 considered the main part of a word
15 @type WORD_NON_BLANK: integer
16 @var WORD_ALPHABETIC: Definition indicating all letters should be considered
17 the main part of a word
18 @type WORD_ALPHABETIC: integer
19 @var WORD_ALPHA_NUMERIC: Definition indicating all letters and numbers should
20 be considered the main part of a word
21 @type WORD_ALPHA_NUMERIC: integer
22 @var WORD_ALPHA_PUNCT: Definition indicating all letters and punctuation should
23 be considered the main part of a word
24 @type WORD_ALPHA_PUNCT: integer
25 @var WORD_ALPHA_NUMERIC_PUNCT: Definition indicating all letters, numbers, and
26 punctuation should be considered the main part of a word
27 @type WORD_ALPHA_NUMERIC_PUNCT: integer
28
29 @author: Peter Parente
30 @organization: IBM Corporation
31 @copyright: Copyright (c) 2005, 2007 IBM Corporation
32 @license: The BSD License
33
34 All rights reserved. This program and the accompanying materials are made
35 available under the terms of the BSD license which accompanies
36 this distribution, and is available at
37 U{http://www.opensource.org/licenses/bsd-license.php}
38 '''
39
40
41 WORD_NON_BLANK = 0
42 WORD_ALPHABETIC = 1
43 WORD_ALPHA_NUMERIC = 2
44 WORD_ALPHA_PUNCT = 3
45 WORD_ALPHA_NUMERIC_PUNCT = 4
46 WORD_LAST = 4
47
48
49 FORMAT_TEXT = 0
50 FORMAT_PRONOUNCE = 1
51 FORMAT_SPELL = 2
52 FORMAT_PHONETIC = 3
53 FORMAT_LAST = 3
54