| 
									
										
										
										
											2003-03-29 00:13:17 +00:00
										 |  |  | """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: | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2003-04-12 22:27:11 +00:00
										 |  |  |     pass | 
					
						
							| 
									
										
										
										
											2003-03-29 00:13:17 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class attachment(aetools.ComponentItem): | 
					
						
							| 
									
										
										
										
											2003-04-12 22:27:11 +00:00
										 |  |  |     """attachment - Represents an inline text attachment.  This class is used mainly for make commands. """ | 
					
						
							|  |  |  |     want = 'atts' | 
					
						
							| 
									
										
										
										
											2003-04-01 22:05:14 +00:00
										 |  |  | class _Prop__3c_Inheritance_3e_(aetools.NProperty): | 
					
						
							| 
									
										
										
										
											2003-04-12 22:27:11 +00:00
										 |  |  |     """<Inheritance> - All of the properties of the superclass. """ | 
					
						
							|  |  |  |     which = 'c@#^' | 
					
						
							|  |  |  |     want = 'ctxt' | 
					
						
							| 
									
										
										
										
											2003-04-01 22:05:14 +00:00
										 |  |  | class _Prop_file_name(aetools.NProperty): | 
					
						
							| 
									
										
										
										
											2003-04-12 22:27:11 +00:00
										 |  |  |     """file name - The path to the file for the attachment """ | 
					
						
							|  |  |  |     which = 'atfn' | 
					
						
							|  |  |  |     want = 'utxt' | 
					
						
							| 
									
										
										
										
											2003-03-29 00:13:17 +00:00
										 |  |  | #        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): | 
					
						
							| 
									
										
										
										
											2003-04-12 22:27:11 +00:00
										 |  |  |     """attribute run - This subdivides the text into chunks that all have the same attributes. """ | 
					
						
							|  |  |  |     want = 'catr' | 
					
						
							| 
									
										
										
										
											2003-04-01 22:05:14 +00:00
										 |  |  | class _Prop_color(aetools.NProperty): | 
					
						
							| 
									
										
										
										
											2003-04-12 22:27:11 +00:00
										 |  |  |     """color - The color of the first character. """ | 
					
						
							|  |  |  |     which = 'colr' | 
					
						
							|  |  |  |     want = 'colr' | 
					
						
							| 
									
										
										
										
											2003-04-01 22:05:14 +00:00
										 |  |  | class _Prop_font(aetools.NProperty): | 
					
						
							| 
									
										
										
										
											2003-04-12 22:27:11 +00:00
										 |  |  |     """font - The name of the font of the first character. """ | 
					
						
							|  |  |  |     which = 'font' | 
					
						
							|  |  |  |     want = 'utxt' | 
					
						
							| 
									
										
										
										
											2003-04-01 22:05:14 +00:00
										 |  |  | class _Prop_size(aetools.NProperty): | 
					
						
							| 
									
										
										
										
											2003-04-12 22:27:11 +00:00
										 |  |  |     """size - The size in points of the first character. """ | 
					
						
							|  |  |  |     which = 'ptsz' | 
					
						
							|  |  |  |     want = 'long' | 
					
						
							| 
									
										
										
										
											2003-03-29 00:13:17 +00:00
										 |  |  | #        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): | 
					
						
							| 
									
										
										
										
											2003-04-12 22:27:11 +00:00
										 |  |  |     """character - This subdivides the text into characters. """ | 
					
						
							|  |  |  |     want = 'cha ' | 
					
						
							| 
									
										
										
										
											2003-03-29 00:13:17 +00:00
										 |  |  | #        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): | 
					
						
							| 
									
										
										
										
											2003-04-12 22:27:11 +00:00
										 |  |  |     """paragraph - This subdivides the text into paragraphs. """ | 
					
						
							|  |  |  |     want = 'cpar' | 
					
						
							| 
									
										
										
										
											2003-03-29 00:13:17 +00:00
										 |  |  | #        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): | 
					
						
							| 
									
										
										
										
											2003-04-12 22:27:11 +00:00
										 |  |  |     """text - Rich (styled) text """ | 
					
						
							|  |  |  |     want = 'ctxt' | 
					
						
							| 
									
										
										
										
											2003-03-29 00:13:17 +00:00
										 |  |  | #        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): | 
					
						
							| 
									
										
										
										
											2003-04-12 22:27:11 +00:00
										 |  |  |     """word - This subdivides the text into words. """ | 
					
						
							|  |  |  |     want = 'cwor' | 
					
						
							| 
									
										
										
										
											2003-03-29 00:13:17 +00:00
										 |  |  | #        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 = { | 
					
						
							| 
									
										
										
										
											2003-04-12 22:27:11 +00:00
										 |  |  |     '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, | 
					
						
							|  |  |  |     'file_name' : _Prop_file_name, | 
					
						
							| 
									
										
										
										
											2003-03-29 00:13:17 +00:00
										 |  |  | } | 
					
						
							|  |  |  | attachment._privelemdict = { | 
					
						
							| 
									
										
										
										
											2003-04-12 22:27:11 +00:00
										 |  |  |     'attribute_run' : attribute_run, | 
					
						
							|  |  |  |     'character' : character, | 
					
						
							|  |  |  |     'paragraph' : paragraph, | 
					
						
							|  |  |  |     'word' : word, | 
					
						
							| 
									
										
										
										
											2003-03-29 00:13:17 +00:00
										 |  |  | } | 
					
						
							|  |  |  | import Standard_Suite | 
					
						
							|  |  |  | attribute_run._superclassnames = ['item'] | 
					
						
							|  |  |  | attribute_run._privpropdict = { | 
					
						
							| 
									
										
										
										
											2003-04-12 22:27:11 +00:00
										 |  |  |     '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, | 
					
						
							|  |  |  |     'color' : _Prop_color, | 
					
						
							|  |  |  |     'font' : _Prop_font, | 
					
						
							|  |  |  |     'size' : _Prop_size, | 
					
						
							| 
									
										
										
										
											2003-03-29 00:13:17 +00:00
										 |  |  | } | 
					
						
							|  |  |  | attribute_run._privelemdict = { | 
					
						
							| 
									
										
										
										
											2003-04-12 22:27:11 +00:00
										 |  |  |     'attribute_run' : attribute_run, | 
					
						
							|  |  |  |     'character' : character, | 
					
						
							|  |  |  |     'paragraph' : paragraph, | 
					
						
							|  |  |  |     'word' : word, | 
					
						
							| 
									
										
										
										
											2003-03-29 00:13:17 +00:00
										 |  |  | } | 
					
						
							|  |  |  | character._superclassnames = ['item'] | 
					
						
							|  |  |  | character._privpropdict = { | 
					
						
							| 
									
										
										
										
											2003-04-12 22:27:11 +00:00
										 |  |  |     '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, | 
					
						
							|  |  |  |     'color' : _Prop_color, | 
					
						
							|  |  |  |     'font' : _Prop_font, | 
					
						
							|  |  |  |     'size' : _Prop_size, | 
					
						
							| 
									
										
										
										
											2003-03-29 00:13:17 +00:00
										 |  |  | } | 
					
						
							|  |  |  | character._privelemdict = { | 
					
						
							| 
									
										
										
										
											2003-04-12 22:27:11 +00:00
										 |  |  |     'attribute_run' : attribute_run, | 
					
						
							|  |  |  |     'character' : character, | 
					
						
							|  |  |  |     'paragraph' : paragraph, | 
					
						
							|  |  |  |     'word' : word, | 
					
						
							| 
									
										
										
										
											2003-03-29 00:13:17 +00:00
										 |  |  | } | 
					
						
							|  |  |  | paragraph._superclassnames = ['item'] | 
					
						
							|  |  |  | paragraph._privpropdict = { | 
					
						
							| 
									
										
										
										
											2003-04-12 22:27:11 +00:00
										 |  |  |     '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, | 
					
						
							|  |  |  |     'color' : _Prop_color, | 
					
						
							|  |  |  |     'font' : _Prop_font, | 
					
						
							|  |  |  |     'size' : _Prop_size, | 
					
						
							| 
									
										
										
										
											2003-03-29 00:13:17 +00:00
										 |  |  | } | 
					
						
							|  |  |  | paragraph._privelemdict = { | 
					
						
							| 
									
										
										
										
											2003-04-12 22:27:11 +00:00
										 |  |  |     'attribute_run' : attribute_run, | 
					
						
							|  |  |  |     'character' : character, | 
					
						
							|  |  |  |     'paragraph' : paragraph, | 
					
						
							|  |  |  |     'word' : word, | 
					
						
							| 
									
										
										
										
											2003-03-29 00:13:17 +00:00
										 |  |  | } | 
					
						
							|  |  |  | text._superclassnames = ['item'] | 
					
						
							|  |  |  | text._privpropdict = { | 
					
						
							| 
									
										
										
										
											2003-04-12 22:27:11 +00:00
										 |  |  |     '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, | 
					
						
							|  |  |  |     'color' : _Prop_color, | 
					
						
							|  |  |  |     'font' : _Prop_font, | 
					
						
							|  |  |  |     'size' : _Prop_size, | 
					
						
							| 
									
										
										
										
											2003-03-29 00:13:17 +00:00
										 |  |  | } | 
					
						
							|  |  |  | text._privelemdict = { | 
					
						
							| 
									
										
										
										
											2003-04-12 22:27:11 +00:00
										 |  |  |     'attribute_run' : attribute_run, | 
					
						
							|  |  |  |     'character' : character, | 
					
						
							|  |  |  |     'paragraph' : paragraph, | 
					
						
							|  |  |  |     'word' : word, | 
					
						
							| 
									
										
										
										
											2003-03-29 00:13:17 +00:00
										 |  |  | } | 
					
						
							|  |  |  | word._superclassnames = ['item'] | 
					
						
							|  |  |  | word._privpropdict = { | 
					
						
							| 
									
										
										
										
											2003-04-12 22:27:11 +00:00
										 |  |  |     '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, | 
					
						
							|  |  |  |     'color' : _Prop_color, | 
					
						
							|  |  |  |     'font' : _Prop_font, | 
					
						
							|  |  |  |     'size' : _Prop_size, | 
					
						
							| 
									
										
										
										
											2003-03-29 00:13:17 +00:00
										 |  |  | } | 
					
						
							|  |  |  | word._privelemdict = { | 
					
						
							| 
									
										
										
										
											2003-04-12 22:27:11 +00:00
										 |  |  |     'attribute_run' : attribute_run, | 
					
						
							|  |  |  |     'character' : character, | 
					
						
							|  |  |  |     'paragraph' : paragraph, | 
					
						
							|  |  |  |     'word' : word, | 
					
						
							| 
									
										
										
										
											2003-03-29 00:13:17 +00:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # | 
					
						
							|  |  |  | # Indices of types declared in this module | 
					
						
							|  |  |  | # | 
					
						
							|  |  |  | _classdeclarations = { | 
					
						
							| 
									
										
										
										
											2003-04-12 22:27:11 +00:00
										 |  |  |     '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 = { | 
					
						
							| 
									
										
										
										
											2003-03-29 00:13:17 +00:00
										 |  |  | } |