Skip to content

Commit

Permalink
adapt test to use a gentium font just to make sure we know what encod…
Browse files Browse the repository at this point in the history
…ing result should be
  • Loading branch information
Clea F. Rees committed Nov 18, 2024
1 parent 80d9329 commit b58253a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 11 deletions.
22 changes: 13 additions & 9 deletions test/build.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- $Id: build.lua 10612 2024-11-12 17:21:11Z cfrees $
-- $Id: build.lua 10644 2024-11-18 00:31:59Z cfrees $
-- Build configuration for testadf
ctanpkg = "testadf"
module = "test"
Expand Down Expand Up @@ -46,22 +46,26 @@ function filch()
-- equiv to:
-- /usr/bin/mkdir -p ${srcdir}/afm && /usr/bin/cp $(kpsewhich yesr8a.afm) ${srcdir}/afm/xxxr8a.afm
-- /usr/bin/mkdir -p ${srcdir}/type1 && /usr/bin/cp $(kpsewhich yesr8a.pfb) ${srcdir}/type1/xxxr8a.pfb
local afm = kpse.find_file("yesr8a","afm")
local pfb = kpse.find_file("yesr8a","type1 fonts")
-- local afm = kpse.find_file("yesr8a","afm")
-- local pfb = kpse.find_file("yesr8a","type1 fonts")
local afm = kpse.find_file("GentiumPlus-Regular","afm")
local pfb = kpse.find_file("GentiumPlus-Regular","type1 fonts")
if not afm or not pfb then return 1 end
local srcdir = sourcefiledir or "."
local dafm = dirname(afm)
afm = basename(afm)
local xafm = string.gsub(afm,"yes","xxx")
local xafm = string.gsub(afm,"GentiumPlus%-Regular","xxxr8a")
local dpfb = dirname(pfb)
pfb = basename(pfb)
local xpfb = string.gsub(pfb,"yes","xxx")
local xpfb = string.gsub(pfb,"GentiumPlus%-Regular","xxxr8a")
local afmdir = srcdir .. "/afm"
local pfbdir = srcdir .. "/type1"
local errorlevel = direxists(afmdir)
if errorlevel ~=0 then mkdir(afmdir) end
errorlevel = direxists(pfbdir)
if errorlevel ~=0 then mkdir(pfbdir) end
cleandir(afmdir)
cleandir(pfbdir)
-- local errorlevel = direxists(afmdir)
-- if errorlevel ~=0 then mkdir(afmdir) end
-- errorlevel = direxists(pfbdir)
-- if errorlevel ~=0 then mkdir(pfbdir) end
xafm = afmdir .. "/" .. xafm
xpfb = pfbdir .. "/" .. xpfb
cp(afm,dafm,xafm)
Expand Down
8 changes: 6 additions & 2 deletions test/testadf.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
\char_set_catcode_letter:N \:
}
\ExplSyntaxOff
\ProvidesFileSVN{$Id: testadf.dtx 10631 2024-11-14 05:26:44Z cfrees $}[v0.0 \revinfo][testadf DTX: test for 8-bit engines]
\ProvidesFileSVN{$Id: testadf.dtx 10644 2024-11-18 00:31:59Z cfrees $}[v0.0 \revinfo][testadf DTX: test for 8-bit engines]
\DefineFileInfoSVN
\GetFileInfoSVN*
\documentclass[11pt,british]{ltxdoc}
Expand Down Expand Up @@ -98,7 +98,7 @@
% ^^A sylwad1E
% sylwad2E
% ^^A sylwad3E
\ProvidesPackageSVN[test.sty]{$Id: testadf.dtx 10631 2024-11-14 05:26:44Z cfrees $}[\filebase v1.1 \revinfo]
\ProvidesPackageSVN[test.sty]{$Id: testadf.dtx 10644 2024-11-18 00:31:59Z cfrees $}[\filebase v1.1 \revinfo]
\DefineFileInfoSVN[test]
\RequirePackage[T1]{fontenc}
\RequirePackage{nfssext-cfr}
Expand Down Expand Up @@ -179,6 +179,10 @@
\installfamily{T1}{yyy}{\hyphenchar\font=45}
\normalcc
\installfont{yyyr8t}{xxxr8r,xxxr8sr,newlatin option nosc}{t1-xxx}{T1}{yyy}{m}{n}{}
\fontinstcc
\installfamily{TS1}{xxx}{}
\normalcc
\installfont{xxxr8c}{xxxr8r,xxxr8sr,textcomp}{ts1-euro}{TS1}{xxx}{m}{n}{}
\endinstallfonts
\endrecordtransforms
\bye
Expand Down

0 comments on commit b58253a

Please sign in to comment.