1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586
|
<HTML>
<BODY>
<TITLE>IRAF Help GUI</TITLE>
<H1>Welcome to IRAF Help GUI V1.0</H1>
<P>
<B>Help</B> is a prototype GUI browser providing a familiar and
easy-to-use interface for the IRAF help system. Other features include
on-the-fly conversion of help documents to HTML for display and
fully formatted PostScript for hardcopy.
<P>
To begin, select a help topic from the top panel, enter a task or package
name in the <B>Topic</B> field, or hit the <B>Search</B> button to bring up
a panel allowing you to search the help system by keyword.
<P>
<HR>
<H1>Table of Contents</H1>
<UL>
<LI> <A HREF="#intro">Introduction</A>
<LI> <A HREF="#params">Task Parameters</A>
<LI> <A HREF="#nav">Navigating the IRAF Help System</A>
<LI> <A HREF="#browse">Browsing a Help Document</A>
<LI> <A HREF="#search">Searching</A> <UL>
<LI> <A HREF="#dbsearch">Searching the Help Database</A> </UL> <UL>
<LI> <A HREF="#find">Searching Within a Document</A> </UL>
<LI> <A HREF="#help">The On-Line Help Panel</A>
<LI> <A HREF="#homepage">User-Defined Homepages</A>
<LI> <A HREF="#lfiles">Loading Files</A>
<LI> <A HREF="#sfiles">Saving Files</A>
<LI> <A HREF="#out">Hardcopy Output</A>
<LI> <A HREF="#lroff">LROFF Directive Extensions for HTML</A>
</UL>
<A NAME=intro><HR><h1>Introduction</h1></A>
The <B>Help GUI</B> task is a front-end to the IRAF
<A HREF="system.help"><B>help</B></A>
task which provides on-the-fly conversion of help documents to HTML for
presentation in the GUI or formatted PostScript for hardcopy.
Help pages may be loaded on the command line, through use of a
file browser, or by navigating the help databases using a familiar CL
package menu scheme. It also features a search capability similar to the
<A HREF="system.references"><B>references</B></A>
task and a complete <A HREF=#hist>history mechanism</A>.
<P>
When invoked with no command line arguments (and the appropriate
<A HREF="#l_device">device</A> parameter setting of "gui") the task starts
as a browser and the user is presented with a GUI that has the toplevel CL
package menu in the upper navigation window. The main display window below
will contain any LROFF source file specified in the
<A HREF="#l_template">template</A>
parameter or loaded on
the command line by specifying the
<A HREF="#l_template">template</A>
and enabling the
<A HREF="#l_file_template">file_template</A>
parameters. If the
<A HREF="#l_search">search</A>
parameter is enabled the
<A HREF="#l_template">template</A>
is taken to be a search phrase and the database is searched for tasks
matching the keyword and the GUI will appear with the search panel mapped
so the user can select the task help to view. When no
<A HREF="#l_template">template</A>
is given the main display window will start with the page specified by the
<A HREF="#l_home">home</A>
parameter, this can be a user-defined HTML file giving links to specific tasks
(see below for details) or if
<A HREF="#l_home">home</A>
is empty the display will contain the online help for the task.
<P>
The first time the task is run, or whenever the help database is updated,
a quick reference file (specified by the task
<A HREF="#l_quickref">quickref </A>
parameter) and package menu file will be created in the user's <I>uparm</I>
directory to speed up help searching and subsequent startups of the task.
<A NAME=params><HR><h1>Task Parameters</h1></A>
<UL>
<DL>
<DT><B><A NAME="l_template">template</A></B></DT>
<! Sec='PARAMETERS' Level=0 Label='template' Line='template'>
<DD>A string listing the modules or packages for which help is desired.
Each list element may be a simple name or a pattern matching template.
Abbreviations are permitted. If <I>template</I> is omitted a long format
menu will be printed for the current package, listing each task (or
subpackage) and describing briefly what it is.
</DD>
</DL>
<DL>
<DT><B><A NAME="l_file_template">file_template = no</A></B></DT>
<! Sec='PARAMETERS' Level=0 Label='file_template' Line='file_template = no'>
<DD>If this switch is set the template is interpreted as a filename matching
template, and all help blocks found in the named files are output. The help
database is not searched, hence manual pages can be printed or documents
may be formatted without entering the files into a help database.
In other words, "<TT>help file.hlp fi+</TT>" makes it possible to use <I>help</I> as
a conventional text formatter.
</DD>
</DL>
<DL>
<DT><B><A NAME="l_all">all = no</A></B></DT>
<! Sec='PARAMETERS' Level=0 Label='all' Line='all = no'>
<DD>Print help for all help modules matching <I>template</I>, rather than only the
first one found.
</DD>
</DL>
<DL>
<DT><B><A NAME="l_parameter">parameter = "<TT>all</TT>"</A></B></DT>
<! Sec='PARAMETERS' Level=0 Label='parameter' Line='parameter = "all"'>
<DD>If the value of this parameter is not "<TT>all</TT>", only the help text
for the given parameter will be printed.
</DD>
</DL>
<DL>
<DT><B><A NAME="l_section">section = "<TT>all</TT>"</A></B></DT>
<! Sec='PARAMETERS' Level=0 Label='section' Line='section = "all"'>
<DD>If the value of this parameter is not "<TT>all</TT>", only the help text for the
given section (e.g. "<TT>usage</TT>", "<TT>description</TT>", "<TT>examples</TT>") will be printed.
</DD>
</DL>
<DL>
<DT><B><A NAME="l_option">option = help</A></B></DT>
<! Sec='PARAMETERS' Level=0 Label='option' Line='option = help'>
<DD>The option parameter specifies the type of help desired, chosen from
the following:
<DL>
<DT><B><A NAME="l_help">help</A></B></DT>
<! Sec='PARAMETERS' Level=1 Label='help' Line='help'>
<DD>Print the full help block for the named module.
</DD>
</DL>
<DL>
<DT><B><A NAME="l_source">source</A></B></DT>
<! Sec='PARAMETERS' Level=1 Label='source' Line='source'>
<DD>Print the source code for the module (which often contains additional
detailed comments).
</DD>
</DL>
<DL>
<DT><B><A NAME="l_sysdoc">sysdoc</A></B></DT>
<! Sec='PARAMETERS' Level=1 Label='sysdoc' Line='sysdoc'>
<DD>Print the technical system documentation for the named module.
</DD>
</DL>
<DL>
<DT><B><A NAME="l_directory">directory</A></B></DT>
<! Sec='PARAMETERS' Level=1 Label='directory' Line='directory'>
<DD>Print a directory of all help blocks available for the named package.
</DD>
</DL>
<DL>
<DT><B><A NAME="l_alldoc">alldoc</A></B></DT>
<! Sec='PARAMETERS' Level=1 Label='alldoc' Line='alldoc'>
<DD>Print all help blocks in the file containing the help block for
the named procedure (i.e., both the user and system documentation).
</DD>
</DL>
<DL>
<DT><B><A NAME="l_files">files</A></B></DT>
<! Sec='PARAMETERS' Level=1 Label='files' Line='files'>
<DD>Print the names of all help files associated with the named modules or
packages.
</DD>
</DL>
<DL>
<DT><B><A NAME="l_summary">summary</A></B></DT>
<! Sec='PARAMETERS' Level=1 Label='summary' Line='summary'>
<DD>Print only the titles and sizes of help blocks in referenced help files.
The contents of the blocks are skipped. Titles are printed for <I>all</I>
help blocks found in the file containing the help block for the named module.
</DD>
</DL>
</DD>
</DL>
<DL>
<DT><B><A NAME="l_page">page = yes</A></B></DT>
<! Sec='PARAMETERS' Level=0 Label='page' Line='page = yes'>
<DD>Pause after every page of output text. Turning this off for large documents
speeds up output considerably.
</DD>
</DL>
<DL>
<DT><B><A NAME="l_nlpp">nlpp = 59</A></B></DT>
<! Sec='PARAMETERS' Level=0 Label='nlpp' Line='nlpp = 59'>
<DD>The number of lines per page if output is redirected, e.g., to <I>lprint</I>.
</DD>
</DL>
<DL>
<DT><B><A NAME="l_lmargin">lmargin = 1</A></B></DT>
<! Sec='PARAMETERS' Level=0 Label='lmargin' Line='lmargin = 1'>
<DD>Left margin on output.
</DD>
</DL>
<DL>
<DT><B><A NAME="l_rmargin">rmargin = 72</A></B></DT>
<! Sec='PARAMETERS' Level=0 Label='rmargin' Line='rmargin = 72'>
<DD>Right margin on output.
</DD>
</DL>
<DL>
<DT><B><A NAME="l_search">search = no</A></B></DT>
<! Sec='PARAMETERS' Level=0 Label='search' Line='search = no'>
<DD>If enabled the
<A HREF="#l_template">template</A>
is interpreted as a search string and the task
is started with the search panel open with the results of the search. The
<A HREF="#l_file_template">file_template</A>
parameter is ignored with search turned on.
</DD>
</DL>
<DL>
<DT><B><A NAME="l_home">home = "<TT></TT>"</A></B></DT>
<! Sec='PARAMETERS' Level=0 Label='home' Line='home = ""'>
<DD>The home page for the task. If not set and no
<A HREF="#l_template">template</A>
is specified
the task will start with the online help in the main window, otherwise it
may be set to a filename to be displayed when the task starts. This file
may contain a text help block which will be formatted before display, or
it may be a valid HTML file. See below for a description of the format of
a homepage file which provides links to tasks.
</DD>
</DL>
<DL>
<DT><B><A NAME="l_printer">printer = "<TT>printer</TT>"</A></B></DT>
<! Sec='PARAMETERS' Level=0 Label='printer' Line='printer = "printer"'>
<DD>Default hardcopy printer name. If the <I>value</I> of the parameter is the
reserved string "<TT>printer</TT>", the actual device is the value of the CL
environment variable <I>printer</I>.
</DD>
</DL>
<DL>
<DT><B><A NAME="l_showtype">showtype = no</A></B></DT>
<! Sec='PARAMETERS' Level=0 Label='showtype' Line='showtype = no'>
<DD>Add task-type suffix in package menus?
</DD>
</DL>
<DL>
<DT><B><A NAME="l_quickref">quickref = "<TT>uparm$quick.ref</TT>"</A></B></DT>
<! Sec='PARAMETERS' Level=0 Label='quickref' Line='quickref = "uparm$quick.ref"'>
<DD>Name of the quick-reference file used for searching. This file is created
the first time the task is run in GUI mode or whenever it doesn't exist,
or when any help database file has been updated.
</DD>
</DL>
<DL>
<DT><B><A NAME="l_uifname">uifname = "<TT>lib$scr/help.gui</TT>"</A></B></DT>
<! Sec='PARAMETERS' Level=0 Label='uifname' Line='uifname = "lib$scr/help.gui"'>
<DD>The user interface file. This file is what defines the look and behavior
of all the graphical user interface elements. Experts may create variants
of this file.
</DD>
</DL>
<P>
<DL>
<DT><B><A NAME="l_helpdb">helpdb = "<TT>helpdb</TT>"</A></B></DT>
<! Sec='PARAMETERS' Level=0 Label='helpdb' Line='helpdb = "helpdb"'>
<DD>The filename of the help database to be searched. If the <I>value</I> of the
parameter is the reserved string "<TT>helpdb</TT>", the actual filename is the value
of the CL environment variable <I>helpdb</I>.
</DD>
</DL>
<DL>
<DT><B><A NAME="l_device">device = "<TT>terminal</TT>"</A></B></DT>
<! Sec='PARAMETERS' Level=0 Label='device' Line='device = "terminal"'>
<DD>Output device if the standard output is not redirected. Allowable values
include:
<DL>
<DT><B><A NAME="l_terminal">terminal</A></B></DT>
<! Sec='PARAMETERS' Level=1 Label='terminal' Line='terminal'>
<DD>If the <I>value</I> of
the parameter is the reserved string "<TT>terminal</TT>", the actual device name is
the value of the CL environment variable <I>terminal</I>.
</DD>
</DL>
<DL>
<DT><B><A NAME="l_text">text</A></B></DT>
<! Sec='PARAMETERS' Level=1 Label='text' Line='text'>
<DD>Output the formatted help page as plain text.
</DD>
</DL>
<DL>
<DT><B><A NAME="l_gui">gui</A></B></DT>
<! Sec='PARAMETERS' Level=1 Label='gui' Line='gui'>
<DD>Invoke the GUI for browsing the help system. This option will only work if
the <I>stdgraph</I> environment variable is set the <I>xgterm</I>, and the
user is running IRAF from an <I>XGterm</I> window.
</DD>
</DL>
<DL>
<DT><B><A NAME="l_html">html</A></B></DT>
<! Sec='PARAMETERS' Level=1 Label='html' Line='html'>
<DD>Output the formatted help page as HTML text.
</DD>
</DL>
<DL>
<DT><B><A NAME="l_ps">ps (or postscript)</A></B></DT>
<! Sec='PARAMETERS' Level=1 Label='ps' Line='ps (or postscript)'>
<DD>Output the formatted help page as postscript.
</DD>
</DL>
</DD>
</DL>
</UL>
<A NAME=nav><HR><h1>Navigating the IRAF Help System</h1></A>
When run as a browser, <I>Help</I> works very much like any WWW browser.
The top panel is a list widget that will always contain a CL package listing,
at startup this will be the toplevel <I>"Home"</I> package menu one would see
when first logging into the CL containing the core system packages, NOAO
package, and any site-specific external package, or in the case of starting
with a specific task it will be the parent package for the task.
Additionally, system documents for the <A HREF="os"><B>os</B></A>
HSI routines and the <A HREF="sys.imfort"><B>imfort</B></A> and
<A HREF="math"><B>math</B></A>
interfaces will be available in the <I>Home</I> package although
these are programmatic interfaces and not tasks which can be executed.
<P>
New packages or task help pages are loaded by selecting an item from the
package menu list using the left mouse button. If the requested item is a
package, the menu listing will change as though the package were loaded in
the CL, and the help display panel will contain a listing of the package
tasks with a one-line description for each task such as would be seen with
a <I>"help <package>"</I> command using the standard task. New items
may then be selected using either the menu list or links in the display
panel. If the item is a task, the help page for the task will appear in the
display panel. In either case new pages may be selected from the menu listing.
<P>
Specific help documents may also be requested by entering the task/package
name in the <B>Topic</B> text widget above the menu list. As when selecting
from the package menu list, items selected this way will cause the menu
list to change to the package menu for the parent package if the item is a
task (displaying the help page in the display panel) or the package menu
if the item is a package (displaying the one-liner package listing in the
display panel).
<P>
Using the <B>Back</B> button will revert to the previous page in the history
list which will either be the previously loaded package or help page.
Similarly, selecting the <B>Forward</B> button will move the next page further
down in the history list, either button will become insensitive when the
end of the list on either end is reached. Selecting the <B>Up</B> button will
cause the browser to immediately jump up the previous package, skipping
over any help pages that were loaded in between. The <B>Home</B> button will
cause the default homepage (either the user-defined page if specified by the
task <I>home</I> parameter or the online help) to be displayed. Browsing
in this way can also be done using the navigation menu created by hitting
the right mouse button while in the main display panel.
<P>
Users can also jump to specific pages in the history list using the
<B>History</B> button on the main menubar. The right column of the menu
will indicate whether the item is a task, package, internal link or a text
file. The history list is truncated at about 40 entries in the menu but
the user may work back incrementally by selecting the last item of the
menu, after which the History button will display the previous 40 entries.
The history list may be cleared except for the current page by selecting
the <I>Clear History</I> menu item.
<A NAME=browse><HR><h1>Browsing a Help Document</h1></A>
Once a help page is loaded the middle menubar above the display panel
will change to activate widgets based on the position within the history
list and options available for a particular page. The left-most group
of buttons are the standard navigation buttons described above.
The middle group of buttons contains the <B>Sections</B> and
<B>Parameters</B> buttons which are used to browse within a help document.
The <I>Sections</I> button is a menu listing all of the sections found
within a help page, allowing the user to jump to a specific section
rather than scrolling through the entire document. The <I>Sections</I>
menu is also available using the middle mouse button from the
main display area. The <I>Parameters</I> button is similarly a menu
listing of all task parameter help sections found within the document.
Both or either of these buttons will become insensitive when no section
or parameter information is found in the document.
<P>
The right-most group of buttons represent the various help options available
for each page. The default is to get the task help, however help pages
may have an associated <B>source</B> file or <B>sysdoc</B> (e.g. if the task
is a CL script there may be a pointer to the script source itself, or a package
may have a general overview document listed as the system document). Once
a help page is loaded these buttons will change become sensitive if that option
is available, simply select the button to view the option. Selecting the
<B>Files</B> button will bring up a panel listing all the files associated
with a particular help topic. When a help topic is selected and an option is
defined but the file does not exist, the options button will display a yellow
diamond icon even if the button is insensitive, a green icon indicates the
currently selected option. This feature may be disabled by selecting the
"<TT>Show missing files</TT>" item from the main menubar <B>Options</B> menu.
<A NAME=search><HR><h1>Searching</h1></A>
<A NAME=dbsearch><h1>Searching the Help Database</h1></A>
Searching the help database is done by selecting the <B>Search</B> button
from the main menubar to bring up the search panel. Users may then enter
one or more keywords into the <B>Topic</B> field at the bottom of the panel
and initiate the search with either a carriage return or hitting the
<I>Search</I> button just beside it. The panel will then show a list of all
tasks and packages which match the search phrase along with a one-line
description of the task. Help pages may be displayed by selecting either the
task or package link with the left mouse button, in both case the package
menu list on the main help window will be updated to list the package
contents allowing other tasks from that package to be selected in the normal
way.
<P>
By default the exact phrase entered in the topic window will be used for the
search. This can be relaxed by toggling the "<TT>Require exact match</TT>"
button
at the top of the panel. For example, to search for all tasks matching
<I>either</I> the keyword "<TT>flat</TT>" or "<TT>field</TT>" turn off the
exact match
toggle and the search will return not only tasks matching "<TT>flat
field</TT>"
but also any task description containing only one of the words such as the
VELVECT task which plots velocity <I>field</I>s.
<P>
<A NAME=find><h1>Searching Within a Document</h1></A>
Within a help document itself one can search for a string by selecting
the <B>Find</B> button from the main menubar to bring up a panel used to
enter the search string. When the text is entered the main display
window will reposition itself and highlight the text found within the
document. Searches can be repeated and will wrap around the document
automatically, searches can be done either forward or backward through
the text and may be case insensitive.
<A NAME=help><HR><h1>The On-Line Help Panel</h1></A>
The help panel permits the user to view the on-line help document while
XHELP is running. The help panel can be activated by pressing the
help command button in any panel or by selecting the "Help ..." item from
the main <B>File</B> menu. The help panel consists of the the help command
button bar and the help display window which are described below.
<p>
<dl>
<dt><b>The Help Command Button Bar</b>
<dd>The command button bar contains the following command buttons.
<p>
<dl>
<dt><b>The Back Command Button</b>
<dd>Pressing the Back command button moves backwards through the
previously visited links.
<p>
<dt><b>The Forward Button</b>
<dd>Pressing the Forward command button moves forward through the
list of visited links.
<p>
<dt><b>The Home Button</b>
<dd>Pressing the Home command button sets the help display window to
the top of the help document.
<p>
<dt><b>The Dismiss Button</b>
<dd>Pressing the Dismiss command button deactivates the help panel.
<p>
</dl>
</dl>
The bottom of the help panel contains a text search entry widget allowing
for text searches of the documentation along with options for searching
in a forward or backward direction, and case sensitivity. When a search
phrase is entered the help document will be repositioned to the next
occcurrance of the search string if found, otherwise a dialog box will
appear to say the string was not found. Searches will wrap around the
document automatically.
<A NAME=homepage><HR><h1>User-Defined Homepages</h1></A>
By default <I>Xhelp</I> will start with the online help page displayed in the
main help window. The user can change this by setting the task <B>home</B>
parameter to be a path to any valid file. This file may be plain text, a
help document in LROFF format which will be converted to HTML for display,
or a native HTML document.
<P>
HTML files may contain URLs of the form
<UL>
<PRE>
<B><a href=</B><I>[package.]task</I><B>></B><I>url_text</I><B></a>
</PRE>
</UL>
<P>
where </B><I>url_text</I> is the text to appear in the window and the URL
itself
consists of an optional package and task name delimited by a period. For
example, to create a link to the
<A HREF="onedspec.splot"><B>splot</B></A>
task in a document one would use the URL
<UL>
<PRE>
<TT><a href=onedspec.splot>splot</a></TT>
</PRE>
</UL>
<P>
In this way users can create a homepage which serves as a <I>"bookmark"</I>
file or index of shortcuts to the most commonly accessed help pages.
<A NAME=lfiles><HR><h1>Loading Files</h1></A>
Text files may be loaded on the command line when starting the task by
specifying the filename and setting the
<A HREF=#l_file_template>file_template</A> task parameter. The named file
will be searched for a <I>.help</I> LROFF directing indicating it contains
a help block that will be converted to HTML for display. If no help
block is found the file will be displayed as-is, meaning existing
HTML documents can be loaded and will be formatted correctly.
Once the task is running users may load a file by selecting the <B>Open
File...</B> menu item from the main menubar <B>File</B> menu or the
right-mouse-button menu from within the main display area. This will
open a file browser allowing users to change directories by using the
navigation buttons at the top of the panel, or selecting items from the
leftmost directory listing. Selecting a file on the rightmost list will
cause it to be loaded and automatically formatted if it contains a help
block. The file list may be filtered to select only those files matching
a particular template by changing the <B>Filter</B> box at the top of
the panel. Filenames or directories may be entered directly using the
<B>Selection</B> box at the bottom of the panel.
<A NAME=sfiles><HR><h1>Saving Files</h1></A>
Once a file has been loaded in the browser it may be saved to disk as
either <I>source</I> (i.e. the original LROFF file if that was converted
for the display, or whatever file is currently displayed regardless of
format), <I>text</I> to save formatted plain text such as that produced
by the standard <B>help</B> task, <I>HTML</I> to save the converted HTML
used in the display, or <I>PostScript</I> to save formatted PostScript of
the document such as that sent to the printer using the <B>Print</B>
button. Not all options will be available depending on the format of the
input text, unavailable options will be insensitive in the GUI.
The <B>Save</B> panel is opened by selecting the <B>Save As...</B> menu
item from the main menubar <B>File</B> menu or the right-mouse-button
menu from within the main display area. The file browser operates the
same as when loading images, the only difference is that file selection
simply defines the filename to be used and does not cause the save to
occur automatically. Users can overwrite existing files by selecting the
<I>Options</I> toggle at the bottom of the panel.
<A NAME=out><HR><h1>Hardcopy Output</h1></A>
Help pages may be output to any configured iraf printer by selecting the
main menubar <B>Print</B> button to bring up the print panel. Task help
pages will be converted to formatted PostScript and may be sent to either a
printer or saved to disk depending on the selection made in the printer
panel. If the printer name is set to the special value <I>"printer"</I> then
the device named by the CL <I>printer</I> environment variable will be used.
When saving to disk files the default action is to save to a filename whose
name is the task name plus a "<TT>.ps</TT>" extension. Either of these are
changeable within the GUI as is the default page size to be used when
generating the PostScript.
<P>
The main menubar <B>File</B> button can also be used to bring up the file
browser in order to save the current document to disk. Help pages may be
saved as either the origin LROFF source for the file, formatted text as you
would get from the standard help task, HTML as is displayed in the GUI, or
formatted PostScript. The choice of formats is dictated by the type of file
being displayed (e.g. you cannot save PostScript of a program source).
<HR>
<A NAME=lroff><h1>LROFF Extensions for HTML</h1></A>
To better support HTML links within documents and to other help pages two
new directives have been added to the LROFF text formatter. These are
<B>.hr</B> to specify a link (an HTML <I>HREF</I> directive) and <B>.hn</B>
to specify a name (an HTML <I>NAME</I> directive). The syntax for these are
as follows:
<PRE>
<B>.hn</B><I> <name></I>
<B>.hr</B><I> <link> <text> </I>
</PRE>
<P>
where <I><name></I> is the destination name of an internal link,
<I><link></I>
is the URL of the link to be created, and <I><text></I> is the text to
be displayed in the HTML. The URL syntax is either a <TT>'#'</TT> character
followed
by a destination name, a simple <I>task</I> name or <I>package</I> name,
or a <I>package.task</I> pair giving a more precise task. For internal links
the current document is repositioned so the name is at the top of the display,
for task help links new help pages will be loaded in the browser.
<P>
These directives are ignored when converting the LROFF to either formatted
plain text or PostScript.
</BODY>
</HTML>
|