2007-09-20 18:09:08 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								USING:  help.markup  help.syntax  io.streams.plain  io  strings 
							 
						 
					
						
							
								
									
										
										
										
											2009-05-01 03:03:22 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								hashtables kernel quotations colors assocs ;
 
							 
						 
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								IN:  io.styles 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2009-01-13 18:12:43 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								HELP:  stream-format 
							 
						 
					
						
							
								
									
										
										
										
											2009-05-01 03:03:22 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								{ $values { "str"  string  } { "style"  assoc  } { "stream"  "an output stream"  } }
							 
						 
					
						
							
								
									
										
										
										
											2009-01-13 18:12:43 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								{ $contract "Writes formatted text to the stream. If the stream does buffering, output may not be performed immediately; use "  { $link stream-flush  } " to force output." 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								$nl
							 
						 
					
						
							
								
									
										
										
										
											2009-05-01 03:03:22 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								"The "  { $snippet "style"  } " assoc holds character style information. See "  { $link "character-styles"  } "."  }
							 
						 
					
						
							
								
									
										
										
										
											2009-01-13 18:12:43 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								{ $notes "Most code only works on one stream at a time and should instead use "  { $link format } "; see "  { $link "stdio"  } "."  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								$io-error ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								HELP:  make-block-stream 
							 
						 
					
						
							
								
									
										
										
										
											2009-05-01 03:03:22 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								{ $values { "style"  assoc  } { "stream"  "an output stream"  } { "stream'"  "an output stream"  } }
							 
						 
					
						
							
								
									
										
										
										
											2009-01-13 18:12:43 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								{ $contract "Creates an output stream which wraps "  { $snippet "stream"  } " and adds "  { $snippet "style"  } " on calls to "  { $link stream-write  } " and "  { $link stream-format } "." 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								$nl
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								"Unlike "  { $link make-span-stream } ", this creates a new paragraph block in the output." 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								$nl
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								"The "  { $snippet "style"  } " hashtable holds paragraph style information. See "  { $link "paragraph-styles"  } "."  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								{ $notes "Most code only works on one stream at a time and should instead use "  { $link with-nesting } "; see "  { $link "stdio"  } "."  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								$io-error ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								HELP:  stream-write-table 
							 
						 
					
						
							
								
									
										
										
										
											2009-05-01 03:03:22 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								{ $values { "table-cells"  "a sequence of sequences of table cells"  } { "style"  assoc  } { "stream"  "an output stream"  } }
							 
						 
					
						
							
								
									
										
										
										
											2009-01-13 18:12:43 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								{ $contract "Prints a table of cells produced by "  { $link with-cell } "." 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								$nl
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								"The "  { $snippet "style"  } " hashtable holds table style information. See "  { $link "table-styles"  } "."  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								{ $notes "Most code only works on one stream at a time and should instead use "  { $link tabular-output } "; see "  { $link "stdio"  } "."  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								$io-error ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								HELP:  make-cell-stream 
							 
						 
					
						
							
								
									
										
										
										
											2009-05-01 03:03:22 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								{ $values { "style"  assoc  } { "stream"  "an output stream"  } { "stream'"  object  } }
							 
						 
					
						
							
								
									
										
										
										
											2009-01-13 18:12:43 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								{ $contract "Creates an output stream which writes to a table cell object."  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								{ $notes "Most code only works on one stream at a time and should instead use "  { $link with-cell } "; see "  { $link "stdio"  } "."  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								$io-error ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								HELP:  make-span-stream 
							 
						 
					
						
							
								
									
										
										
										
											2009-05-01 03:03:22 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								{ $values { "style"  assoc  } { "stream"  "an output stream"  } { "stream'"  "an output stream"  } }
							 
						 
					
						
							
								
									
										
										
										
											2009-01-13 18:12:43 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								{ $contract "Creates an output stream which wraps "  { $snippet "stream"  } " and adds "  { $snippet "style"  } " on calls to "  { $link stream-write  } " and "  { $link stream-format } "." 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								$nl
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								"Unlike "  { $link make-block-stream } ", the stream output is inline, and not nested in a paragraph block."  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								{ $notes "Most code only works on one stream at a time and should instead use "  { $link with-style } "; see "  { $link "stdio"  } "."  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								$io-error ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								HELP:  format 
							 
						 
					
						
							
								
									
										
										
										
											2009-05-01 03:03:22 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								{ $values { "str"  string  } { "style"  assoc  } }
							 
						 
					
						
							
								
									
										
										
										
											2009-01-13 18:12:43 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								{ $description "Writes formatted text to "  { $link output-stream  } ". If the stream does buffering, output may not be performed immediately; use "  { $link flush  } " to force output."  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								{ $notes "Details are in the documentation for "  { $link stream-format } "."  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								$io-error ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								HELP:  with-nesting 
							 
						 
					
						
							
								
									
										
										
										
											2009-05-01 03:03:22 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								{ $values { "style"  assoc  } { "quot"  quotation } }
							 
						 
					
						
							
								
									
										
										
										
											2009-01-13 18:12:43 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								{ $description "Calls the quotation in a new dynamic scope with "  { $link output-stream  } " rebound to a nested paragraph stream, with formatting information applied."  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								{ $notes "Details are in the documentation for "  { $link make-block-stream } "."  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								$io-error ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								HELP:  tabular-output 
							 
						 
					
						
							
								
									
										
										
										
											2009-05-01 03:03:22 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								{ $values { "style"  assoc  } { "quot"  quotation } }
							 
						 
					
						
							
								
									
										
										
										
											2009-01-13 18:12:43 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								{ $description "Calls a quotation which emits a series of equal-length table rows using "  { $link with-row } ". The results are laid out in a tabular fashion on "  { $link output-stream  } "." 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								$nl
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								"The "  { $snippet "style"  } " hashtable holds table style information. See "  { $link "table-styles"  } "."  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								{ $examples
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    { $code
							 
						 
					
						
							
								
									
										
										
										
											2010-12-04 07:25:12 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        "USING: io.styles prettyprint sequences ;" 
							 
						 
					
						
							
								
									
										
										
										
											2009-01-13 18:12:43 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        "{ { 1 2 } { 3 4 } }" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        "H{ { table-gap { 10 10 } } } [" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        "    [ [ [ [ . ] with-cell ] each ] with-row ] each" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        "] tabular-output" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								}
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								$io-error ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								HELP:  with-row 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								{ $values { "quot"  quotation } }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								{ $description "Calls a quotation which emits a series of table cells using "  { $link with-cell } ". This word can only be called inside the quotation given to "  { $link tabular-output } "."  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								$io-error ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								HELP:  with-cell 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								{ $values { "quot"  quotation } }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								{ $description "Calls a quotation in a new scope with "  { $link output-stream  } " rebound. Output performed by the quotation is displayed in a table cell. This word can only be called inside the quotation given to "  { $link with-row } "."  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								$io-error ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								HELP:  write-cell 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								{ $values { "str"  string  } }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								{ $description "Outputs a table cell containing a single string. This word can only be called inside the quotation given to "  { $link with-row } "."  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								$io-error ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								HELP:  with-style 
							 
						 
					
						
							
								
									
										
										
										
											2009-05-01 03:03:22 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								{ $values { "style"  assoc  } { "quot"  quotation } }
							 
						 
					
						
							
								
									
										
										
										
											2009-01-13 18:12:43 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								{ $description "Calls the quotation in a new dynamic scope where calls to "  { $link write  } ", "  { $link format } " and other stream output words automatically inherit style settings from "  { $snippet "style"  } "."  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								{ $notes "Details are in the documentation for "  { $link make-span-stream } "."  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								$io-error ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								ARTICLE: "formatted-stream-protocol"  "Formatted stream protocol" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								"The "  { $vocab-link "io.styles"  } " vocabulary defines a protocol for output streams that support rich text." 
							 
						 
					
						
							
								
									
										
										
										
											2009-10-01 15:56:36 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								{ $subsections
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    stream-format
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    make-span-stream
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    make-block-stream
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    make-cell-stream
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    stream-write-table
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								} ;
 
							 
						 
					
						
							
								
									
										
										
										
											2009-01-13 18:12:43 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								ARTICLE: "formatted-stdout"  "Formatted output on the default stream" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								"The below words perform formatted output on "  { $link output-stream  } "." 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								$nl
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								"Formatted output:" 
							 
						 
					
						
							
								
									
										
										
										
											2009-10-01 15:56:36 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								{ $subsections
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    format
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    with-style
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    with-nesting
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								}
							 
						 
					
						
							
								
									
										
										
										
											2009-01-13 18:12:43 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								"Tabular output:" 
							 
						 
					
						
							
								
									
										
										
										
											2009-10-01 15:56:36 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								{ $subsections
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    tabular-output
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    with-row
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    with-cell
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    write-cell
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								} ;
 
							 
						 
					
						
							
								
									
										
										
										
											2009-01-13 18:12:43 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2009-02-11 05:53:33 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								HELP:  href 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								{ $description "Character style. A URL string that the text links to."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-08-12 10:09:41 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								HELP:  image-style 
							 
						 
					
						
							
								
									
										
										
										
											2009-02-11 05:53:33 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								{ $description "Character style. A pathname string for an image file to display in place of the printed text. If this style is specified, the printed text serves the same role as the "  { $snippet "alt"  } " attribute of an HTML "  { $snippet "img"  } " tag -- the text is only displayed if the output medium does not support images."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								ARTICLE: "character-styles"  "Character styles" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								"Character styles for "  { $link stream-format } " and "  { $link with-style } ":" 
							 
						 
					
						
							
								
									
										
										
										
											2009-10-01 15:56:36 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								{ $subsections
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    foreground
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    background
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    font-name
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    font-size
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    font-style
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								}
							 
						 
					
						
							
								
									
										
										
										
											2009-02-11 05:53:33 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								"Special styles:" 
							 
						 
					
						
							
								
									
										
										
										
											2009-10-01 15:56:36 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								{ $subsections
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    href
							 
						 
					
						
							
								
									
										
										
										
											2015-08-12 10:09:41 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    image-style
							 
						 
					
						
							
								
									
										
										
										
											2009-10-01 15:56:36 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								}
							 
						 
					
						
							
								
									
										
										
										
											2009-02-11 05:53:33 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								{ $see-also "presentations"  } ;
 
							 
						 
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								ARTICLE: "paragraph-styles"  "Paragraph styles" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								"Paragraph styles for "  { $link with-nesting } ":" 
							 
						 
					
						
							
								
									
										
										
										
											2009-10-01 15:56:36 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								{ $subsections
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    page-color
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    border-color
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    inset
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    wrap-margin
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    presented
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								} ;
 
							 
						 
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								ARTICLE: "table-styles"  "Table styles" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								"Table styles for "  { $link tabular-output } ":" 
							 
						 
					
						
							
								
									
										
										
										
											2009-10-01 15:56:36 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								{ $subsections
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    table-gap
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    table-border
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								} ;
 
							 
						 
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2008-07-28 23:28:13 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								HELP:  write-object 
							 
						 
					
						
							
								
									
										
										
										
											2014-05-23 23:20:15 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								{ $values { "str"  string  } { "obj"  object  } }
							 
						 
					
						
							
								
									
										
										
										
											2008-07-28 23:28:13 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								{ $description "Writes a string to "  { $link output-stream  } ", associating it with the object. If formatted output is supported, the string will become a clickable presentation of the object, otherwise this word behaves like a call to "  { $link write  } "."  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								$io-error ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								ARTICLE: "presentations"  "Presentations" 
							 
						 
					
						
							
								
									
										
										
										
											2009-02-11 05:53:33 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								"A special style for "  { $link format } " and "  { $link with-nesting } ":" 
							 
						 
					
						
							
								
									
										
										
										
											2009-10-01 15:56:36 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								{ $subsections presented }
							 
						 
					
						
							
								
									
										
										
										
											2008-07-28 23:28:13 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								"The "  { $link presented } " style can be used to emit clickable objects. A utility word for outputting this style:" 
							 
						 
					
						
							
								
									
										
										
										
											2009-10-01 15:56:36 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								{ $subsections write-object } ;
 
							 
						 
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2009-01-30 04:37:11 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								ARTICLE: "styles"  "Text styles" 
							 
						 
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								"The "  { $link stream-format } ", "  { $link with-style } ", "  { $link with-nesting } " and "  { $link tabular-output } " words take a hashtable of style attributes. Output stream implementations are free to ignore style information." 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								$nl
							 
						 
					
						
							
								
									
										
										
										
											2008-09-24 02:59:05 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								"Style hashtables are keyed by symbols from the "  { $vocab-link "io.styles"  } " vocabulary." 
							 
						 
					
						
							
								
									
										
										
										
											2009-10-01 15:56:36 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								{ $subsections
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    "character-styles" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    "paragraph-styles" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    "table-styles" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    "presentations" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								} ;
 
							 
						 
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2009-01-13 18:12:43 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								ARTICLE: "io.styles"  "Formatted output" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								"The "  { $vocab-link "io.styles"  } " vocabulary defines a protocol for formatted output. This is used by the prettyprinter, help system, and various developer tools. Implementations include "  { $vocab-link "ui.gadgets.panes"  } ", "  { $vocab-link "html.streams"  } ", and "  { $vocab-link "io.streams.plain"  } "." 
							 
						 
					
						
							
								
									
										
										
										
											2009-10-01 15:56:36 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								{ $subsections
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    "formatted-stream-protocol" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    "formatted-stdout" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    "styles" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								} ;
 
							 
						 
					
						
							
								
									
										
										
										
											2009-01-13 18:12:43 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								ABOUT: "io.styles" 
							 
						 
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								HELP:  plain 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								{ $description "A value for the "  { $link font-style } " character style denoting plain text."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								HELP:  bold 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								{ $description "A value for the "  { $link font-style } " character style denoting boldface text."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								HELP:  italic 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								{ $description "A value for the "  { $link font-style } " character style denoting italicized text."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								HELP:  bold-italic 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								{ $description "A value for the "  { $link font-style } " character style denoting boldface italicized text."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								HELP:  foreground 
							 
						 
					
						
							
								
									
										
										
										
											2010-12-04 07:25:12 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								{ $description "Character style. An instance of "  { $link color } ". See "  { $link "colors"  } "."  }
							 
						 
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								{ $examples
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    { $code
							 
						 
					
						
							
								
									
										
										
										
											2010-12-04 07:25:12 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        "USING: colors.gray io.styles hashtables sequences kernel math ;" 
							 
						 
					
						
							
								
									
										
										
										
											2017-06-01 17:59:35 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        "10 <iota> [" 
							 
						 
					
						
							
								
									
										
										
										
											2010-12-04 07:25:12 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        "    \"Hello world\\n\"" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        "    swap 10 / 1 <gray> foreground associate format" 
							 
						 
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								        "] each" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								} ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								HELP:  background 
							 
						 
					
						
							
								
									
										
										
										
											2009-01-30 04:37:11 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								{ $description "Character style. An instance of "  { $link color } ". See "  { $link "colors"  } "."  }
							 
						 
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								{ $examples
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    { $code
							 
						 
					
						
							
								
									
										
										
										
											2010-12-04 07:25:12 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        "USING: colors hashtables io io.styles kernel math sequences ;" 
							 
						 
					
						
							
								
									
										
										
										
											2017-06-01 17:59:35 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        "10 <iota> [" 
							 
						 
					
						
							
								
									
										
										
										
											2010-12-04 07:25:12 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        "    \"Hello world\\n\"" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        "    swap 10 / 1 over - over 1 <rgba>" 
							 
						 
					
						
							
								
									
										
										
										
											2011-02-19 16:11:31 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        "    background associate format" 
							 
						 
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								        "] each" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								} ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2009-01-26 17:25:57 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								HELP:  font-name 
							 
						 
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								{ $description "Character style. Font family named by a string."  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								{ $examples
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    "This example outputs some different font sizes:" 
							 
						 
					
						
							
								
									
										
										
										
											2010-12-04 07:25:12 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    { $code
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        "USING: hashtables io io.styles kernel sequences ;" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        "{ \"monospace\" \"serif\" \"sans-serif\" }" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        "[ dup font-name associate format nl ] each" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    }
							 
						 
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								} ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								HELP:  font-size 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								{ $description "Character style. Font size, an integer."  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								{ $examples
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    "This example outputs some different font sizes:" 
							 
						 
					
						
							
								
									
										
										
										
											2010-12-04 07:25:12 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    { $code
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        "USING: hashtables io io.styles kernel sequences ;" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        "{ 12 18 24 72 }" 
							 
						 
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								        "[ \"Bigger\" swap font-size associate format nl ] each" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    }
							 
						 
					
						
							
								
									
										
										
										
											2017-06-05 13:13:54 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								} ;
 
							 
						 
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								HELP:  font-style 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								{ $description "Character style. Font style, one of "  { $link plain } ", "  { $link bold } ", "  { $link italic } ", or "  { $link bold-italic } "."  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								{ $examples
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    "This example outputs text in all three styles:" 
							 
						 
					
						
							
								
									
										
										
										
											2010-12-04 07:25:12 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    { $code
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        "USING: accessors hashtables io io.styles kernel sequences ;" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        "{ plain bold italic bold-italic }" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        "[ [ name>> ] keep font-style associate format nl ] each" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    }
							 
						 
					
						
							
								
									
										
										
										
											2017-06-05 13:13:54 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								} ;
 
							 
						 
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								HELP:  presented 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								{ $description "Character and paragraph style. An object associated with the text. In the Factor UI, this is shown as a clickable presentation of the object; left-clicking invokes a default command, and right-clicking shows a menu of commands."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								HELP:  page-color 
							 
						 
					
						
							
								
									
										
										
										
											2010-12-04 07:25:12 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								{ $description "Paragraph style. An instance of "  { $link color } ". See "  { $link "colors"  } "."  }
							 
						 
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								{ $examples
							 
						 
					
						
							
								
									
										
										
										
											2010-12-04 07:25:12 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    { $code
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        "USING: colors io io.styles ;" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        "H{ { page-color T{ rgba f 1 0.8 0.5 1 } } }" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        "[ \"A background\" write ] with-nesting nl" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    }
							 
						 
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								} ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								HELP:  border-color 
							 
						 
					
						
							
								
									
										
										
										
											2009-01-30 04:37:11 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								{ $description "Paragraph style. An instance of "  { $link color } ". See "  { $link "colors"  } "."  }
							 
						 
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								{ $examples
							 
						 
					
						
							
								
									
										
										
										
											2010-12-04 07:25:12 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    { $code
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        "USING: colors io io.styles ;" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        "H{ { border-color T{ rgba f 1 0 0 1 } } }" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        "[ \"A border\" write ] with-nesting nl" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    }
							 
						 
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								} ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2009-09-09 15:50:25 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								HELP:  inset 
							 
						 
					
						
							
								
									
										
										
										
											2010-12-04 07:25:12 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								{ $description "Paragraph style. A pair of integers representing the number of pixels that the content should be inset from the border. The first number is the horizontal inset, and the second is the vertical inset."  }
							 
						 
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								{ $examples
							 
						 
					
						
							
								
									
										
										
										
											2010-12-04 07:25:12 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    { $code
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        "USING: io io.styles ;" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        "H{ { inset { 10 10 } } }" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        "[ \"Some inset text\" write ] with-nesting nl" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    }
							 
						 
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								} ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								HELP:  wrap-margin 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								{ $description "Paragraph style. Pixels between left margin and right margin where text is wrapped, an integer."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								{ wrap-margin bl  } related-words
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								HELP:  table-gap 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								{ $description "Table style. Horizontal and vertical gap between table cells, denoted by a pair of integers."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								{ table-gap table-border stream-write-table tabular-output } related-words
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								HELP:  table-border 
							 
						 
					
						
							
								
									
										
										
										
											2009-01-30 04:37:11 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								{ $description "Table style. An instance of "  { $link color } ". See "  { $link "colors"  } "."  } ;
 
							 
						 
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								HELP:  input 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								{ $class-description "Class of input text presentations. Instances can be used passed to "  { $link write-object } " to output a clickable piece of input. Input text presentations are created by calling "  { $link <input> } "."  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								{ $examples
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    "This presentation class is used for the code examples you see in the online help:" 
							 
						 
					
						
							
								
									
										
										
										
											2010-12-04 07:25:12 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    { $code
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        "USING: io io.styles kernel ;" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        "\"2 3 + .\" dup <input> write-object nl" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    }
							 
						 
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								} ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2008-12-15 20:44:56 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								HELP:  <input> 
							 
						 
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								{ $values { "string"  string  } { "input"  input } }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								{ $description "Creates a new "  { $link input } "."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								HELP:  standard-table-style 
							 
						 
					
						
							
								
									
										
										
										
											2009-04-14 17:36:53 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								{ $values { "value"  hashtable } }
							 
						 
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								{ $description "Outputs a table style where cells are separated by 5-pixel gaps and framed by a light gray border. This style can be passed to "  { $link tabular-output } "."  } ;
 
							 
						 
					
						
							
								
									
										
										
										
											2009-01-13 18:12:43 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								ARTICLE: "io.streams.plain"  "Plain writer streams" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								"Plain writer streams wrap an underlying stream and provide a default implementation of " 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								{ $link stream-nl  } ", " 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								{ $link stream-format } ", " 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								{ $link make-span-stream } ", " 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								{ $link make-block-stream } " and " 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								{ $link make-cell-stream } "." 
							 
						 
					
						
							
								
									
										
										
										
											2010-12-04 07:25:12 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								{ $subsections plain-writer } ;