-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dvipdfm-x: add test for hentaigana with Noto Hentaigana font (#46)
- Loading branch information
Showing
14 changed files
with
6,089 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
#! /bin/sh -vx | ||
# $Id$ | ||
# Copyright 2020-2024 Japanese TeX Development Community <[email protected]> | ||
# You may freely use, modify and/or distribute this file. | ||
|
||
KpsDir=${KpsDir:-../kpathsea} | ||
BinDir=${BinDir:-.} | ||
ExeExt=${ExeExt:-} | ||
_kpsewhich=$KpsDir/kpsewhich$ExeExt | ||
_xdvipdfmx=$BinDir/xdvipdfmx$ExeExt | ||
|
||
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" | ||
SOURCE_DATE_EPOCH=1588474800 | ||
export TEXMFCNF TFMFONTS T1FONTS TEXFONTMAPS DVIPDFMXINPUTS TEXPICTS TEXFONTS SOURCE_DATE_EPOCH | ||
|
||
failed= | ||
|
||
##### 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 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 | ||
|
||
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 \ | ||
&& $_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 \ | ||
|| failed="$failed dvipdfmx-upjf3-vf_full-noto" | ||
|
||
|
||
test -z "$failed" && exit 0 | ||
echo | ||
echo "failed tests:$failed" | ||
exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
upjf-r unicode HaranoAjiMincho-Regular.otf | ||
upjf-g unicode HaranoAjiGothic-Regular.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-c Identity-V HaranoAjiMincho-Regular.otf | ||
upjv-hu unicode NotoSerifHentaigana-Regular.ttf -w 1 | ||
upjv-hi Identity-V NotoSerifHentaigana-Regular.ttf | ||
|
||
ptmr8r 8r Times-Roman |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
% Copyright (C) 2020-2024 Japanese TeX Development Community | ||
% You may freely use, modify and/or distribute this file. | ||
|
||
\documentclass{ujarticle} | ||
%\usepackage[T1]{fontenc} | ||
%\usepackage{mathptmx} | ||
|
||
\begin{document} | ||
\pagestyle{empty} | ||
\font\upjf=upjf at 10pt | ||
\fbox{\hbox{\yoko | ||
\upjf あいうえおアイウエオ、☃~雪晴☀𠮟。生𛁛𛂦゙、う𛂁ぎ,𛂦𛂦゙𛂦゚.ABC xyz. | ||
}} | ||
|
||
\tbaselineshift0.3zh | ||
\font\upjv=upjv at 10pt | ||
\fbox{\hbox{\tate | ||
\upjv あいうえお、☃~雪晴☀𠮟。生𛁛𛂦゙、う𛂁ぎ,𛂦𛂦゙𛂦゚.ABC xyz. | ||
}} | ||
\end{document} | ||
|
Binary file not shown.
Oops, something went wrong.