📄 troff.sum
字号:
# *-*-perl-*-* eval 'exec perl -S $0 "$@"' if $running_under_some_shell; # Troff.sum - uses simple heuristics to determine which macros the # troff source file is using (if any), then runs the appropriate summarizer.## AUTHOR : David A. Nowitz## $Id: Troff.sum,v 2.1 1997/04/29 13:16:52 sxw Exp $################################################################################ Harvest Indexer http://www.tardis.ed.ac.uk/harvest/# ---------------------------------------------------## The Harvest Indexer is a continued development of code developed by# the Harvest Project. Development is carried out by numerous individuals# in the Internet community, and is not officially connected with the# original Harvest Project or its funding sources.# # Please mail harvest@tardis.ed.ac.uk if you are interested in participating# in the development effort.## 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., 675 Mass Ave, Cambridge, MA 02139, USA.# $file = $ARGV[0];if ( $file eq '' ) { print "Usage: Troff.sum filename\n"; exit(1);}if (! -r "$file") { print "Cannot read: $file\n"; exit(1);}open(IN, "$file");while( $l = <IN>) { if($l =~ /^\.AB/) { exec("Troff-ms.sum $file"); } if($l =~ /^\.TH/) { exec("Troff-man.sum $file"); } if($l =~ /^\.sh/) { exec("Troff-me.sum $file"); }}exec("Troff-generic.sum $file");
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -