Skip to content

Commit

Permalink
Merge branch 'master' into uptex_ofm r72593
Browse files Browse the repository at this point in the history
  • Loading branch information
t-tk committed Oct 20, 2024
2 parents ccadb5f + 5d2f950 commit 3851019
Show file tree
Hide file tree
Showing 19 changed files with 139 additions and 42 deletions.
7 changes: 7 additions & 0 deletions source/texk/dvipdfm-x/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
2024-10-19 TANAKA Takuji <[email protected]>

* dvipdfmx-upjf{,2,3}.test, tests/upjf.tex,
tests/upjf{,-{hara,ipa,noto}}.map, tests/Makefike_upjf:
Update tests. Search system texmf for tfm/otf fonts
if kpathsearch is installed in the system.

2024-09-22 TANAKA Takuji <[email protected]>

* tfm.c: More strict check to interpret OFM FONTDIR
Expand Down
2 changes: 2 additions & 0 deletions source/texk/dvipdfm-x/dvipdfmx-upjf.test
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ echo "*** dvipdfmx: test for upjf1_omit2.pdf" && echo \

cmp ./upjf1_full.pdf ./upjf1_omit2.pdf || failed="$failed dvipdfmx-upjf1-cmp2"

rm -f upjf-r.ofm upjv-r.ofm


test -z "$failed" && exit 0
echo
Expand Down
31 changes: 23 additions & 8 deletions source/texk/dvipdfm-x/dvipdfmx-upjf2.test
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,45 @@ ExeExt=${ExeExt:-}
_kpsewhich=$KpsDir/kpsewhich$ExeExt
_xdvipdfmx=$BinDir/xdvipdfmx$ExeExt

if type kpsewhich > /dev/null 2>&1; then
otfpath=".//;"`kpsewhich -show-path='opentype fonts'`
otfpath=`echo $otfpath | sed -e 's,!!,,g'`
fi

TEXMFCNF=$srcdir/../kpathsea
TFMFONTS=".;$srcdir/tests;$srcdir/data"
T1FONTS="$srcdir/tests;$srcdir/data"
TEXFONTMAPS="$srcdir/tests;$srcdir/data"
DVIPDFMXINPUTS="$srcdir/tests;$srcdir/data"
TEXPICTS=$srcdir/tests
TEXFONTS=".;$srcdir/tests"
TEXFONTS="./tmp001;$srcdir/tests"
SOURCE_DATE_EPOCH=1588474800
export TEXMFCNF TFMFONTS T1FONTS TEXFONTMAPS DVIPDFMXINPUTS TEXPICTS TEXFONTS SOURCE_DATE_EPOCH

if type kpsewhich > /dev/null 2>&1; then
echo $otfpath
else
otfpath=".//;"`$_kpsewhich -show-path='opentype fonts'`
echo $otfpath
fi
OPENTYPEFONTS=`$_kpsewhich "--cnf-line=OPENTYPEFONTS=$otfpath" -show-path='opentype fonts'`
export OPENTYPEFONTS
echo "OPENTYPEFONTS::" $OPENTYPEFONTS

failed=

test -d tmp001 || mkdir -p tmp001

##### following tests require HaranoAji fonts #####

$_kpsewhich HaranoAjiMincho-Regular.otf
otfpath=`$_kpsewhich HaranoAjiMincho-Regular.otf` || exit 77
OPENTYPEFONTS=`echo $otfpath | sed -e 's,HaranoAjiMincho-Regular\.otf,,' -e 's,/fonts/opentype/.*$,/fonts/opentype//,'`
export OPENTYPEFONTS
$_kpsewhich HaranoAjiMincho-Regular.otf || exit 77
$_kpsewhich HaranoAjiGothic-Normal.otf || exit 77

rm -f upjf.vf upjv.vf upjf-r.ofm upjv-r.ofm
rm -f ./tmp001/upjf.vf ./tmp001/upjv.vf

echo "*** dvipdfmx: test for upjf2_full-hara.pdf" && echo \
&& cp $srcdir/tests/upjf2_full.vf ./upjf.vf \
&& cp $srcdir/tests/upjv2_full.vf ./upjv.vf \
&& cp $srcdir/tests/upjf2_full.vf ./tmp001/upjf.vf \
&& cp $srcdir/tests/upjv2_full.vf ./tmp001/upjv.vf \
&& $_xdvipdfmx --dvipdfmx -vv --pdfm-str-utf8 -f upjf-hara.map -o upjf2.pdf $srcdir/tests/upjf2.dvi \
&& mv ./upjf2.pdf ./upjf2_full-hara.pdf \
&& echo && echo "dvipdfmx-upjf2-vf_full-hara tests OK" && echo \
Expand Down
47 changes: 33 additions & 14 deletions source/texk/dvipdfm-x/dvipdfmx-upjf3.test
Original file line number Diff line number Diff line change
Expand Up @@ -9,35 +9,54 @@ ExeExt=${ExeExt:-}
_kpsewhich=$KpsDir/kpsewhich$ExeExt
_xdvipdfmx=$BinDir/xdvipdfmx$ExeExt

if type kpsewhich > /dev/null 2>&1; then
otfpath=".//;"`kpsewhich -show-path='opentype fonts'`
otfpath=`echo $otfpath | sed -e 's,!!,,g'`
fi

TEXMFCNF=$srcdir/../kpathsea
TFMFONTS=".;$srcdir/tests;$srcdir/data"
T1FONTS="$srcdir/tests;$srcdir/data"
TEXFONTMAPS="$srcdir/tests;$srcdir/data"
DVIPDFMXINPUTS="$srcdir/tests;$srcdir/data"
TEXPICTS=$srcdir/tests
TEXFONTS=".;$srcdir/tests"
TEXFONTS="./tmp002;$srcdir/tests"
SOURCE_DATE_EPOCH=1588474800
export TEXMFCNF TFMFONTS T1FONTS TEXFONTMAPS DVIPDFMXINPUTS TEXPICTS TEXFONTS SOURCE_DATE_EPOCH

if type kpsewhich > /dev/null 2>&1; then
echo $otfpath
else
otfpath=".//;"`$_kpsewhich -show-path='opentype fonts'`
echo $otfpath
fi
OPENTYPEFONTS=`$_kpsewhich "--cnf-line=OPENTYPEFONTS=$otfpath" -show-path='opentype fonts'`
export OPENTYPEFONTS
echo "OPENTYPEFONTS::" $OPENTYPEFONTS

TTFONTS=".//"
echo $TTFONTS
export TTFONTS

failed=

test -d tmp002 || mkdir -p tmp002

##### following tests require HaranoAji fonts and Noto Hentaigana font #####

$_kpsewhich HaranoAjiMincho-Regular.otf
otfpath=`$_kpsewhich HaranoAjiMincho-Regular.otf` || exit 77
OPENTYPEFONTS=`echo $otfpath | sed -e 's,HaranoAjiMincho-Regular\.otf,,' -e 's,/fonts/opentype/.*$,/fonts/opentype//,'`
export OPENTYPEFONTS
$_kpsewhich HaranoAjiMincho-Regular.otf || exit 77
$_kpsewhich HaranoAjiGothic-Normal.otf || exit 77

$_kpsewhich NotoSerifHentaigana-Regular.ttf
ttfpath=`$_kpsewhich NotoSerifHentaigana-Regular.ttf` || exit 77
TTFONTS=`echo $ttfpath | sed -e 's,NotoSerifHentaigana-Regular\.ttf,,' -e 's,/fonts/truetype/.*$,/fonts/truetype//,'`
export TTFONTS
#$_kpsewhich NotoSerifHentaigana-Regular.ttf
#ttfpath=`$_kpsewhich NotoSerifHentaigana-Regular.ttf` || exit 77
#TTFONTS=`echo $ttfpath | sed -e 's,NotoSerifHentaigana-Regular\.ttf,,' -e 's,/fonts/truetype/.*$,/fonts/truetype//,'`
#export TTFONTS

rm -f upjf.vf upjv.vf upjf-r.ofm upjv-r.ofm upjf-g.ofm upjv-g.ofm
rm -f ./tmp002/upjf.vf ./tmp002/upjv.vf

echo "*** dvipdfmx: test for upjf3_full-noto.pdf" && echo \
&& cp $srcdir/tests/upjf3_full.vf ./upjf.vf \
&& cp $srcdir/tests/upjv3_full.vf ./upjv.vf \
&& cp $srcdir/tests/upjf3_full.vf ./tmp002/upjf.vf \
&& cp $srcdir/tests/upjv3_full.vf ./tmp002/upjv.vf \
&& $_xdvipdfmx --dvipdfmx -vv --pdfm-str-utf8 -f upjf-noto.map -o upjf3.pdf $srcdir/tests/upjf3.dvi \
&& mv ./upjf3.pdf ./upjf3_full-noto.pdf \
&& echo && echo "dvipdfmx-upjf3-vf_full-noto tests OK" && echo \
Expand All @@ -48,8 +67,8 @@ echo "*** dvipdfmx: test for upjf3_full-noto.pdf" && echo \
$_kpsewhich ipamjm.ttf || exit 77

echo "*** dvipdfmx: test for upjf3_full-ipa.pdf" && echo \
&& cp $srcdir/tests/upjf4_full.vf ./upjf.vf \
&& cp $srcdir/tests/upjv4_full.vf ./upjv.vf \
&& cp $srcdir/tests/upjf4_full.vf ./tmp002/upjf.vf \
&& cp $srcdir/tests/upjv4_full.vf ./tmp002/upjv.vf \
&& $_xdvipdfmx --dvipdfmx -vv --pdfm-str-utf8 -f upjf-ipa.map -o upjf3.pdf $srcdir/tests/upjf3.dvi \
&& mv ./upjf3.pdf ./upjf3_full-ipa.pdf \
&& echo && echo "dvipdfmx-upjf3-vf_full-ipa tests OK" && echo \
Expand Down
4 changes: 2 additions & 2 deletions source/texk/dvipdfm-x/tests/upjf-hara.map
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
upjf-r UPJF-UTF16-H HaranoAjiMincho-Regular.otf
upjf-g UPJF-UTF16-H HaranoAjiGothic-Regular.otf
upjf-g UPJF-UTF16-H HaranoAjiGothic-Normal.otf
upjf-c Identity-H HaranoAjiMincho-Regular.otf
upjv-r UPJF-UTF16-V HaranoAjiMincho-Regular.otf
upjv-g UPJF-UTF16-V HaranoAjiGothic-Regular.otf
upjv-g UPJF-UTF16-V HaranoAjiGothic-Normal.otf
upjv-c Identity-V HaranoAjiMincho-Regular.otf

%upjf-r UniJIS-UTF16-H !Ryumin-Light
Expand Down
4 changes: 2 additions & 2 deletions source/texk/dvipdfm-x/tests/upjf-ipa.map
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
upjf-r unicode ipamjm.ttf
upjf-g unicode HaranoAjiGothic-Regular.otf
upjf-g unicode HaranoAjiGothic-Normal.otf
upjf-c Identity-H HaranoAjiMincho-Regular.otf
upjf-hu unicode ipamjm.ttf
upjf-hi Identity-H ipamjm.ttf
upjv-r unicode ipamjm.ttf -w 1
upjv-g unicode HaranoAjiGothic-Regular.otf -w 1
upjv-g unicode HaranoAjiGothic-Normal.otf -w 1
upjv-c Identity-V HaranoAjiMincho-Regular.otf
upjv-hu unicode ipamjm.ttf -w 1
upjv-hi Identity-V ipamjm.ttf
Expand Down
4 changes: 2 additions & 2 deletions source/texk/dvipdfm-x/tests/upjf-noto.map
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
upjf-r unicode HaranoAjiMincho-Regular.otf
upjf-g unicode HaranoAjiGothic-Regular.otf
upjf-g unicode HaranoAjiGothic-Normal.otf
upjf-c Identity-H HaranoAjiMincho-Regular.otf
upjf-hu unicode NotoSerifHentaigana-Regular.ttf
upjf-hi Identity-H NotoSerifHentaigana-Regular.ttf
upjv-r unicode HaranoAjiMincho-Regular.otf -w 1
upjv-g unicode HaranoAjiGothic-Regular.otf -w 1
upjv-g unicode HaranoAjiGothic-Normal.otf -w 1
upjv-c Identity-V HaranoAjiMincho-Regular.otf
upjv-hu unicode NotoSerifHentaigana-Regular.ttf -w 1
upjv-hi Identity-V NotoSerifHentaigana-Regular.ttf
Expand Down
4 changes: 2 additions & 2 deletions source/texk/dvipdfm-x/tests/upjf.map
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
%upjf-r UniJIS-UTF16-H HaranoAjiMincho-Regular.otf
%upjf-g UniJIS-UTF16-H HaranoAjiGothic-Regular.otf
%upjf-g UniJIS-UTF16-H HaranoAjiGothic-Normal.otf
%upjf-c Identity-H HaranoAjiMincho-Regular.otf
%upjv-r UniJIS-UTF16-V HaranoAjiMincho-Regular.otf
%upjv-g UniJIS-UTF16-V HaranoAjiGothic-Regular.otf
%upjv-g UniJIS-UTF16-V HaranoAjiGothic-Normal.otf
%upjv-c Identity-V HaranoAjiMincho-Regular.otf

%upjf-r UniJIS-UTF16-H !Ryumin-Light
Expand Down
4 changes: 2 additions & 2 deletions source/texk/dvipdfm-x/tests/upjf.tex
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

% for dvipdfmx
%\AtBeginDvi{\special{pdf:mapline upjf-r UniJIS-UTF16-H HaranoAjiMincho-Regular.otf}}
%\AtBeginDvi{\special{pdf:mapline upjf-g UniJIS-UTF16-H HaranoAjiGothic-Regular.otf}}
%\AtBeginDvi{\special{pdf:mapline upjf-g UniJIS-UTF16-H HaranoAjiGothic-Normal.otf}}
%\AtBeginDvi{\special{pdf:mapline upjv-r UniJIS-UTF16-V HaranoAjiMincho-Regular.otf}}
%\AtBeginDvi{\special{pdf:mapline upjv-g UniJIS-UTF16-V HaranoAjiGothic-Regular.otf}}
%\AtBeginDvi{\special{pdf:mapline upjv-g UniJIS-UTF16-V HaranoAjiGothic-Normal.otf}}
%\AtBeginDvi{\special{pdf:mapline upjf-r UniJIS-UTF16-H !Ryumin-Light}}
%\AtBeginDvi{\special{pdf:mapline upjf-g UniJIS-UTF16-H !GothicBBB-Medium}}
%\AtBeginDvi{\special{pdf:mapline upjv-r UniJIS-UTF16-V !Ryumin-Light}}
Expand Down
2 changes: 1 addition & 1 deletion source/texk/dvipsk/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ DISTCLEANFILES += beginfontk1.ps
EXTRA_DIST += testdata/eepic-nan.dvi testdata/eepic-nan.tex
DISTCLEANFILES += eepic-nan.ps
## pfbincl.test
EXTRA_DIST += testdata/pfbincl.eps testdata/pfbincl.tex testdata/pfbincl.xdv testdata/pfbincl.xps
EXTRA_DIST += testdata/pfbincl.eps testdata/pfbincl.tex testdata/pfbincl.xdv testdata/pfbincl.xps
DISTCLEANFILES += pfbincl.ps
## quotecmd-test.pl
EXTRA_DIST += testdata/quotecmd.dvi testdata/quotecmd.tex
Expand Down
2 changes: 0 additions & 2 deletions source/texk/dvipsk/uptex-upjf2.test
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ TEXFONTS="./tmp001;$srcdir/testdata"
SOURCE_DATE_EPOCH=1588474800
export TEXFONTS SOURCE_DATE_EPOCH

rm -f upjf-g.ofm upjv-g.ofm upjf-r.ofm upjv-r.ofm

rc=0

test -d tmp001 || mkdir -p tmp001
Expand Down
4 changes: 3 additions & 1 deletion source/texk/web2c/euptexdir/euptex-prim.test
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ TEXFORMATS=.; export TEXFORMATS
rm -f eup-prim.*
$LN_S $srcdir/euptexdir/tests/eup-prim.tex ./eup-prim.tex

if test ! -f ./eup-basic.fmt; then
if test ! -f ./eup-basic.tex; then
cp $srcdir/tests/dump-basic.tex ./eup-basic.tex
fi
if test ! -f ./eup-basic.fmt; then
$_euptex -ini -etex eup-basic || exit 1
fi

Expand Down
5 changes: 5 additions & 0 deletions source/texk/web2c/omegaware/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2024-10-19 TANAKA Takuji <[email protected]>

* tests/inbmp.opl, tests/overbmp.{opl,ovp}:
Sync with omegafonts.

2023-08-26 Karl Berry <[email protected]>

* ligkern.test: protect against $rc being defined in the environment.
Expand Down
12 changes: 12 additions & 0 deletions source/texk/web2c/omegaware/tests/inbmp.opl
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,21 @@
(COMMENT OTHER SIZES ARE MULTIPLES OF DESIGNSIZE)
(CHECKSUM H AA6297E0)
(SEVENBITSAFEFLAG FALSE)
(CHARACTER H 304B
(CHARWD R 1.0)
)
(CHARACTER H 4E00
(CHARWD R 1.0)
)
(CHARACTER H 53F1
(CHARWD R 1.0)
)
(CHARACTER H 9038
(CHARWD R 1.0)
)
(CHARACTER H FA25
(CHARWD R 1.0)
)
(CHARACTER H FA6C
(CHARWD R 1.0)
)
6 changes: 6 additions & 0 deletions source/texk/web2c/omegaware/tests/overbmp.opl
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,9 @@
(CHARACTER H 20BB7
(CHARWD R 1.0)
)
(CHARACTER H 242EE
(CHARWD R 1.0)
)
(CHARACTER H 2F9DE
(CHARWD R 1.0)
)
14 changes: 14 additions & 0 deletions source/texk/web2c/omegaware/tests/overbmp.ovp
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,17 @@
(SETCHAR H 53F1)
)
)
(CHARACTER H 242EE
(CHARWD R 1.0)
(MAP
(SELECTFONT D 1)
(SETCHAR H 242EE)
)
)
(CHARACTER H 2F9DE
(CHARWD R 1.0)
(MAP
(SELECTFONT D 1)
(SETCHAR H 2F9DE)
)
)
15 changes: 15 additions & 0 deletions source/texk/web2c/synctexdir/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
2024-10-13 <[email protected]>

* synctex_record_node_kern: pass "kern" instead of "glue"
as SYNCTEX_TAG_MODEL and SYNCTEX_LINE_MODEL.
https://tug.org/pipermail/luatex/2024-September/008006.html

Forwarded by Luigi, confirmed by Jerome, committed by Karl.
Jerome adds:
This bug only affects engines for which kern node and glue
nodes do not have the same size, aka none.
The kern problem is well known for luatex since a long time but
it does not affect other engines. While this patch is necessary
to make the synctex code cleaner, it does not change anything
for the engines concerned by the code.

2024-04-14 TANAKA Takuji <[email protected]>

* am/synctex.am: Remove eptex.
Expand Down
10 changes: 5 additions & 5 deletions source/texk/web2c/synctexdir/synctex.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2008-2017 jerome DOT laurens AT u-bourgogne DOT fr
Copyright (c) 2008-2024 jerome DOT laurens AT u-bourgogne DOT fr
This file is part of the SyncTeX package.
Expand Down Expand Up @@ -2060,14 +2060,14 @@ static inline void synctex_record_node_kern(halfword p)
# endif
if (SYNCTEX_SHOULD_COMPRESS_V) {
len = SYNCTEX_fprintf(SYNCTEX_FILE, "k%i,%i:%i,=:%i\n",
SYNCTEX_TAG_MODEL(p,glue),
SYNCTEX_LINE_MODEL(p,glue),
SYNCTEX_TAG_MODEL(p,kern),
SYNCTEX_LINE_MODEL(p,kern),
SYNCTEX_CTXT_CURH UNIT,
SYNCTEX_WIDTH(p) UNIT);
} else {
len = SYNCTEX_fprintf(SYNCTEX_FILE, "k%i,%i:%i,%i:%i\n",
SYNCTEX_TAG_MODEL(p,glue),
SYNCTEX_LINE_MODEL(p,glue),
SYNCTEX_TAG_MODEL(p,kern),
SYNCTEX_LINE_MODEL(p,kern),
SYNCTEX_CTXT_CURH UNIT,
SYNCTEX_CTXT_CURV UNIT,
SYNCTEX_WIDTH(p) UNIT);
Expand Down
4 changes: 3 additions & 1 deletion source/texk/web2c/uptexdir/uptex-prim.test
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ TEXFORMATS=.; export TEXFORMATS
rm -f up-prim.*
$LN_S $srcdir/uptexdir/tests/up-prim.tex ./up-prim.tex

if test ! -f ./up-basic.fmt; then
if test ! -f ./up-basic.tex; then
cp $srcdir/tests/dump-basic.tex ./up-basic.tex
fi
if test ! -f ./up-basic.fmt; then
$_uptex -ini up-basic || exit 1
fi

Expand Down

0 comments on commit 3851019

Please sign in to comment.