File:  [Research Unix] / researchv10no / cmd / troff / Old / dev202 / makefont
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 'makefont archive fontname internal ...'; exit ;;
esac

arch=$1
shift

echo "# $*
name $1
internalname $2" >$1
awk '
BEGIN {
	OFS = "	"
	print "charset"
	print "\\|	6	0	0"
	print "\\^	3	0	0"
}
# read width file to get char number and width
$1 == "char" {
	w[$2] = $7
}

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

unix.superglobalmegacorp.com

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