# Starting with rtftohtml 2.7, all html-trans files have a version number # The version number must appear before any other tables. .Version,6 # The file has been customised by Jerome Euzenat (Jerome.Euzenat@inrialpes.fr) # for the purposes of translating manuals (4 entries) # It uses the old (v3) encoding of characters (more portable) #ifmatch '$htmlTranPass;' 2 # Set the Language Dependant strings .Strings #ifmatch '$Language;' 1036 'LangTag','fr' 'Next','Next' 'Previous','Previous' 'Index','Index' 'Contents','Sommaire' 'Titlep','Titre' 'Up','hoch' #else #ifmatch '$Language;' 1031 'LangTag','de' 'Next','Next' 'Previous','Previous' 'Index','Index' 'Contents','Inhaltsverzeichnis' 'Titlep','Titelseite' 'Up','Remonter' #else #ifmatch '$Language;' 1040 'LangTag','it' 'Next','Next' 'Previous','Previous' 'Index','Indice' 'Contents','Sommario' 'Titlep','Titolo' 'Up','Risalire' #else #ifmatch '$Language;' 1034 'LangTag','es' 'Next','Next' 'Previous','Previous' 'Index','Indice' 'Contents','Contenido' 'Titlep','TÌtulo' 'Up','Anterior' #else 'LangTag','en' # defaults to English (1033) 'Next','Next' 'Previous','Previous' 'Index','Index' 'Contents','Contents' 'Titlep','Title Page' 'Up','Up' #endif # end 1040 #endif # end 1040 #endif # end 1031 #endif # end 1036 # Set the correct title .Strings #ifmatch $FirstHeading; ^$' 'DefTitle','$BaseName(InputFile).$HtmlExt;' # Can be overridden on cmd line #else 'DefTitle','$StripPN(FirstHeading)' #endif #ifmatch $rtfTitle; '^$' 'Title','$DefTitle;' #else 'Title','$rtfTitle;' #endif # This sets the title to just a plain title if only one page is generated #ifmatch $NumFiles; 1 'p1title','$Title;' #else 'p1title','$Title; - $Titlep;' #endif #else # PASS 1 Stuff goes here! # Debugging flags. # DB1 Debug&1 # DB2 Debug&(1<<1) # DBTrans Debug&(1<<2) # DBTbl Debug&(1<<3) # DBExpand Debug&(1<<4) # DBMem Debug&(1<<5) # DBGRP Debug&(1<<15) # DBTOKEN Debug&(1<<16) .Functions Function WarnNotDef DBPrint 'Warning - Variable $1; Used but not defined\n' Set '' # end of WarnNotDef Function CExpand Ifelse '$1;','.','$2;','$3;' # end of CExpand Function IsZero Ifelse '$1;','^0$','$2;','$3;' # end of IsZero Function BaseName Sub '^.*[\\:/]','' Sub '\\.[^.]*$','' # end of Basename Function GenFileSuffix Sub '^ *[0-9]+\\.\t','' Sub '[\t ].*','' Gsub '[^a-zA-Z0-9]','_' Sub '(.......).*','\\1' # end of GenFileSuffix Function ImageRef Sub '^.*[\\:/]','' # Strip lead Sub '\\.[^.]*$','' Encode " $&=+\"\\';/#?:" # end of ImageRef Function EncodeDirPath #ifmatch '$TransPlatform;','MacOS' Gsub ':','/' #else #ifmatch '$TransPlatform;','Win' Gsub '\\\\','/' #endif #endif Encode " $&=+\"\\';#?" # end of ImageRef Function RelName Sub '^.*[\\:/]','' # end of RelName Function StripPN Sub '^ *[0-9IixXVv.]+[.)][\t ]','' # end of StripPN Function DBVar DBPrint '$1;' # End of DBVar # if a default color is specified, make sure that the color black # is left to default Function CheckColor #ifmatch '$RGBColors','1' #ifmatch '$TxtColor;','.' Ifelse '$1;','#000000','','COLOR="$TextRGB;' #else Set 'COLOR="$TextRGB;' #endif #else #ifmatch '$TxtColor;','.' Ifelse '$1;','#000000','','COLOR="$TextColor;' #else Set 'COLOR="$TextColor;' #endif #endif # End of CheckColor # # Everything in htmlTranPass==1 is done prior to processing your # RTF input file. Anything that depends on your input file # should be moved to the section for pass2 ( Above ) # In general, put as much stuff in pass 1 as you can. .Strings 'TRUE',1 'FALSE',0 Empty,"" # These are 'packages' of options - an attempt to simplify the # choices for users # 'SkipNavPanel','1' # No navigation panels is the default #ifmatch $simple; 1 'SplitDepth',0 'SkipNavPanel','1' 'SkipLeadingToc','1' 'SkipTrailingToc','1' 'GenContents','0' 'GenFrames','0' 'GenIndex','0' # Added JE 20/12/99 'OutMap','html-map.v3' 'BColor','white' #else #ifmatch $framed; 1 'SplitDepth',1 'SkipNavPanel','0' 'SkipLeadingToc','0' 'SkipTrailingToc','1' 'GenContents','1' 'GenFrames','1' 'GenIndex','1' #else #ifmatch $classic; 1 'SplitDepth',0 'SkipNavPanel','1' 'SkipLeadingToc','1' 'SkipTrailingToc','0' 'GenContents','0' 'GenFrames','0' 'GenIndex','0' 'legacy','1' 'truepar',1 'redlinks',0 'OutMap','html-map.v3' #endif #endif #endif 'Pass2Start','$AtPass2Start()' # Paragraph Style Tags table # Format: #'name','starttag','endtag','col2mark','tabmark','parsep', #'linetag',allowtext,cannest,DeleteCol1,fold,TocStyl,generate_emptypar .PTag # The following entries are required and must be in this order - do not modify '_Literal','','\n','\t','\t','

\n','
',1,0,0,1,0,0 '_Discard','','\n','\t','\t','

\n','
',1,0,0,1,0,0 '_Name','','\n','\t','\t','

\n','
',1,0,0,1,0,0 '_Link','','\n','\t','\t','

\n','
',1,0,0,1,0,0 '_HRef','','\n','\t','\t','

\n','
',1,0,0,1,0,0 '_Hot','','\n','\t','\t','

\n','
',1,0,0,1,0,0 '_FootNote','','\n','\t','\t','

\n','
',1,0,0,1,0,0 # The remaining styles 'Normal','<$Ptype; ALIGN=$AlignLookUp(PAlign)>','$Ebrk;\n','\t','\t',\ '$Ebrk;<$Ptype; ALIGN=$AlignLookUp(PAlign)>','
',1,0,0,1,0,1 # 'h1','

\n','

','\t','\t','
','
',0,0,0,1,1,0 'h1','

\n','

\n
\n\n$GenLocalTOC()
','\t','\t','
','
',0,0,0,1,1,0 'h2','

\n','

\n','\t','\t','
','
',0,0,0,1,2,0 'h3','

\n','

\n','\t','\t','
','
',0,0,0,1,3,0 'h3inv','

\n','

\n','\t','\t','
\n','
\n',0,0,0,1,0,0 'h4','

\n','

\n','\t','\t','
','
',0,0,0,1,4,0 'h5','
\n','
\n','\t','\t','
','
',0,0,0,1,5,0 'h6','
\n','
\n','\t','\t','
','
',0,0,0,1,6,0 'ul','','\t','\t','
  • ','
    ',1,1,0,1,0,0 'ul-d','','\t','\t','
  • ','
    ',1,1,1,1,0,0 'ol','
      \n
    1. ','
    ','\t','\t','
  • ','
    ',1,1,0,1,0,0 'ol-d','
      \n
    1. ','
    ','\t','\t','
  • ','
    ',1,1,1,1,0,0 'dl','
    \n
    ','
    ','\n
    ','\t','\n
    ','
    ',1,1,0,1,0,0 'TERM','
    \n
    ','
    ','\t','\t','
    ','
    ',1,1,0,1,0,0 'DEF','
    ','','\t','\t','
    ','\n
    ',1,1,0,1,0,0 'dir','\n
  • ','
  • ','\t','\t','\n
  • ','
    ',1,1,0,1,0,0 'menu','\n
  • ','
  • ','\t','\t','\n
  • ','
    ',1,1,0,1,0,0 'address','
    \n','
    ','\t','\t','
    \n','
    ',1,0,0,1,0,1 'blockquote','
    \n','
    ','\t','\t','
    \n','
    ',1,0,0,1,0,1 'pre','\n
    ','
    ','\t','\t','\n','\n',0,0,0,0,0,1 'hr','
    ','','','','','',1,0,0,1,0,1 'newgloss','
    ','
    ','','\t',\ '',\ '\n
    ',1,0,0,1,0,1 # Jerome Euzenat styles 'Title','

    \n','

    \n','\t','\t','
    \n','
    \n',0,0,0,1,0,0 'Bib-head','',' ','\t','\t','

    \n','
    \n',1,0,0,1,0,0 'Bib-aut','',', ','\t','\t','

    \n','
    \n',1,0,0,1,0,0 'Bib-tit','',', ','\t','\t','

    \n','
    \n',1,0,0,1,0,0 'Bib-ref','','

    \n','\t','\t','

    \n','
    \n',1,0,0,1,0,0 'Bib-url','','\n','\t','\t','

    \n','
    \n',1,0,0,1,0,0 'Figure','\n

    ','

    \n','\t','\t','

    \n','
    \n',1,0,0,1,0,0 'Legende','','

    \n','\t','\t','

    \n','
    \n',1,0,0,1,0,0 'APIFORM','

    \n
    ','
    ','\t','\t','\n
    ','
    \n',1,1,0,1,0,0 'APIRES','
    ','','\t','\t','\n
    ','
    \n',1,1,0,1,0,0 'APIDESC','\n
    ','
    ','\t','\t','\n
    ','
    \n',1,1,0,1,0,0 .Strings 'OverrideDefs','1' # Forces these settings files into override mode #cinclude '$BaseName(InputFile).trn' # conditionally include file specific settings # JE: Make sure that this is processed .Strings 'StripHeadNo',1 'SplitDepth',1 'SkipNavPanel','1' 'SkipLeadingToc','0' 'SkipTrailingToc','1' 'GenContents','1' 'GenFrames','0' 'GenIndex','1' 'legacy','1' #'truepar',1 # JE Again 'OutMap','html-map.v3' # Added 12/1999 JE: for having correct quotes! 'BColor','white' 'MaxTOCLevel','3' #'FContentsFile','Co4-manual-Table.html' #'ISuffix','-Appendi-6' .Strings 'OverrideDefs','0' # No longer in force mode # These are 'packages' of options - an attempt to simplify the # choices for users # #ifmatch $simple; 1 'SplitDepth',0 'SkipNavPanel','1' 'SkipLeadingToc','1' 'SkipTrailingToc','1' 'GenContents','0' 'GenFrames','0' 'GenIndex','0' 'OutMap','html-map.v3' # Added 12/1999 JE: for having correct quotes! #else #ifmatch $framed; 1 'SplitDepth',1 'SkipNavPanel','0' 'SkipLeadingToc','0' 'SkipTrailingToc','1' 'GenContents','1' 'GenFrames','1' 'GenIndex','1' #else #ifmatch $classic; 1 'SplitDepth',0 'SkipNavPanel','0' 'SkipLeadingToc','1' 'SkipTrailingToc','0' 'GenContents','0' 'GenFrames','0' 'GenIndex','0' 'legacy','1' 'truepar',1 'redlinks',0 'OutMap','html-map.v3' 'VShortFileDigits','2' #endif #endif #endif #ifmatch '$GenFrames;',1 'GenContents',1 # require Contents on a frames generation 'TitlePageComplete','$GenFrames()' #else 'TitlePageComplete','' #endif #ifmatch '$GenFrames;',1 'ExtTarget',' TARGET="_top"' 'TLeft',' TARGET="LeftFrame"' 'TRight',' TARGET="RightFrame"' #else 'ExtTarget','' 'TLeft','' 'TRight','' #endif 'Base','' #ifndef Pass1Start 'Pass1Start','' #endif #ifndef TranslationEnd 'TranslationEnd','' #endif #ifndef Pass1End 'Pass1End','' #endif #ifndef GraphicWritten 'GraphicWritten','' #endif #ifndef GraphicFound 'GraphicFound','' #endif #ifmatch '$ShortNames;' 1 'HtmlExt', 'htm' 'CSuffix','_c' 'ISuffix','_i' 'TSuffix','_t' 'FCSuffix','fc' 'FISuffix','fi' #endif #ifmatch "$TransPlatform;$AutoConvertGraphics;" "MacOS1" # Put Macintosh specific definitions here "GraphicWritten","$CvtGraphic()" .Functions Function CvtGraphic Set "$Picfilename;" Sub ".pict",".gif" Set "\ -- Converting $Picfilename; to $0;\r\ -- PicGoalHt=$PicGoalHt;\r\ -- PicGoalWid=$PicGoalWid;\r\ -- PicHt=$PicHt;\r\ -- PicWid=$PicWid;\r\ -- PicScaleX=$PicScaleX;\r\ -- PicScaleY=$PicScaleY;\r\ -- PictType=$PictType;\r\ -- PicCropt=$PicCropt;\r\ -- PicCropb=$PicCropb;\r\ -- PicCropr=$PicCropr;\r\ -- PicCropl=$PicCropl;\r\ -- PicEmbedded=$PicEmbedded;\r\ -- Picwidth=$Picwidth;\r\ -- Picheight=$Picheight;\r\ -- PicChecksum=$PicChecksum;\r\ tell application \"clip2gif\"\r\ save file \"$Picfilename;\" as GIF ¬\r\ in file \"$0;\"¬\r\ maximum size {$Picwidth;, $Picheight;}\r\ end tell\r\ " #DBPrint "$0;" Ifelse "$PictType;","^2$","$0;","display dialog \"Non-pict graphic found - not converted:$Picfilename;\"" Script "$0;" #endif .Functions Function AtPass2Start #ifmatch '$GenContents;' 1 Save 'WhichI','$_index_file_framed_;' Save Base "\n" Ifelse '$GenFrames;',1,'$GenTOC(TRUE)','' Save Base "" Save 'WhichI','$_index_file_;' Set '$GenTOC(FALSE)' #endif #ifmatch '$GenIndex;' 1 Save 'WhichC','$_contents_file_framed_;' Save Base "\n" Ifelse '$GenFrames;',1,'$GenIndex(TRUE)','' Save 'WhichC','$_contents_file_;' Save Base "" Set '$GenIndex(FALSE)' #endif # end of AtPass2Start Function ProcessField Save Tmp1 $0; Ifelse '$Tmp1;',"HYPERLINK",'$ProcessHYPERLINK(Tmp1)','' Ifelse '$Tmp1;',"REF",'$ProcessREF(Tmp1)','$0;' # end of ProcessField Function ProcessHYPERLINK # Get target within file Ifelse '$0;','.*\\l "([^"]*)".*$','$0;','' Sub '.*\\l "([^"]*)".*$','#\\1' Save Tmp1 $0; Sub '#',' - ' Save Tmp2 '$0;' # Get base of Url Set $1; Sub '^ *HYPERLINK *"([^"]*)".*','\\1$Tmp2;' Sub '^ *HYPERLINK *([^ ]*) ?$','\\1' Set 1$0; Function ProcessREF # Strip REF and any switches and output start of hypertext link Save InFieldRef,1 Set $1; Sub ' *REF +([^ ]+) .*','#\\1' Save Tmp1 $0; AnchorFile '$0;' Set '' Set "0$0;" Function EndResult # Get target within file Ifelse '$InFieldRef;','1','','' Save Tmp1 $0; Save InFieldRef,0 Set $Tmp1; Function AlignLookUp Ifelse '$1;','0','LEFT','$0;' #Ifelse '$1;','1','JUSTIFY','$0;' Ifelse '$1;','1','LEFT','$0;' # Netscape does really ugly Justify. Use left Ifelse '$1;','2','RIGHT','$0;' Ifelse '$1;','3','CENTER','$0;' # end of AlignLookup Function VAlignLookUp Ifelse '$1;','0','TOP','$0;' Ifelse '$1;','1','MIDDLE','$0;' Ifelse '$1;','2','BOTTOM','$0;' # end of VAlignLookup Function PNOverrideFunction # numbers or letters indicate a numbered list #ifmatch '$KeepPN;' '1' Set 'small gloss' #else Ifelse '$0;','^[A-Z0-9a-z]','numbered list','bullet list' #endif # If the nesting level of this paragraph is >0 reset to current paragraph style Ifelse '$NestLevel;','^0$','$0;','$MatchName;' # If the matched style is not 'Normal' (means no styles used, or registered) # reset to current paragraph style Ifelse '$MatchName;','^Normal$','$0;','$MatchName;' # end of PNOverrideFunction .Colors # These derived from MSWord on Macintosh # color,r,g,b #ifdef MSColors 'Black',0,0,0 'Blue',0,0,212 'Cyan',2,171,234 'Green',31,183,20 'Magenta',242,8,132 'Red',221,8,6 'Yellow',252,243,5 'White',255,255,255 'Dark Blue',0,0,128 'Dark Cyan',0,128,128 'Dark Green',0,100,17 'Dark Magenta',128,0,128 'Dark Red',128,0,0 'Dark Yellow',128,128,0 'Dark Gray',128,128,128 'Light Gray',192,192,192 #endif # Following are the Official HTML colors 'Black',0,0,0 'Green',0,128,0 'Silver',192,192,192 'Lime',0,255,0 'Gray',128,128,128 'Olive',128,128,0 'White',255,255,255 'Yellow',255,255,0 'Maroon',128,0,0 'Navy',0,0,128 'Red',255,0,0 'Blue',0,0,255 'Purple',128,0,128 'Teal',0,128,128 'Fuchsia',255,0,255 'Aqua',0,255,255 .Charsets # # Charset Table # # charset,font,filename # Where charset is # 0 - Ansi (used on Windows) # 1 - Mac (used on Macintosh) # 2 - pc (I think that this is DOS) # 3 - pca (I've never seen pca....) 0,'Symbol','ansi-sym' 1,'Symbol','mac-sym' 2,'Symbol','pc-sym' 3,'Symbol','pca-sym' 1,'','mac-gen' 2,'','pc-gen' 3,'','pca-gen' 0,'','ansi-gen' # default entry (Ansi character set) # # Markup Section # # # Markup unique to the first page # .Strings '_HEADING','$Title;' # initialize first heading to title # JE: modified again 'TitlePageHead','$infostr;$p1title;$Base;\n\ \n\ $GenPageBody;\n
    \n$GenLocalTOC()
    \n' 'TitlePageBody','' 'FramePageHead','$infostr;$_title_fpage_;\n\n\n\n' 'FramePageBody','$_body_start_;' 'FramePageEnd','$_end_frame_;' '_title_fpage_','<TITLE>$Title;</TITLE>\n' '_end_frame_','\n\n\n\ \n\n$GenPageEnd;' # # Markup unique to the Index file # 'IndexHead','$infostr;$Title; - $Index;$Base;\n\ \n' 'IndexBody','$_body_start_;$IdxNavPanelTop;$_heading_ipage_;' '_heading_ipage_','

    $Title; - $Index;

    ' # index page begins with a list of first letters with links to the appropriate entry '_ipanel_start_','


    ' '_ipanel_entry_','$_HOTTEXT_;\n' '_ipanel_entry_framed_','$_HOTTEXT_;\n' '_ipanel_sep_',' , ' '_ipanel_end_','

    \n
    \n' # next come the entries themselves '_index_letter_entry_','
    $_TEXT_;
    \n' # starts an set of entries for a letter # start of a sublist 'SIStart','
    $SIText;' 'SISep','
    ' 'SIEnd','
    ' 'SXRef','$SIText;. $SXRefText;' 'SIRStart','$SIText;' 'SIREnt',', $_HOTTEXT_;' 'SIREnd','' 'SIRSep','' 'IESep','
    \n' 'IndexEnd','\n$IdxNavPanelBot;\n\n' # #ifmatch $SkipNavPanel; 0 #ifmatch '$GenContents;' 1 'IdxNavPanel','
    \ $_title_file_;\ $WhichC;\
    ' #else 'IdxNavPanel','
    \ $_title_file_;\
    ' #endif 'IdxNavPanelTop','\ $IdxNavPanel;$HorizontalLine;\n\ ' 'IdxNavPanelBot','\ $HorizontalLine;\n$IdxNavPanel;\ ' #else 'IdxNavPanel','' #endif # # Markup unique to the Contents file # 'ContentsPageHead','$infostr;$Title; - $Contents;$Base;\n\ \n' 'ContentsPageBody','$_body_start_;$TOCNavPanelTop;\

    $Title; - $Contents;

    \n\

    $Title; - $Titlep;

    \n\ ' 'ContentsPageEnd','$TOCNavPanelBot;\n\n' #ifmatch $SkipNavPanel; 0 'TOCNavPanel','
    \ $_title_file_;\ $IsZero(NumIndexEntries,Empty,WhichI)\
    ' 'TOCNavPanelTop','
    \ $TOCNavPanel;$HorizontalLine;\n\
    ' 'TOCNavPanelBot','\ $HorizontalLine;\n$TOCNavPanel;\ ' #else 'TOCNavPanel','' #endif # Also used in table of contents at the start or end of general files '_head_list_start_','\n' # # Markup used in General files # 'GenPageHead','$infostr;$FileFirstHeading;$Base;\n\ \n' # JE: Modified J. Euzenat #ifmatch $SkipLeadingToc; 0 #'GenPageBody','$_body_start_;$GenNavPanelTop;\n\ #

    $FileFirstHeading;

    \n
    \n$GenLocalTOC()
    \n\ #' 'GenPageBody','$_body_start_;$GenNavPanelTop;' #else 'GenPageBody','$_body_start_;$GenNavPanelTop;' #endif #ifmatch $SkipTrailingToc; 0 'GenPageBodyEnd','\ $GenLocalTOC()\n\ $GenNavPanelBot;\n\ \n' #else 'GenPageBodyEnd','\ $GenNavPanelBot;\n\ \n' #endif 'GenPageEnd','\n\n' # # General Navigation Panel # #ifmatch $SkipNavPanel; 0 'GenNavPanel','
    \ $CExpand(ParentFile,_up_file_,Empty)\ $CExpand(PrevFile,_previous_file_,Empty)\ $CExpand(NextFile,_next_file_,Empty)\n\ $_title_file_;\ $IsZero(NumIndexEntries,Empty,_index_file_)\ $IsZero(GenContents,Empty,_contents_file_)\
    ' 'GenNavPanelTop','\ $GenNavPanel;$HorizontalLine;\n\ ' 'GenNavPanelBot','\ $HorizontalLine;\n$GenNavPanel;\ ' #else 'GenNavPanel','' 'GenNavPanelTop','' 'GenNavPanelBot','' #endif '_head_start_','\n\n' '_head_end_','\n\n' '_heading_cpage_','

    $Title; - $Contents;

    ' #ifmatch '$Background;', '.' '_background_',' BACKGROUND="$Background;"' #else #ifmatch '$BColor;','.' '_background_',' BGCOLOR="$BColor;"' #endif #endif #ifmatch '$TxtColor;','.' '_textcolor_',' TEXT="$TxtColor;"' #endif #ifmatch '$LColor;','.' '_linkcolor_',' LINK="$LColor;"' #endif #ifmatch '$VColor;','.' '_vlinkcolor_',' VLINK="$VColor;"' #endif #ifmatch '$AColor;','.' '_alinkcolor_',' ALINK="$AColor;"' #endif #ifmatch "$TextNav;",1 '_previous_file_','$Previous;\n' '_next_file_','$Next;\n' '_up_file_','$Up;\n' '_title_file_','$Titlep;\n' '_contents_file_','$Contents;\n' '_contents_file_framed_','$Contents;\n' #ifmatch $GenIndex; 1 '_index_file_','$Index;\n' '_index_file_framed_','$Index;\n' #endif #else 'btndir','granite/' '_previous_file_','$Previous; \n' '_next_file_','$Next; \n' '_up_file_','$Up; \n' '_title_file_','$Titlep; \n' '_contents_file_','$Contents; \n' '_contents_file_framed_','$Contents; \n' #ifmatch $GenIndex; 1 '_index_file_','$Index; \n' '_index_file_framed_','$Index; \n' #endif #endif # # Markup common to all files # #ifmatch '$TransPlatform;','MacOS' 'PathSep',':' #else #ifmatch '$TransPlatform;','Win32' 'PathSep',':' #else #ifmatch '$TransPlatform;','DOS/Win3.1' 'PathSep',':' #else 'PathSep','/' #endif #endif #endif #ifmatch '$progPath;','.' 'ImgDir','file:///$EncodeDirPath(progPath)/docs/images/' #else 'ImgDir','' #endif 'infostr','\n\ \n\ \n\ \ \n\ ' '_body_start_','\n\ ' # This line is inserted before Footnotes at the end of the page 'FNSep','
    ' '_footnote_ref_start_','[' '_footnote_ref_end_',']' #ifndef AllBorders AllBorders 0 #endif .Strings #ifmatch $truepar; 1 Ptype "P" Ebrk "" #else Ptype "DIV" Ebrk "
    " #endif # Table Processing .Functions Function ExitTable #ifmatch $truepar; 1 Save Ptype "P" #else Save Ptype "DIV" #endif # end of ExitTable Function TableBorders Save Ptype "DIV" #ifmatch '$AllBorders;' 1 Set 'BORDER' #else #ifmatch '$HTML;' '4' Ifelse '$_TableRules_;','0','none','' Ifelse '$_TableRules_;','1','groups','$0;' Ifelse '$_TableRules_;','2','cols','$0;' Ifelse '$_TableRules_;','3','all','$0;' Save _tRules_ 'rules="$0;"' Ifelse '$_TableFrame_;','0','void','' Ifelse '$_TableFrame_;','1','above','$0;' Ifelse '$_TableFrame_;','2','lhs','$0;' Ifelse '$_TableFrame_;','4','rhs','$0;' Ifelse '$_TableFrame_;','8','below','$0;' Ifelse '$_TableFrame_;','6','vsides','$0;' Ifelse '$_TableFrame_;','9','hsides','$0;' Ifelse '$0;','','box','$0;' Set '$_tRules_; border=$_TableBorderWeight_; frame="$0;"'' #else Ifelse '$_TableRules_;$_TableFrame_;','00','','BORDER' #endif #endif # end of TableBorders .Strings '_table_start_','
    \n' '_table_end_','
    \n$ExitTable()' '_row_start_','\n' '_row_end_','\n' '_empty_cell_tag_','
    ' '_header_cell_start_','\n' '_header_cell_end_','\n' '_data_cell_start_','\n' '_data_cell_end_','\n' #'_thead_start_','\n' #'_thead_end_','\n\n' #'_tfoot_start_','\n\n' #'_tfoot_end_','\n' '_ColGroupStart_','\n' '_ColGroupEnd_','\n' 'ColEntry',' \n' 'HorizontalLine','\n
    \n' '_hr_','
    ' '_xref_','$_HOTTEXT_;' '_Ext_xref_','$_HOTTEXT_;' '_anchor_entry_','$EmptyAnchorText;' 'EmptyAnchorText','' '_anchor_start_','' '_anchor_end_','' '_inline_image_ref_','' '_image_ref_','Click here for Picture ' "LinkedInlineIMG","" 'LinkedIMG','Click here for Picture ' '_xref_link_','' '_xref_hot_start_','' '_xref_hot_end_','' '_href_start_','$_HEADING_TEXT_;\n\n' # Text STyle Tags table # Format # 'name','Starttag','Endtag' .TTag # The following entries are required and must be in this order - do not modify '_Literal','','' '_Discard','','' '_Name','','' '_Link','','' '_HRef','','' '_Hot','','' '_FootNote','','' # regular .TTag entries follow - you may modify/add/delete below 'b','','' 'i','','' 'u','','' 'em','','' 'cite','','' 'tt','','' 'strong','','' 'code','','' 'samp','','' 'kbd','','' 'var','','' 'dfn','','' 'sup','','' 'sub','','' 'strike','','' 'font','','' # Text Match Table # Format: # 'Font',FontSize,MatchStyle,'color','CharStyle','TextStyleName' # '' is don't care for fonts # 0 is don't care for font size # Special names for TextStyleName # _Discard - text will not be output # _Name - text will be used for an named anchor # _Link - text will be used as a link to a heading, http: or mailto: # _HRef - text is an href # _Hot - end of this text marks the end of hot text # _Literal - text is sent thorough without any translation # The MatchStyle string contains any combination of these attributes # optionally preceded by 'Not'. # # Bold # Italic # StrikeThrough # Outline # Shadow # SmallCaps # AllCaps # Hidden # Underline # WordUnderline # DottedUnderline # DoubleUnderline # SuperScript # SubScript # # For example 'Bold Not StrikeThrough Italic' # will match on any Bold Italic text except when it is also StrikeThrough # .TMatch # # First do specials, because they are higher priority than other matches # #ifmatch $legacy; 1 '',0,'DoubleUnderline Not Hidden','','','_Hot' '',0,'DoubleUnderline Hidden','','','_HRef' '',0,'Hidden Shadow','','','_Literal' '',0,'Hidden StrikeThrough','','','_Literal' '',0,'Hidden Outline','','','_Name' '',0,'Hidden SuperScript','','','_Name' #ifmatch redlinks 1 '',0,'','Red','','_Link' #endif #endif ############# # Added by Jerome Euzenat # hidden/underline -> literal # v^bDWUHACSOTIB,v^bDWUHACSOTIB '',0,'Hidden Underline','','','_Literal' ############# '',0,'','','Hyperlink','_Link' '',0,'','','HTMLRef','_Link' '',0,'','','Hot','_Hot' '',0,'','','HRef','_HRef' '',0,'','','Literal','_Literal' '',0,'','','Anchor','_Name' '',0,'','','Discard','_Discard' '',0,'Hidden','','','_Discard' '',0,'SuperScript','','','sup' '',0,'SubScript','','','sub' # Regular matches - You can have multiple of these active # monospace fonts -> tt 'Courier',0,'','','','tt' 'Courier New',0,'','','','tt' 'Monaco',0,'','','','tt' '',0,'','','','font' '',0,'Bold','','','b' '',0,'Italic','','','i' '',0,'WordUnderline','','','u' '',0,'DoubleUnderline','','','u' '',0,'DottedUnderline','','','u' '',0,'Underline','','','u' '',0,'StrikeThrough','','','strike' '',0,'Outline','','','em' '',0,'Shadow','','','em' # Format: # 'Paragraph Style',NestLevel,'ParagraphStyleName' .PMatch # First Entry is the default if no style match. Should be level 0 # point to a Paragraph style with no markup 'Normal',0,'Normal' # Headings (used by Word instead of the Titre 2 below) 'heading 1',0,'h1' 'heading 2',0,'h2' 'heading 3',0,'h3' 'heading 4',0,'h4' 'heading 5',0,'h5' 'heading 6',0,'h6' 'ol',0,'ol' 'ol 1',1,'ol' 'ol 2',2,'ol' 'ol 3',3,'ol' 'ol 4',4,'ol' 'ol 5',5,'ol' 'ul',0,'ul' 'ul 1',1,'ul' 'ul 2',2,'ul' 'ul 3',3,'ul' 'ul 4',4,'ul' 'ul 5',5,'ul' 'numbered list',0,'ol-d' 'numbered list 1',1,'ol-d' 'numbered list 2',2,'ol-d' 'numbered list 3',3,'ol-d' 'numbered list 4',4,'ol-d' 'numbered list 5',5,'ol-d' 'bullet list',0,'ul-d' 'bullet list 1',1,'ul-d' 'bullet list 2',2,'ul-d' 'bullet list 3',3,'ul-d' 'bullet list 4',4,'ul-d' 'bullet list 5',5,'ul-d' 'dir',0,'dir' 'dir 1',1,'dir' 'dir 2',2,'dir' 'dir 3',3,'dir' 'dir 4',4,'dir' 'dir 5',5,'dir' 'small gloss',0,'newgloss' 'small gloss 1',1,'newgloss' 'small gloss 2',2,'newgloss' 'small gloss 3',3,'newgloss' 'small gloss 4',4,'newgloss' 'small gloss 5',5,'newgloss' 'glossary',0,'dl' 'glossary 1',1,'dl' 'glossary 2',2,'dl' 'glossary 3',3,'dl' 'glossary 4',4,'dl' 'glossary 5',5,'dl' 'menu',0,'menu' 'menu 1',1,'menu' 'menu 2',2,'menu' 'menu 3',3,'menu' 'menu 4',4,'menu' 'menu 5',5,'menu' 'pre',0,'pre' 'blockquote',0,'blockquote' 'address',0,'address' 'hr',0,'hr' # the following paragraph styles will be discarded 'toc 1',0,'_Discard' 'toc 2',0,'_Discard' 'toc 3',0,'_Discard' 'toc 4',0,'_Discard' 'toc 5',0,'_Discard' 'toc 6',0,'_Discard' 'TOC heading 1',0,'_Discard' 'TOC heading 2',0,'_Discard' 'title 1',0,'_Discard' 'table of figures',0,'_Discard' # JE: This suppresses the Index content 'index 1',0,'_Discard' #'index 1',0,'pre' 'index 2',0,'_Discard' 'index 3',0,'_Discard' 'index 4',0,'_Discard' 'index 5',0,'_Discard' 'index heading',0,'_Discard' 'TERM',0,'TERM' 'DEF',1,'DEF' 'TERM 1',1,'TERM' 'DEF 1',2,'DEF' 'TERM 2',2,'TERM' 'DEF 2',3,'DEF' 'HTML',0,'_Literal' 'footnote text',0,'Normal' 'banner1',0,'Normal' 'header',0,'Normal' 'banner2',0,'Normal' 'Title',0,'Normal' 'Normal Indent',0,'blockquote' 'Code',0,'pre' 'TableSpace',0,'Normal' 'TableRow',0,'Normal' 'TableSubHead',0,'h3' 'Normal Note',0,'Normal' # JE: styles for Troeps documentation 'Titre',0,'Title' # 'Titre 1',0,'_Discard' # RTF use heading instead #'Titre 2',0,'h2' #// # 'Titre 3',0,'h3' 'Titre 3 inv',0,'h3inv' 'formule',0,'Figure' 'trolex',0,'pre' 'listing',0,'pre' 'Normal-rep',0,'Normal' 'remarque',0,'Normal' 'enum1',0,'ul-d' 'figure',0,'Figure' 'crobard',0,'Figure' 'légende',0,'Legende' 'Légende',0,'Legende' 'Screendump',0,'Legende' 'Screenlink',0,'_Discard' 'référence',0,'Normal' 'lexique-head',0,'TERM' 'lexique',0,'DEF' 'API-form',0,'APIFORM' 'API-result',0,'APIRES' 'API-desc',0,'APIDESC' 'API-erreurs',0,'Normal' #endif # end of pass 1