#--------------------------------------------------------------------- # # WebMaker 1.4a # (c) 1995 The Harlequin Group Limited. All rights reserved. # # Default configuration file generated by wmconfig on 95/02/17 # for the FrameMaker document `Field.book.MIF'. # # Modified by Mario Ruggier on 95/06/30. # #--------------------------------------------------------------------- # (Note that the Field.book does not have a document title. # Thus there is no pgftag that uses the "FMDocumentTitle" Rule. # The text of the title is supplied on the command line with the # -t switch, and printed within the NODE FirstPage). #----------------------------------------------------------------------- # # 1. Define user variables # #----------------------------------------------------------------------- VARIABLE @NavPanel VARIABLE @Copyright #----------------------------------------------------------------------- # # 2. Define HTML node types # #----------------------------------------------------------------------- #----------------------------------------------------------------------- # # Define the entry page of the generated web. # NODE FirstPage { TITLE maintitle() HEADER { @Copyright = "Copyright 1993, 1994 Frame Technology, used by permission."; @NavPanel=concatenate( button( image("BT04_next.gif",BOTTOM), filename(next), image("BT04_dead_next.gif",BOTTOM))," ", button( image("BT04_contents.gif",BOTTOM), filename(TOC), image("BT04_dead_contents.gif",BOTTOM))," ", button( image("BT04_index.gif",BOTTOM), filename(INDEX), image("BT04_dead_index.gif",BOTTOM)) ); write(*,paragraph(@NavPanel)); write(*,heading(1,concatenate( image("ball1.gif",BOTTOM)," ", maintitle()))); write(*,paragraph(image("redline.gif",TOP))); write(*,heading(3,"Example supplied with FrameMaker")); write(*,paragraph(@Copyright)); } FOOTER { write(*,strong(toc(2,global))); write(*,image("redline.gif",TOP)); write(*,address(@Copyright)); } } #------------------------------------------------------------------------- # # Define node for first level # NODE LevelOne { TITLE concatenate(headingnumber(), " ", headingtext()) HEADER { @NavPanel=concatenate( button( image("BT04_next.gif",BOTTOM), filename(next), image("BT04_dead_next.gif",BOTTOM))," ", button( image("BT04_previous.gif",BOTTOM), filename(previous), image("BT04_dead_previous.gif",BOTTOM))," ", button( image("BT04_top.gif",BOTTOM), filename(top), image("BT04_dead_top.gif",BOTTOM))," ", button( image("BT04_contents.gif",BOTTOM), filename(TOC), image("BT04_dead_contents.gif",BOTTOM))," ", button( image("BT04_index.gif",BOTTOM), filename(INDEX), image("BT04_dead_index.gif",BOTTOM)) ); write(*,paragraph(@NavPanel)); write(*,paragraph(maintitle())); } FOOTER { write(*,strong(toc(1,local))); write(*,image("redline.gif",TOP)); write(*,address(@Copyright)); } } #------------------------------------------------------------------------- # # Node for all other levels lower than the first # NODE LevelTwo { TITLE concatenate(headingnumber()," ",headingtext()) HEADER { @NavPanel=concatenate( button( image("BT04_next.gif",BOTTOM), filename(next), image("BT04_dead_next.gif",BOTTOM))," ", button( image("BT04_previous.gif",BOTTOM), filename(previous), image("BT04_dead_previous.gif",BOTTOM))," ", button( image("BT04_up.gif",BOTTOM), filename(up), image("BT04_dead_up.gif",BOTTOM))," ", button( image("BT04_top.gif",BOTTOM), filename(top), image("BT04_dead_top.gif",BOTTOM))," ", button( image("BT04_contents.gif",BOTTOM), filename(TOC), image("BT04_dead_contents.gif",BOTTOM))," ", button( image("BT04_index.gif",BOTTOM), filename(INDEX), image("BT04_dead_index.gif",BOTTOM)) ); write(*,paragraph(@NavPanel)); write(*,paragraph(concatenate(headingnumber(up)," ",headingtext(up)))); } FOOTER { write(*,strong(toc(1,local))); write(*,image("redline.gif",TOP)); write(*,address(@Copyright)); } } #------------------------------------------------------------------------- # # Define node for the external global Table of Contents and heading # paragraph rule that uses it. # NODE TOCNode { TITLE headingtext() HEADER { @NavPanel=concatenate( button( image("BT04_next.gif",BOTTOM), filename(next), image("BT04_dead_next.gif",BOTTOM))," ", button( image("BT04_previous.gif",BOTTOM), filename(previous), image("BT04_dead_previous.gif",BOTTOM))," ", button( image("BT04_top.gif",BOTTOM), filename(top), image("BT04_dead_top.gif",BOTTOM))," ", button( image("BT04_index.gif",BOTTOM), filename(INDEX), image("BT04_dead_index.gif",BOTTOM)) ); write(*,paragraph(@NavPanel)); write(*,paragraph(maintitle())); } FOOTER { write(*,strong(toc(4,global))); write(*,image("redline.gif",TOP)); write(*,address(@Copyright)); } } PARAGRAPH "ExtTOCHeading-TocNode" TYPE Heading { LEVEL 1 NEWNODE TOCNode FILENAMEKEY TOC ACTIONS { # write(*,heading(1,text())); # write(*,hrule()); write(*,heading(1,concatenate( image("ball2.gif",BOTTOM)," ", number()," ",text()))); write(*,paragraph(image("redline.gif",TOP))); } } #------------------------------------------------------------------------- # # Define node for the Index and the heading paragraph rule that uses it. # NODE IndexNode { TITLE headingtext() HEADER { @NavPanel=concatenate( button( image("BT04_next.gif",BOTTOM), filename(next), image("BT04_dead_next.gif",BOTTOM))," ", button( image("BT04_previous.gif",BOTTOM), filename(previous), image("BT04_dead_previous.gif",BOTTOM))," ", button( image("BT04_top.gif",BOTTOM), filename(top), image("BT04_dead_top.gif",BOTTOM))," ", button( image("BT04_contents.gif",BOTTOM), filename(TOC), image("BT04_dead_contents.gif",BOTTOM)) ); write(*,paragraph(@NavPanel)); write(*,paragraph(maintitle())); } FOOTER { write(*,index(Index,node)); write(*,image("redline.gif",TOP)); write(*,address(@Copyright)); } } PARAGRAPH "IndexHeading-IndexNode" TYPE Heading { LEVEL 1 NEWNODE IndexNode FILENAMEKEY INDEX ACTIONS { # write(*,heading(1,text())); # write(*,hrule()); write(*,heading(1,concatenate( image("ball2.gif",BOTTOM)," ", number()," ",text()))); write(*,paragraph(image("redline.gif",TOP))); } } #----------------------------------------------------------------------- # # 3. Define FM paragraphs' conversion rules and ACTIONS # #----------------------------------------------------------------------- PARAGRAPH "L1H1HR-Node1" TYPE Heading { LEVEL 1 NEWNODE LevelOne ACTIONS { # write(*,heading(1,concatenate(number()," ",text()))); write(*,heading(1,concatenate( image("ball2.gif",BOTTOM)," ", number()," ",text()))); write(*,paragraph(image("redline.gif",TOP))); # write(*,hrule()); } } PARAGRAPH "L2H1HR-Node2" TYPE Heading { LEVEL 2 NEWNODE LevelTwo ACTIONS { # write(*,heading(1,concatenate(number()," ",text()))); write(*,heading(1,concatenate( image("ball3.gif",BOTTOM)," ", number()," ",text()))); write(*,paragraph(image("redline.gif",TOP))); # write(*,hrule()); } } PARAGRAPH "L3H1HR-Node2" TYPE Heading { LEVEL 3 NEWNODE LevelTwo ACTIONS { # write(*,heading(1,concatenate(number()," ",text()))); write(*,heading(1,concatenate( image("ball4.gif",BOTTOM)," ", number()," ",text()))); write(*,paragraph(image("redline.gif",TOP))); # write(*,hrule()); } } PARAGRAPH "L1PlainItem-BoldNum" TYPE List { LEVEL 1 KIND Glossary ACTIONS { write(*,concatenate( glossterm(""), glossdescription( paragraph(concatenate(bold(number())," ",text())) ))); } } PARAGRAPH "L1BulletItem" TYPE List { LEVEL 1 KIND Bullet ACTIONS { write(*,listitem(paragraph(text()))); } } PARAGRAPH "Ignore" TYPE Normal { ACTIONS { write(*,comment(concatenate("FM pgf ignored"))); } } PARAGRAPH "Default" TYPE Normal { ACTIONS { write(*,paragraph(concatenate(number()," ",text()))); } } PARAGRAPH "SimpleBody" TYPE Normal { ACTIONS { write(*,paragraph(text())); } } # Paragraph formats used AND contained in the paragraph catalog(s). PARAGRAPH "Chapter" TYPE Heading { USES "L1H1HR-Node1" } PARAGRAPH "1Level" TYPE Heading { USES "L2H1HR-Node2" } PARAGRAPH "2Level" TYPE Heading { USES "L3H1HR-Node2" } PARAGRAPH "TOCChapter" TYPE Heading { USES "ExtTOCHeading-TocNode" } PARAGRAPH "IDXChapter" TYPE Heading { USES "IndexHeading-IndexNode" } # These are translated to plain lists but retain the numbering # of the FrameMaker document. PARAGRAPH "3Level" TYPE List { USES "L1PlainItem-BoldNum" } PARAGRAPH "4Level" TYPE List { USES "L1PlainItem-BoldNum" } PARAGRAPH "Bullet" TYPE List { USES "L1BulletItem" } PARAGRAPH "Body" TYPE Normal { USES "SimpleBody" } PARAGRAPH "tableplace" TYPE Normal { USES "SimpleBody" } PARAGRAPH "Solid" TYPE Normal { USES "SimpleBody" } PARAGRAPH "Footnote" TYPE Normal { USES "SimpleBody" } PARAGRAPH "Fig-body" TYPE Normal { USES "SimpleBody" } # Write the following as a heading with no structural significance PARAGRAPH "SolidHd" TYPE Normal { ACTIONS { write(*,heading(2,text())); }} # Write the following only as text PARAGRAPH "sidetag" TYPE Normal { ACTIONS { write(*,text()); }} # Ignore the following paragraph formats PARAGRAPH "1LevelTOC" TYPE Normal { USES "Ignore" } PARAGRAPH "Header" TYPE Normal { USES "Ignore" } PARAGRAPH "GroupTitlesIX" TYPE Normal { USES "Ignore" } PARAGRAPH "Level1IX" TYPE Normal { USES "Ignore" } PARAGRAPH "Figure" TYPE Normal { USES "Ignore" } PARAGRAPH "Level2IX" TYPE Normal { USES "Ignore" } PARAGRAPH "ChapterTOC" TYPE Normal { USES "Ignore" } PARAGRAPH "IndexIX" TYPE Normal { USES "Ignore" } # Paragraph formats NOT used but contained in the paragraph catalog(s). PARAGRAPH "Cell: Body Text" TYPE Normal { USES "Default" } PARAGRAPH "FancyNote" TYPE Normal { USES "Default" } PARAGRAPH "Cell: Head" TYPE Normal { USES "Default" } PARAGRAPH "TableFootnote" TYPE Normal { USES "Default" } PARAGRAPH "FancyNote2" TYPE Normal { USES "Default" } PARAGRAPH "Note" TYPE Normal { USES "Default" } PARAGRAPH "Cell: Body Num" TYPE Normal { USES "Default" } PARAGRAPH "anchor" TYPE Normal { USES "Default" } PARAGRAPH "TableTitle" TYPE Normal { USES "Default" } # Paragraph formats used but NOT contained in the paragraph catalog(s). PARAGRAPH "Footer" TYPE Normal { USES "Default" } #----------------------------------------------------------------------- # # 4. Define FM character format conversion rules # #----------------------------------------------------------------------- #--------------------------------------------------------------------- # # The following rules map all character format tags as "Emphasise". # The complete list of what a character format may be mapped to is: # # Bold Cite Code Definition # Emphasise Italic Keyboard Sample # Strong Teletype Underline Variable CHARACTER { TAG "Emphasis" MAP Emphasise } CHARACTER { TAG "Italic" MAP Italic } CHARACTER { TAG "Bold" MAP Bold } # Character formats NOT used but contained in the character catalog(s). CHARACTER { TAG "Table" MAP Emphasise } CHARACTER { TAG "Level" MAP Emphasise } CHARACTER { TAG "Superscript" MAP Emphasise } CHARACTER { TAG "ChapterNum" MAP Emphasise } CHARACTER { TAG "Bullet" MAP Emphasise } CHARACTER { TAG "RedSymbol" MAP Emphasise } CHARACTER { TAG "EquationFunctions" MAP Emphasise } CHARACTER { TAG "Subscript" MAP Emphasise } CHARACTER { TAG "EquationVariables" MAP Emphasise } CHARACTER { TAG "Level2" MAP Emphasise } CHARACTER { TAG "LargeType" MAP Emphasise } #----------------------------------------------------------------------- # # 5. Set defaults for the conversion of graphics # #----------------------------------------------------------------------- GRAPHIC DEFAULT { REALSIZE 150 # Percentage scaling of output size relative to original. REALFORMAT GIF # Output format may be GIF, XBM, XWD, RS, PBM, PS, PICT. MARGIN 3 # Percentage margin size relative to cropped output size. MARGINPIX 0 # Margin size in pixels (overrides MARGIN). BORDER 1 # Border thickness in pixels. ICON NO # If YES generate an icon of the image. ICONSIZE 25 # Percentage icon size relative to original. ICONFORMAT GIF # Output icon format may be GIF or XBM. ROTATION NIL # May be LEFT or RIGHT, to rotate 1/4 revolution. } # End