diff options
author | Norbert Preining <preining@logic.at> | 2015-05-06 04:50:06 +0000 |
---|---|---|
committer | Norbert Preining <preining@logic.at> | 2015-05-06 04:50:06 +0000 |
commit | 48c34101adeb05a73f393f56f7fd9bef07c56c73 (patch) | |
tree | 1785d09140acade2744fcb560b3cbbfd4821405d /Master/texmf-dist/doc/fonts | |
parent | c22fbaec83036ea6309c5b96f882d3eb073b10ab (diff) |
add new script cjk-gs-integrate (uploaded to CTAN today)
git-svn-id: svn://tug.org/texlive/trunk@37223 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/fonts')
18 files changed, 1342 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/fonts/cjk-gs-integrate/ChangeLog b/Master/texmf-dist/doc/fonts/cjk-gs-integrate/ChangeLog new file mode 100644 index 00000000000..1bd7f43821f --- /dev/null +++ b/Master/texmf-dist/doc/fonts/cjk-gs-integrate/ChangeLog @@ -0,0 +1,248 @@ +2015-05-06 Norbert Preining <norbert@preining.info> + + * Release 20150506.0 (HEAD, master) [24db8e7] + +2015-05-06 Norbert Preining <norbert@preining.info> + + * add a release script [593eb64] + +2015-05-06 Norbert Preining <norbert@preining.info> + + * genrated md and help output from the same source [32c57ed] + +2015-05-06 Norbert Preining <norbert@preining.info> + + * add /Library/Fonts/Microsoft to search path, add --link-texmflocal option (origin/master, origin/HEAD) [fc80300] + +2015-05-06 Norbert Preining <norbert@preining.info> + + * provide family like aliases [32a827a] + +2015-05-06 Norbert Preining <norbert@preining.info> + + * remove provides for two imaginary fonts ;-) [f55f662] + +2015-05-06 Norbert Preining <norbert@preining.info> + + * add more Kozuka fonts (not used in jfontmaps) [32d46e9] + +2015-05-06 Norbert Preining <norbert@preining.info> + + * make gulim provide HyGoThic-Medium in case Dotum is not available [b41adbb] + +2015-05-06 Norbert Preining <norbert@preining.info> + + * STKaiti-Adobe-CNS1 update from Bruno [40ad49f] + +2015-05-06 Norbert Preining <norbert@preining.info> + + * add MidashiGo(Pro) provides, fix FutoMin provides for IPA [a173ce6] + +2015-04-24 Norbert Preining <norbert@preining.info> + + * make link checking more resilient to errors [fa083ce] + +2015-04-24 Norbert Preining <norbert@preining.info> + + * terminate immediately on windows, add some TODOs [8a12b5a] + +2015-04-24 Norbert Preining <norbert@preining.info> + + * adjust prefs, add warning when provide priorities agree [c1fffb1] + +2015-04-24 Norbert Preining <norbert@preining.info> + + * add more fonts from Microsoft 2015 for Apple [d9348d4] + +2015-04-24 Norbert Preining <norbert@preining.info> + + * add --list-all-aliases command [c040122] + +2015-04-23 Norbert Preining <norbert@preining.info> + + * add --force option [e4d9ce5] + +2015-04-21 Norbert Preining <norbert@preining.info> + + * add decomposed form filenames for HFS [28c79ea] + +2015-04-21 Norbert Preining <norbert@preining.info> + + * add support for reading files from file list, fix some fonts [a6a4c34] + +2015-04-21 Norbert Preining <norbert@preining.info> + + * update README.md [3d5090f] + +2015-04-21 Norbert Preining <norbert@preining.info> + + * lots of changes, automated testing [8c73fa0] + +2015-04-21 Norbert Preining <norbert@preining.info> + + * order alias output [66bbe4a] + +2015-04-21 Norbert Preining <norbert@preining.info> + + * really fix Morisawa fonts [21be97b] + +2015-04-21 Norbert Preining <norbert@preining.info> + + * make morisawa fonts work [9462210] + +2015-04-21 Norbert Preining <norbert@preining.info> + + * add Gulim fonts for HYRGoThic-Medium [1acf5f3] + +2015-04-20 Norbert Preining <norbert@preining.info> + + * remove the strange alias with extra - at the end [5105987] + +2015-04-20 Norbert Preining <norbert@preining.info> + + * add ~/Library/Fonts and /Network/Library/Fonts on unix/mac add alas for HYRGoThic-Medium [7c8f87f] + +2015-04-20 Norbert Preining <norbert@preining.info> + + * link ttf fonts *not* into Font dir, but into CIDFSubst [513adae] + +2015-04-20 Norbert Preining <norbert@preining.info> + + * first step in Morisawa support, add PSName to font database [ef59d24] + +2015-04-20 Norbert Preining <norbert@preining.info> + + * provide more Foobar- font names for GhostScript [7288e8c] + +2015-04-20 Norbert Preining <norbert@preining.info> + + * sort alias names, remove last Std alias [2d47a81] + +2015-04-20 Norbert Preining <norbert@preining.info> + + * rank Adobe CK fonts higher, fix list aliases ouput [0d4b693] + +2015-04-20 Norbert Preining <norbert@preining.info> + + * add priority to output of aliases [cb5b296] + +2015-04-19 Norbert Preining <norbert@preining.info> + + * list aliases separated in categories [751a7ee] + +2015-04-19 Norbert Preining <norbert@preining.info> + + * add entries for Adobe's CK fonts [8c9fb77] + +2015-04-19 Norbert Preining <norbert@preining.info> + + * add more strange provides ... [6567c15] + +2015-04-19 Norbert Preining <norbert@preining.info> + + * add more aliases after dicsussion with Bruno [e1d089c] + +2015-04-16 Norbert Preining <norbert@preining.info> + + * formatting [2f07c70] + +2015-04-16 Norbert Preining <norbert@preining.info> + + * README.md and help output editing [ffd1988] + +2015-04-16 Norbert Preining <norbert@preining.info> + + * update README.md [b6667d5] + +2015-04-16 Norbert Preining <norbert@preining.info> + + * lots of updates, in particular ttf linking and user aliases [060376a] + +2015-04-14 Norbert Preining <norbert@preining.info> + + * priorities for file names, unify priority writing [1d2727f] + +2015-04-13 Norbert Preining <norbert@preining.info> + + * remove font-definitions.txt, always outdated [b532745] + +2015-04-13 Norbert Preining <norbert@preining.info> + + * add more alias for Korean [c610bb8] + +2015-04-13 Norbert Preining <norbert@preining.info> + + * add TODO, gitingore, and some tests [8f4de68] + +2015-04-13 Norbert Preining <norbert@preining.info> + + * fixes for Korean [287b64d] + +2015-04-11 Norbert Preining <norbert@preining.info> + + * fix subfonts in ttcs, add more fonts for Korea (not working) [243b61e] + +2015-04-08 Norbert Preining <norbert@preining.info> + + * more name fixes from Bruno [33fb493] + +2015-04-08 Norbert Preining <norbert@preining.info> + + * update font-definitions file [fb1135a] + +2015-04-08 Norbert Preining <norbert@preining.info> + + * Korean support (hopefully), fix some name errors [1bb8aed] + +2015-04-08 Norbert Preining <norbert@preining.info> + + * add some provides for TC SC and Korean, and fixes, thanks Bruno [5b754be] + +2015-04-08 Norbert Preining <norbert@preining.info> + + * fix spaces in file names [d7b1ab8] + +2015-04-08 Norbert Preining <norbert@preining.info> + + * fix Dumper usage [05e5789] + +2015-04-08 Norbert Preining <norbert@preining.info> + + * load Data::Dumper only when debugging [a839074] + +2015-04-08 Norbert Preining <norbert@preining.info> + + * add font-definitions for ease of access, but not really used [35302c0] + +2015-04-08 Norbert Preining <norbert@preining.info> + + * fully working script including aliases [283d64a] + +2015-04-07 Norbert Preining <norbert@preining.info> + + * more or less fully functional [88a478b] + +2015-04-07 Norbert Preining <norbert@preining.info> + + * fix typo in cjk-font-definitons [eed0614] + +2015-04-07 Norbert Preining <norbert@preining.info> + + * bummer [d111a8d] + +2015-04-07 Norbert Preining <norbert@preining.info> + + * fix warning for missing font defs [4130ced] + +2015-04-07 Norbert Preining <norbert@preining.info> + + * don't bail out if gs is not found, for now [b625240] + +2015-04-07 Norbert Preining <norbert@preining.info> + + * more work [5b4489d] + +2015-04-07 Norbert Preining <norbert@preining.info> + + * first commit [8011270] + diff --git a/Master/texmf-dist/doc/fonts/cjk-gs-integrate/README.md b/Master/texmf-dist/doc/fonts/cjk-gs-integrate/README.md new file mode 100644 index 00000000000..b460467c14a --- /dev/null +++ b/Master/texmf-dist/doc/fonts/cjk-gs-integrate/README.md @@ -0,0 +1,170 @@ +Configuring GhostScript for CJK CID/TTF fonts +============================================= + +This script searches a list of directories for CJK fonts, and makes +them available to an installed GhostScript. In the simplest case with +sufficient privileges, a run without arguments should effect in a +complete setup of GhostScript. + +Usage +----- + +````` +[perl] cjk-gs-integrate[.pl] [OPTIONS] +````` + +#### Options #### + +````` + -n, --dry-run do not actually output anything + -f, --fontdef FILE specify alternate set of font definitions, if not + given, the built-in set is used + -o, --output DIR specifies the base output dir, if not provided, + the Resource directory of an install GhostScript + is searched and used. + -a, --alias LL=RR defines an alias, or overrides a given alias + illegal if LL is provided by a real font, or + RR is neither available as real font or alias + can be given multiple times + --filelist FILE read list of available font files from FILE + instead of searching with kpathsea + --link-texmflocal link fonts into + TEXMFLOCAL/fonts/opentype/cjk-gs-integrate + and + TEXMFLOCAL/fonts/truetype/cjk-gs-integrate + --machine-readable output of --list-aliases is machine readable + --force do not bail out if linked fonts already exist + -q, --quiet be less verbose + -d, --debug output debug information, can be given multiple times + -v, --version outputs only the version information + -h, --help this help +````` + +#### Command like options #### + +````` + --only-aliases do only regenerate the cidfmap.alias file instead of all + --list-aliases lists the available aliases and their options, with the + selected option on top + --list-all-aliases list all possible aliases without searching for actually + present files + --list-fonts lists the fonts found on the system + --info combines the above two information +````` + +Operation +--------- + +For each found TrueType (TTF) font it creates a cidfmap entry in + + <Resource>/Init/cidfmap.local + +and links the font to + + <Resource>/CIDFSubst/ + +For each CID font it creates a snippet in + + <Resource>/Font/ + +and links the font to + + <Resource>/CIDFont/ + +The `<Resource>` dir is either given by `-o`/`--output`, or otherwise searched +from an installed GhostScript (binary name is assumed to be 'gs'). + +Aliases are added to + + <Resource>/Init/cidfmap.aliases + +Finally, it tries to add runlib calls to + + <Resource>/Init/cidfmap + +to load the cidfmap.local and cidfmap.aliases. + +How and which directories are searched +-------------------------------------- + +Search is done using the kpathsea library, in particular using kpsewhich +program. By default the following directories are searched: + - all TEXMF trees + - `/Library/Fonts`, `/Library/Fonts/Microsoft`, `/System/Library/Fonts`, + `/Network/Library/Fonts`, and `~/Library/Fonts` (all if available) + - `c:/windows/fonts` (on Windows) + - the directories in `OSFONTDIR` environment variable + +In case you want to add some directories to the search path, adapt the +`OSFONTDIR` environment variable accordingly: Example: + +````` + OSFONTDIR="/usr/local/share/fonts/truetype//:/usr/local/share/fonts/opentype//" $prg +````` + +will result in fonts found in the above two given directories to be +searched in addition. + +Output files +------------ + +If no output option is given, the program searches for a GhostScript +interpreter 'gs' and determines its Resource directory. This might +fail, in which case one need to pass the output directory manually. + +Since the program adds files and link to this directory, sufficient +permissions are necessary. + +Aliases +------- + +Aliases are managed via the Provides values in the font database. +At the moment entries for the basic font names for CJK fonts +are added: + +Japanese: + + Ryumin-Light GothicBBB-Medium FutoMinA101-Bold FutoGoB101-Bold Jun101-Light + +Korean: + + HYGoThic-Medium HYSMyeongJo-Medium + +Simplified Chinese: + + STSong-Light STHeiti-Regular STHeiti-Light STKaiti-Regular + +Traditional Chinese: + + MSung-Light MHei-Medium MKai-Medium + +In addition, we also includes provide entries for the OTF Morisawa names: + RyuminPro-Light GothicBBBPro-Medium FutoMinA101Pro-Bold + FutoGoB101Pro-Bold Jun101Pro-Light + +The order is determined by the Provides setting in the font database, +and for the Japanese fonts it is currently: + Morisawa Pr6, Morisawa, Hiragino ProN, Hiragino, + Yu OSX, Yu Win, Kozuka ProN, Kozuka, IPAex, IPA + +That is, the first font found in this order will be used to provide the +alias if necessary. + +#### Overriding aliases #### + +Using the command line option `--alias LL=RR` one can add arbitrary aliases, +or override ones selected by the program. For this to work the following +requirements of `LL` and `RR` must be fulfilled: + * `LL` is not provided by a real font + * `RR` is available either as real font, or as alias (indirect alias) + +Authors, Contributors, and Copyright +------------------------------------ + +The script and its documentation was written by Norbert Preining, based +on research and work by Yusuke Kuroki, Bruno Voisin, Munehiro Yamamoto +and the TeX Q&A wiki page. + +The script is licensed under GNU General Public License Version 3 or later. +The contained font data is not copyrightable. + diff --git a/Master/texmf-dist/doc/fonts/cjk-gs-integrate/macosx-filelist b/Master/texmf-dist/doc/fonts/cjk-gs-integrate/macosx-filelist new file mode 100644 index 00000000000..1dcba5e404e --- /dev/null +++ b/Master/texmf-dist/doc/fonts/cjk-gs-integrate/macosx-filelist @@ -0,0 +1,45 @@ +/Library/Fonts/Yu Mincho Medium.otf +/Library/Fonts/Yu Mincho Demibold.otf +/Library/Fonts/Yu Gothic Medium.otf +/Library/Fonts/Yu Gothic Bold.otf +/System/Library/Fonts/ヒラギノ明朝 ProN W6.otf +/System/Library/Fonts/ヒラギノ明朝 ProN W3.otf +/Library/Fonts/ヒラギノ明朝 Pro W6.otf +/Library/Fonts/ヒラギノ明朝 Pro W3.otf +/Library/Fonts/ヒラギノ丸ゴ ProN W4.otf +/Library/Fonts/ヒラギノ丸ゴ Pro W4.otf +/Library/Fonts/ヒラギノ角ゴ StdN W8.otf +/Library/Fonts/ヒラギノ角ゴ Std W8.otf +/System/Library/Fonts/ヒラギノ角ゴ ProN W6.otf +/System/Library/Fonts/ヒラギノ角ゴ ProN W3.otf +/Library/Fonts/ヒラギノ角ゴ Pro W6.otf +/Library/Fonts/ヒラギノ角ゴ Pro W3.otf +/Library/Fonts/Hiragino Sans GB W6.otf +/Library/Fonts/Hiragino Sans GB W3.otf +/Library/Fonts/AppleSDGothicNeo-UltraLight.otf +/Library/Fonts/AppleSDGothicNeo-Thin.otf +/Library/Fonts/AppleSDGothicNeo-SemiBold.otf +/System/Library/Fonts/AppleSDGothicNeo-Regular.otf +/Library/Fonts/AppleSDGothicNeo-Medium.otf +/Library/Fonts/AppleSDGothicNeo-Light.otf +/Library/Fonts/AppleSDGothicNeo-Heavy.otf +/Library/Fonts/AppleSDGothicNeo-ExtraBold.otf +/System/Library/Fonts/AppleSDGothicNeo-Bold.otf +/Library/Fonts/华文细黑.ttf +/Library/Fonts/华文黑体.ttf +/System/Library/Fonts/STHeiti Medium.ttc +/System/Library/Fonts/STHeiti Light.ttc +/Library/Fonts/华文仿宋.ttf +/Library/Fonts/Songti.ttc +/Library/Fonts/NanumScript.ttc +/Library/Fonts/NanumMyeongjo.ttc +/Library/Fonts/NanumGothic.ttc +/Library/Fonts/儷宋 Pro.ttf +/Library/Fonts/儷黑 Pro.ttf +/Library/Fonts/Kaiti.ttc +/Library/TeX/Root/texmf-dist/fonts/truetype/public/ipaex/ipam.ttf +/Library/TeX/Root/texmf-dist/fonts/truetype/public/ipaex/ipag.ttf +/Library/TeX/Root/texmf-dist/fonts/truetype/public/ipaex/ipaexm.ttf +/Library/TeX/Root/texmf-dist/fonts/truetype/public/ipaex/ipaexg.ttf +/Library/Fonts/AppleMyungjo.ttf +/Library/Fonts/AppleGothic.ttf diff --git a/Master/texmf-dist/doc/fonts/cjk-gs-integrate/tests/Makefile b/Master/texmf-dist/doc/fonts/cjk-gs-integrate/tests/Makefile new file mode 100644 index 00000000000..0a4847f36c6 --- /dev/null +++ b/Master/texmf-dist/doc/fonts/cjk-gs-integrate/tests/Makefile @@ -0,0 +1,12 @@ + + +all = gb cns korea japan + +$(all) all: + bash test-runner.sh $@ + +clean: + rm -f *.log *.dvi *.aux + +realclean: clean + rm -f *.pdf *.ps diff --git a/Master/texmf-dist/doc/fonts/cjk-gs-integrate/tests/adobe-CNS1.tex b/Master/texmf-dist/doc/fonts/cjk-gs-integrate/tests/adobe-CNS1.tex new file mode 100644 index 00000000000..6f8c9653acb --- /dev/null +++ b/Master/texmf-dist/doc/fonts/cjk-gs-integrate/tests/adobe-CNS1.tex @@ -0,0 +1,40 @@ +\ifx\dviware\undefined \def\dviware{dvipdfmx}\fi
+\documentclass[\dviware]{jsarticle}
+\usepackage{cidtable}
+
+\begin{document}
+\begin{center}
+Adobe-CNS1 Glyphs\\
+ \begin{tabular}{ll} \hline
+ Supplement & Color \\ \hline
+ 0 & \colorsample{0} \\
+ 1 & \colorsample{1} \\
+ 2 & \colorsample{2} \\
+ 3 & \colorsample{3} \\
+ 4 & \colorsample{4} \\
+ 5 & \colorsample{5} \\
+ 6 & \colorsample{6} \\ \hline
+ \end{tabular}
+\end{center}
+
+\newcount\code\global\code=0
+\newcount\supplement\global\supplement=0
+
+\noindent
+\foreach \row in {0,...,957}{%
+\hbox to 7ex{\hfill\number\code}\quad
+\foreach \col in {0,...,19}{%
+\ifcase\supplement%
+\ifnum\code>14098 \global\advance\supplement by 1\fi\or
+\ifnum\code>17407 \global\advance\supplement by 1\fi\or
+\ifnum\code>17600 \global\advance\supplement by 1\fi\or
+\ifnum\code>18845 \global\advance\supplement by 1\fi\or
+\ifnum\code>18964 \global\advance\supplement by 1\fi\or
+\ifnum\code>19087 \global\advance\supplement by 1\fi\fi
+\ifnum\code < 19156
+ \colorbox{\colorname{\supplement}}{\CIDT{\code}}\
+\fi
+\global\advance\code by 1
+}\\
+}
+\end{document}
diff --git a/Master/texmf-dist/doc/fonts/cjk-gs-integrate/tests/adobe-GB1-012.tex b/Master/texmf-dist/doc/fonts/cjk-gs-integrate/tests/adobe-GB1-012.tex new file mode 100644 index 00000000000..1126a53364b --- /dev/null +++ b/Master/texmf-dist/doc/fonts/cjk-gs-integrate/tests/adobe-GB1-012.tex @@ -0,0 +1,38 @@ +\ifx\dviware\undefined \def\dviware{dvipdfmx}\fi
+\documentclass[\dviware]{jsarticle}
+\usepackage{cidtable}
+
+\begin{document}
+\begin{center}
+Adobe-GB1 Glyphs\\
+ \begin{tabular}{ll} \hline
+ Supplement & Color \\ \hline
+ 0 & \colorsample{0} \\
+ 1 & \colorsample{1} \\
+ 2 & \colorsample{2} \\
+ 3 & \colorsample{3} \\
+ 4 & \colorsample{4} \\
+ 5 & \colorsample{5} \\ \hline
+ \end{tabular}
+\end{center}
+
+\newcount\code\global\code=0
+\newcount\supplement\global\supplement=0
+
+\noindent
+\foreach \row in {0,...,1514}{%
+\hbox to 7ex{\hfill\number\code}\quad
+\foreach \col in {0,...,19}{%
+\ifcase\supplement%
+\ifnum\code>7716 \global\advance\supplement by 1\fi\or
+\ifnum\code>9896 \global\advance\supplement by 1\fi\or
+\ifnum\code>22126 \global\advance\supplement by 1\fi\or
+\ifnum\code>22352 \global\advance\supplement by 1\fi\or
+\ifnum\code>29063 \global\advance\supplement by 1\fi\fi
+\ifnum\code < 22353
+ \colorbox{\colorname{\supplement}}{\CIDC{\code}}\
+\fi
+\global\advance\code by 1
+}\\
+}
+\end{document}
diff --git a/Master/texmf-dist/doc/fonts/cjk-gs-integrate/tests/adobe-GB1-345.tex b/Master/texmf-dist/doc/fonts/cjk-gs-integrate/tests/adobe-GB1-345.tex new file mode 100644 index 00000000000..05f0d11a331 --- /dev/null +++ b/Master/texmf-dist/doc/fonts/cjk-gs-integrate/tests/adobe-GB1-345.tex @@ -0,0 +1,39 @@ +\ifx\dviware\undefined \def\dviware{dvipdfmx}\fi
+\documentclass[\dviware]{jsarticle}
+\usepackage{cidtable}
+
+\begin{document}
+\begin{center}
+Adobe-GB1 Glyphs\\
+ \begin{tabular}{ll} \hline
+ Supplement & Color \\ \hline
+ 0 & \colorsample{0} \\
+ 1 & \colorsample{1} \\
+ 2 & \colorsample{2} \\
+ 3 & \colorsample{3} \\
+ 4 & \colorsample{4} \\
+ 5 & \colorsample{5} \\ \hline
+ \end{tabular}
+\end{center}
+
+\newcount\code\global\code=0
+\newcount\supplement\global\supplement=0
+
+\noindent
+\foreach \row in {0,...,1514}{%
+\hbox to 7ex{\hfill\number\code}\quad
+\foreach \col in {0,...,19}{%
+\ifcase\supplement%
+\ifnum\code>7716 \global\advance\supplement by 1\fi\or
+\ifnum\code>9896 \global\advance\supplement by 1\fi\or
+\ifnum\code>22126 \global\advance\supplement by 1\fi\or
+\ifnum\code>22352 \global\advance\supplement by 1\fi\or
+\ifnum\code>29063 \global\advance\supplement by 1\fi\fi
+\ifnum\code < 30284
+ \ifnum\code > 22126
+ \colorbox{\colorname{\supplement}}{\CIDC{\code}}\
+\fi\fi
+\global\advance\code by 1
+}\\
+}
+\end{document}
diff --git a/Master/texmf-dist/doc/fonts/cjk-gs-integrate/tests/adobe-GB1.tex b/Master/texmf-dist/doc/fonts/cjk-gs-integrate/tests/adobe-GB1.tex new file mode 100644 index 00000000000..fc519fd6e54 --- /dev/null +++ b/Master/texmf-dist/doc/fonts/cjk-gs-integrate/tests/adobe-GB1.tex @@ -0,0 +1,38 @@ +\ifx\dviware\undefined \def\dviware{dvipdfmx}\fi
+\documentclass[\dviware]{jsarticle}
+\usepackage{cidtable}
+
+\begin{document}
+\begin{center}
+Adobe-GB1 Glyphs\\
+ \begin{tabular}{ll} \hline
+ Supplement & Color \\ \hline
+ 0 & \colorsample{0} \\
+ 1 & \colorsample{1} \\
+ 2 & \colorsample{2} \\
+ 3 & \colorsample{3} \\
+ 4 & \colorsample{4} \\
+ 5 & \colorsample{5} \\ \hline
+ \end{tabular}
+\end{center}
+
+\newcount\code\global\code=0
+\newcount\supplement\global\supplement=0
+
+\noindent
+\foreach \row in {0,...,1514}{%
+\hbox to 7ex{\hfill\number\code}\quad
+\foreach \col in {0,...,19}{%
+\ifcase\supplement%
+\ifnum\code>7716 \global\advance\supplement by 1\fi\or
+\ifnum\code>9896 \global\advance\supplement by 1\fi\or
+\ifnum\code>22126 \global\advance\supplement by 1\fi\or
+\ifnum\code>22352 \global\advance\supplement by 1\fi\or
+\ifnum\code>29063 \global\advance\supplement by 1\fi\fi
+\ifnum\code < 30284
+ \colorbox{\colorname{\supplement}}{\CIDC{\code}}\
+\fi
+\global\advance\code by 1
+}\\
+}
+\end{document}
diff --git a/Master/texmf-dist/doc/fonts/cjk-gs-integrate/tests/adobe-Japan1.tex b/Master/texmf-dist/doc/fonts/cjk-gs-integrate/tests/adobe-Japan1.tex new file mode 100644 index 00000000000..05d51c9e3df --- /dev/null +++ b/Master/texmf-dist/doc/fonts/cjk-gs-integrate/tests/adobe-Japan1.tex @@ -0,0 +1,40 @@ +\ifx\dviware\undefined \def\dviware{dvipdfmx}\fi
+\documentclass[\dviware]{jsarticle}
+\usepackage{cidtable}
+
+\begin{document}
+\begin{center}
+Adobe-Japan1 Glyphs\\
+ \begin{tabular}{ll} \hline
+ Supplement & Color \\ \hline
+ 0 & \colorsample{0} \\
+ 1 & \colorsample{1} \\
+ 2 & \colorsample{2} \\
+ 3 & \colorsample{3} \\
+ 4 & \colorsample{4} \\
+ 5 & \colorsample{5} \\
+ 6 & \colorsample{6} \\ \hline
+ \end{tabular}
+\end{center}
+
+\newcount\code\global\code=0
+\newcount\supplement\global\supplement=0
+
+\noindent
+\foreach \row in {0,...,1152}{%
+\hbox to 7ex{\hfill\number\code}\quad
+\foreach \col in {0,...,19}{%
+\ifcase\supplement%
+\ifnum\code>8283 \global\advance\supplement by 1\fi\or
+\ifnum\code>8358 \global\advance\supplement by 1\fi\or
+\ifnum\code>8719 \global\advance\supplement by 1\fi\or
+\ifnum\code>9353 \global\advance\supplement by 1\fi\or
+\ifnum\code>15443 \global\advance\supplement by 1\fi\or
+\ifnum\code>20316 \global\advance\supplement by 1\fi\fi
+\ifnum\code < 23058
+ \colorbox{\colorname{\supplement}}{\CID{\code}}\
+\fi
+\global\advance\code by 1
+}\\
+}
+\end{document}
diff --git a/Master/texmf-dist/doc/fonts/cjk-gs-integrate/tests/adobe-Korea1.tex b/Master/texmf-dist/doc/fonts/cjk-gs-integrate/tests/adobe-Korea1.tex new file mode 100644 index 00000000000..a528daef869 --- /dev/null +++ b/Master/texmf-dist/doc/fonts/cjk-gs-integrate/tests/adobe-Korea1.tex @@ -0,0 +1,32 @@ +\ifx\dviware\undefined \def\dviware{dvipdfmx}\fi
+\documentclass[\dviware]{jsarticle}
+\usepackage{cidtable}
+
+\begin{document}
+\begin{center}
+Adobe-Korea1 Glyphs\\
+ \begin{tabular}{ll} \hline
+ Supplement & Color \\ \hline
+ 0 & \colorsample{0} \\
+ 1 & \colorsample{1} \\
+ 2 & \colorsample{2} \\ \hline
+ \end{tabular}
+\end{center}
+
+\newcount\code\global\code=0
+\newcount\supplement\global\supplement=0
+
+\noindent
+\foreach \row in {0,...,917}{%
+\hbox to 7ex{\hfill\number\code}\quad
+\foreach \col in {0,...,19}{%
+\ifcase\supplement%
+\ifnum\code>9332 \global\advance\supplement by 1\fi\or
+\ifnum\code>18154 \global\advance\supplement by 1\fi\fi
+\ifnum\code < 18352
+ \colorbox{\colorname{\supplement}}{\CIDK{\code}}\
+\fi
+\global\advance\code by 1
+}\\
+}
+\end{document}
diff --git a/Master/texmf-dist/doc/fonts/cjk-gs-integrate/tests/cidtable.sty b/Master/texmf-dist/doc/fonts/cjk-gs-integrate/tests/cidtable.sty new file mode 100644 index 00000000000..6d58d40cd64 --- /dev/null +++ b/Master/texmf-dist/doc/fonts/cjk-gs-integrate/tests/cidtable.sty @@ -0,0 +1,21 @@ +\usepackage[deluxe, expert, multi]{otf}
+\usepackage{pgffor}
+\usepackage{color}
+\setlength{\fboxsep}{0pt}
+%\setlength{\fboxrule}{0.2pt}
+\definecolor{UClightgray}{cmyk}{.15,.10,.10,0}
+\definecolor{UClightpink}{cmyk}{0,.25,.15,0}
+\definecolor{UClightyellowgreen}{cmyk}{.25,0,.80,0}
+\definecolor{UClightskyblue}{cmyk}{.30,0,0,0}
+\definecolor{UCbeige}{cmyk}{0,.25,.45,0}
+\definecolor{UClightgreen}{cmyk}{.45,0,.45,0}
+\definecolor{UCcream}{cmyk}{0,0,.40,0}
+\definecolor{UClightpurple}{cmyk}{.25,.30,0,0}
+
+\newcommand\colorname[1]{\ifcase#1%
+UClightpink\or
+UClightyellowgreen\or UClightskyblue\or UCbeige\or
+UClightgreen\or UCcream\or UClightpurple\fi}
+\newcommand{\colorsample}[1]{{\color{\colorname{#1}}\rule{10pt}{10pt}} \colorname{#1}}
+
+\endinput
diff --git a/Master/texmf-dist/doc/fonts/cjk-gs-integrate/tests/japanese-updmap-tests/do-tests b/Master/texmf-dist/doc/fonts/cjk-gs-integrate/tests/japanese-updmap-tests/do-tests new file mode 100644 index 00000000000..33b52d61630 --- /dev/null +++ b/Master/texmf-dist/doc/fonts/cjk-gs-integrate/tests/japanese-updmap-tests/do-tests @@ -0,0 +1,11 @@ + +PATH=~/tl/2014/bin/x86_64-linux/:$PATH +export PATH + +platex prn-variants.tex +for i in hiragino hiragino-pron kozuka-pr6n kozuka morisawa yu-win yu-osx ipa ipaex ; do + kanji-config-updmap-sys $i + dvips prn-variants.dvi -o prn-variants-$i.ps + ps2pdf prn-variants-$i.ps +done + diff --git a/Master/texmf-dist/doc/fonts/cjk-gs-integrate/tests/japanese-updmap-tests/prn-variants.tex b/Master/texmf-dist/doc/fonts/cjk-gs-integrate/tests/japanese-updmap-tests/prn-variants.tex new file mode 100755 index 00000000000..a1495a5b164 --- /dev/null +++ b/Master/texmf-dist/doc/fonts/cjk-gs-integrate/tests/japanese-updmap-tests/prn-variants.tex @@ -0,0 +1,12 @@ +\documentclass{jsarticle} +\usepackage[deluxe]{otf} + +\begin{document}\noindent +\begin{tabular}{ll} + Mincho & {いくつかの漢字の例です:葛芦辻逗飴薩晦茨祇巷卿鯖溢噌} \\ + Mincho bold & {\bfseries いくつかの漢字の例です:葛芦辻逗飴薩晦茨祇巷卿鯖溢噌} \\ + Gothic & {\gtfamily いくつかの漢字の例です:葛芦辻逗飴薩晦茨祇巷卿鯖溢噌} \\ + Gothic bold & {\gtfamily\bfseries いくつかの漢字の例です:葛芦辻逗飴薩晦茨祇巷卿鯖溢噌} \\ + Maru gothic & {\mgfamily いくつかの漢字の例です:葛芦辻逗飴薩晦茨祇巷卿鯖溢噌} +\end{tabular} +\end{document}
\ No newline at end of file diff --git a/Master/texmf-dist/doc/fonts/cjk-gs-integrate/tests/japanese-updmap-tests/report b/Master/texmf-dist/doc/fonts/cjk-gs-integrate/tests/japanese-updmap-tests/report new file mode 100644 index 00000000000..7568e267707 --- /dev/null +++ b/Master/texmf-dist/doc/fonts/cjk-gs-integrate/tests/japanese-updmap-tests/report @@ -0,0 +1,4 @@ +Yu-Win: + YuGothic-Regular-H not found + seems to be problematic + diff --git a/Master/texmf-dist/doc/fonts/cjk-gs-integrate/tests/otfcidsample.tex b/Master/texmf-dist/doc/fonts/cjk-gs-integrate/tests/otfcidsample.tex new file mode 100644 index 00000000000..e1a03ba5a98 --- /dev/null +++ b/Master/texmf-dist/doc/fonts/cjk-gs-integrate/tests/otfcidsample.tex @@ -0,0 +1,46 @@ +% -*- coding: utf-8-unix -*- +\documentclass{jsarticle} +\usepackage[deluxe,multi]{otf} +\newcommand{\sampleSC}{\UTFC{76F4}\UTFC{9AA8}} +\newcommand{\sampleTC}{\UTFT{76F4}\UTFT{9AA8}} +\newcommand{\sampleJ}{\UTF{76F4}\UTF{9AA8}} +\newcommand{\sampleK}{\UTFK{76F4}\UTFK{9AA8}} + +\begin{document}\noindent +\begin{center} + \begin{tabular}{lllll} + & SC & TC & J & K\\ + Serif + & {\sampleSC} + & %{\sampleTC} + & {\sampleJ} + & {\sampleK} + \\ + Serif bold + & %{\bfseries\sampleSC} + & %{\bfseries\sampleTC} + & {\bfseries\sampleJ} + & {\bfseries\sampleK} + \\ + Sans serif + & {\gtfamily\sampleSC} + & %{\gtfamily\sampleTC} + & {\gtfamily\sampleJ} + & {\gtfamily\sampleK} + \\ + Sans serif bold + & %{\gtfamily\bfseries\sampleSC} + & %{\gtfamily\bfseries\sampleTC} + & {\gtfamily\bfseries\sampleJ} + & {\gtfamily\bfseries\sampleK} + \\ + Sans serif variant + & %{\mgfamily\sampleSC} + & %{\mgfamily\sampleTC} + & {\mgfamily\sampleJ} + & {\mgfamily\sampleK} + \end{tabular} +\end{center} + +Note. SC: Simplified Chinese, TC: Traditional Chinese, J: Japanese, K: Korean. +\end{document} diff --git a/Master/texmf-dist/doc/fonts/cjk-gs-integrate/tests/test-runner.sh b/Master/texmf-dist/doc/fonts/cjk-gs-integrate/tests/test-runner.sh new file mode 100644 index 00000000000..2f903064cf5 --- /dev/null +++ b/Master/texmf-dist/doc/fonts/cjk-gs-integrate/tests/test-runner.sh @@ -0,0 +1,96 @@ +#! /bin/sh + + +do_gb() { +# simplified chinese uses STSong-Light +platex "\def\dviware{dvipdfmx}\input adobe-GB1-012.tex" && \ + dvipdfmx -o adobe-GB1-012.dvipdfmx.pdf adobe-GB1-012.dvi +platex "\def\dviware{dvips}\input adobe-GB1-012.tex" && \ + dvips adobe-GB1-012.dvi +platex "\def\dviware{dvipdfmx}\input adobe-GB1-345.tex" && \ + dvipdfmx -o adobe-GB1-345.dvipdfmx.pdf adobe-GB1-345.dvi +platex "\def\dviware{dvips}\input adobe-GB1-345.tex" && \ + dvips adobe-GB1-345.dvi + +for i in `perl ../cjk-gs-integrate.pl --list-aliases --machine-readable -q | grep ^STSong-Light: | awk -F: '{print$3}'`; do + perl ../cjk-gs-integrate.pl --only-aliases --alias STSong-Light=$i + echo ps2pdf adobe-GB1-012.ps -o "adobe-GB1-012-$i.pdf" + if ps2pdf adobe-GB1-012.ps "adobe-GB1-012-$i.pdf" > "adobe-GB1-012-$i.ps2pdf.log" 2>&1 ; then + echo "success GB1-012 $i" >> status + else + echo "failure GB1-012 $i" >> status + fi + echo ps2pdf adobe-GB1-345.ps -o "adobe-GB1-345-$i.pdf" + if ps2pdf adobe-GB1-345.ps "adobe-GB1-345-$i.pdf" > "adobe-GB1-345-$i.ps2pdf.log" 2>&1 ; then + echo "success GB1-345 $i" >> status + else + echo "failure GB1-345 $i" >> status + fi +done +} + + +do_cns() { +# traditional chinese uses MSung-Light +platex "\def\dviware{dvipdfmx}\input adobe-CNS1.tex" && \ + dvipdfmx -o adobe-CNS1.dvipdfmx.pdf adobe-CNS1.dvi +platex "\def\dviware{dvips}\input adobe-CNS1.tex" && \ + dvips adobe-CNS1.dvi +for i in `perl ../cjk-gs-integrate.pl --list-aliases --machine-readable -q | grep ^MSung-Light: | awk -F: '{print$3}'`; do + perl ../cjk-gs-integrate.pl --only-aliases --alias MSung-Light=$i + echo ps2pdf adobe-CNS1.ps -o "adobe-CNS1-$i.pdf" + if ps2pdf adobe-CNS1.ps "adobe-CNS1-$i.pdf" > "adobe-CNS1-$i.ps2pdf.log" 2>&1 ; then + echo "success CNS1 $i" >> status + else + echo "failure CNS1 $i" >> status + fi +done +} + +do_korea() { +# korean uses HYSMyeongJo-Medium +platex "\def\dviware{dvipdfmx}\input adobe-Korea1.tex" && \ + dvipdfmx -o adobe-Korea1.dvipdfmx.pdf adobe-Korea1.dvi +platex "\def\dviware{dvips}\input adobe-Korea1.tex" && \ + dvips adobe-Korea1.dvi +for i in `perl ../cjk-gs-integrate.pl --list-aliases --machine-readable -q | grep ^HYSMyeongJo-Medium: | awk -F: '{print$3}'`; do + perl ../cjk-gs-integrate.pl --only-aliases --alias HYSMyeongJo-Medium=$i + echo ps2pdf adobe-Korea1.ps -o "adobe-Korea1-$i.pdf" + if ps2pdf adobe-Korea1.ps "adobe-Korea1-$i.pdf" > "adobe-Korea1-$i.ps2pdf.log" 2>&1 ; then + echo "success Korea1 $i" >> status + else + echo "failure Korea1 $i" >> status + fi +done +} + +do_japan() { +# japanese uses Ryumin-Light +platex "\def\dviware{dvipdfmx}\input adobe-Japan1.tex" && \ + dvipdfmx -o adobe-Japan1.dvipdfmx.pdf adobe-Japan1.dvi +platex "\def\dviware{dvips}\input adobe-Japan1.tex" && \ + dvips adobe-Japan1.dvi +for i in `perl ../cjk-gs-integrate.pl --list-aliases --machine-readable -q | grep ^Ryumin-Light: | awk -F: '{print$3}'`; do + perl ../cjk-gs-integrate.pl --only-aliases --alias Ryumin-Light=$i + echo ps2pdf adobe-Japan1.ps -o "adobe-Japan1-$i.pdf" + if ps2pdf adobe-Japan1.ps "adobe-Japan1-$i.pdf" > "adobe-Japan1-$i.ps2pdf.log" 2>&1 ; then + echo "success Japan1 $i" >> status + else + echo "failure Japan1 $i" >> status + fi +done +} + +if [ "$1" = "gb" -o "$1" = "all" ] ; then + do_gb +fi +if [ "$1" = "cns" -o "$1" = "all" ] ; then + do_cns +fi +if [ "$1" = "korea" -o "$1" = "all" ] ; then + do_korea +fi +if [ "$1" = "japan" -o "$1" = "all" ] ; then + do_japan +fi + diff --git a/Master/texmf-dist/doc/fonts/cjk-gs-integrate/tools/mkgsfntspecs.sh b/Master/texmf-dist/doc/fonts/cjk-gs-integrate/tools/mkgsfntspecs.sh new file mode 100644 index 00000000000..b0dc2fb9ff4 --- /dev/null +++ b/Master/texmf-dist/doc/fonts/cjk-gs-integrate/tools/mkgsfntspecs.sh @@ -0,0 +1,397 @@ +#!/bin/bash + +# This program is licensed under the terms of the MIT License. +# +# Copyright (c) 2014 Munehiro Yamamoto <munepixyz@gmail.com> +# Modified 05/04/2015 by Bruno Voisin <bvoisin@mac.com> for testing purposes +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +# THE SOFTWARE. + +GSRESDIR=$(pwd)/Work/share/ghostscript/9.16/Resource + +echo -n "Checking your Ghostscript's resource directory..." +[ -d ${GSRESDIR} ] || exit 1 +echo ${GSRESDIR} + +# +# settings for Hiragino fonts +# +FontList=( + ## Morisawa NewCID + Ryumin-Light,Japan + GothicBBB-Medium,Japan + FutoMinA101-Bold,Japan + FutoGoB101-Bold,Japan + Jun101-Light,Japan + A-OTF-RyuminPro-Light,Japan + A-OTF-GothicBBBPro-Medium,Japan + A-OTF-FutoMinA101Pro-Bold,Japan + A-OTF-FutoGoB101Pro-Bold,Japan + A-OTF-Jun101Pro-Light,Japan + ## Screen Hiragino bundled in OS X + HiraKakuPro-W3,Japan + HiraKakuPro-W6,Japan + HiraKakuStd-W8,Japan + HiraMaruPro-W4,Japan + HiraMinPro-W3,Japan + HiraMinPro-W6,Japan + HiraKakuProN-W3,Japan + HiraKakuProN-W6,Japan + HiraKakuStdN-W8,Japan + HiraMaruProN-W4,Japan + HiraMinProN-W3,Japan + HiraMinProN-W6,Japan + HiraginoSansGB-W3,GB + HiraginoSansGB-W6,GB + # HiraginoSansCNS-W3,CNS + # HiraginoSansCNS-W6,CNS + ## Jiyukobo Yu bundled in OS X + YuGo-Bold,Japan + YuGo-Medium,Japan + YuMin-Demibold,Japan + YuMin-Medium,Japan + ## Japanese IPA fonts bundled in TeX Live + IPAexMincho,Japan + IPAexGothic,Japan + IPAMincho,Japan + IPAGothic,Japan + ## Chinese fonts bundled in OS X + STHeiti,GB + STXihei,GB + STHeitiSC-Light,GB + STHeitiSC-Medium,GB + STHeitiTC-Light,GB + STHeitiTC-Medium,GB + STSong,GB + STSongti-SC-Light,GB + STSongti-SC-Regular,GB + STSongti-SC-Bold,GB + STSongti-SC-Black,GB + STSongti-TC-Light,GB + STSongti-TC-Regular,GB + STSongti-TC-Bold,GB + STKaiti,GB + STKaiti-SC-Regular,GB + STKaiti-SC-Bold,GB + STKaiti-SC-Black,GB + STKaiTi-TC-Regular,GB + STKaiTi-TC-Bold,GB + STKaiti-Adobe-CNS1,CNS + STKaiti-SC-Regular-Adobe-CNS1,CNS + STKaiti-SC-Bold-Adobe-CNS1,CNS + STKaiti-SC-Black-Adobe-CNS1,CNS + STKaiTi-TC-Regular-Adobe-CNS1,CNS + STKaiTi-TC-Bold-Adobe-CNS1,CNS + STFangsong,GB + LiHeiPro,CNS + LiSongPro,CNS +) + +EncodeList_Japan=( + 78-EUC-H + 78-EUC-V + 78-H + 78-RKSJ-H + 78-RKSJ-V + 78-V + 78ms-RKSJ-H + 78ms-RKSJ-V + 83pv-RKSJ-H + 90ms-RKSJ-H + 90ms-RKSJ-V + 90msp-RKSJ-H + 90msp-RKSJ-V + 90pv-RKSJ-H + 90pv-RKSJ-V + Add-H + Add-RKSJ-H + Add-RKSJ-V + Add-V + Adobe-Japan1-0 + Adobe-Japan1-1 + Adobe-Japan1-2 + Adobe-Japan1-3 + Adobe-Japan1-4 + Adobe-Japan1-5 + Adobe-Japan1-6 + EUC-H + EUC-V + Ext-H + Ext-RKSJ-H + Ext-RKSJ-V + Ext-V + H + Hankaku + Hiragana + Identity-H + Identity-V + Katakana + NWP-H + NWP-V + RKSJ-H + RKSJ-V + Roman + UniJIS-UCS2-H + UniJIS-UCS2-HW-H + UniJIS-UCS2-HW-V + UniJIS-UCS2-V + UniJIS-UTF16-H + UniJIS-UTF16-V + UniJIS-UTF32-H + UniJIS-UTF32-V + UniJIS-UTF8-H + UniJIS-UTF8-V + UniJIS2004-UTF16-H + UniJIS2004-UTF16-V + UniJIS2004-UTF32-H + UniJIS2004-UTF32-V + UniJIS2004-UTF8-H + UniJIS2004-UTF8-V + UniJISPro-UCS2-HW-V + UniJISPro-UCS2-V + UniJISPro-UTF8-V + UniJISX0213-UTF32-H + UniJISX0213-UTF32-V + UniJISX02132004-UTF32-H + UniJISX02132004-UTF32-V + V + WP-Symbol +) + +EncodeList_GB=( + Adobe-GB1-0 + Adobe-GB1-1 + Adobe-GB1-2 + Adobe-GB1-3 + Adobe-GB1-4 + Adobe-GB1-5 + GB-EUC-H + GB-EUC-V + GB-H + GB-RKSJ-H + GB-V + GBK-EUC-H + GBK-EUC-V + GBK2K-H + GBK2K-V + GBKp-EUC-H + GBKp-EUC-V + GBT-EUC-H + GBT-EUC-V + GBT-H + GBT-RKSJ-H + GBT-V + GBTpc-EUC-H + GBTpc-EUC-V + GBpc-EUC-H + GBpc-EUC-V + Identity-H + Identity-V + UniGB-UCS2-H + UniGB-UCS2-V + UniGB-UTF16-H + UniGB-UTF16-V + UniGB-UTF32-H + UniGB-UTF32-V + UniGB-UTF8-H + UniGB-UTF8-V +) + +EncodeList_CNS=( + Adobe-CNS1-0 + Adobe-CNS1-1 + Adobe-CNS1-2 + Adobe-CNS1-3 + Adobe-CNS1-4 + Adobe-CNS1-5 + Adobe-CNS1-6 + B5-H + B5-V + B5pc-H + B5pc-V + CNS-EUC-H + CNS-EUC-V + CNS1-H + CNS1-V + CNS2-H + CNS2-V + ETHK-B5-H + ETHK-B5-V + ETen-B5-H + ETen-B5-V + ETenms-B5-H + ETenms-B5-V + HKdla-B5-H + HKdla-B5-V + HKdlb-B5-H + HKdlb-B5-V + HKgccs-B5-H + HKgccs-B5-V + HKm314-B5-H + HKm314-B5-V + HKm471-B5-H + HKm471-B5-V + HKscs-B5-H + HKscs-B5-V + Identity-H + Identity-V + UniCNS-UCS2-H + UniCNS-UCS2-V + UniCNS-UTF16-H + UniCNS-UTF16-V + UniCNS-UTF32-H + UniCNS-UTF32-V + UniCNS-UTF8-H + UniCNS-UTF8-V +) + +EncodeList_Korea=( + Adobe-Korea1-0 + Adobe-Korea1-1 + Adobe-Korea1-2 + Identity-H + Identity-V + KSC-EUC-H + KSC-EUC-V + KSC-H + KSC-Johab-H + KSC-Johab-V + KSC-RKSJ-H + KSC-V + KSCms-UHC-H + KSCms-UHC-HW-H + KSCms-UHC-HW-V + KSCms-UHC-V + KSCpc-EUC-H + KSCpc-EUC-V + UniKS-UCS2-H + UniKS-UCS2-V + UniKS-UTF16-H + UniKS-UTF16-V + UniKS-UTF32-H + UniKS-UTF32-V + UniKS-UTF8-H + UniKS-UTF8-V +) + +## mkgsfontspec [fontname] [encode] > [fontspec] +mkgsfontspec(){ + local fontname=$1 + local encode=$2 + cat <<EOT +%%!PS-Adobe-3.0 Resource-Font +%%%%DocumentNeededResources: ${encode} (CMap) +%%%%IncludeResource: ${encode} (CMap) +%%%%BeginResource: Font (${fontname}-${encode}) +(${fontname}-${encode}) +(${encode}) /CMap findresource +[(${fontname}) /CIDFont findresource] +composefont +pop +%%%%EndResource +%%%%EOF +EOT +} + +## mkfontspec [fontspec dir] +mkfontspec(){ + local FONTSPECDIR=$1 + + mkdir -p $FONTSPECDIR + + for i in ${FontList[@]}; do + fnt=$(echo $i | cut -f1 -d",") + enc=$(echo $i | cut -f2 -d",") + + case $enc in + Japan) enclist="${EncodeList_Japan[@]}";; + GB) enclist="${EncodeList_GB[@]}";; + CNS) enclist="${EncodeList_CNS[@]}";; + Korea) enclist="${EncodeList_Korea[@]}";; + *) exit 1;; + esac + + for j in $enclist; do + mkgsfontspec ${fnt} ${j} > ${FONTSPECDIR}/${fnt}-${j} + done + done + + return 0 +} + +## mkcidfonts [cidfonts dir] +mkcidfonts(){ + local CIDFONTSDIR=$1 + + mkdir -p $CIDFONTSDIR + (cd $CIDFONTSDIR + rm -f HiraMinPro{,N}-W{3,6} + rm -f HiraMaruPro{,N}-W4 + rm -f HiraKakuPro{,N}-W{3,6} + rm -f HiraKakuStd{,N}-W8 + rm -f HiraginoSansGB-W{3,6} + + ln -s "/Library/Fonts/ヒラギノ明朝 Pro W3.otf" HiraMinPro-W3 + ln -s "/Library/Fonts/ヒラギノ明朝 Pro W6.otf" HiraMinPro-W6 + ln -s "/Library/Fonts/ヒラギノ丸ゴ Pro W4.otf" HiraMaruPro-W4 + ln -s "/Library/Fonts/ヒラギノ角ゴ Pro W3.otf" HiraKakuPro-W3 + ln -s "/Library/Fonts/ヒラギノ角ゴ Pro W6.otf" HiraKakuPro-W6 + ln -s "/Library/Fonts/ヒラギノ角ゴ Std W8.otf" HiraKakuStd-W8 + ln -s "/System/Library/Fonts/ヒラギノ明朝 ProN W3.otf" HiraMinProN-W3 + ln -s "/System/Library/Fonts/ヒラギノ明朝 ProN W6.otf" HiraMinProN-W6 + ln -s "/Library/Fonts/ヒラギノ丸ゴ ProN W4.otf" HiraMaruProN-W4 + ln -s "/System/Library/Fonts/ヒラギノ角ゴ ProN W3.otf" HiraKakuProN-W3 + ln -s "/System/Library/Fonts/ヒラギノ角ゴ ProN W6.otf" HiraKakuProN-W6 + ln -s "/Library/Fonts/ヒラギノ角ゴ StdN W8.otf" HiraKakuStdN-W8 + ln -s "/Library/Fonts/Hiragino Sans GB W3.otf" HiraginoSansGB-W3 + ln -s "/Library/Fonts/Hiragino Sans GB W6.otf" HiraginoSansGB-W6 + + rm -f YuMin-{Medium,Demibold} + rm -f YuGo-{Medium,Bold} + + ln -s "/Library/Fonts/Yu Mincho Medium.otf" YuMin-Medium + ln -s "/Library/Fonts/Yu Mincho Demibold.otf" YuMin-Demibold + ln -s "/Library/Fonts/Yu Gothic Medium.otf" YuGo-Medium + ln -s "/Library/Fonts/Yu Gothic Bold.otf" YuGo-Bold + + rm -f STHeiti.ttf + rm -f STXihei.ttf + rm -f STFangsong.ttf + rm -f LiHeiPro.ttf + rm -f LiSongPro.ttf + + ln -s /Library/Fonts/华文黑体.ttf STHeiti.ttf + ln -s /Library/Fonts/华文细黑.ttf STXihei.ttf + ln -s /Library/Fonts/华文仿宋.ttf STFangsong.ttf + ln -s "/Library/Fonts/儷黑 Pro.ttf" LiHeiPro.ttf + ln -s "/Library/Fonts/儷宋 Pro.ttf" LiSongPro.ttf + ) + + return 0 +} + + +# generate the Ghostscript FontSpec files for the Hiragino fonts +# bundled on Mac OS X +mkfontspec ${GSRESDIR}/Font +mkcidfonts ${GSRESDIR}/CIDFont + +echo $(basename $0): done + +# end of file diff --git a/Master/texmf-dist/doc/fonts/cjk-gs-integrate/tools/release.sh b/Master/texmf-dist/doc/fonts/cjk-gs-integrate/tools/release.sh new file mode 100755 index 00000000000..33c61cbdf5c --- /dev/null +++ b/Master/texmf-dist/doc/fonts/cjk-gs-integrate/tools/release.sh @@ -0,0 +1,53 @@ +# +# release.sh +# copied from jfontmaps project and adapted + +PROJECT=cjk-gs-integrate +DIR=`pwd`/.. +VER=${VER:-`date +%Y%m%d.0`} + +TEMP=/tmp + +echo "Making Release $VER. Ctrl-C to cancel." +read REPLY +if test -d "$TEMP/$PROJECT-$VER"; then + echo "Warning: the directory '$TEMP/$PROJECT-$VER' is found:" + echo + ls $TEMP/$PROJECT-$VER + echo + echo -n "I'm going to remove this directory. Continue? yes/No" + echo + read REPLY <&2 + case $REPLY in + y*|Y*) rm -rf $TEMP/$PROJECT-$VER;; + *) echo "Aborted."; exit 1;; + esac +fi +echo +git commit -m "Release $VER" --allow-empty +git archive --format=tar --prefix=$PROJECT-$VER/ HEAD | (cd $TEMP && tar xf -) +git --no-pager log --date=short --format='%ad %aN <%ae>%n%n%x09* %s%d [%h]%n' > $TEMP/$PROJECT-$VER/ChangeLog +cd $TEMP +rm -rf $PROJECT-$VER-orig +cp -r $PROJECT-$VER $PROJECT-$VER-orig +cd $PROJECT-$VER +rm -f .gitignore +for i in cjk-gs-integrate.pl ; do + perl -pi.bak -e "s/\\\$VER\\\$/$VER/g" $i + rm -f ${i}.bak +done +cd .. +diff -urN $PROJECT-$VER-orig $PROJECT-$VER +tar zcf $DIR/$PROJECT-$VER.tar.gz $PROJECT-$VER +echo +echo You should execute +echo +echo " git push && git tag $VER && git push origin $VER" +echo +echo Informations for submitting CTAN: +echo " CONTRIBUTION: $PROJECT" +echo " SUMMARY: Tools to integrate CJK fonts into Ghostscript" +echo " DIRECTORY: fonts/$PROJECT" +echo " LICENSE: free/GPLv3" +echo " FILE: $DIR/$PROJECT-$VER.tar.gz" + |