# html.map -- map file for html.mmf filter # # EXPLANATION # # This map file tells the mmf filter how to do its job. It reads this file # in upon starting. The filter looks for this file first in the # installation directory, then in the current directory. Thus, you can # copy the file to your current directory and override only as necessary. # # To override, simply keep the changes you need, and delete everything # else (maintaining valid perl syntax :-). # # Note, don't override anything unless you really have need to; most of # the common changes can be specified on the command line, and hence # there is no need for making a copy of this file. # #--------------------------------------------------------------------------- #--------------------------------------------------------------------------- # # DEFAULT VALUES # # These variables control how the filter converts anchored frames to # images. Command line options are given where applicable. # # This is the algorithm that the html.mmf filter uses for images: # # if noimages isn't specified ($noimages == 0) # if inline images are specified ($inline isn't "" or "none") # if external images are specified ($external isn't "" or "none") # inline images are hyperlinked to external images # else # inline images are not hyperlinked to anything # else # if external images are specified ($external isn't "" or "none") # if linktext is specified ($linktext isn't "" or "none") # linktext "(here)" is hyperlinked to external images # else # images are left out altogether # else # images are left out altogether # else # images are left out altogether # # The variables below are the defaults, and can be overridden on the # command line, or by a local html.map file. The current defaults # specify that inline and external images are to be used; inline # graphics will be in gif format and should be hyperlinked to the # external images, which will be in ps format. Got it? # #--------------------------------------------------------------------------- $alttext = "(Figure)" ; # text to display by line-mode browsers $linktext = "(Figure)" ; # hypertext to external image w/o inline $inline = "" ; # filename suffix of inline graphics $external = "ps" ; # filename suffix of external graphics $Entities = "html.ent" ; # filename to read for Frame 2 HTML entites $noimages = 0 ; # yes, we want images (-noimages to turn off images) $paged = 0 ; # process text as a single textflow (not by page) $directory = "./graphics";# directory to dump graphics... $Delay = 10 ; # delay (seconds) between fmprintdriver and psconvert $Named = 0 ; # if TRUE, causes generated graphic files to be # named after original Frame file. $PSargs = "" ; # Additional arguments to pass to psconvert script # See psconvert script to see how it is used $TOCFILE = "toc.html" ; $TOCTITLE = "MifMucker Generated TOC" ; %TOC = ( "
", "", "
", ); #--------------------------------------------------------------------------- # # CHARACTER TAGS: # # Each Character Tag on the left maps to the corresponding HTML tags # on the right. You can map to multiple HTML tags by separating them with # a colon. If you combine tags, be forewarned that some tags override # others, so the order can make a difference. For example, specifying # something as strong:code will not get bold monospace text. But # specifying it as code:strong will (code overrides previous settings). # # Some common HTML tags are defined below: # strong : important, usually bolded # em : emphasized, usually italicized # code : monospaced # kbd : keyboard, usually monospaced # cite : reference, usually italicized # sub : subscripted, usually itlaicized and subscripted if possible # sup : superscripted, same thing only superscripted # #--------------------------------------------------------------------------- %formatting = ( "B", "STRONG", "b", "STRONG", "Bold", "STRONG" , "Bold10pt", "STRONG" , "BoldUnderline", "STRONG" , "BookTitle", "CITE", "", "CITE", " ", "CITE", "Citation", "CITE", "Code", "CODE", "Definition", "DFN", "ElementName", "CODE:STRONG", "Emphasis", "EM", "FixedWidth", "TT", "Italic", "I", "Italic10pt", "EM", "I", "EM", "i", "EM", "", "EM", "", "EM", "Hyperlink", "", "KeyCap", "KBD", "KeyBoard", "KBD", "Mono", "CODE", "Monospaced", "CODE", "MonospacedInput", "CODE:STRONG", "MonoBold", "CODE:STRONG", "M", "CODE", "m", "CODE", " ", "CODE", " ", "CODE", "ProductTitle", "STRONG", "Strong", "STRONG", "Subscript", "EM", "Superscript", "EM", "TagName", "STRONG", "Variable", "VAR", ); #--------------------------------------------------------------------------- # # PARAGRAPH TAGS: # # Each Paragraph Tag on the left maps to the corresponding HTML tags # on the right. You can specify various conditions when mapping frame's # tags to HTML tags. # # Currently the syntax for the HTML mapping is as follows (stuff on right): # # Syntax: [+][-] [pre][::post] # # Where : # + Indicates not to convert tabs to spaces. See NOTE ABOUT DLs. # - Indicates not to convert autonumbering # TAG One of the valid HTML tags # -n Level of list item (intended for multi-level lists) # +n Level of paragraph within a list (doesn't start new list item) # pre Additional text that is inserted before para (can use HTML) # post Additional text that is inserted after para (can use HTML) # # The pre and post data can contain almost anything. Obviously, they # cannot contain extra ::s because that'll get interpreted as the # separator. I can't see why anyone would want to print ::s normally, # so I don't see it as a problem. Also, if you want to use newlines # in your pre or post data, be sure to protect the slash. So use: # # " \\n ::
\\n" # # to simulate the way P's will behave in HTML+. # # # # NOTE ABOUT DLs: # # Currently the initial + sign (don't convert tabs) should # only be used with the DL tag. That is, if you have paras # that are glossary-lists, where the term is separated from # the definition by a tab, then specify "+" as the # conversion. This says, leave the tab (it'll be used to # split the term and def automagically), and convert to a DL. # # If you're using separate Paras for the Term and Def, then # specify the Term as a DT and the Def as a DD. If you want # multiple Paras in the Def, they'll need to be tagged DD too. # # # HTML CURRENTLY SUPPORTED: # #
Skip paragraph (but still allows pre and post data # Print paragraph without being wrapped (pre & post ok) # The ASIS tag is rather powerful. It would enable you # to completely define how any element is wrapped. For # example would enable you to specify # a Paragraph Tag to be wrapped by element FOO, which # of course need not be in the original HTML specification. # #
Heading rule (HTML extension; not recommended) #
Break line #Standard paragraph # #
Title of document (REQUIRED!) # H1 heading #
H2 heading #
H3 heading #
H4 heading #
H5 heading #
H6 heading # #
Preformatted text (leave as is in monospace font) # #Unordered list first level (Bulleted list) # Unordered list second level # Unordered list nth level # Unordered list para (no bullet; keep level 1 list going) #
Unordered list para (no bullet; keep level 2 list going) #
Unordered list para (no bullet; keep level n list going) # #
Ordered list first level (Numbered list) # Ordered list para (no number; keep level 1 list going) # #
Definition List (Term and Def are separated by a tab) #
- Definition Term #
- Definition Definition # # Used to specify the authors email/postal address #
Indented paragraph, as in long quotation # #Comment block (doesn't appear in browser) # #--------------------------------------------------------------------------- %tags2tokens = ( "aa.first", " ", "aa.normal", "
", "bb.bull", "
", "bb.bullfirst", "- ", "bb.bullnum", "- ", "bb.bullseq", "- ", "dd.sec0", " ", "dd.sec0TOC", "
", "dd.sec1", "
", "dd.sec1TOC", "
", "dd.sec2", "
", "dd.sec2TOC", "
", "dd.sec3", "
", "dd.sec3TOC", "
", "dd.xercises", "
", "dd.xercisesTOC", "
", "dd.xercises1", "
", "oo.chapnonum", "
", "oo.chapnonumTOC", "
", "oo.chapter", "
", "oo.chapterTOC", "
", "zz.part", "
", "zz.partTOC", "
", "Address", "", "BarTop", "
", "BarBottom", "
", "Body", "
", "Book Title", "
", "Bullet", "-", "Bullet Para", "- ", "Bullet1", "-
", "Bullet1Para", "- ", "Bullet2", "-
", "Bullet2Para", "- ", "Bullet3", "-
", "Bullet3Para", "- ", "Catagory", "
", "Caution-head", " Caution", "ChpNum", "", "ChpTitle", " ", "CmdFull", " ", "CmdAbbrev", " Abbr:", "CmdAlias", "
Alias:", "Definition", "
Definition
", "DescriptionHead", "Description
", "Edition", "", "Example", "
", "ExamplesHead", "
Examples
", "Figure", "", "FigTitle", "
", "FigTitleL", "
", "FigTitleS", "
", "FixedWidth", "
", "FootnoteBody", "", "FootnoteTable", "
", "GlossaryDef", "-
- ", "GlossaryTerm", "-
- ", "H1", "
", "H2", "", "H3", "
", "H4", "
", "H5", "
", "H6", "
", "H4 no toc", "
", "H1para", "
", "H3/H4para", "
", "HRule", "
", "InputL", "", "InputS", "", "LB1", "-", "LB2", "- ", "LB3", "- ", "LB1para", "- ", "LBitem", "-
", "LDef", "+- ", "LNum", "-
", "LNum+", "- ", "LNumpara", "- ", "LNumPara", "-
", "New Book Title", "
", "Note-head", "Note", "Note", "", "Note/Caution", "", "OrderInfo", "", "OutputL", "
", "OutputS", "", "Para", "", "Paragraph", "
", "Parameters", "
", "ParametersHead", "", "PartInfo", "", "Product Descrip", "
", "ProdDesc Title", "
", "ProdDesc Bullet", "-
", "Quote", " ", "ResponseLine", "", "RelatedLine2", "", "RelatedCommands", "Related Commands
", "RelatedConcepts", "Related Concepts
", "RelatedParameters", "Related Parameters
", "Rev Book Title", "
", "Screen", "", "ShellPrompt", "", "StepNum", "-", "StepNum+", "- ", "SyntaxHead", " Syntax
", "SyntaxLine2", "", "Table", "
", "TBhead", "
", "TBitem", "
", "TBtitleL", "
", "TBtitleS", "
", "Title", "
", "Warn-head", " Warning", "WriterNote", "", ) ; #--------------------------------------------------------------------------- # # FRAME ENTITIES # # Frame uses the following special entity references for certain # special characters (such as a tab). The default translations for # these characters is in fonts.pl. This table overrides those default # translations for special use with HTML. # # For example, Frame uses HardSpace for a non-breaking space in your # Frame file. If HTML offered an entity for non-breaking spaces, such # as we would include that translation here like so: # # %html_characters ( # "HardSpace", " " # Non-breaking space # ); # # If you just don't like the default behavior, change fonts.pl rather # than overriding it just for the HTML filter. # # For more information, refer to fonts.pl in the installation directory. # #--------------------------------------------------------------------------- %html_characters = ( "Tab", "\\t", "HardSpace", " ", "SoftHyphen", "", # hyphened by Frame "DiscHyphen", "-", "NoHyphen", "", "Cent", " cents", "Pound", " lbs", "Yen", " yen", "EnDash", "-", "EmDash", "--", "Dagger", "+", "DoubleDagger", "++", "Bullet", "o", "HardReturn", "
\n", "EndOfPara", "P", "EndOfFlow", "$", "NumberSpace", " ", "ThinSpace", " ", "EnSpace", " ", "EmSpace", " ", ); 1;