test_whitespace_eater_unicode(): Make this test Python 2.1 compatible.
[python/dscho.git] / Lib / plat-mac / lib-scriptpackages / StdSuites / Text_Suite.py
blob9b7f5d513bd33509897504ab7d2f74ab1b711088
1 """Suite Text Suite: A set of basic classes for text processing
2 Level 1, version 1
4 Generated from /Volumes/Sap/System Folder/Extensions/AppleScript
5 AETE/AEUT resource version 1/0, language 0, script 0
6 """
8 import aetools
9 import MacOS
11 _code = 'TEXT'
13 class Text_Suite_Events:
15 pass
18 class character(aetools.ComponentItem):
19 """character - A character """
20 want = 'cha '
21 class _3c_inheritance_3e_(aetools.NProperty):
22 """<inheritance> - inherits some of its properties from this class """
23 which = 'c@#^'
24 want = 'ctxt'
26 class line(aetools.ComponentItem):
27 """line - A line of text """
28 want = 'clin'
29 class justification(aetools.NProperty):
30 """justification - the justification of the text """
31 which = 'pjst'
32 want = 'just'
34 lines = line
36 class paragraph(aetools.ComponentItem):
37 """paragraph - A paragraph """
38 want = 'cpar'
40 paragraphs = paragraph
42 class text(aetools.ComponentItem):
43 """text - Text """
44 want = 'ctxt'
45 class color(aetools.NProperty):
46 """color - the color of the first character """
47 which = 'colr'
48 want = 'cRGB'
49 class font(aetools.NProperty):
50 """font - the name of the font of the first character """
51 which = 'font'
52 want = 'ctxt'
53 class size(aetools.NProperty):
54 """size - the size in points of the first character """
55 which = 'ptsz'
56 want = 'fixd'
57 class writing_code(aetools.NProperty):
58 """writing code - the script system and language """
59 which = 'psct'
60 want = 'intl'
61 class style(aetools.NProperty):
62 """style - the text style of the first character of the first character """
63 which = 'txst'
64 want = 'tsty'
65 class uniform_styles(aetools.NProperty):
66 """uniform styles - the text styles that are uniform throughout the text """
67 which = 'ustl'
68 want = 'tsty'
69 # element 'cha ' as ['indx']
70 # element 'clin' as ['indx']
71 # element 'cpar' as ['indx']
72 # element 'ctxt' as ['indx']
73 # element 'cwor' as ['indx']
75 class text_flow(aetools.ComponentItem):
76 """text flow - A contiguous block of text. Page layout applications call this a \xd4story.\xd5 """
77 want = 'cflo'
78 class name(aetools.NProperty):
79 """name - the name """
80 which = 'pnam'
81 want = 'itxt'
83 text_flows = text_flow
85 class text_style_info(aetools.ComponentItem):
86 """text style info - On and Off styles of text run """
87 want = 'tsty'
88 class on_styles(aetools.NProperty):
89 """on styles - the styles that are on for the text """
90 which = 'onst'
91 want = 'styl'
92 class off_styles(aetools.NProperty):
93 """off styles - the styles that are off for the text """
94 which = 'ofst'
95 want = 'styl'
97 text_style_infos = text_style_info
99 class word(aetools.ComponentItem):
100 """word - A word """
101 want = 'cwor'
103 words = word
104 character._superclassnames = ['text']
105 character._privpropdict = {
106 '_3c_inheritance_3e_' : _3c_inheritance_3e_,
108 character._privelemdict = {
110 line._superclassnames = ['text']
111 line._privpropdict = {
112 '_3c_inheritance_3e_' : _3c_inheritance_3e_,
113 'justification' : justification,
115 line._privelemdict = {
117 paragraph._superclassnames = ['text']
118 paragraph._privpropdict = {
119 '_3c_inheritance_3e_' : _3c_inheritance_3e_,
121 paragraph._privelemdict = {
123 text._superclassnames = []
124 text._privpropdict = {
125 'color' : color,
126 'font' : font,
127 'size' : size,
128 'writing_code' : writing_code,
129 'style' : style,
130 'uniform_styles' : uniform_styles,
132 text._privelemdict = {
133 'character' : character,
134 'line' : line,
135 'paragraph' : paragraph,
136 'text' : text,
137 'word' : word,
139 text_flow._superclassnames = ['text']
140 text_flow._privpropdict = {
141 '_3c_inheritance_3e_' : _3c_inheritance_3e_,
142 'name' : name,
144 text_flow._privelemdict = {
146 text_style_info._superclassnames = []
147 text_style_info._privpropdict = {
148 'on_styles' : on_styles,
149 'off_styles' : off_styles,
151 text_style_info._privelemdict = {
153 word._superclassnames = ['text']
154 word._privpropdict = {
155 '_3c_inheritance_3e_' : _3c_inheritance_3e_,
157 word._privelemdict = {
159 _Enum_just = {
160 'left' : 'left', # Align with left margin
161 'right' : 'rght', # Align with right margin
162 'center' : 'cent', # Align with center
163 'full' : 'full', # Align with both left and right margins
166 _Enum_styl = {
167 'plain' : 'plan', # Plain
168 'bold' : 'bold', # Bold
169 'italic' : 'ital', # Italic
170 'outline' : 'outl', # Outline
171 'shadow' : 'shad', # Shadow
172 'underline' : 'undl', # Underline
173 'superscript' : 'spsc', # Superscript
174 'subscript' : 'sbsc', # Subscript
175 'strikethrough' : 'strk', # Strikethrough
176 'small_caps' : 'smcp', # Small caps
177 'all_caps' : 'alcp', # All capital letters
178 'all_lowercase' : 'lowc', # Lowercase
179 'condensed' : 'cond', # Condensed
180 'expanded' : 'pexp', # Expanded
181 'hidden' : 'hidn', # Hidden
186 # Indices of types declared in this module
188 _classdeclarations = {
189 'cpar' : paragraph,
190 'cha ' : character,
191 'cflo' : text_flow,
192 'tsty' : text_style_info,
193 'clin' : line,
194 'cwor' : word,
195 'ctxt' : text,
198 _propdeclarations = {
199 'ptsz' : size,
200 'ofst' : off_styles,
201 'pjst' : justification,
202 'colr' : color,
203 'txst' : style,
204 'psct' : writing_code,
205 'ustl' : uniform_styles,
206 'c@#^' : _3c_inheritance_3e_,
207 'pnam' : name,
208 'font' : font,
209 'onst' : on_styles,
212 _compdeclarations = {
215 _enumdeclarations = {
216 'styl' : _Enum_styl,
217 'just' : _Enum_just,