| 1 | n/a | """Suite Text Suite: A set of basic classes for text processing. |
|---|
| 2 | n/a | Level 1, version 1 |
|---|
| 3 | n/a | |
|---|
| 4 | n/a | Generated from /Applications/Utilities/Terminal.app |
|---|
| 5 | n/a | AETE/AEUT resource version 1/0, language 0, script 0 |
|---|
| 6 | n/a | """ |
|---|
| 7 | n/a | |
|---|
| 8 | n/a | import aetools |
|---|
| 9 | n/a | import MacOS |
|---|
| 10 | n/a | |
|---|
| 11 | n/a | _code = '????' |
|---|
| 12 | n/a | |
|---|
| 13 | n/a | class Text_Suite_Events: |
|---|
| 14 | n/a | |
|---|
| 15 | n/a | pass |
|---|
| 16 | n/a | |
|---|
| 17 | n/a | |
|---|
| 18 | n/a | class attachment(aetools.ComponentItem): |
|---|
| 19 | n/a | """attachment - Represents an inline text attachment. This class is used mainly for make commands. """ |
|---|
| 20 | n/a | want = 'atts' |
|---|
| 21 | n/a | class _Prop__3c_Inheritance_3e_(aetools.NProperty): |
|---|
| 22 | n/a | """<Inheritance> - All of the properties of the superclass. """ |
|---|
| 23 | n/a | which = 'c@#^' |
|---|
| 24 | n/a | want = 'ctxt' |
|---|
| 25 | n/a | class _Prop_file_name(aetools.NProperty): |
|---|
| 26 | n/a | """file name - The path to the file for the attachment """ |
|---|
| 27 | n/a | which = 'atfn' |
|---|
| 28 | n/a | want = 'utxt' |
|---|
| 29 | n/a | # element 'catr' as ['indx', 'rele', 'rang', 'test'] |
|---|
| 30 | n/a | # element 'cha ' as ['indx', 'rele', 'rang', 'test'] |
|---|
| 31 | n/a | # element 'cpar' as ['indx', 'rele', 'rang', 'test'] |
|---|
| 32 | n/a | # element 'cwor' as ['indx', 'rele', 'rang', 'test'] |
|---|
| 33 | n/a | |
|---|
| 34 | n/a | class attribute_run(aetools.ComponentItem): |
|---|
| 35 | n/a | """attribute run - This subdivides the text into chunks that all have the same attributes. """ |
|---|
| 36 | n/a | want = 'catr' |
|---|
| 37 | n/a | class _Prop_color(aetools.NProperty): |
|---|
| 38 | n/a | """color - The color of the first character. """ |
|---|
| 39 | n/a | which = 'colr' |
|---|
| 40 | n/a | want = 'colr' |
|---|
| 41 | n/a | class _Prop_font(aetools.NProperty): |
|---|
| 42 | n/a | """font - The name of the font of the first character. """ |
|---|
| 43 | n/a | which = 'font' |
|---|
| 44 | n/a | want = 'utxt' |
|---|
| 45 | n/a | class _Prop_size(aetools.NProperty): |
|---|
| 46 | n/a | """size - The size in points of the first character. """ |
|---|
| 47 | n/a | which = 'ptsz' |
|---|
| 48 | n/a | want = 'long' |
|---|
| 49 | n/a | # element 'catr' as ['indx', 'rele', 'rang', 'test'] |
|---|
| 50 | n/a | # element 'cha ' as ['indx', 'rele', 'rang', 'test'] |
|---|
| 51 | n/a | # element 'cpar' as ['indx', 'rele', 'rang', 'test'] |
|---|
| 52 | n/a | # element 'cwor' as ['indx', 'rele', 'rang', 'test'] |
|---|
| 53 | n/a | |
|---|
| 54 | n/a | attribute_runs = attribute_run |
|---|
| 55 | n/a | |
|---|
| 56 | n/a | class character(aetools.ComponentItem): |
|---|
| 57 | n/a | """character - This subdivides the text into characters. """ |
|---|
| 58 | n/a | want = 'cha ' |
|---|
| 59 | n/a | # element 'catr' as ['indx', 'rele', 'rang', 'test'] |
|---|
| 60 | n/a | # element 'cha ' as ['indx', 'rele', 'rang', 'test'] |
|---|
| 61 | n/a | # element 'cpar' as ['indx', 'rele', 'rang', 'test'] |
|---|
| 62 | n/a | # element 'cwor' as ['indx', 'rele', 'rang', 'test'] |
|---|
| 63 | n/a | |
|---|
| 64 | n/a | characters = character |
|---|
| 65 | n/a | |
|---|
| 66 | n/a | class paragraph(aetools.ComponentItem): |
|---|
| 67 | n/a | """paragraph - This subdivides the text into paragraphs. """ |
|---|
| 68 | n/a | want = 'cpar' |
|---|
| 69 | n/a | # element 'catr' as ['indx', 'rele', 'rang', 'test'] |
|---|
| 70 | n/a | # element 'cha ' as ['indx', 'rele', 'rang', 'test'] |
|---|
| 71 | n/a | # element 'cpar' as ['indx', 'rele', 'rang', 'test'] |
|---|
| 72 | n/a | # element 'cwor' as ['indx', 'rele', 'rang', 'test'] |
|---|
| 73 | n/a | |
|---|
| 74 | n/a | paragraphs = paragraph |
|---|
| 75 | n/a | |
|---|
| 76 | n/a | class text(aetools.ComponentItem): |
|---|
| 77 | n/a | """text - Rich (styled) text """ |
|---|
| 78 | n/a | want = 'ctxt' |
|---|
| 79 | n/a | # element 'catr' as ['indx', 'rele', 'rang', 'test'] |
|---|
| 80 | n/a | # element 'cha ' as ['indx', 'rele', 'rang', 'test'] |
|---|
| 81 | n/a | # element 'cpar' as ['indx', 'rele', 'rang', 'test'] |
|---|
| 82 | n/a | # element 'cwor' as ['indx', 'rele', 'rang', 'test'] |
|---|
| 83 | n/a | |
|---|
| 84 | n/a | class word(aetools.ComponentItem): |
|---|
| 85 | n/a | """word - This subdivides the text into words. """ |
|---|
| 86 | n/a | want = 'cwor' |
|---|
| 87 | n/a | # element 'catr' as ['indx', 'rele', 'rang', 'test'] |
|---|
| 88 | n/a | # element 'cha ' as ['indx', 'rele', 'rang', 'test'] |
|---|
| 89 | n/a | # element 'cpar' as ['indx', 'rele', 'rang', 'test'] |
|---|
| 90 | n/a | # element 'cwor' as ['indx', 'rele', 'rang', 'test'] |
|---|
| 91 | n/a | |
|---|
| 92 | n/a | words = word |
|---|
| 93 | n/a | attachment._superclassnames = ['text'] |
|---|
| 94 | n/a | attachment._privpropdict = { |
|---|
| 95 | n/a | '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, |
|---|
| 96 | n/a | 'file_name' : _Prop_file_name, |
|---|
| 97 | n/a | } |
|---|
| 98 | n/a | attachment._privelemdict = { |
|---|
| 99 | n/a | 'attribute_run' : attribute_run, |
|---|
| 100 | n/a | 'character' : character, |
|---|
| 101 | n/a | 'paragraph' : paragraph, |
|---|
| 102 | n/a | 'word' : word, |
|---|
| 103 | n/a | } |
|---|
| 104 | n/a | import Standard_Suite |
|---|
| 105 | n/a | attribute_run._superclassnames = ['item'] |
|---|
| 106 | n/a | attribute_run._privpropdict = { |
|---|
| 107 | n/a | '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, |
|---|
| 108 | n/a | 'color' : _Prop_color, |
|---|
| 109 | n/a | 'font' : _Prop_font, |
|---|
| 110 | n/a | 'size' : _Prop_size, |
|---|
| 111 | n/a | } |
|---|
| 112 | n/a | attribute_run._privelemdict = { |
|---|
| 113 | n/a | 'attribute_run' : attribute_run, |
|---|
| 114 | n/a | 'character' : character, |
|---|
| 115 | n/a | 'paragraph' : paragraph, |
|---|
| 116 | n/a | 'word' : word, |
|---|
| 117 | n/a | } |
|---|
| 118 | n/a | character._superclassnames = ['item'] |
|---|
| 119 | n/a | character._privpropdict = { |
|---|
| 120 | n/a | '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, |
|---|
| 121 | n/a | 'color' : _Prop_color, |
|---|
| 122 | n/a | 'font' : _Prop_font, |
|---|
| 123 | n/a | 'size' : _Prop_size, |
|---|
| 124 | n/a | } |
|---|
| 125 | n/a | character._privelemdict = { |
|---|
| 126 | n/a | 'attribute_run' : attribute_run, |
|---|
| 127 | n/a | 'character' : character, |
|---|
| 128 | n/a | 'paragraph' : paragraph, |
|---|
| 129 | n/a | 'word' : word, |
|---|
| 130 | n/a | } |
|---|
| 131 | n/a | paragraph._superclassnames = ['item'] |
|---|
| 132 | n/a | paragraph._privpropdict = { |
|---|
| 133 | n/a | '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, |
|---|
| 134 | n/a | 'color' : _Prop_color, |
|---|
| 135 | n/a | 'font' : _Prop_font, |
|---|
| 136 | n/a | 'size' : _Prop_size, |
|---|
| 137 | n/a | } |
|---|
| 138 | n/a | paragraph._privelemdict = { |
|---|
| 139 | n/a | 'attribute_run' : attribute_run, |
|---|
| 140 | n/a | 'character' : character, |
|---|
| 141 | n/a | 'paragraph' : paragraph, |
|---|
| 142 | n/a | 'word' : word, |
|---|
| 143 | n/a | } |
|---|
| 144 | n/a | text._superclassnames = ['item'] |
|---|
| 145 | n/a | text._privpropdict = { |
|---|
| 146 | n/a | '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, |
|---|
| 147 | n/a | 'color' : _Prop_color, |
|---|
| 148 | n/a | 'font' : _Prop_font, |
|---|
| 149 | n/a | 'size' : _Prop_size, |
|---|
| 150 | n/a | } |
|---|
| 151 | n/a | text._privelemdict = { |
|---|
| 152 | n/a | 'attribute_run' : attribute_run, |
|---|
| 153 | n/a | 'character' : character, |
|---|
| 154 | n/a | 'paragraph' : paragraph, |
|---|
| 155 | n/a | 'word' : word, |
|---|
| 156 | n/a | } |
|---|
| 157 | n/a | word._superclassnames = ['item'] |
|---|
| 158 | n/a | word._privpropdict = { |
|---|
| 159 | n/a | '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, |
|---|
| 160 | n/a | 'color' : _Prop_color, |
|---|
| 161 | n/a | 'font' : _Prop_font, |
|---|
| 162 | n/a | 'size' : _Prop_size, |
|---|
| 163 | n/a | } |
|---|
| 164 | n/a | word._privelemdict = { |
|---|
| 165 | n/a | 'attribute_run' : attribute_run, |
|---|
| 166 | n/a | 'character' : character, |
|---|
| 167 | n/a | 'paragraph' : paragraph, |
|---|
| 168 | n/a | 'word' : word, |
|---|
| 169 | n/a | } |
|---|
| 170 | n/a | |
|---|
| 171 | n/a | # |
|---|
| 172 | n/a | # Indices of types declared in this module |
|---|
| 173 | n/a | # |
|---|
| 174 | n/a | _classdeclarations = { |
|---|
| 175 | n/a | 'atts' : attachment, |
|---|
| 176 | n/a | 'catr' : attribute_run, |
|---|
| 177 | n/a | 'cha ' : character, |
|---|
| 178 | n/a | 'cpar' : paragraph, |
|---|
| 179 | n/a | 'ctxt' : text, |
|---|
| 180 | n/a | 'cwor' : word, |
|---|
| 181 | n/a | } |
|---|
| 182 | n/a | |
|---|
| 183 | n/a | _propdeclarations = { |
|---|
| 184 | n/a | 'atfn' : _Prop_file_name, |
|---|
| 185 | n/a | 'c@#^' : _Prop__3c_Inheritance_3e_, |
|---|
| 186 | n/a | 'colr' : _Prop_color, |
|---|
| 187 | n/a | 'font' : _Prop_font, |
|---|
| 188 | n/a | 'ptsz' : _Prop_size, |
|---|
| 189 | n/a | } |
|---|
| 190 | n/a | |
|---|
| 191 | n/a | _compdeclarations = { |
|---|
| 192 | n/a | } |
|---|
| 193 | n/a | |
|---|
| 194 | n/a | _enumdeclarations = { |
|---|
| 195 | n/a | } |
|---|