# 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','\n','','\t','\t','
','','\t','\t','\n','\n',0,0,0,0,0,1 'hr','
',' |
\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','