File:  [Research Unix] / researchv10no / cmd / troff / dev202 / nmakefont
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:35 2018 UTC (8 years, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Norman

case $# in
0)	echo 'nmakefont widthfile Name internal# ...'; exit ;;
esac

arch=$1
shift

echo "# $*
name $1
internalname $2" >$1
awk '
BEGIN {
	OFS = "	"
	print "charset"
}
# read width file to get char number and width
FILENAME != "proto" && $1 ~ /^C[0-9][0-9][0-9]/ {
	if ($2 > 100)
		$2 = substr($2,1,2)
	w[0+substr($1,2)] = $2
}

# read proto file to get char name, number
FILENAME == "proto" && $2 ~ /^[0123]$/ && NF == 3 {
	print $1, w[$3], $2, $3
	if ($1 == "hy")
		print "-	\"	=hy"
} ' $arch proto >>$1

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.