Text_Suite.py 5.61 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
"""Suite Text Suite: A set of basic classes for text processing.
Level 1, version 1

Generated from /Applications/Utilities/Terminal.app
AETE/AEUT resource version 1/0, language 0, script 0
"""

import aetools
import MacOS

_code = '????'

class Text_Suite_Events:

15
    pass
16 17 18


class attachment(aetools.ComponentItem):
19 20
    """attachment - Represents an inline text attachment.  This class is used mainly for make commands. """
    want = 'atts'
21
class _Prop__3c_Inheritance_3e_(aetools.NProperty):
22 23 24
    """<Inheritance> - All of the properties of the superclass. """
    which = 'c@#^'
    want = 'ctxt'
25
class _Prop_file_name(aetools.NProperty):
26 27 28
    """file name - The path to the file for the attachment """
    which = 'atfn'
    want = 'utxt'
29 30 31 32 33 34
#        element 'catr' as ['indx', 'rele', 'rang', 'test']
#        element 'cha ' as ['indx', 'rele', 'rang', 'test']
#        element 'cpar' as ['indx', 'rele', 'rang', 'test']
#        element 'cwor' as ['indx', 'rele', 'rang', 'test']

class attribute_run(aetools.ComponentItem):
35 36
    """attribute run - This subdivides the text into chunks that all have the same attributes. """
    want = 'catr'
37
class _Prop_color(aetools.NProperty):
38 39 40
    """color - The color of the first character. """
    which = 'colr'
    want = 'colr'
41
class _Prop_font(aetools.NProperty):
42 43 44
    """font - The name of the font of the first character. """
    which = 'font'
    want = 'utxt'
45
class _Prop_size(aetools.NProperty):
46 47 48
    """size - The size in points of the first character. """
    which = 'ptsz'
    want = 'long'
49 50 51 52 53 54 55 56
#        element 'catr' as ['indx', 'rele', 'rang', 'test']
#        element 'cha ' as ['indx', 'rele', 'rang', 'test']
#        element 'cpar' as ['indx', 'rele', 'rang', 'test']
#        element 'cwor' as ['indx', 'rele', 'rang', 'test']

attribute_runs = attribute_run

class character(aetools.ComponentItem):
57 58
    """character - This subdivides the text into characters. """
    want = 'cha '
59 60 61 62 63 64 65 66
#        element 'catr' as ['indx', 'rele', 'rang', 'test']
#        element 'cha ' as ['indx', 'rele', 'rang', 'test']
#        element 'cpar' as ['indx', 'rele', 'rang', 'test']
#        element 'cwor' as ['indx', 'rele', 'rang', 'test']

characters = character

class paragraph(aetools.ComponentItem):
67 68
    """paragraph - This subdivides the text into paragraphs. """
    want = 'cpar'
69 70 71 72 73 74 75 76
#        element 'catr' as ['indx', 'rele', 'rang', 'test']
#        element 'cha ' as ['indx', 'rele', 'rang', 'test']
#        element 'cpar' as ['indx', 'rele', 'rang', 'test']
#        element 'cwor' as ['indx', 'rele', 'rang', 'test']

paragraphs = paragraph

class text(aetools.ComponentItem):
77 78
    """text - Rich (styled) text """
    want = 'ctxt'
79 80 81 82 83 84
#        element 'catr' as ['indx', 'rele', 'rang', 'test']
#        element 'cha ' as ['indx', 'rele', 'rang', 'test']
#        element 'cpar' as ['indx', 'rele', 'rang', 'test']
#        element 'cwor' as ['indx', 'rele', 'rang', 'test']

class word(aetools.ComponentItem):
85 86
    """word - This subdivides the text into words. """
    want = 'cwor'
87 88 89 90 91 92 93 94
#        element 'catr' as ['indx', 'rele', 'rang', 'test']
#        element 'cha ' as ['indx', 'rele', 'rang', 'test']
#        element 'cpar' as ['indx', 'rele', 'rang', 'test']
#        element 'cwor' as ['indx', 'rele', 'rang', 'test']

words = word
attachment._superclassnames = ['text']
attachment._privpropdict = {
95 96
    '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
    'file_name' : _Prop_file_name,
97 98
}
attachment._privelemdict = {
99 100 101 102
    'attribute_run' : attribute_run,
    'character' : character,
    'paragraph' : paragraph,
    'word' : word,
103 104 105 106
}
import Standard_Suite
attribute_run._superclassnames = ['item']
attribute_run._privpropdict = {
107 108 109 110
    '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
    'color' : _Prop_color,
    'font' : _Prop_font,
    'size' : _Prop_size,
111 112
}
attribute_run._privelemdict = {
113 114 115 116
    'attribute_run' : attribute_run,
    'character' : character,
    'paragraph' : paragraph,
    'word' : word,
117 118 119
}
character._superclassnames = ['item']
character._privpropdict = {
120 121 122 123
    '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
    'color' : _Prop_color,
    'font' : _Prop_font,
    'size' : _Prop_size,
124 125
}
character._privelemdict = {
126 127 128 129
    'attribute_run' : attribute_run,
    'character' : character,
    'paragraph' : paragraph,
    'word' : word,
130 131 132
}
paragraph._superclassnames = ['item']
paragraph._privpropdict = {
133 134 135 136
    '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
    'color' : _Prop_color,
    'font' : _Prop_font,
    'size' : _Prop_size,
137 138
}
paragraph._privelemdict = {
139 140 141 142
    'attribute_run' : attribute_run,
    'character' : character,
    'paragraph' : paragraph,
    'word' : word,
143 144 145
}
text._superclassnames = ['item']
text._privpropdict = {
146 147 148 149
    '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
    'color' : _Prop_color,
    'font' : _Prop_font,
    'size' : _Prop_size,
150 151
}
text._privelemdict = {
152 153 154 155
    'attribute_run' : attribute_run,
    'character' : character,
    'paragraph' : paragraph,
    'word' : word,
156 157 158
}
word._superclassnames = ['item']
word._privpropdict = {
159 160 161 162
    '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
    'color' : _Prop_color,
    'font' : _Prop_font,
    'size' : _Prop_size,
163 164
}
word._privelemdict = {
165 166 167 168
    'attribute_run' : attribute_run,
    'character' : character,
    'paragraph' : paragraph,
    'word' : word,
169 170 171 172 173 174
}

#
# Indices of types declared in this module
#
_classdeclarations = {
175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194
    'atts' : attachment,
    'catr' : attribute_run,
    'cha ' : character,
    'cpar' : paragraph,
    'ctxt' : text,
    'cwor' : word,
}

_propdeclarations = {
    'atfn' : _Prop_file_name,
    'c@#^' : _Prop__3c_Inheritance_3e_,
    'colr' : _Prop_color,
    'font' : _Prop_font,
    'ptsz' : _Prop_size,
}

_compdeclarations = {
}

_enumdeclarations = {
195
}