| 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 /Volumes/Sap/System Folder/Extensions/AppleScript |
|---|
| 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 = 'TEXT' |
|---|
| 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 text_flow(aetools.ComponentItem): |
|---|
| 19 | n/a | """text flow - A contiguous block of text. Page layout applications call this a \xd4story.\xd5 """ |
|---|
| 20 | n/a | want = 'cflo' |
|---|
| 21 | n/a | class _Prop__3c_inheritance_3e_(aetools.NProperty): |
|---|
| 22 | n/a | """<inheritance> - inherits some of its properties from this class """ |
|---|
| 23 | n/a | which = 'c@#^' |
|---|
| 24 | n/a | want = 'ctxt' |
|---|
| 25 | n/a | class _Prop_name(aetools.NProperty): |
|---|
| 26 | n/a | """name - the name """ |
|---|
| 27 | n/a | which = 'pnam' |
|---|
| 28 | n/a | want = 'itxt' |
|---|
| 29 | n/a | |
|---|
| 30 | n/a | text_flows = text_flow |
|---|
| 31 | n/a | |
|---|
| 32 | n/a | class character(aetools.ComponentItem): |
|---|
| 33 | n/a | """character - A character """ |
|---|
| 34 | n/a | want = 'cha ' |
|---|
| 35 | n/a | |
|---|
| 36 | n/a | class line(aetools.ComponentItem): |
|---|
| 37 | n/a | """line - A line of text """ |
|---|
| 38 | n/a | want = 'clin' |
|---|
| 39 | n/a | class _Prop_justification(aetools.NProperty): |
|---|
| 40 | n/a | """justification - the justification of the text """ |
|---|
| 41 | n/a | which = 'pjst' |
|---|
| 42 | n/a | want = 'just' |
|---|
| 43 | n/a | |
|---|
| 44 | n/a | lines = line |
|---|
| 45 | n/a | |
|---|
| 46 | n/a | class paragraph(aetools.ComponentItem): |
|---|
| 47 | n/a | """paragraph - A paragraph """ |
|---|
| 48 | n/a | want = 'cpar' |
|---|
| 49 | n/a | |
|---|
| 50 | n/a | paragraphs = paragraph |
|---|
| 51 | n/a | |
|---|
| 52 | n/a | class text(aetools.ComponentItem): |
|---|
| 53 | n/a | """text - Text """ |
|---|
| 54 | n/a | want = 'ctxt' |
|---|
| 55 | n/a | class _Prop_color(aetools.NProperty): |
|---|
| 56 | n/a | """color - the color of the first character """ |
|---|
| 57 | n/a | which = 'colr' |
|---|
| 58 | n/a | want = 'cRGB' |
|---|
| 59 | n/a | class _Prop_font(aetools.NProperty): |
|---|
| 60 | n/a | """font - the name of the font of the first character """ |
|---|
| 61 | n/a | which = 'font' |
|---|
| 62 | n/a | want = 'ctxt' |
|---|
| 63 | n/a | class _Prop_quoted_form(aetools.NProperty): |
|---|
| 64 | n/a | """quoted form - the text in quoted form """ |
|---|
| 65 | n/a | which = 'strq' |
|---|
| 66 | n/a | want = 'ctxt' |
|---|
| 67 | n/a | class _Prop_size(aetools.NProperty): |
|---|
| 68 | n/a | """size - the size in points of the first character """ |
|---|
| 69 | n/a | which = 'ptsz' |
|---|
| 70 | n/a | want = 'fixd' |
|---|
| 71 | n/a | class _Prop_style(aetools.NProperty): |
|---|
| 72 | n/a | """style - the text style of the first character of the first character """ |
|---|
| 73 | n/a | which = 'txst' |
|---|
| 74 | n/a | want = 'tsty' |
|---|
| 75 | n/a | class _Prop_uniform_styles(aetools.NProperty): |
|---|
| 76 | n/a | """uniform styles - the text styles that are uniform throughout the text """ |
|---|
| 77 | n/a | which = 'ustl' |
|---|
| 78 | n/a | want = 'tsty' |
|---|
| 79 | n/a | class _Prop_writing_code(aetools.NProperty): |
|---|
| 80 | n/a | """writing code - the script system and language """ |
|---|
| 81 | n/a | which = 'psct' |
|---|
| 82 | n/a | want = 'intl' |
|---|
| 83 | n/a | # element 'cha ' as ['indx'] |
|---|
| 84 | n/a | # element 'clin' as ['indx'] |
|---|
| 85 | n/a | # element 'cpar' as ['indx'] |
|---|
| 86 | n/a | # element 'ctxt' as ['indx'] |
|---|
| 87 | n/a | # element 'cwor' as ['indx'] |
|---|
| 88 | n/a | |
|---|
| 89 | n/a | class word(aetools.ComponentItem): |
|---|
| 90 | n/a | """word - A word """ |
|---|
| 91 | n/a | want = 'cwor' |
|---|
| 92 | n/a | |
|---|
| 93 | n/a | words = word |
|---|
| 94 | n/a | |
|---|
| 95 | n/a | class text_style_info(aetools.ComponentItem): |
|---|
| 96 | n/a | """text style info - On and Off styles of text run """ |
|---|
| 97 | n/a | want = 'tsty' |
|---|
| 98 | n/a | class _Prop_off_styles(aetools.NProperty): |
|---|
| 99 | n/a | """off styles - the styles that are off for the text """ |
|---|
| 100 | n/a | which = 'ofst' |
|---|
| 101 | n/a | want = 'styl' |
|---|
| 102 | n/a | class _Prop_on_styles(aetools.NProperty): |
|---|
| 103 | n/a | """on styles - the styles that are on for the text """ |
|---|
| 104 | n/a | which = 'onst' |
|---|
| 105 | n/a | want = 'styl' |
|---|
| 106 | n/a | |
|---|
| 107 | n/a | text_style_infos = text_style_info |
|---|
| 108 | n/a | text_flow._superclassnames = ['text'] |
|---|
| 109 | n/a | text_flow._privpropdict = { |
|---|
| 110 | n/a | '_3c_inheritance_3e_' : _Prop__3c_inheritance_3e_, |
|---|
| 111 | n/a | 'name' : _Prop_name, |
|---|
| 112 | n/a | } |
|---|
| 113 | n/a | text_flow._privelemdict = { |
|---|
| 114 | n/a | } |
|---|
| 115 | n/a | character._superclassnames = ['text'] |
|---|
| 116 | n/a | character._privpropdict = { |
|---|
| 117 | n/a | '_3c_inheritance_3e_' : _Prop__3c_inheritance_3e_, |
|---|
| 118 | n/a | } |
|---|
| 119 | n/a | character._privelemdict = { |
|---|
| 120 | n/a | } |
|---|
| 121 | n/a | line._superclassnames = ['text'] |
|---|
| 122 | n/a | line._privpropdict = { |
|---|
| 123 | n/a | '_3c_inheritance_3e_' : _Prop__3c_inheritance_3e_, |
|---|
| 124 | n/a | 'justification' : _Prop_justification, |
|---|
| 125 | n/a | } |
|---|
| 126 | n/a | line._privelemdict = { |
|---|
| 127 | n/a | } |
|---|
| 128 | n/a | paragraph._superclassnames = ['text'] |
|---|
| 129 | n/a | paragraph._privpropdict = { |
|---|
| 130 | n/a | '_3c_inheritance_3e_' : _Prop__3c_inheritance_3e_, |
|---|
| 131 | n/a | } |
|---|
| 132 | n/a | paragraph._privelemdict = { |
|---|
| 133 | n/a | } |
|---|
| 134 | n/a | text._superclassnames = [] |
|---|
| 135 | n/a | text._privpropdict = { |
|---|
| 136 | n/a | 'color' : _Prop_color, |
|---|
| 137 | n/a | 'font' : _Prop_font, |
|---|
| 138 | n/a | 'quoted_form' : _Prop_quoted_form, |
|---|
| 139 | n/a | 'size' : _Prop_size, |
|---|
| 140 | n/a | 'style' : _Prop_style, |
|---|
| 141 | n/a | 'uniform_styles' : _Prop_uniform_styles, |
|---|
| 142 | n/a | 'writing_code' : _Prop_writing_code, |
|---|
| 143 | n/a | } |
|---|
| 144 | n/a | text._privelemdict = { |
|---|
| 145 | n/a | 'character' : character, |
|---|
| 146 | n/a | 'line' : line, |
|---|
| 147 | n/a | 'paragraph' : paragraph, |
|---|
| 148 | n/a | 'text' : text, |
|---|
| 149 | n/a | 'word' : word, |
|---|
| 150 | n/a | } |
|---|
| 151 | n/a | word._superclassnames = ['text'] |
|---|
| 152 | n/a | word._privpropdict = { |
|---|
| 153 | n/a | '_3c_inheritance_3e_' : _Prop__3c_inheritance_3e_, |
|---|
| 154 | n/a | } |
|---|
| 155 | n/a | word._privelemdict = { |
|---|
| 156 | n/a | } |
|---|
| 157 | n/a | text_style_info._superclassnames = [] |
|---|
| 158 | n/a | text_style_info._privpropdict = { |
|---|
| 159 | n/a | 'off_styles' : _Prop_off_styles, |
|---|
| 160 | n/a | 'on_styles' : _Prop_on_styles, |
|---|
| 161 | n/a | } |
|---|
| 162 | n/a | text_style_info._privelemdict = { |
|---|
| 163 | n/a | } |
|---|
| 164 | n/a | _Enum_just = { |
|---|
| 165 | n/a | 'left' : 'left', # Align with left margin |
|---|
| 166 | n/a | 'right' : 'rght', # Align with right margin |
|---|
| 167 | n/a | 'center' : 'cent', # Align with center |
|---|
| 168 | n/a | 'full' : 'full', # Align with both left and right margins |
|---|
| 169 | n/a | } |
|---|
| 170 | n/a | |
|---|
| 171 | n/a | _Enum_styl = { |
|---|
| 172 | n/a | 'plain' : 'plan', # Plain |
|---|
| 173 | n/a | 'bold' : 'bold', # Bold |
|---|
| 174 | n/a | 'italic' : 'ital', # Italic |
|---|
| 175 | n/a | 'outline' : 'outl', # Outline |
|---|
| 176 | n/a | 'shadow' : 'shad', # Shadow |
|---|
| 177 | n/a | 'underline' : 'undl', # Underline |
|---|
| 178 | n/a | 'superscript' : 'spsc', # Superscript |
|---|
| 179 | n/a | 'subscript' : 'sbsc', # Subscript |
|---|
| 180 | n/a | 'strikethrough' : 'strk', # Strikethrough |
|---|
| 181 | n/a | 'small_caps' : 'smcp', # Small caps |
|---|
| 182 | n/a | 'all_caps' : 'alcp', # All capital letters |
|---|
| 183 | n/a | 'all_lowercase' : 'lowc', # Lowercase |
|---|
| 184 | n/a | 'condensed' : 'cond', # Condensed |
|---|
| 185 | n/a | 'expanded' : 'pexp', # Expanded |
|---|
| 186 | n/a | 'hidden' : 'hidn', # Hidden |
|---|
| 187 | n/a | } |
|---|
| 188 | n/a | |
|---|
| 189 | n/a | |
|---|
| 190 | n/a | # |
|---|
| 191 | n/a | # Indices of types declared in this module |
|---|
| 192 | n/a | # |
|---|
| 193 | n/a | _classdeclarations = { |
|---|
| 194 | n/a | 'cflo' : text_flow, |
|---|
| 195 | n/a | 'cha ' : character, |
|---|
| 196 | n/a | 'clin' : line, |
|---|
| 197 | n/a | 'cpar' : paragraph, |
|---|
| 198 | n/a | 'ctxt' : text, |
|---|
| 199 | n/a | 'cwor' : word, |
|---|
| 200 | n/a | 'tsty' : text_style_info, |
|---|
| 201 | n/a | } |
|---|
| 202 | n/a | |
|---|
| 203 | n/a | _propdeclarations = { |
|---|
| 204 | n/a | 'c@#^' : _Prop__3c_inheritance_3e_, |
|---|
| 205 | n/a | 'colr' : _Prop_color, |
|---|
| 206 | n/a | 'font' : _Prop_font, |
|---|
| 207 | n/a | 'ofst' : _Prop_off_styles, |
|---|
| 208 | n/a | 'onst' : _Prop_on_styles, |
|---|
| 209 | n/a | 'pjst' : _Prop_justification, |
|---|
| 210 | n/a | 'pnam' : _Prop_name, |
|---|
| 211 | n/a | 'psct' : _Prop_writing_code, |
|---|
| 212 | n/a | 'ptsz' : _Prop_size, |
|---|
| 213 | n/a | 'strq' : _Prop_quoted_form, |
|---|
| 214 | n/a | 'txst' : _Prop_style, |
|---|
| 215 | n/a | 'ustl' : _Prop_uniform_styles, |
|---|
| 216 | n/a | } |
|---|
| 217 | n/a | |
|---|
| 218 | n/a | _compdeclarations = { |
|---|
| 219 | n/a | } |
|---|
| 220 | n/a | |
|---|
| 221 | n/a | _enumdeclarations = { |
|---|
| 222 | n/a | 'just' : _Enum_just, |
|---|
| 223 | n/a | 'styl' : _Enum_styl, |
|---|
| 224 | n/a | } |
|---|