| 1 | #!/bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | # |
| 3 | # hfoldsty v1.15: A package for using oldstyle numerals with the ec fonts with |
| 4 | # better kerning for quillemets |
| 5 | # |
| 6 | # For use with ec fonts (European Computer Modern fonts by J"org Knappen |
| 7 | # <[email protected]>, CTAN:/fonts/ec) |
| 8 | # |
| 9 | # Much code is taken from the eco fonts by |
| 10 | # Sebastian Marius Kirsch <[email protected]> |
| 11 | # |
| 12 | #Copyright (C) 2003--2005, 2012 Harald Harders <[email protected]> |
| 13 | # |
| 14 | #This program is free software; you can redistribute it and/or modify |
| 15 | #it under the terms of the GNU General Public License as published by |
| 16 | #the Free Software Foundation; either version 2 of the License, or |
| 17 | #(at your option) any later version. |
| 18 | # |
| 19 | #This program is distributed in the hope that it will be useful, |
| 20 | #but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 21 | #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 22 | #GNU General Public License for more details. |
| 23 | # |
| 24 | #You should have received a copy of the GNU General Public License |
| 25 | #along with this program; if not, write to the Free Software |
| 26 | #Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| 27 | # |
| 28 | #This Bourne shell script requires the following programs: |
| 29 | # - tftopl, vptovf |
| 30 | # - ed, sed |
| 31 | # - TeX, fontinst >= 1.926 |
| 32 | # - a shell which supports here-documents (i.e. bash) |
| 33 | # - a TeX with kpathsea (i.e. teTeX) |
| 34 | # |
| 35 | # See ChangeLog for package history. |
| 36 | |
| 37 | VERSION=1.15 |
| 38 | DATE=2012/01/01 |
| 39 | |
| 40 | size="0500 0600 0700 0800 0900 1000 1095 1200 1440 1728 2074 2488 2986 3583" |
| 41 | # Change v0.2: Use lining figures with small capitals. |
| 42 | # Change v0.4: Use old-style figures with small capitals again. |
| 43 | family="rm ti ui sl rb bx bl bi ss si sx so tt st it vt vi dh cc xc sc oc tc" |
| 44 | #family="rm ti ui sl rb bx bl bi ss si sx so tt st it vt vi dh" |
| 45 | |
| 46 | kpsewhich=kpsewhich |
| 47 | |
| 48 | logfile=./hfofonts.log |
| 49 | |
| 50 | # Change v0.2: Use lining figures with small capitals. |
| 51 | # Change v0.4: Use old-style figures with small capitals again. |
| 52 | rofamily="rm ti ui sl rb bx bl bi cc xc sc oc" |
| 53 | #rofamily="rm ti ui sl rb bx bl bi" |
| 54 | #rfamily="m/sc bx/sc" |
| 55 | |
| 56 | # Change v0.2: Use lining figures with small capitals. |
| 57 | # Change v0.4: Use old-style figures with small capitals again. |
| 58 | ttofamily="tt st it tc" |
| 59 | #ttofamily="tt st it" |
| 60 | #ttfamily="m/sc" |
| 61 | |
| 62 | ssofamily="ss si sx so" |
| 63 | |
| 64 | vtofamily="vt vi" |
| 65 | |
| 66 | dhofamily="dh" |
| 67 | |
| 68 | |
| 69 | function getplscip-shell shell texlive-extra 2026.20260527-1 getpl(). () { |
| 70 | curfam=$1 |
| 71 | |
| 72 | echoscip-shell system . . echo. "# Converting .tfm to .pl" >> $logfile |
| 73 | |
| 74 | for f in ${curfam}; do |
| 75 | for s in ${size}; do |
| 76 | if [scip-shell system . . `[`. -z `${kpsewhich} tfm ec${f}${s}.tfm` ] ; then |
| 77 | echoscip-shell system . . echo. "Making ec${f}${s}.tfm" >> ${logfile} |
| 78 | echoscip-shell system . . echo. -n "ec${f}${s}.tfm " |
| 79 | mktextfm ec${f}${s} |
| 80 | fi |
| 81 | if [scip-shell system . . `[`. `${kpsewhich} tfm ec${f}${s}.tfm` ] ; then |
| 82 | tftopl `${kpsewhich} tfm ec${f}${s}.tfm` ./ec${f}${s}.pl &>/dev/nullscip-shell filesystem . . `/dev/null`.; |
| 83 | echoscip-shell system . . echo. "ec${f}${s}.tfm -> ec${f}${s}.pl" >> ${logfile} |
| 84 | echoscip-shell system . . echo. -n "ec${f}${s}.pl " |
| 85 | else |
| 86 | echoscip-shell system . . echo. "! tfm file ec${f}${s}.tfm not found." >> ${logfile} |
| 87 | echoscip-shell system . . echo. "! ec${f}${s}.tfm not found." |
| 88 | fi |
| 89 | if [scip-shell system . . `[`. -z `${kpsewhich} tfm tc${f}${s}.tfm` ] ; then |
| 90 | echoscip-shell system . . echo. "Making tc${f}${s}.tfm" >> ${logfile} |
| 91 | echoscip-shell system . . echo. -n "tc${f}${s}.tfm " |
| 92 | mktextfm tc${f}${s} |
| 93 | fi |
| 94 | if [scip-shell system . . `[`. `${kpsewhich} tfm tc${f}${s}.tfm` ] ; then |
| 95 | tftopl `${kpsewhich} tfm tc${f}${s}.tfm` ./tc${f}${s}.pl &> /dev/nullscip-shell filesystem . . `/dev/null`.; |
| 96 | echoscip-shell system . . echo. "tc${f}${s}.tfm -> tc${f}${s}.pl" >> ${logfile} |
| 97 | echoscip-shell system . . echo. -n "tc${f}${s}.pl " |
| 98 | else |
| 99 | echoscip-shell system . . echo. "! tfm file tc${f}${s}.tfm not found" >> ${logfile} |
| 100 | echoscip-shell system . . echo. "! tc${f}${s}.tfm not found." |
| 101 | fi |
| 102 | done |
| 103 | done |
| 104 | |
| 105 | echoscip-shell system . . echo. |
| 106 | } |
| 107 | |
| 108 | function getvfscip-shell shell texlive-extra 2026.20260527-1 getvf(). () { |
| 109 | curfam=$1 |
| 110 | |
| 111 | echoscip-shell system . . echo. "# Converting .vpl to .vf and .tfm" >> $logfile |
| 112 | |
| 113 | for f in $curfam; do |
| 114 | for s in $size; do |
| 115 | if [scip-shell system . . `[`. -f hfo${f}${s}.vpl ]; then |
| 116 | vptovf hfo${f}${s}.vpl hfo${f}${s}.vf hfo${f}${s}.tfm &> /dev/nullscip-shell filesystem . . `/dev/null`.; |
| 117 | echoscip-shell system . . echo. "hfo${f}${s}.vpl -> hfo${f}${s}.vf" >> ${logfile} |
| 118 | echoscip-shell system . . echo. -n "hfo${f}${s}.vf " |
| 119 | else |
| 120 | echoscip-shell system . . echo. "vpl file hfo${f}${s}.vpl not found" >> ${logfile} |
| 121 | echoscip-shell system . . echo. "! hfo${f}${s}.vpl not found." |
| 122 | fi |
| 123 | done |
| 124 | done |
| 125 | |
| 126 | echoscip-shell system . . echo. |
| 127 | } |
| 128 | |
| 129 | function cleanupscip-shell shell texlive-extra 2026.20260527-1 cleanup(). () { |
| 130 | curfam=$1 |
| 131 | |
| 132 | for f in $curfam; do |
| 133 | for s in $size; do |
| 134 | rmscip-shell system . . rm. -f hfo${f}${s}.vpl ec${f}${s}.pl ec${f}${s}.mtx tc${f}${s}.pl tc${f}${s}.mtx |
| 135 | done |
| 136 | done |
| 137 | } |
| 138 | |
| 139 | function introscip-shell shell texlive-extra 2026.20260527-1 intro(). () { |
| 140 | catscip-shell system . . cat. << EOM |
| 141 | \input fontinst.sty |
| 142 | |
| 143 | \declareencoding{TEX TEXT COMPANION SYMBOLS 1---TS1}{TS1} |
| 144 | |
| 145 | \installfonts |
| 146 | EOM |
| 147 | } |
| 148 | |
| 149 | function extroscip-shell shell texlive-extra 2026.20260527-1 extro(). () { |
| 150 | catscip-shell system . . cat. << EOM |
| 151 | \endinstallfonts |
| 152 | |
| 153 | \bye |
| 154 | EOM |
| 155 | } |
| 156 | |
| 157 | function echomtxscip-shell shell texlive-extra 2026.20260527-1 echomtx(). () { |
| 158 | f=$1 |
| 159 | |
| 160 | echoscip-shell system . . echo. |
| 161 | for ec in ${size}; do |
| 162 | if [scip-shell system . . `[`. -f ec${f}${ec}.pl ]; then |
| 163 | echoscip-shell system . . echo. "\frompl{ec${f}${ec}}" |
| 164 | fi |
| 165 | if [scip-shell system . . `[`. -f tc${f}${ec}.pl ]; then |
| 166 | echoscip-shell system . . echo. "\frompl{tc${f}${ec}}" |
| 167 | fi |
| 168 | done; |
| 169 | } |
| 170 | |
| 171 | # Inserts kerning information to the mtx file |
| 172 | function insertkernsscip-shell shell texlive-extra 2026.20260527-1 insertkerns(). () |
| 173 | { |
| 174 | f=$1 |
| 175 | # Change v1.00: Scale Kerning by $FAK/1000 |
| 176 | FAK=$2 |
| 177 | |
| 178 | for ec in ${size} |
| 179 | do |
| 180 | |
| 181 | MULTI=`grepscip-shell system . . grep. '\quad' ec${f}${ec}.mtx | sedscip-shell system . . sed. s/'.*{\([0-9]*\)}'/'\1'/` |
| 182 | echoscip-shell system . . echo. ec${f}${ec}: multiplikator $MULTI |
| 183 | |
| 184 | GKERN="0110" |
| 185 | GKERN=`echoscip-shell system . . echo. "$GKERN $MULTI * 1000 / p" | dc` |
| 186 | KKERN="0070" |
| 187 | KKERN=`echoscip-shell system . . echo. "$KKERN $MULTI * 1000 / p" | dc` |
| 188 | |
| 189 | LISTE="%" |
| 190 | for CHAR in A B C D E F G H I J K L M N O P Q R S T U V W X Y Z \ |
| 191 | Adieresis Odieresis Udieresis |
| 192 | do |
| 193 | RKERN=$GKERN |
| 194 | LKERN=$GKERN |
| 195 | case $CHAR in |
| 196 | A) LKERN=`scip-shell system . . echo.ecscip-shell system . . echo.hoscip-shell system . . echo. "$LKERN 1200 * 1000 / $FAK * 1000 / p" | dc`; \ |
| 197 | RKERN=`echo "$RKERN 1200 * 1000 / $FAK * 1000 / p" | dc`;; |
| 198 | B) LKERN=`echoscip-shell system . . echo. "$LKERN 300 * 1000 / $FAK * 1000 / p" | dc`;; |
| 199 | C) LKERN=`scip-shell system . . echo.ecscip-shell system . . echo.hoscip-shell system . . echo. "$LKERN 300 * 1000 / $FAK * 1000 / p" | dc`; \ |
| 200 | RKERN=`echo "$RKERN 600 * 1000 / $FAK * 1000 / p" | dc`;; |
| 201 | D) LKERN=`echoscip-shell system . . echo. "$LKERN 300 * 1000 / $FAK * 1000 / p" | dc`;; |
| 202 | E) LKERN=`echoscip-shell system . . echo. "$LKERN 300 * 1000 / $FAK * 1000 / p" | dc`;; |
| 203 | G) LKERN=`scip-shell system . . echo.ecscip-shell system . . echo.hoscip-shell system . . echo. "$LKERN 300 * 1000 / $FAK * 1000 / p" | dc`; \ |
| 204 | RKERN=`echo "$RKERN 600 * 1000 / $FAK * 1000 / p" | dc`;; |
| 205 | K) LKERN=`echoscip-shell system . . echo. "$LKERN 1400 * 1000 / $FAK * 1000 / p" | dc`;; |
| 206 | L) LKERN=`echoscip-shell system . . echo. "$LKERN 300 * 1000 / $FAK * 1000 / p" | dc`;; |
| 207 | N) LKERN=`echoscip-shell system . . echo. "$LKERN 1100 * 1000 / $FAK * 1000 / p" | dc`;; |
| 208 | O) LKERN=`scip-shell system . . echo.ecscip-shell system . . echo.hoscip-shell system . . echo. "$LKERN 600 * 1000 / $FAK * 1000 / p" | dc`; \ |
| 209 | RKERN=`echo "$RKERN 600 * 1000 / $FAK * 1000 / p" | dc`;; |
| 210 | P) LKERN=`echoscip-shell system . . echo. "$LKERN 1100 * 1000 / $FAK * 1000 / p" | dc`;; |
| 211 | Q) LKERN=`scip-shell system . . echo.ecscip-shell system . . echo.hoscip-shell system . . echo. "$LKERN 600 * 1000 / $FAK * 1000 / p" | dc`; \ |
| 212 | RKERN=`echo "$RKERN 600 * 1000 / $FAK * 1000 / p" | dc`;; |
| 213 | R) LKERN=`echoscip-shell system . . echo. "$LKERN 300 * 1000 / $FAK * 1000 / p" | dc`;; |
| 214 | S) LKERN=`scip-shell system . . echo.ecscip-shell system . . echo.hoscip-shell system . . echo. "$LKERN 300 * 1000 / $FAK * 1000 / p" | dc`; \ |
| 215 | RKERN=`echo "$RKERN 300 * 1000 / $FAK * 1000 / p" | dc`;; |
| 216 | T) LKERN=`scip-shell system . . echo.ecscip-shell system . . echo.hoscip-shell system . . echo. "$LKERN 1200 * 1000 / $FAK * 1000 / p" | dc`; \ |
| 217 | RKERN=`echo "$RKERN 1200 * 1000 / $FAK * 1000 / p" | dc`;; |
| 218 | V) LKERN=`scip-shell system . . echo.ecscip-shell system . . echo.hoscip-shell system . . echo. "$LKERN 1300 * 1000 / $FAK * 1000 / p" | dc`; \ |
| 219 | RKERN=`echo "$RKERN 1300 * 1000 / $FAK * 1000 / p" | dc`;; |
| 220 | W) LKERN=`scip-shell system . . echo.ecscip-shell system . . echo.hoscip-shell system . . echo. "$LKERN 1300 * 1000 / $FAK * 1000 / p" | dc`; \ |
| 221 | RKERN=`echo "$RKERN 1300 * 1000 / $FAK * 1000 / p" | dc`;; |
| 222 | X) LKERN=`scip-shell system . . echo.ecscip-shell system . . echo.hoscip-shell system . . echo. "$LKERN 1300 * 1000 / $FAK * 1000 / p" | dc`; \ |
| 223 | RKERN=`echo "$RKERN 1300 * 1000 / $FAK * 1000 / p" | dc`;; |
| 224 | Y) LKERN=`scip-shell system . . echo.ecscip-shell system . . echo.hoscip-shell system . . echo. "$LKERN 1300 * 1000 / $FAK * 1000 / p" | dc`; \ |
| 225 | RKERN=`echo "$RKERN 1300 * 1000 / $FAK * 1000 / p" | dc`;; |
| 226 | Z) LKERN=`echoscip-shell system . . echo. "$LKERN 300 * 1000 / $FAK * 1000 / p" | dc`;; |
| 227 | Adieresis) scip-shell system . . echo.Lscip-shell system . . echo.KERN=`ecscip-shell system . . echo.hoscip-shell system . . echo. "$LKERN 1200 * 1000 / $FAK * 1000 / p" | dc`; \ |
| 228 | RKERN=`echo "$RKERN 1200 * 1000 / $FAK * 1000 / p" | dc`;; |
| 229 | Odieresis) scip-shell system . . echo.Lscip-shell system . . echo.KERN=`ecscip-shell system . . echo.hoscip-shell system . . echo. "$LKERN 600 * 1000 / $FAK * 1000 / p" | dc`; \ |
| 230 | RKERN=`echo "$RKERN 600 * 1000 / $FAK * 1000 / p" | dc`;; |
| 231 | esac |
| 232 | LISTE="$LISTE\\ |
| 233 | \\\\setkern{guillemotright}{$CHAR}{-$RKERN}\\ |
| 234 | \\\\setkern{$CHAR}{guillemotleft}{-$LKERN}" |
| 235 | done |
| 236 | |
| 237 | for CHAR in a b c d e f g h i j k l m n o p q r s t u v w x y z \ |
| 238 | adieresis odieresis udieresis germandbls |
| 239 | do |
| 240 | RKERN=$KKERN |
| 241 | LKERN=$KKERN |
| 242 | case $CHAR in |
| 243 | b) LKERN=`scip-shell system . . echo.ecscip-shell system . . echo.hoscip-shell system . . echo. "$LKERN 1000 * 1000 / $FAK * 1000 / p" | dc`; \ |
| 244 | RKERN=`echo "$RKERN 1200 * 1000 / $FAK * 1000 / p" | dc`;; |
| 245 | esac |
| 246 | LISTE="$LISTE\\ |
| 247 | \\\\setkern{guillemotright}{$CHAR}{-$RKERN}\\ |
| 248 | \\\\setkern{$CHAR}{guillemotleft}{-$LKERN}" |
| 249 | done |
| 250 | |
| 251 | sedscip-shell system . . sed. "1,/\\\\setrawglyph/ { /\\\\setrawglyph/i \\ |
| 252 | $LISTE |
| 253 | ; }" ec${f}${ec}.mtx > ec${f}${ec}.mtx.tmp && \ |
| 254 | mv -f ec${f}${ec}.mtx.tmp ec${f}${ec}.mtx || \ |
| 255 | rm -f ec${f}${ec}.mtx.tmp |
| 256 | done |
| 257 | } |
| 258 | |
| 259 | function echoinstallsscip-shell shell texlive-extra 2026.20260527-1 echoinstalls(). () { |
| 260 | enc=$1; f=$2; se=$3; sh=$4 |
| 261 | |
| 262 | echoscip-shell system . . echo. |
| 263 | for ec in ${size}; do |
| 264 | case ${ec} in |
| 265 | 0500) fs="5";; |
| 266 | 0600) fs="6";; |
| 267 | 0700) fs="7";; |
| 268 | 0800) fs="8";; |
| 269 | 0900) fs="9";; |
| 270 | 1000) fs="10";; |
| 271 | 1095) fs="10.95";; |
| 272 | 1200) fs="12";; |
| 273 | 1440) fs="14.4";; |
| 274 | 1728) fs="17.28";; |
| 275 | 2074) fs="20.74";; |
| 276 | 2488) fs="24.88";; |
| 277 | 2986) fs="29.86";; |
| 278 | 3583) fs="35.83";; |
| 279 | esac |
| 280 | if [scip-shell system . . `[`. -f ec${f}${ec}.pl -a -f tc${f}${ec}.pl ]; then |
| 281 | echoscip-shell system . . echo. "\installfont{hfo${f}${ec}}{ec${f}${ec},tc${f}${ec},dostretch}{T19}{T1}{hfo${enc}}{${se}}{${sh}}{<${fs}>}" |
| 282 | # Change v0.2: Use lining figures with small capitals again. |
| 283 | # Thus, no extra handling for these fonts necessary anymore. |
| 284 | # Change v0.4: Use old-style figures with small capitals again. |
| 285 | else if [scip-shell system . . `[`. ${f} == "cc" -o ${f} == "xc" -o ${f} == "sc" -o ${f} == "oc" -o ${f} == "tc" ] |
| 286 | then |
| 287 | [scip-shell system . . `[`. ${f} == "cc" ] && tcf="rm" |
| 288 | [scip-shell system . . `[`. ${f} == "xc" ] && tcf="bx" |
| 289 | [scip-shell system . . `[`. ${f} == "sc" ] && tcf="sl" |
| 290 | [scip-shell system . . `[`. ${f} == "oc" ] && tcf="bl" |
| 291 | [scip-shell system . . `[`. ${f} == "tc" ] && tcf="tt" |
| 292 | if [scip-shell system . . `[`. -f ec${f}${ec}.pl -a -f tc${tcf}${ec}.pl ]; then |
| 293 | echoscip-shell system . . echo. "\installfont{hfo${f}${ec}}{ec${f}${ec},tc${tcf}${ec},dostretch}{T19}{T1}{hfo${enc}}{${se}}{${sh}}{<${fs}>}" |
| 294 | # echo "\installfont{hfo${f}${ec}}{ec${f}${ec},dostretch}{T1}{T1}{hfo${enc}}{${se}}{${sh}}{<${fs}>}" |
| 295 | fi |
| 296 | fi |
| 297 | fi |
| 298 | done; |
| 299 | } |
| 300 | |
| 301 | |
| 302 | function modfdscip-shell shell texlive-extra 2026.20260527-1 modfd(). () |
| 303 | { |
| 304 | fdfile=$1 |
| 305 | |
| 306 | catscip-shell system . . cat. ${fdfile} | \ |
| 307 | grep -1 -e '<[-.0-9]*>' \ |
| 308 | -e 'DeclareFontShape' | \ |
| 309 | grep -v -e '<10\.95>' -e '<14\.4>' -e '<20\.74>' \ |
| 310 | -e '<24\.88>' -e '<29\.86>' -e '<35\.83>' | \ |
| 311 | sed -e 's/<5>/<-6>/g' -e 's/<6>/<6-7>/g' -e 's/<7>/<7-8>/g' \ |
| 312 | -e 's/<8>/<8-9>/g' -e 's/<9>/<9-10>/g' -e 's/<10>/<10-12>/g' \ |
| 313 | -e 's/<12>/<12-17>/g' -e 's/<17\.28>/<17->/g' > asdf.fd |
| 314 | echoscip-shell system . . echo. '\else' >> asdf.fd |
| 315 | echoscip-shell system . . echo. '\typeout{'${fdfile}': Using all design sizes}%' >> asdf.fd |
| 316 | sedscip-shell system . . sed. '/\\endinput/dscip-shell filesystem . . `/\\endinput/d`.' asdf.fd > tmp.fd && mvscip-shell system . . mv. -f tmp.fd asdf.fd |
| 317 | catscip-shell system . . cat. ${fdfile} | \ |
| 318 | sed -e '/DeclareFontFamily/i \ |
| 319 | \\ifhfofixcm\ |
| 320 | \\typeout{'${fdfile}': Using fewer design sizes (fix-cm)}% \ |
| 321 | ' \ |
| 322 | -e '/\\endinput/i \ |
| 323 | \\fi\ |
| 324 | ' \ |
| 325 | -e '/\\DeclareFontFamily/r asdf.fdscip-shell filesystem . . `/\\DeclareFontFamily/r asdf.fd`.' > tmp.fd |
| 326 | mvscip-shell system . . mv. -f tmp.fd ${fdfile} |
| 327 | rmscip-shell system . . rm. -f asdf.fd |
| 328 | } |
| 329 | |
| 330 | |
| 331 | # function main () { |
| 332 | |
| 333 | # Roman family |
| 334 | # |
| 335 | |
| 336 | echoscip-shell system . . echo. >> $logfile |
| 337 | echoscip-shell system . . echo. "Roman Family" >> $logfile |
| 338 | echoscip-shell system . . echo. "------------" >> $logfile |
| 339 | echoscip-shell system . . echo. >> $logfile |
| 340 | |
| 341 | getplscip-shell shell texlive-extra 2026.20260527-1 getpl(). "$rofamily" |
| 342 | |
| 343 | ( |
| 344 | introscip-shell shell texlive-extra 2026.20260527-1 intro(). |
| 345 | |
| 346 | echomtxscip-shell shell texlive-extra 2026.20260527-1 echomtx(). rm |
| 347 | echomtxscip-shell shell texlive-extra 2026.20260527-1 echomtx(). ti |
| 348 | echomtxscip-shell shell texlive-extra 2026.20260527-1 echomtx(). sl |
| 349 | echomtxscip-shell shell texlive-extra 2026.20260527-1 echomtx(). ui |
| 350 | echomtxscip-shell shell texlive-extra 2026.20260527-1 echomtx(). cc |
| 351 | echomtxscip-shell shell texlive-extra 2026.20260527-1 echomtx(). sc |
| 352 | echomtxscip-shell shell texlive-extra 2026.20260527-1 echomtx(). rb |
| 353 | echomtxscip-shell shell texlive-extra 2026.20260527-1 echomtx(). bx |
| 354 | echomtxscip-shell shell texlive-extra 2026.20260527-1 echomtx(). bi |
| 355 | echomtxscip-shell shell texlive-extra 2026.20260527-1 echomtx(). bl |
| 356 | echomtxscip-shell shell texlive-extra 2026.20260527-1 echomtx(). xc |
| 357 | echomtxscip-shell shell texlive-extra 2026.20260527-1 echomtx(). oc |
| 358 | |
| 359 | extroscip-shell shell texlive-extra 2026.20260527-1 extro(). |
| 360 | ) > hformtx.tex |
| 361 | |
| 362 | tex hformtx.tex |
| 363 | |
| 364 | insertkernsscip-shell shell texlive-extra 2026.20260527-1 insertkerns(). rm 1000 |
| 365 | insertkernsscip-shell shell texlive-extra 2026.20260527-1 insertkerns(). ti 1000 |
| 366 | insertkernsscip-shell shell texlive-extra 2026.20260527-1 insertkerns(). sl 1000 |
| 367 | insertkernsscip-shell shell texlive-extra 2026.20260527-1 insertkerns(). ui 1000 |
| 368 | insertkernsscip-shell shell texlive-extra 2026.20260527-1 insertkerns(). cc 1000 |
| 369 | insertkernsscip-shell shell texlive-extra 2026.20260527-1 insertkerns(). sc 1000 |
| 370 | insertkernsscip-shell shell texlive-extra 2026.20260527-1 insertkerns(). rb 1000 |
| 371 | insertkernsscip-shell shell texlive-extra 2026.20260527-1 insertkerns(). bx 1000 |
| 372 | insertkernsscip-shell shell texlive-extra 2026.20260527-1 insertkerns(). bi 1000 |
| 373 | insertkernsscip-shell shell texlive-extra 2026.20260527-1 insertkerns(). bl 1000 |
| 374 | insertkernsscip-shell shell texlive-extra 2026.20260527-1 insertkerns(). xc 1000 |
| 375 | insertkernsscip-shell shell texlive-extra 2026.20260527-1 insertkerns(). oc 1000 |
| 376 | |
| 377 | ( |
| 378 | introscip-shell shell texlive-extra 2026.20260527-1 intro(). |
| 379 | |
| 380 | echoscip-shell system . . echo.; echoscip-shell system . . echo. "\installfamily{T1}{hfor}{}" |
| 381 | |
| 382 | echoinstallsscip-shell shell texlive-extra 2026.20260527-1 echoinstalls(). r rm m n |
| 383 | echoinstallsscip-shell shell texlive-extra 2026.20260527-1 echoinstalls(). r ti m it |
| 384 | echoinstallsscip-shell shell texlive-extra 2026.20260527-1 echoinstalls(). r sl m sl |
| 385 | echoinstallsscip-shell shell texlive-extra 2026.20260527-1 echoinstalls(). r ui m ui |
| 386 | echoinstallsscip-shell shell texlive-extra 2026.20260527-1 echoinstalls(). r cc m sc |
| 387 | echoinstallsscip-shell shell texlive-extra 2026.20260527-1 echoinstalls(). r sc m scsl |
| 388 | echoinstallsscip-shell shell texlive-extra 2026.20260527-1 echoinstalls(). r rb b n |
| 389 | echoinstallsscip-shell shell texlive-extra 2026.20260527-1 echoinstalls(). r bx bx n |
| 390 | echoinstallsscip-shell shell texlive-extra 2026.20260527-1 echoinstalls(). r bi bx it |
| 391 | echoinstallsscip-shell shell texlive-extra 2026.20260527-1 echoinstalls(). r bl bx sl |
| 392 | echoinstallsscip-shell shell texlive-extra 2026.20260527-1 echoinstalls(). r xc bx sc |
| 393 | echoinstallsscip-shell shell texlive-extra 2026.20260527-1 echoinstalls(). r oc bx scsl |
| 394 | |
| 395 | extroscip-shell shell texlive-extra 2026.20260527-1 extro(). |
| 396 | ) > hfor.tex |
| 397 | |
| 398 | tex hfor.tex |
| 399 | |
| 400 | # Change v0.2: LaTeX is big enough not to split generation of Roman family. |
| 401 | |
| 402 | getvfscip-shell shell texlive-extra 2026.20260527-1 getvf(). "$rofamily" |
| 403 | |
| 404 | cleanupscip-shell shell texlive-extra 2026.20260527-1 cleanup(). "$rofamily" |
| 405 | |
| 406 | edscip-shell system . . ed. t1hfor.fd <<EOS |
| 407 | \$-1,\$d |
| 408 | w |
| 409 | q |
| 410 | EOS |
| 411 | |
| 412 | ( |
| 413 | # Change v0.2: Support slanted small capitals |
| 414 | # Change v0.90: Fix the wrong generation of this entry. It prevented LaTeX |
| 415 | # from finding the correct small caps with old-style digits. |
| 416 | for f in m bx; do |
| 417 | echoscip-shell system . . echo. "\DeclareFontShape{T1}{hfor}{$f}{scit}{<->ssub * hfor/$f/scsl}{}" |
| 418 | done |
| 419 | echoscip-shell system . . echo. |
| 420 | # Change v0.2: Use lining figures with small capitals again. |
| 421 | # Change v0.4: Use old-style figures with small capitals again. |
| 422 | for f in $rfamily; do |
| 423 | se=`echoscip-shell system . . echo. $f | cutscip-shell system . . cut. -f 1 -d "/scip-shell filesystem . . `/`."` |
| 424 | sh=`echoscip-shell system . . echo. $f | cutscip-shell system . . cut. -f 2 -d "/scip-shell filesystem . . `/`."` |
| 425 | echoscip-shell system . . echo. "\DeclareFontShape{T1}{hfor}{$se}{$sh}{<->ssub * cmr/$se/$sh}{}" |
| 426 | done |
| 427 | echoscip-shell system . . echo. |
| 428 | echoscip-shell system . . echo. '\endinput' |
| 429 | ) >> t1hfor.fd |
| 430 | |
| 431 | modfdscip-shell shell texlive-extra 2026.20260527-1 modfd(). t1hfor.fd |
| 432 | |
| 433 | sedscip-shell system . . sed. 's/Fontinst .*/ v'$VERSION' European Computer Modern with oldstyle digits]/' \ |
| 434 | t1hfor.fd > asdf && mvscip-shell system . . mv. -f asdf t1hfor.fd |
| 435 | |
| 436 | # Sans Serif family |
| 437 | |
| 438 | echoscip-shell system . . echo. >> $logfile |
| 439 | echoscip-shell system . . echo. "Sans Serif family" >> $logfile |
| 440 | echoscip-shell system . . echo. "-----------------" >> $logfile |
| 441 | echoscip-shell system . . echo. >> $logfile |
| 442 | |
| 443 | getplscip-shell shell texlive-extra 2026.20260527-1 getpl(). "$ssofamily" |
| 444 | |
| 445 | ( |
| 446 | introscip-shell shell texlive-extra 2026.20260527-1 intro(). |
| 447 | |
| 448 | echomtxscip-shell shell texlive-extra 2026.20260527-1 echomtx(). ss |
| 449 | echomtxscip-shell shell texlive-extra 2026.20260527-1 echomtx(). si |
| 450 | echomtxscip-shell shell texlive-extra 2026.20260527-1 echomtx(). sx |
| 451 | echomtxscip-shell shell texlive-extra 2026.20260527-1 echomtx(). so |
| 452 | |
| 453 | extroscip-shell shell texlive-extra 2026.20260527-1 extro(). |
| 454 | ) > hfossmtx.tex |
| 455 | |
| 456 | tex hfossmtx.tex |
| 457 | |
| 458 | # Change v1.00: Add kerning to sans-serif fonts, 70% of serif fonts. |
| 459 | insertkernsscip-shell shell texlive-extra 2026.20260527-1 insertkerns(). ss 0700 |
| 460 | insertkernsscip-shell shell texlive-extra 2026.20260527-1 insertkerns(). si 0700 |
| 461 | insertkernsscip-shell shell texlive-extra 2026.20260527-1 insertkerns(). sx 0700 |
| 462 | insertkernsscip-shell shell texlive-extra 2026.20260527-1 insertkerns(). so 0700 |
| 463 | |
| 464 | ( |
| 465 | introscip-shell shell texlive-extra 2026.20260527-1 intro(). |
| 466 | |
| 467 | echoscip-shell system . . echo.; echoscip-shell system . . echo. "\installfamily{T1}{hfoss}{}" |
| 468 | |
| 469 | echoinstallsscip-shell shell texlive-extra 2026.20260527-1 echoinstalls(). ss ss m n |
| 470 | echoinstallsscip-shell shell texlive-extra 2026.20260527-1 echoinstalls(). ss si m sl |
| 471 | echoinstallsscip-shell shell texlive-extra 2026.20260527-1 echoinstalls(). ss sx bx n |
| 472 | echoinstallsscip-shell shell texlive-extra 2026.20260527-1 echoinstalls(). ss so bx sl |
| 473 | |
| 474 | extroscip-shell shell texlive-extra 2026.20260527-1 extro(). |
| 475 | ) > hfoss.tex |
| 476 | |
| 477 | tex hfoss.tex |
| 478 | |
| 479 | getvfscip-shell shell texlive-extra 2026.20260527-1 getvf(). "$ssofamily" |
| 480 | |
| 481 | cleanupscip-shell shell texlive-extra 2026.20260527-1 cleanup(). "$ssofamily" |
| 482 | |
| 483 | edscip-shell system . . ed. t1hfoss.fd <<EOS |
| 484 | \$-1,\$d |
| 485 | w |
| 486 | q |
| 487 | EOS |
| 488 | |
| 489 | for f in $ssfamily; do |
| 490 | se=`echoscip-shell system . . echo. $f | cutscip-shell system . . cut. -f 1 -d "/scip-shell filesystem . . `/`."` |
| 491 | sh=`echoscip-shell system . . echo. $f | cutscip-shell system . . cut. -f 2 -d "/scip-shell filesystem . . `/`."` |
| 492 | echoscip-shell system . . echo. "\DeclareFontShape{T1}{hfoss}{$se}{$sh}{<->ssub * cmss/$se/$sh}{}" >> t1hfoss.fd |
| 493 | done |
| 494 | |
| 495 | for f in m bx; do |
| 496 | echoscip-shell system . . echo. "\DeclareFontShape{T1}{hfoss}{$f}{it}{<->ssub * hfoss/$f/sl}{}" >> t1hfoss.fd |
| 497 | echoscip-shell system . . echo. "\DeclareFontShape{T1}{hfoss}{$f}{scit}{<->ssub * hfoss/$f/sl}{}" >> t1hfoss.fd |
| 498 | echoscip-shell system . . echo. "\DeclareFontShape{T1}{hfoss}{$f}{scsl}{<->ssub * hfoss/$f/sl}{}" >> t1hfoss.fd |
| 499 | done |
| 500 | echoscip-shell system . . echo. '' >> t1hfoss.fd |
| 501 | echoscip-shell system . . echo. '\endinput' >> t1hfoss.fd |
| 502 | |
| 503 | modfdscip-shell shell texlive-extra 2026.20260527-1 modfd(). t1hfoss.fd |
| 504 | |
| 505 | sedscip-shell system . . sed. 's/Fontinst .*/ v'$VERSION' European Computer Modern with oldstyle digits]/' \ |
| 506 | t1hfoss.fd > asdf && mvscip-shell system . . mv. -f asdf t1hfoss.fd |
| 507 | |
| 508 | |
| 509 | # Typewriter family |
| 510 | |
| 511 | echoscip-shell system . . echo. >> $logfile |
| 512 | echoscip-shell system . . echo. "Typewriter family" >> $logfile |
| 513 | echoscip-shell system . . echo. "-----------------" >> $logfile |
| 514 | echoscip-shell system . . echo. >> $logfile |
| 515 | |
| 516 | getplscip-shell shell texlive-extra 2026.20260527-1 getpl(). "$ttofamily" |
| 517 | |
| 518 | ( |
| 519 | introscip-shell shell texlive-extra 2026.20260527-1 intro(). |
| 520 | |
| 521 | echomtxscip-shell shell texlive-extra 2026.20260527-1 echomtx(). tt |
| 522 | echomtxscip-shell shell texlive-extra 2026.20260527-1 echomtx(). it |
| 523 | echomtxscip-shell shell texlive-extra 2026.20260527-1 echomtx(). st |
| 524 | # Change v0.2: Use lining figures with small capitals. |
| 525 | # Change v0.4: Use old-style figures with small capitals again. |
| 526 | echomtxscip-shell shell texlive-extra 2026.20260527-1 echomtx(). tc |
| 527 | |
| 528 | extroscip-shell shell texlive-extra 2026.20260527-1 extro(). |
| 529 | ) > hfottmtx.tex |
| 530 | |
| 531 | tex hfottmtx.tex |
| 532 | |
| 533 | ( |
| 534 | introscip-shell shell texlive-extra 2026.20260527-1 intro(). |
| 535 | |
| 536 | echoscip-shell system . . echo.; echoscip-shell system . . echo. "\installfamily{T1}{hfott}{\hyphenchar\font=\m@ne }" |
| 537 | |
| 538 | echoinstallsscip-shell shell texlive-extra 2026.20260527-1 echoinstalls(). tt tt m n |
| 539 | echoinstallsscip-shell shell texlive-extra 2026.20260527-1 echoinstalls(). tt it m it |
| 540 | echoinstallsscip-shell shell texlive-extra 2026.20260527-1 echoinstalls(). tt st m sl |
| 541 | # Change v0.2: Use lining figures with small capitals. |
| 542 | # Change v0.4: Use old-style figures with small capitals again. |
| 543 | echoinstallsscip-shell shell texlive-extra 2026.20260527-1 echoinstalls(). tt tc m sc |
| 544 | |
| 545 | extroscip-shell shell texlive-extra 2026.20260527-1 extro(). |
| 546 | ) > hfott.tex |
| 547 | |
| 548 | tex hfott.tex |
| 549 | |
| 550 | getvfscip-shell shell texlive-extra 2026.20260527-1 getvf(). "$ttofamily" |
| 551 | |
| 552 | cleanupscip-shell shell texlive-extra 2026.20260527-1 cleanup(). "$ttofamily" |
| 553 | |
| 554 | edscip-shell system . . ed. t1hfott.fd <<EOS |
| 555 | ,s/\\\hyphenchar \\\font =\\\m @ne /\\\hyphenchar\\\font=\\\m@ne/ |
| 556 | w |
| 557 | q |
| 558 | EOS |
| 559 | |
| 560 | ( |
| 561 | echoscip-shell system . . echo. |
| 562 | # Change v0.2: Use lining figures with small capitals. |
| 563 | # Change v0.4: Use old-style figures with small capitals again. |
| 564 | for f in $ttfamily; do |
| 565 | se=`echoscip-shell system . . echo. $f | cutscip-shell system . . cut. -f 1 -d "/scip-shell filesystem . . `/`."` |
| 566 | sh=`echoscip-shell system . . echo. $f | cutscip-shell system . . cut. -f 2 -d "/scip-shell filesystem . . `/`."` |
| 567 | echoscip-shell system . . echo. "\DeclareFontShape{T1}{hfott}{$se}{$sh}{<->ssub * cmtt/$se/$sh}{}" |
| 568 | done |
| 569 | echoscip-shell system . . echo. |
| 570 | echoscip-shell system . . echo. '\endinput' |
| 571 | ) >> t1hfott.fd |
| 572 | |
| 573 | modfdscip-shell shell texlive-extra 2026.20260527-1 modfd(). t1hfott.fd |
| 574 | |
| 575 | sedscip-shell system . . sed. 's/Fontinst .*/ v'$VERSION' European Computer Modern with oldstyle digits]/' \ |
| 576 | t1hfott.fd > asdf && mvscip-shell system . . mv. -f asdf t1hfott.fd |
| 577 | |
| 578 | |
| 579 | # Dunhill family |
| 580 | |
| 581 | echoscip-shell system . . echo. >> $logfile |
| 582 | echoscip-shell system . . echo. "Dunhill family" >> $logfile |
| 583 | echoscip-shell system . . echo. "--------------" >> $logfile |
| 584 | echoscip-shell system . . echo. >> $logfile |
| 585 | |
| 586 | getplscip-shell shell texlive-extra 2026.20260527-1 getpl(). "$dhofamily" |
| 587 | |
| 588 | ( |
| 589 | introscip-shell shell texlive-extra 2026.20260527-1 intro(). |
| 590 | |
| 591 | echomtxscip-shell shell texlive-extra 2026.20260527-1 echomtx(). dh |
| 592 | |
| 593 | extroscip-shell shell texlive-extra 2026.20260527-1 extro(). |
| 594 | |
| 595 | ) > hfodhmtx.tex |
| 596 | |
| 597 | tex hfodhmtx.tex |
| 598 | |
| 599 | ( |
| 600 | introscip-shell shell texlive-extra 2026.20260527-1 intro(). |
| 601 | |
| 602 | echoscip-shell system . . echo.; echoscip-shell system . . echo. "\installfamily{T1}{hfodh}{}" |
| 603 | |
| 604 | echoinstallsscip-shell shell texlive-extra 2026.20260527-1 echoinstalls(). dh dh m n |
| 605 | |
| 606 | extroscip-shell shell texlive-extra 2026.20260527-1 extro(). |
| 607 | |
| 608 | ) > hfodh.tex |
| 609 | |
| 610 | tex hfodh.tex |
| 611 | |
| 612 | getvfscip-shell shell texlive-extra 2026.20260527-1 getvf(). "$dhofamily" |
| 613 | |
| 614 | cleanupscip-shell shell texlive-extra 2026.20260527-1 cleanup(). "$dhofamily" |
| 615 | |
| 616 | modfdscip-shell shell texlive-extra 2026.20260527-1 modfd(). t1hfodh.fd |
| 617 | |
| 618 | sedscip-shell system . . sed. 's/Fontinst .*/ v'$VERSION' European Computer Modern with oldstyle digits]/' \ |
| 619 | t1hfodh.fd > asdf && mvscip-shell system . . mv. -f asdf t1hfodh.fd |
| 620 | |
| 621 | |
| 622 | # Variable width Typewriter family |
| 623 | |
| 624 | echoscip-shell system . . echo. >> $logfile |
| 625 | echoscip-shell system . . echo. "Variable width Typewriter family" >> $logfile |
| 626 | echoscip-shell system . . echo. "--------------------------------" >> $logfile |
| 627 | echoscip-shell system . . echo. >> $logfile |
| 628 | |
| 629 | getplscip-shell shell texlive-extra 2026.20260527-1 getpl(). "$vtofamily" |
| 630 | |
| 631 | ( |
| 632 | introscip-shell shell texlive-extra 2026.20260527-1 intro(). |
| 633 | |
| 634 | echomtxscip-shell shell texlive-extra 2026.20260527-1 echomtx(). vt |
| 635 | echomtxscip-shell shell texlive-extra 2026.20260527-1 echomtx(). vi |
| 636 | |
| 637 | extroscip-shell shell texlive-extra 2026.20260527-1 extro(). |
| 638 | ) > hfovtmtx.tex |
| 639 | |
| 640 | tex hfovtmtx.tex |
| 641 | |
| 642 | ( |
| 643 | introscip-shell shell texlive-extra 2026.20260527-1 intro(). |
| 644 | |
| 645 | echoscip-shell system . . echo.; echoscip-shell system . . echo. "\installfamily{T1}{hfovt}{\hyphenchar\font=\m@ne }" |
| 646 | |
| 647 | echoinstallsscip-shell shell texlive-extra 2026.20260527-1 echoinstalls(). vt vt m n |
| 648 | echoinstallsscip-shell shell texlive-extra 2026.20260527-1 echoinstalls(). vt vi m it |
| 649 | |
| 650 | extroscip-shell shell texlive-extra 2026.20260527-1 extro(). |
| 651 | ) > hfovt.tex |
| 652 | |
| 653 | tex hfovt.tex |
| 654 | |
| 655 | getvfscip-shell shell texlive-extra 2026.20260527-1 getvf(). "$vtofamily" |
| 656 | |
| 657 | cleanupscip-shell shell texlive-extra 2026.20260527-1 cleanup(). "$vtofamily" |
| 658 | |
| 659 | edscip-shell system . . ed. t1hfovt.fd <<EOS |
| 660 | ,s/\\\hyphenchar \\\font =\\\m @ne /\\\hyphenchar\\\font=\\\m@ne/ |
| 661 | w |
| 662 | q |
| 663 | EOS |
| 664 | |
| 665 | echoscip-shell system . . echo. '\endinput' >> t1hfovt.fd |
| 666 | |
| 667 | modfdscip-shell shell texlive-extra 2026.20260527-1 modfd(). t1hfovt.fd |
| 668 | |
| 669 | sedscip-shell system . . sed. 's/Fontinst .*/ v'$VERSION' European Computer Modern with oldstyle digits]/' \ |
| 670 | t1hfovt.fd > asdf && mvscip-shell system . . mv. -f asdf t1hfovt.fd |
| 671 | |
| 672 | |
| 673 | exit 0 |
| 674 | |
| 675 | # } |