home *** CD-ROM | disk | FTP | other *** search
Wrap
@rem = '--*-Perl-*-- @echo off if "%OS%" == "Windows_NT" goto WinNT perl -x -S "%0" %1 %2 %3 %4 %5 %6 %7 %8 %9 goto endofperl :WinNT perl -x -S "%0" %* if NOT "%COMSPEC%" == "%SystemRoot%\system32\cmd.exe" goto endofperl if %errorlevel% == 9009 echo You do not have Perl in your PATH. goto endofperl @rem '; #!perl #line 14 eval 'exec P:\Apps\ActivePerl\temp\bin\MSWin32-x86-object\perl.exe -S $0 ${1+"$@"}' if $running_under_some_shell; # # pod2latex, version 1.1 # by Taro Kawagish (kawagish@imslab.co.jp), Jan 11, 1995. # # pod2latex filters Perl pod documents to LaTeX documents. # # What pod2latex does: # 1. Pod file 'perl_doc_entry.pod' is filtered to 'perl_doc_entry.tex'. # 2. Indented paragraphs are translated into # '\begin{verbatim} ... \end{verbatim}'. # 3. '=head1 heading' command is translated into '\section{heading}' # 4. '=head2 heading' command is translated into '\subsection*{heading}' # 5. '=over N' command is translated into # '\begin{itemize}' if following =item starts with *, # '\begin{enumerate}' if following =item starts with 1., # '\begin{description}' if else. # (indentation level N is ignored.) # 6. '=item * heading' command is translated into '\item heading', # '=item 1. heading' command is translated into '\item heading', # '=item heading' command(other) is translated into '\item[heading]'. # 7. '=back' command is translated into # '\end{itemize}' if started with '\begin{itemize}', # '\end{enumerate}' if started with '\begin{enumerate}', # '\end{description}' if started with '\begin{description}'. # 8. other paragraphs are translated into strings with TeX special characters # escaped. # 9. In heading text, and other paragraphs, the following translation of pod # quotes are done, and then TeX special characters are escaped after that. # I<text> to {\em text\/}, # B<text> to {\bf text}, # S<text> to text1, # where text1 is a string with blank characters replaced with ~, # C<text> to {\tt text2}, # where text2 is a string with TeX special characters escaped to # obtain a literal printout, # E<text> (HTML escape) to TeX escaped string, # L<text> to referencing string as is done by pod2man, # F<file> to {\em file\/}, # Z<> to a null string, # 10. those headings are indexed: # '=head1 heading' => \section{heading}\index{heading} # '=head2 heading' => \subsection*{heading}\index{heading} # only when heading does not match frequent patterns such as # DESCRIPTION, DIAGNOSTICS,... # '=item heading' => \item{heading}\index{heading} # # Usage: # pod2latex perl_doc_entry.pod # this will write to a file 'perl_doc_entry.tex'. # # To LaTeX: # The following commands need to be defined in the preamble of the LaTeX # document: # \def\C++{{\rm C\kern-.05em\raise.3ex\hbox{\footnotesize ++}}} # \def\underscore{\leavevmode\kern.04em\vbox{\hrule width 0.4em height 0.3pt}} # and \parindent should be set zero: # \setlength{\parindent}{0pt} # # Note: # This script was written modifing pod2man. # # Bug: # If HTML escapes E<text> other than E<amp>,E<lt>,E<gt>,E<quot> are used # in C<>, translation will produce wrong character strings. # Translation of HTML escapes of various European accents might be wrong. $/ = ""; # record separator is blank lines # TeX special characters. ##$tt_ables = "!@*()-=+|;:'\"`,./?<>"; $backslash_escapables = "#\$%&{}_"; $backslash_escapables2 = "#\$%&{}"; # except _ ##$nonverbables = "^\\~"; ##$bracketesc = "[]"; ##@tex_verb_fences = unpack("aaaaaaaaa","|#@!*+?:;"); @head1_freq_patterns # =head1 patterns which need not be index'ed = ("AUTHOR","Author","BUGS","DATE","DESCRIPTION","DIAGNOSTICS", "ENVIRONMENT","EXAMPLES","FILES","INTRODUCTION","NAME","NOTE", "SEE ALSO","SYNOPSIS","WARNING"); $indent = 0; # parse the pods, produce LaTeX. open(POD,"<$ARGV[0]") || die "cant open $ARGV[0]"; ($pod=$ARGV[0]) =~ s/\.pod$//; open(LATEX,">$pod.tex"); &do_hdr(); $cutting = 1; $begun = ""; while (<POD>) { if ($cutting) { next unless /^=/; $cutting = 0; } if ($begun) { if (/^=end\s+$begun/) { $begun = ""; } elsif ($begun =~ /^(tex|latex)$/) { print LATEX $_; } next; } chop; length || (print LATEX "\n") && next; # translate indented lines as a verabatim paragraph if (/^\s/) { @lines = split(/\n/); print LATEX "\\begin{verbatim}\n"; for (@lines) { 1 while s {^( [^\t]* ) \t ( \t* ) } { $1 . ' ' x (8 - (length($1)%8) + 8*(length($2))) }ex; print LATEX $_,"\n"; } print LATEX "\\end{verbatim}\n"; next; } if (/^=for\s+(\S+)\s*/s) { if ($1 eq "tex" or $1 eq "latex") { print LATEX $',"\n"; } else { # ignore unknown for } next; } elsif (/^=begin\s+(\S+)\s*/s) { $begun = $1; if ($1 eq "tex" or $1 eq "latex") { print LATEX $'."\n"; } next; } # preserve '=item' line with pod quotes as they are. if (/^=item/) { ($bareitem = $_) =~ s/^=item\s*//; } # check for things that'll hosed our noremap scheme; affects $_ &init_noremap(); # expand strings "func()" as pod quotes. if (!/^=item/) { # first hide pod escapes. # escaped strings are mapped into the ones with the MSB's on. s/([A-Z]<[^<>]*>)/noremap($1)/ge; # func() is a reference to a perl function s{\b([:\w]+\(\))}{I<$1>}g; # func(n) is a reference to a man page s{(\w+)(\([^\s,\051]+\))}{I<$1>$2}g; # convert simple variable references # s/([\$\@%][\w:]+)/C<$1>/g; # s/\$[\w:]+\[[0-9]+\]/C<$&>/g; if (m{ ([\-\w]+\([^\051]*?[\@\$,][^\051]*?\)) }x && $` !~ /([LCI]<[^<>]*|-)$/ && !/^=\w/) { warn "``$1'' should be a [LCI]<$1> ref"; } while (/(-[a-zA-Z])\b/g && $` !~ /[\w\-]$/) { warn "``$1'' should be [CB]<$1> ref"; } # put back pod quotes so we get the inside of <> processed; $_ = &clear_noremap($_); } # process TeX special characters # First hide HTML quotes E<> since they can be included in C<>. s/(E<[^<>]+>)/noremap($1)/ge; # Then hide C<> type literal quotes. # String inside of C<> will later be expanded into {\tt ..} strings # with TeX special characters escaped as needed. s/(C<[^<>]*>)/&noremap($1)/ge; # Next escape TeX special characters including other pod quotes B< >,... # # NOTE: s/re/&func($str)/e evaluates $str just once in perl5. # (in perl4 evaluation takes place twice before getting passed to func().) # - hyphen => --- s/(\S+)(\s+)-+(\s+)(\S+)/"$1".&noremap(" --- ")."$4"/ge; # '-', '--', "-" => '{\tt -}', '{\tt --}', "{\tt -}" ## s/("|')(\s*)(-+)(\s*)\1/&noremap("$1$2\{\\tt $3\}$4$1")/ge; ## changed Wed Jan 25 15:26:39 JST 1995 # '-', '--', "-" => '$-$', '$--$', "$-$" s/(\s+)(['"])(-+)([^'"\-]*)\2(\s+|[,.])/"$1$2".&noremap("\$$3\$")."$4$2$5"/ge; s/(\s+)(['"])([^'"\-]*)(-+)(\s*)\2(\s+|[,.])/"$1$2$3".&noremap("\$$4\$")."$5$2$6"/ge; # (--|-) => ($--$|$-$) s/(\s+)\((-+)([=@%\$\+\\\|\w]*)(-*)([=@%\$\+\\\|\w]*)\)(\s+|[,.])/"$1\(".&noremap("\$$2\$")."$3".&noremap("\$$4\$")."$5\)$6"/ge; # numeral - => $-$ s/(\(|[0-9]+|\s+)-(\s*\(?\s*[0-9]+)/&noremap("$1\$-\$$2")/ge; # -- in quotes => two separate - s/B<([^<>]*)--([^<>]*)>/&noremap("B<$1\{\\tt --\}$2>")/ge; # backslash escapable characters except _. s/([$backslash_escapables2])/&noremap("\\$1")/ge; s/_/&noremap("\\underscore{}")/ge; # a litle thicker than \_. # quote TeX special characters |, ^, ~, \. s/\|/&noremap("\$|\$")/ge; s/\^/&noremap("\$\\hat{\\hspace{0.4em}}\$")/ge; s/\~/&noremap("\$\\tilde{\\hspace{0.4em}}\$")/ge; s/\\/&noremap("\$\\backslash{}\$")/ge; # quote [ and ] to be used in \item[] s/([\[\]])/&noremap("{\\tt $1}")/ge; # characters need to be treated differently in TeX # keep * if an item heading s/^(=item[ \t]+)[*]((.|\n)*)/"$1" . &noremap("*") . "$2"/ge; s/[*]/&noremap("\$\\ast\$")/ge; # other * # hide other pod quotes. s/([ABD-Z]<[^<>]*>)/&noremap($1)/ge; # escape < and > as math strings, # now that we are done with hiding pod <> quotes. s/</&noremap("\$<\$")/ge; s/>/&noremap("\$>\$")/ge; # put it back so we get the <> processed again; $_ = &clear_noremap($_); # Expand pod quotes recursively: # (1) type face directives [BIFS]<[^<>]*> to appropriate TeX commands, # (2) L<[^<>]*> to reference strings, # (3) C<[^<>]*> to TeX literal quotes, # (4) HTML quotes E<> inside of C<> quotes. # Hide E<> again since they can be included in C<>. s/(E<[^<>]+>)/noremap($1)/ge; $maxnest = 10; while ($maxnest-- && /[A-Z]</) { # bold and italic quotes s/B<([^<>]*)>/"{\\bf $1}"/eg; s#I<([^<>]*)>#"{\\em $1\\/}"#eg; # files and filelike refs in italics s#F<([^<>]*)>#"{\\em $1\\/}"#eg; # no break quote -- usually we want C<> for this s/S<([^<>]*)>/&nobreak($1)/eg; # LREF: a manpage(3f<([^eX since_ s#([^eX sincÄù] ºeg; [^ [^ º\$" $23f<([^eX:LREF: a manpage( ing pla( quotef<([^eX)(\([rn "``$e_ s^incÄ/\))}{I<($1>}g?ak# pu^ [^ 2s TeXr [^; #ef<([^eX}gxREF: a manpage( ing plaS<([ef<([^eX)(\([rn "``((?ce_/\))}{I<($1>}g?ak# p"``$(,+)/<(ike\(?\?a?a+)# pu^ & ..otnal_ltali }gexREF: a manpage( 2$( 1?a,ef<yed pla(ef<([^eX,ef<yed righML rin: a m [^" "ncludd([ambigr ju)(\([rn "``$e_ ?c s#([^eX .&n?a /a?"?(.*?a"?k# pu[rn "``$dowarn a mm hquo ,efun =>so w=>lus plaS<([e[^eX.rn "``$?`$" [^sBIFSplaplaI 2s [^; #ef<([^eX"rn "``$:`$" [^sBIFSplaplaI 2s"rn "``$} # pugexREF: as/Z<>map&/gtle t [^" hi't sngsw=>"aS<(/^(=: a m lel)/g weBIaitehqu wn bjBIFence s again;(/^(=\([rn "``$C>/&nobreak# pu[rn "``$dowarn evalu =~difma200-\377ma000-\177m; #n snglizeod <d aluffrn # into {tes E<and > sem heay;rn # WARNING:em hes E<and > se quote E<amp>,E<lt>,E<gt>,rn # E<usua> with s/, be inr be qu wed X cnrentge;[BIFly.rn valu &into {_es E_and > sevalua;rn valuvotb &antttevalua;n hide in votbes m and > aotea #.rn "$1\$-\$$2"aluvotb"a;rn "``$}# pugexREF: # m h( /C>/&nobrea/ bold# "``$valu ;ld# "``$m h(valu !~ map( bo a mm hin C<>., \ld# as/C>/&nobreak("\\underscorvotb|valu|" # LREF# "``$} altehold# X cnr STDERR^" oe{} aph s. ligsw g ph .\n"REF# and f{} ars need to qu wconr th. valu nceiteho wtriaEF# and- s/ote [^rvotbEF# a(vs nes alua =~d9]+|W)/; /gREF# anL qvs nes alua =~d9]+[e; >,ap"'\-^{}()*+?; ])/; /gREF# a@fngs, g s (!/[ vs nes]/,@ tx_votb_fngs,s);ld# as/C>/&nobreak("\\underscorvotb$fngs,[0] alu$fngs,[0]" # LREF# "``$}EF# }le ($m} # Expand po again; eas es re #xpand m h([ \=/( bo a a mm hae #xpas/\n/ /gREFa(vsmd, vr/[Aa =chauot(' $_ 2a;rn vr/[A =~d9] */(;rn vr/[A =~d9] *$/(;rnrn m h(defth. vr/[Aa [rn "``$&and > s;rn } # E vr/[A =oremap($_); r/[Aa;rn vr/[A = &into {_es E_and > sevr/[Aa;rnrn m h(vsmd eq cut'a [rn "``$vsutt> qu w;rn "``$$)/g smd = cut';rn } # altm h(vsmd eq 1'a [a m s/^e dire1rn "``$$r/[A =~d9] */(;$$r/[A =~d9] *$/(;rn "``$X cnr LATEX`$"\n\ ubsBIFSpl*{$r/[A}";rn "``$back so{}"x TeXr # p"``$($o{}"x = vr/[Aa =~d9] (An+)/<|T \(?\/(i * ; ovre'A'like 'T 'rn "``$bao{}"x plt Cthoteh s qu wngschs/^e [^f; quTeXw t.otn # H "``$ seas e$ t$(@ 1_f; q_ t.otn a [rn m h(vo{}"x =~ m^$ t/a [rn "``$gu o^f; q t.;rn }rn "``$}# p"``$X cnr LATEX`$"%\n\ o{}"x{vo{}"x}\n" m h(vo{}"xa;rn "`f; q t.:rn "``$$)/g smd = 1';rn } # altm h(vsmd eq 2'a [a m s/^e dire2rn "``$$r/[A =~d9] */(;$$r/[A =~d9] *$/(;rn "``$X cnr LATEX`$"\n\ ubsubsBIFSpl*{$r/[A}";rn "``$back so{}"x TeXr # p"``$($o{}"x = vr/[Aa =~d9] (An+)/<|T \(?\/(i * ; ovre'A'like 'T 'rn "``$vo{}"x =~ 9] Exampl \(*[1-9][0-9]*\(*: */(;$ ; ovre'Exampl :'rn "``$X cnr LATEX`$"%\n\ o{}"x{vo{}"x}\n" m h(vo{}"xa;rn "``$$)/g smd = 2';rn } # altm h(vsmd eq ovrr'a [a m1 l #ing pila(elist> quenvironmTeXrn "``$Xush(@o{}"eX,vo{}"nta;rn "``$$o{}"nt = vr/[A + 0;rn "``$$)/g smd = ovrr';rn } # altm h(vsmd eq e ge'a [a m1 l #iok sotea list> quenvironmTeXrn "``$$o{}"nt = pop(@o{}"eXa;rn "``$warla"Unngsch. =e ge\n" unlin; defth. vo{}"eX;rn "``$$)ist> qsmd = pop(@)ist> qsmda;rn "``$X cnr LATEX`$"\n\ "ed{$)ist> qsmd}\n" m h(v)ist> qsmda;rn "``$$)/g smd = e ge';rn } # altm h(vsmd eq ing 'a [a ma sg g ph g tsrn "``$m h(v)/g smd eq ovrr'a [a mm h<> havreju[A e..ot. list> quenvrn # se> fhate direotelistuenvironmTeXh<> with .rn m h(vr/[A =~d/^[0-9]\.?/a [a mm hn =>s, s/^rn "``$$)ist> qsmd = 'en =>s,.o';rn } altm h(vr/[A =~d/^\*\(*/a [a mm h* s/^rn "``$$)ist> qsmd = ' sg ize';rn } altm h(vr/[A =~d/^[^*][A =~d/^ =~d/ eq Ks s/^rn "``$$)ist> qsmdn CcripbsBI ize';rn }e t/a [rn "``$waunknownreotelhate his ma m h(v" t.;rn "``$X cnr LATEX`$"beg`$d pla⌠╕ìcnr LATEX`$"beg`$d pla⌠╕ìcnr LATEX`$"beg`$,mda;rn "``$$)/g smd vr/[A =~d/q ovrr'₧ m h(v" tk s$o{}"ìIllcn/^r'aS<(['xpas/\n/(elis lispn ere2rn[a mm :pla⌠╕ì$o{}"ìaS<([e$bn S<([$back so{/[A =ov)/g smd edn Ccripbs'a [o';rn } a" tk sd9] */(;$$/a [a+ mm ; ovre'A'like s/^rn "``$$)isTEX`$"beg`$d pla⌠╕S<([$backsTEX`$"beg`$d p{⌠╕ìf rn "``$g smrn "`$)/g smd vr/[A =~d/dn Ccripbs'a [;rn } a" tk sd9] */(;$$[a mm /^" hiA'like ^rn "``$$)isTEX`$"beg`$d pla⌠╕S<([$backsTEX`$"beg`$d p{⌠╕ìf rn "``$g smrn "`$)/g smd vr/[em hae ize';rn }e t.;$)isTEX`$"beg`$d pla⌠╕S<([[rn "`]$d pla⌠╕S<([Ela⌠╕S<([[rn "`]$d pla p tsrn "``$m Yvr/[A 4: sd9] */(;$$[a mm /^" hiA'like{╛φ hlu ½hlu ½hlu k sd9] ([r$"ck t.;; q_ ½hlu *$/(;r #eshor"eXr |r"à>┬ hr"ù ovre'A'like 'Tr/[em (\S*)}/x_votb_} a" tk lesh([r"à>┬ hr"ùli< 4'like ^rà>┬ *$/(ov"hlula p tsrna m h(v" rà>┬ *$/(ov"nola p tsrn "``$m wrà>┬] (An+)/<|T \(?\/(k sd9e ke "perl qag"d, vr/ithkip 'perl qag.e \n" LATEXno (An+a p tsrn "``$m # pup"nt =([r$"ck t/[Ae entgval⌠╕ì$ge(vsAel =(n+t)/<|T \(?\/( edn CcribsubsBI2a;rn g`$d pla⌠╕Snewlist> havrej edn CcribsubsBIFSpl*{ g`$d pla⌠╕S|T lisgrn ace havrej edn CcribsubsB[A-Z]$fngs,[0]" x_vot`$d pla⌠╕Ss, entgva \(?\/(i * ; ovredn Ccrilike 'T TEX`+"beg`$d pla⌠╕Sl;; q_ ½'*]*\(*: */(;$ ; ovr 'rn "``$vo{}"x =~ 99] Exampl \(*[1-9][0-9]*\(*: */(;$ ; ovrl :'rn "``$X cnr[.]IFSpl*{$"%\n\ o{}pla⌠╕S<(eXw *\(*: */(;$ ; ovrl \wIFSpl*{ g`$d pla⌠╕S1o wtr(eXw 's<> witentgv ", @[1-9]!$o{}" "votbbebEF#/ote make/(;$ or"eXr |*/(;$ ; ov"v""rn g`witentgv "r"eXr |*/(;$ ; ov@v"@rn g`witentgv @r"eXr |*/(;$ ; ov!v"!rn g`witentgv ! \(?\/(i e'A'2=re'A'like 'T TEX`+"beg$d pla⌠╕S<$/(;rn "``$X2 ; ov"v""rn g`witentgv "r"eXr |*``$X2 ; ov@v"@rn g`witentgv @r"eXr |*``$X2 ; ov!v"!rn g`witentgv ! \(?\/(k sd9e ke "(perlfunc|perlvar)"mdn Ccwhen doc½hluperlfunc,perlvar<> wittakeTeXw t.╕S1 "`wordt/[A"ck t.;; q_ (v" rà(;$ ; ovr [^{}\s[0]({.*})? [^{}\s[0]X`+.*/\1\2\3*{$r/ *``$X2 ; ovr [^{}\s[0]({.*})? [^{}\s[0]X`+.*/\1\2\3*{$r/ tsrn "``$m q t.;rn }rn "[A-Za-z\$@%] p"``$X cnr # wrà>┬] /g smd el _(n+t_/<|T @TeX_# pu_ _/<|T X`$"beg`$d pla⌠╕ìcn`$$)/g smd = \@*``$X2}% "``$$) tsrn "``$no (An+(vsmd eqg g ph g tsrn "`e \p"``$Xd eqgg$d pcogni m t.╕Se di pctive, a"``$ opg hs) g ph g tsrn "`e \p"``$ Xd eqgcnr # pcogni m t.╕Se di pctive, a"``$ opg hs) g pe"``$Xd eqvo{}"eX; pcognize di pctive: ts "``$$) tsrn " tsrTEX`$"beg` = 'en $ :pla⌠╕ì$$)&plaappl`$$)$_ ov&cl;;r_ $ plap _)`$$)$_ ov&exp⌠╕ì_HTML_plaappl _)`$$$$)#] ([r$([es?/a ovrr'a [asbegllowal⌠╕ /g smddpclvrr<([[,$$)#]~d9]p(@oS<(b[eakor"eu[A e..ot. list>[a mm &&/(;$$[a mm /^" hiA'like{ist>hlu && rà>┬ *$/(ist"nolp"``$Xd eqpla⌠╕S<([Ela⌠╕S\hfilS\S\``$$) tsr mm /^" hiA'like{╛φ nosg gpla⌠╕S<([Ela⌠╕S<",$_; tsrn ";rn pla⌠╕S<([Ela⌠╕S<"; close(POD); close(<([El)`$$$$$$#########################################################################$$$$sub do_hdr"``$ eqpla⌠╕S<([Ela"%S<aTeX docu.?/a plodu$bn bySe 2l ; x floe{\"9e .e \".S<"; eqpla⌠╕S<([Ela"%S0-9begllowrn Snebn bep(@)ist> =([r$([eamblvr/[A{}"s docu.?/a:S<"; eqpla⌠╕S<([Ela"%\\(@)\\C++{r/[re{C/[kern-.05em/[rai m.3 \\hboxr/[egotntgvaize ++}}}S<"; eqpla⌠╕S<([Ela"%\\(@)\\u(Anrsc$ pr/[l;;vevm e/[kern.04em/[vboxr/[hrulvrwrd}" 0.4k t.;m /^ 0.3pt}}S<"; eqpla⌠╕S<([Ela"%\\ mtlesh([r/[ovrsmda;r}{0pt}S<"; eqpla⌠╕S<([Ela"S<"; eq9e q ov&elaapp_(n+_sppcials("SU9e \E"); eqpla⌠╕S<([Ela"S\ mc<([[{9e q}% "``$$ eqpla⌠╕S<([Ela"S\g smd =e q}"; eqpla⌠╕S<([Ela"S<"; }$$$$sub nob[eak"``$ eqmyq9# pu_ ovshift; eq9# pu_ o ov +/~rn g# TeX `$ @oS<(b[eak eq9# pu_ ; }$$$$sub no plap"``$ eqlocal(${}"_ _to_hism) ovshift; eq9{}"_ _to_hism o p/\000-\177/\200-\377/; eq ptu{}"9{}"_ _to_hism; }$$$$sub "_it_ $ plap"``$X# elaapp high(bito wtrachiAs = ~d9]# peam`$Xov([\200-\377])/"E<".ord($1).">"rnm; }$$$$sub cl;;r_ $ plap"``$ eqlocal(${mp) ovshift; eq9{mp o p/\200-\377/\000-\177/; eq ptu{}"9{mp; }$$$$sub exp⌠╕ì_HTML_plaappl"``$ eqlocal($s) ov$_[0]; eq9# o o"` E<((\d+)|([A-Za-z]+))>rn " tsr``$Xdo"``$X (@)ist>($2) `$X ? do"`o wr($2) X`$"b: $$) tsrex o"$HTML_Elaappl{$3n "``$m ? do"`o$HTML_Elaappl{$3nrn "``$m : do"``$X vo{}"eX;known elaapp: & =$_$g smr"E<$1>``$$) tsrn "` tsrnegx; eq ptu{}"9s; }$$$$sub elaappl"``$ eq# make C++ otb\C++,cwhi w½hluotbbeb(@)ist> as`$ eq# \(@)\C++{r/re{C/kern-.05em/rai m.3 \hboxr/egotntgvaize ++}}}`$ eqsBIbC/+/+/\\C++{}/ ; }$$$$# Transl ; ]p(# pu_ otba TeX \tt(# pu_ otbobt =a verbr<(mqpla⌠╕Snt .$$# TeX sppcialo wtrachiAs dn elaappn byS\.$$# T}"s aanbbebEF#/otesism /[A<aTeX :pla⌠╕ì dngu.?/as.$$# Web(on'tbEF#A<aTeX \verb stecr$"cb(oeln'tbworkotesism /[A:pla⌠╕ì dngu.?/as.$$sub alltt(``$ eqlocal($s p) ovshift; X# o([rro wtrluowtnb#,\,$,%,&,{,},_,\,^,~ ([[1-9]]oteclusmd). eq9# p o ov [^${backsl sh_plaapablvs}\S\^\~]+)/& $ plap "$&")/eg; X# wtrlu#,\,$,%,&,{,}eq=>] /# , ... eq9# p o ov [$backsl sh_plaapablvs2])/& $ plap "S\$&")/eg; X# wtrlu_,\,^,~ q=>] / wtr`\_ , ... eq9# p o ov_/& $ plap "S\ wtr`\\_")/eg; eq9# p o ov\\/& $ plap "S\ wtr`\\S\`)rnm; eq9# p o ov\^/S\ wtr`\\^/g; eq9# p o ov\~/S\ wtr`\\~/g; eq9# p o p/\200-\377/\000-\177/; )#]~d9]back eq9# p o "r/[tt(".9# p."}";g` = make i9]p(\tt(# pu_ eq ptu{}"9s p; }$$$$sub elaapp_(n+_sppcials(``$ eqlocal($s p) ovshift; X# o([rro wtrluowtnb#,\,$,%,&,{,}, u_,\,^,~ ([[1-9]]oteclusmd). eq# backsl sh plaapablvo wtrachiAs #,\,$,%,&,{,}en+cept(_. eq9# p o ov [$backsl sh_plaapablvs2])/& $ plap "S\$1`)rnm; eq9# p o ov_/& $ plap "S\u(Anrsc$ pr}`)rnm;X# \_ hluotoA{}"n. eq# entgv TeX sppcialo wtrachiAs |, ^, ~,S\.$$ eq9# p o ov\|/& $ plap "S$|S$`)rnm; eq9# p o ov\^/& $ plap "S$/[hatr/[hspacpr0.4k }}S$`)rnm; eq9# p o ov\~/& $ plap "S$/[tilder/[hspacpr0.4k }}S$`)rnm; eq9# p o ov\\/& $ plap "S$/[backsl sh{}S$`)rnm; eq#o wtrachiAs nebn otbbeb peate diffiA?/aly =TeX eq#o* eq9# p o ov[*]/& $ plap "S$/[.otS$`)rnm; eq#oelaapp <[1-9]> a"`la}" # pu_ , eq9# p o ov</& $ plap "S$<S$`)rnm; eq9# p o ov>/& $ plap "S$>S$`)rnm; eq9# p o p/\200-\377/\000-\177/; )#]~d9]back eq ptu{}"9s p; }$$$$sub a⌠╕ernal_l pfs(``$ eqlocal($_) ovshift; `$ eqs{L<v [^>]+)>}{$1}g; eqmy(@à>┬ ) ovsplà>( v ?:,?\s+ ?:1-9\s+)?)r ); eqmyq9 pt# p o "([r$"; eqmyq9i; eqfop ($i o 0;q9i <ov$#à>┬ ;q9i++p"``$X9 pt# p .o "C<rà>┬ [rà]>``$$)9 pt# p .o ", "] @à>┬ ]> 2 && rà !ov$#à>┬ ;$$)9 pt# p .o "[1-9]"] 9i+2 == @à>┬ ; tsrn " tsr mpt# p .o "[?/ar"[. ( @à>┬ ]> 1m ? "ies"[: "y"[)$$) tsr. "[?lsew[rre =(["s docu.?/a"; `$ eq ptu{}"9mpt# p; }$$$$# lap"/[AHTML elaappl"otbTeX elaappl.$$BEGIN"``$%HTML_Elaappl o (`$ eq'amp' => '&',)#]eqampiAs1-9`$ eq'lt' => '<',)#]eqlefto wevron,qless-owtn`$ eq'gt' => '>',)#]eqmm /^o wevron,qgpeater-owtn`$ eq'entg' => '"',)#]eqdoublvoentgv `$ eq"Aacugv" => "S\'{A}",)#]eqaapitaloA,qacugvqacc?/a`$ eq"aacugv" => "S\'{a}",)#]eqsmallqa,qacugvqacc?/a`$ eq"Acirc" => "S\^{A}",)#]eqaapitaloA,qcircumfl x acc?/a`$ eq"acirc" => "S\^{a}",)#]eqsmallqa,qcircumfl x acc?/a`$ eq"AElig" => 'S\AE',))#]eqaapitaloAE diphtho_ (ligatu{e)`$ eq"aelig" => 'S\ae',))#]eqsmallqae diphtho_ (ligatu{e)`$ eq"Agr;ve" => "S\`{A}",)#]eqaapitaloA,qgr;ve acc?/a`$ eq"agr;ve" => "S\`{a}",)#]eqsmallqa,qgr;ve acc?/a`$ eq"Apu_ " => 'S\u{A}',)#]eqaapitaloA,qpu_ eq"apu_ " => 'S\u{a}',)#]eqsmallqa,qpu_ eq"Atilde" => 'S\~{A}',)#]eqaapitaloA,qtilde eq"atilde" => 'S\~{a}',)#]eqsmallqa,qtilde eq"Auml" => 'S\"{A}',)#]eqaapitaloA,qdirres"s op umlad9]mark eq"auml" => 'S\"{a}',)#]eqsmallqa,qdirres"s op umlad9]mark eq"Ccedil" => 'S\c{C}',)#]eqaapitaloC,qcedilla eq"ccedil" => 'S\c{c}',)#]eqsmallqc,qcedilla eq"Eacugv" => "S\'{E}",)#]eqaapitaloE,qacugvqacc?/a`$ eq"eacugv" => "S\'{e}",)#]eqsmallqe,qacugvqacc?/a`$ eq"Ecirc" => "S\^{E}",)#]eqaapitaloE,qcircumfl x acc?/a`$ eq"ecirc" => "S\^{e}",)#]eqsmallqe,qcircumfl x acc?/a`$ eq"Egr;ve" => "S\`{E}",)#]eqaapitaloE,qgr;ve acc?/a`$ eq"egr;ve" => "S\`{e}",)#]eqsmallqe,qgr;ve acc?/a`$ eq"ETH" => 'S\OE',))#]eqaapitaloEth,qIc?l1-9ic`$ eq"eth" => 'S\oe',))#]eqsmallqeth,qIc?l1-9ic`$ eq"Euml" => 'S\"{E}',)#]eqaapitaloE,qdirres"s op umlad9]mark eq"euml" => 'S\"{e}',)#]eqsmallqe,qdirres"s op umlad9]mark eq"Iacugv" => "S\'{I}",)#]eqaapitaloI,qacugvqacc?/a`$ eq"iacugv" => "S\'{i}",)#]eqsmallqi,qacugvqacc?/a`$ eq"Icirc" => "S\^{I}",)#]eqaapitaloI,qcircumfl x acc?/a`$ eq"icirc" => "S\^{i}",)#]eqsmallqi,qcircumfl x acc?/a`$ eq"Igr;ve" => "S\`{I}",)#]eqaapitaloI,qgr;ve acc?/a`$ eq"igr;ve" => "S\`{i}",)#]eqsmallqi,qgr;ve acc?/a`$ eq"Iuml" => 'S\"{I}',)#]eqaapitaloI,qdirres"s op umlad9]mark eq"iuml" => 'S\"{i}',)#]eqsmallqi,qdirres"s op umlad9]mark eq"Ntilde" => 'S\~{N}',)#]eqaapitaloN,qtilde eq"ntilde" => 'S\~{n}',)#]eqsmallqn,qtilde eq"Oacugv" => "S\'{O}",)#]eqaapitaloO,qacugvqacc?/a`$ eq"oacugv" => "S\'{o}",)#]eqsmallqo,qacugvqacc?/a`$ eq"Ocirc" => "S\^{O}",)#]eqaapitaloO,qcircumfl x acc?/a`$ eq"ocirc" => "S\^{o}",)#]eqsmallqo,qcircumfl x acc?/a`$ eq"Ogr;ve" => "S\`{O}",)#]eqaapitaloO,qgr;ve acc?/a`$ eq"ogr;ve" => "S\`{o}",)#]eqsmallqo,qgr;ve acc?/a`$ eq"Osl sh" => "S\O",))#]eqaapitaloO,qsl sh`$ eq"osl sh" => "S\o",))#]eqsmallqo,qsl sh`$ eq"Otilde" => "S\~{O}",)#]eqaapitaloO,qtilde eq"otilde" => "S\~{o}",)#]eqsmallqo,qtilde eq"Ouml" => 'S\"{O}',)#]eqaapitaloO,qdirres"s op umlad9]mark eq"ouml" => 'S\"{o}',)#]eqsmallqo,qdirres"s op umlad9]mark eq"szlig" => 'S\ss{}',)#]eqsmallqswtrpqs,qGrrman (sz ligatu{e)`$ eq"THORN" => 'S\L',))#]eqaapitaloTHORN,qIc?l1-9ic`$ eq"thorn" => 'S\l',,))#]eqsmallqthorn,qIc?l1-9ic`$ eq"Uacugv" => "S\'{U}",)#]eqaapitaloU,qacugvqacc?/a`$ eq"uacugv" => "S\'{u}",)#]eqsmallqu,qacugvqacc?/a`$ eq"Ucirc" => "S\^{U}",)#]eqaapitaloU,qcircumfl x acc?/a`$ eq"ucirc" => "S\^{u}",)#]eqsmallqu,qcircumfl x acc?/a`$ eq"Ugr;ve" => "S\`{U}",)#]eqaapitaloU,qgr;ve acc?/a`$ eq"ugr;ve" => "S\`{u}",)#]eqsmallqu,qgr;ve acc?/a`$ eq"Uuml" => 'S\"{U}',)#]eqaapitaloU,qdirres"s op umlad9]mark eq"uuml" => 'S\"{u}',)#]eqsmallqu,qdirres"s op umlad9]mark eq"Yacugv" => "S\'{Y}",)#]eqaapitaloY,qacugvqacc?/a`$ eq"yacugv" => "S\'{y}",)#]eqsmallqy,qacugvqacc?/a`$ eq"yuml" => 'S\"{y}',)#]eqsmallqy,qdirres"s op umlad9]mark ); }$$__END__$$:?/dofpiAl$$