From f0b402b2fa350c9c39a72771d21ecb0bb2422249 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 6 Feb 2012 04:47:37 +0000 Subject: updmap-setup-kanji: change ouptut of status, move changelog to separate file git-svn-id: svn://tug.org/texlive/trunk@25314 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/extra/jfontmaps/ChangeLog | 47 ++++++++++++++++++ .../extra/jfontmaps/script/updmap-setup-kanji.pl | 58 +++++++++------------- 2 files changed, 70 insertions(+), 35 deletions(-) create mode 100644 Build/source/extra/jfontmaps/ChangeLog (limited to 'Build/source/extra') diff --git a/Build/source/extra/jfontmaps/ChangeLog b/Build/source/extra/jfontmaps/ChangeLog new file mode 100644 index 00000000000..8c415e51caa --- /dev/null +++ b/Build/source/extra/jfontmaps/ChangeLog @@ -0,0 +1,47 @@ +2012-02-06 Norbert Preining + + * scripts/updmap-setup-kanji.pl: change output of status to + only report family, change help text a bit + +2012-01-31 Norbert Preining + + * scripts/updmap-setup-kanji.pl: rewrite updmap-otf in perl + so that the script is usable under Windows + add command line options for help, dry-run, etc + support jis2004 via cmd line -jis2004 + +2012-01-27 Norbert Preining + + * scripts/updmap-otf.sh: support IPA and IPAex fonts, + improve and extended documentation + Version v0.9.2 + +2011-11-11 Norbert Preining + + * scripts/updmap-otf.sh: Version v0.9.1 + use kpsewhich for finding fonts + use updmap-sys --setoption kanjiEmbed to select the font family + use current names of map files + use different font name for Kozuka font, as used in the map file + get state from updmap.cfg, not from some state file + +Old changelog of updmap-otf/updmap-setup-kanji.pl: + +# 27 May 2006 by KOBAYASHI R. Taizo v0.9 +# use noEmbed.map instead of noEmbeddedFont.map +# 10 Jun 2005 by KOBAYASHI R. Taizo v0.8 +# modified to use updmap-sys in teTeX3 +# 07 Nov 2004 by KOBAYASHI R. Taizo v0.7 +# do not echo back the message of updmap. +# 17 Oct 2004 by KOBAYASHI R. Taizo v0.6 +# set hiragino map file if nofont is installed and arg is auto. +# 04 Oct 2004 by KOBAYASHI R. Taizo v0.5 +# handl standby map files more strictly +# 20 Sep 2004 by KOBAYASHI R. Taizo v0.4 +# hand over current status to map file installer +# 19 Sep 2004 by KOBAYASHI R. Taizo v0.3 +# handl *-udvips.map in TEXMF/dvipdfm/config/otf/ +# 02 Mar 2004 by KOBAYASHI R. Taizo v0.2 +# added noFont-udvips.map +# 28 Feb 2004 by KOBAYASHI R. Taizo v0.1 + diff --git a/Build/source/extra/jfontmaps/script/updmap-setup-kanji.pl b/Build/source/extra/jfontmaps/script/updmap-setup-kanji.pl index d15df7a1310..ebd7897263b 100755 --- a/Build/source/extra/jfontmaps/script/updmap-setup-kanji.pl +++ b/Build/source/extra/jfontmaps/script/updmap-setup-kanji.pl @@ -10,42 +10,16 @@ # For development see # http://www.tug.org/svn/texlive/trunk/Build/source/extra/jfontmaps/ # -# 31 Jan 2012 -# rewrite in Perl, so that the script is usable under Windows -# add command line options for help, dry-run, etc -# support jis2004 via cmd line -jis2004 -# 27 Jan 2012 by PREINING Norbert v0.9.2 -# support IPA and IPAex fonts -# improve and extended documentation -# 11 Nov 2011 by PREINING Norbert v0.9.1 -# use kpsewhich for finding fonts -# use updmap-sys --setoption kanjiEmbed to select the font family -# use current names of map files -# use different font name for Kozuka font, as used in the map file -# get state from updmap.cfg, not from some state file -# 27 May 2006 by KOBAYASHI R. Taizo v0.9 -# use noEmbed.map instead of noEmbeddedFont.map -# 10 Jun 2005 by KOBAYASHI R. Taizo v0.8 -# modified to use updmap-sys in teTeX3 -# 07 Nov 2004 by KOBAYASHI R. Taizo v0.7 -# do not echo back the message of updmap. -# 17 Oct 2004 by KOBAYASHI R. Taizo v0.6 -# set hiragino map file if nofont is installed and arg is auto. -# 04 Oct 2004 by KOBAYASHI R. Taizo v0.5 -# handl standby map files more strictly -# 20 Sep 2004 by KOBAYASHI R. Taizo v0.4 -# hand over current status to map file installer -# 19 Sep 2004 by KOBAYASHI R. Taizo v0.3 -# handl *-udvips.map in TEXMF/dvipdfm/config/otf/ -# 02 Mar 2004 by KOBAYASHI R. Taizo v0.2 -# added noFont-udvips.map -# 28 Feb 2004 by KOBAYASHI R. Taizo v0.1 +# For a changelog see +# http://www.tug.org/svn/texlive/trunk/Build/source/extra/jfontmaps/ChangeLog +# $^W = 1; use Getopt::Long qw(:config no_autoabbrev ignore_case_always); use strict; my $prg = "updmap-setup-kanji"; +my $vers = "0.9.2dev"; my $version = '$Id$'; my $updmap_real = "updmap-sys"; @@ -88,7 +62,8 @@ my %available; main(@ARGV); sub version { - my $ret = sprintf "%s (perl) version %s\n", $prg, $version; + my $ret = sprintf "%s version %s\n(svn id: %s)\n", + $prg, $vers, $version; return $ret; } @@ -99,13 +74,26 @@ sub Usage { This script searches for some of the most common fonts for embedding into pdfs by dvipdfmx. + In addition it allows to set up arbitrary font families + to be embedded into the generated pdf files, as long + as at least the map file otf-.map is present. + Other map files that will be used if available are + + ptex-.map + uptex-.map + otf-up-.map + + Please see the documentation of updmap for details (updmap --help). + Usage: $prg {|auto|nofont|status} - embed fonts as defined by the map file otf-.map - if it exists. + embed an arbitrary font family , at least the + map file otf-.map has to be available. auto: embed one of the following supported font families automatically: hiragino, morisawa, kozuka, ipaex, ipa + and fall back to not embedding any font if none of them + is available nofont: embed no fonts (and rely on system fonts when displaying pdfs) If your system does not have any of the supported font families as specified above, this target is selected @@ -161,7 +149,7 @@ sub GetStatus { } if (check_mapfile("otf-$STATUS.map")) { - print "CURRENT map file : otf-$STATUS.map\n"; + print "CURRENT family : $STATUS\n"; } else { print "WARNING: Currently selected map file cannot be found: otf-$STATUS.map\n"; } @@ -171,7 +159,7 @@ sub GetStatus { next if ($MAPFILE eq "otf-$STATUS.map"); if (check_mapfile($MAPFILE)) { if ($available{$k}) { - print "Standby map file : $MAPFILE\n"; + print "Standby family : $k\n"; } } } -- cgit v1.2.3