⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 texi2html

📁 这个是LINUX下的GDB调度工具的源码
💻
📖 第 1 页 / 共 5 页
字号:
#! /usr/bin/perl'di ';'ig 00 ';#+################################################################################ texi2html: Program to transform Texinfo documents to HTML##    Copyright (C) 1999, 2000  Free Software Foundation, Inc.##    This program is free software; you can redistribute it and/or modify#    it under the terms of the GNU General Public License as published by#    the Free Software Foundation; either version 2 of the License, or#    (at your option) any later version.##    This program is distributed in the hope that it will be useful,#    but WITHOUT ANY WARRANTY; without even the implied warranty of#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the#    GNU General Public License for more details.##    You should have received a copy of the GNU General Public License#    along with this program; if not, write to the Free Software#    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA# #-############################################################################### This requires perl version 5 or higherrequire 5.0;#++################################################################################ NOTE FOR DEBUGGING THIS SCRIPT:# You can run 'perl texi2html.pl' directly, provided you have# the environment variable T2H_HOME set to the directory containing# the texi2html.init file##--############################################################################### CVS version:# $Id: texi2html.pl,v 1.55 2000/07/27 14:39:41 obachman Exp $# Homepage:$T2H_HOMEPAGE = <<EOT;http://www.mathematik.uni-kl.de/~obachman/Texi2htmlEOT# Authors:  $T2H_AUTHORS = <<EOT;Written by: Lionel Cons <Lionel.Cons\@cern.ch> (original author)            Karl Berry  <karl\@freefriends.org>            Olaf Bachmann <obachman\@mathematik.uni-kl.de>            and many others.Maintained by: Olaf Bachmann <obachman\@mathematik.uni-kl.de>Send bugs and suggestions to <texi2html\@mathematik.uni-kl.de>EOT# Version: set in configure.in$THISVERSION = '1.64';$THISPROG = "texi2html $THISVERSION";	# program name and version  # The man page for this program is included at the end of this file and can be# viewed using the command 'nroff -man texi2html'.# Identity:$T2H_TODAY = &pretty_date;		# like "20 September 1993"# the eval prevents this from breaking on system which do not have# a proper getpwuid implementedeval { ($T2H_USER = (getpwuid ($<))[6]) =~ s/,.*//;}; # Who am i#+++#############################################################################                                                                              ## Initialization                                                               ## Pasted content of File $(srcdir)/texi2html.init: Default initializations     # #                                                                              ##---############################################################################# leave this within comments, and keep the require statement# This way, you can directly run texi2html.pl, if $ENV{T2H_HOME}/texi2html.init# exists.# # -*-perl-*-####################################################################### File: texi2html.init## Sets default values for command-line arguments and for various customizable# procedures## A copy of this file is pasted into the beginning of texi2html by# 'make texi2html'## Copy this file and make changes to it, if you like.# Afterwards, either, load it with command-line option -init_file <your_init_file>## $Id: texi2html.init,v 1.34 2000/07/27 14:09:02 obachman Exp $####################################################################### stuff which can also be set by command-line options### Note: values set here, overwrite values set by the command-line# options before -init_file and might still be overwritten by# command-line arguments following the -init_file option## T2H_OPTIONS is a hash whose keys are the (long) names of valid# command-line options and whose values are a hash with the following keys:# type    ==> one of !|=i|:i|=s|:s (see GetOpt::Long for more info)# linkage ==> ref to scalar, array, or subroutine (see GetOpt::Long for more info)# verbose ==> short description of option (displayed by -h)# noHelp  ==> if 1 -> for "not so important options": only print description on -h 1#                2 -> for obsolete options: only print description on -h 2$T2H_DEBUG = 0;$T2H_OPTIONS -> {debug} ={ type => '=i', linkage => \$main::T2H_DEBUG, verbose => 'output HTML with debuging information',};$T2H_DOCTYPE = '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">'; $T2H_OPTIONS -> {doctype} = { type => '=s', linkage => \$main::T2H_DOCTYPE, verbose => 'document type which is output in header of HTML files', noHelp => 1};$T2H_CHECK = 0;$T2H_OPTIONS -> {check} ={ type => '!', linkage => \$main::T2H_CHECK, verbose => 'if set, only check files and output all things that may be Texinfo commands', noHelp => 1};# -expand# if set to "tex" (or, "info") expand @iftex and @tex (or, @ifinfo) sections# else, neither expand @iftex, @tex, nor @ifinfo sections$T2H_EXPAND = "info";$T2H_OPTIONS -> {expand} = { type => '=s', linkage => \$T2H_EXPAND, verbose => 'Expand info|tex|none section of texinfo source',};# - glossary#if set, uses section named `Footnotes' for glossary$T2H_USE_GLOSSARY = 0;T2H_OPTIONS -> {glossary} ={ type => '!', linkage => \$T2H_USE_GLOSSARY, verbose => "if set, uses section named `Footnotes' for glossary", noHelp  => 1,};# -invisible# $T2H_INVISIBLE_MARK is the text used to create invisible destination# anchors for index links (you can for instance use the invisible.xbm# file shipped with this program). This is a workaround for a known# bug of many WWW browsers, including netscape.# For me, it works fine without it -- on the contrary: if there, it# inserts space between headers and start of text (obachman 3/99)$T2H_INVISIBLE_MARK = '';# $T2H_INVISIBLE_MARK = '&#160;';$T2H_OPTIONS -> {invisible} ={ type => '=s', linkage => \$T2H_INVISIBLE_MARK, verbose => 'use text in invisble anchot', noHelp  => 1,};# -iso# if set, ISO8879 characters are used for special symbols (like copyright, etc)$T2H_USE_ISO = 0;$T2H_OPTIONS -> {iso} ={ type => 'iso', linkage => \$T2H_USE_ISO, verbose => 'if set, ISO8879 characters are used for special symbols (like copyright, etc)', noHelp => 1,};# -I# list directories where @include files are searched for (besides the# directory of the doc file) additional '-I' args add to this list@T2H_INCLUDE_DIRS = (".");$T2H_OPTIONS -> {I} ={ type => '=s', linkage => \@T2H_INCLUDE_DIRS, verbose => 'append $s to the @include search path',};# -top_file# uses file of this name for top-level file# extension is manipulated appropriately, if necessary.# If empty, <basename of document>.html is used# Typically, you would set this to "index.html".$T2H_TOP_FILE = '';$T2H_OPTIONS -> {top_file} ={ type => '=s', linkage => \$T2H_TOP_FILE, verbose => 'use $s as top file, instead of <docname>.html',};# -toc_file# uses file of this name for table of contents file# extension is manipulated appropriately, if necessary.# If empty, <basename of document>_toc.html is used$T2H_TOC_FILE = '';$T2H_OPTIONS -> {toc_file} ={ type => '=s', linkage => \$T2H_TOC_FILE, verbose => 'use $s as ToC file, instead of <docname>_toc.html',};# -frames# if set, output two additional files which use HTML 4.0 "frames".$T2H_FRAMES = 0;$T2H_OPTIONS -> {frames} ={ type => '!', linkage => \$T2H_FRAMES, verbose => 'output files which use HTML 4.0 frames (experimental)', noHelp => 1,};# -menu | -nomenu# if set, show the Texinfo menus$T2H_SHOW_MENU = 1;$T2H_OPTIONS -> {menu} ={ type => '!', linkage => \$T2H_SHOW_MENU, verbose => 'ouput Texinfo menus',};# -number | -nonumber# if set, number sections and show section names and numbers in references # and menus$T2H_NUMBER_SECTIONS = 1;$T2H_OPTIONS -> {number} ={ type => '!', linkage => \$T2H_NUMBER_SECTIONS, verbose => 'use numbered sections'};# if set, and T2H_NUMBER_SECTIONS is set, then use node names in menu# entries, instead of section names$T2H_NODE_NAME_IN_MENU = 0;# if set and menu entry equals menu descr, then do not print menu descr.# Likewise, if node name equals entry name, do not print entry name.$T2H_AVOID_MENU_REDUNDANCY = 1;# -split section|chapter|none # if set to 'section' (resp. 'chapter') create one html file per (sub)section# (resp. chapter) and separate pages for Top, ToC, Overview, Index,# Glossary, About.# otherwise, create monolithic html file which contains whole document#$T2H_SPLIT = 'section';$T2H_SPLIT = '';$T2H_OPTIONS -> {split} ={ type => '=s', linkage => \$T2H_SPLIT, verbose => 'split document on section|chapter else no splitting',};# -section_navigation|-no-section_navigation# if set, then navigation panels are printed at the beginning of each section# and, possibly at the end (depending on whether or not there were more than # $T2H_WORDS_IN_PAGE  words on page# This is most useful if you do not want to have section navigation # on -split chapter$T2H_SECTION_NAVIGATION = 1;$T2H_OPTIONS -> {sec_nav} ={ type => '!', linkage => \$T2H_SECTION_NAVIGATION, verbose => 'output navigation panels for each section',};# -subdir# if set put result files in this directory# if not set result files are put into current directory#$T2H_SUBDIR = 'html';$T2H_SUBDIR = '';$T2H_OPTIONS -> {subdir} ={ type => '=s', linkage => \$T2H_SUBDIR, verbose => 'put HTML files in directory $s, instead of $cwd',};# -short_extn# If this is set all HTML file will have extension ".htm" instead of# ".html". This is helpful when shipping the document to PC systems.$T2H_SHORTEXTN = 0;$T2H_OPTIONS -> {short_ext} ={ type => '!', linkage => \$T2H_SHORTEXTN, verbose => 'use "htm" extension for output HTML files',};# -prefix# Set the output file prefix, prepended to all .html, .gif and .pl files.# By default, this is the basename of the document$T2H_PREFIX = '';$T2H_OPTIONS -> {prefix} ={ type => '=s', linkage => \$T2H_PREFIX, verbose => 'use as prefix for output files, instead of <docname>',};# -o filename# If set, generate monolithic document output html into $filename$T2H_OUT = '';$T2H_OPTIONS -> {out_file} ={ type => '=s', linkage => sub {$main::T2H_OUT = @_[1]; $T2H_SPLIT = '';}, verbose => 'if set, all HTML output goes into file $s',};# -short_ref#if set cross-references are given without section numbers$T2H_SHORT_REF = '';$T2H_OPTIONS -> {short_ref} ={ type => '!', linkage => \$T2H_SHORT_REF, verbose => 'if set, references are without section numbers',};# -idx_sum# if value is set, then for each @prinindex $what# $docu_name_$what.idx is created which contains lines of the form# $key\t$ref sorted alphabetically (case matters)$T2H_IDX_SUMMARY = 0;$T2H_OPTIONS -> {idx_sum} ={ type => '!', linkage => \$T2H_IDX_SUMMARY, verbose => 'if set, also output index summary', noHelp  => 1,};# -verbose# if set, chatter about what we are doing$T2H_VERBOSE = '';$T2H_OPTIONS -> {Verbose} ={ type => '!', linkage => \$T2H_VERBOSE, verbose => 'print progress info to stdout',};# -lang# For page titles use $T2H_WORDS->{$T2H_LANG}->{...} as title.# To add a new language, supply list of titles (see $T2H_WORDS below).# and use ISO 639 language codes (see e.g. perl module Locale-Codes-1.02 # for  definitions)# Default's to 'en' if not set or no @documentlanguage is specified$T2H_LANG = '';$T2H_OPTIONS -> {lang} ={ type => '=s', linkage => sub {SetDocumentLanguage($_[1])}, verbose => 'use $s as document language (ISO 639 encoding)',};# -l2h# if set, uses latex2html for generation of math content $T2H_L2H = '';$T2H_OPTIONS -> {l2h} ={ type => '!', linkage => \$T2H_L2H, verbose => 'if set, uses latex2html for @math and @tex',};####################### The following options are only relevant if $T2H_L2H is set## -l2h_l2h# name/location of latex2html progam$T2H_L2H_L2H = "latex2html";$T2H_OPTIONS -> {l2h_l2h} ={ type => '=s', linkage => \$T2H_L2H_L2H, verbose => 'program to use for latex2html translation', noHelp => 1,};# -l2h_skip# if set, skips actual call to latex2html tries to reuse previously generated # content, instead$T2H_L2H_SKIP = '';$T2H_OPTIONS -> {l2h_skip} ={ type => '!', linkage => \$T2H_L2H_SKIP, verbose => 'if set, tries to reuse previously latex2html output', noHelp => 1,};# -l2h_tmp# if set, l2h uses this directory for temporarary files. The path# leading to this directory may not contain a dot (i.e., a "."),# otherwise, l2h will fail$T2H_L2H_TMP = '';$T2H_OPTIONS -> {l2h_tmp} ={ type => '=s', linkage => \$T2H_L2H_TMP, verbose => 'if set, uses $s as temporary latex2html directory', noHelp => 1,};# if set, cleans intermediate files (they all have the prefix $doc_l2h_) # of l2h $T2H_L2H_CLEAN = 1;$T2H_OPTIONS -> {l2h_clean} ={ type => '!', linkage => \$T2H_L2H_CLEAN, verbose => 'if set, do not keep intermediate latex2html files for later reuse', noHelp => 1,};$T2H_OPTIONS -> {D} ={ type => '=s', linkage => sub {$main::value{@_[1]} = 1;}, verbose => 'equivalent to Texinfo "@set $s 1"', noHelp => 1,};$T2H_OPTIONS -> {init_file} ={ type => '=s', linkage => \&LoadInitFile, verbose => 'load init file $s'};################################################################################ The following can only be set in the init file################################################################################ if set, center @image by default# otherwise, do not center by default$T2H_CENTER_IMAGE = 1;# used as identation for block enclosing command @example, etc# If not empty, must be enclosed in <td></td>$T2H_EXAMPLE_INDENT_CELL = '<td>&nbsp;</td>';# same as above, only for @small$T2H_SMALL_EXAMPLE_INDENT_CELL = '<td>&nbsp;</td>';# font size for @small$T2H_SMALL_FONT_SIZE = '-1';# if non-empty, and no @..heading appeared in Top node, then# use this as header for top node/section, otherwise use value of 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -