--- xpdf-japanese-20040727.orig/add-to-xpdfrc +++ xpdf-japanese-20040727/add-to-xpdfrc @@ -1,9 +1,80 @@ #----- begin Japanese support package (2004-jul-27) -cidToUnicode Adobe-Japan1 /usr/local/share/xpdf/japanese/Adobe-Japan1.cidToUnicode -unicodeMap ISO-2022-JP /usr/local/share/xpdf/japanese/ISO-2022-JP.unicodeMap -unicodeMap EUC-JP /usr/local/share/xpdf/japanese/EUC-JP.unicodeMap -unicodeMap Shift-JIS /usr/local/share/xpdf/japanese/Shift-JIS.unicodeMap -cMapDir Adobe-Japan1 /usr/local/share/xpdf/japanese/CMap -toUnicodeDir /usr/local/share/xpdf/japanese/CMap -#displayCIDFontTT Adobe-Japan1 /usr/..../kochi-mincho.ttf +cidToUnicode Adobe-Japan1 /usr/share/xpdf/japanese/Adobe-Japan1.cidToUnicode +unicodeMap ISO-2022-JP /usr/share/xpdf/japanese/ISO-2022-JP.unicodeMap +unicodeMap EUC-JP /usr/share/xpdf/japanese/EUC-JP.unicodeMap +unicodeMap Shift-JIS /usr/share/xpdf/japanese/Shift-JIS.unicodeMap +cMapDir Adobe-Japan1 /usr/share/fonts/cmap/adobe-japan1 +toUnicodeDir /usr/share/fonts/cmap/adobe-japan1 +#displayCIDFontX Adobe-Japan1 "-*-fixed-medium-r-normal-*-%s-*-*-*-*-*-jisx0208.1983-0" ISO-2022-JP +displayCIDFontTT Adobe-Japan1 /usr/share/fonts/truetype/kochi/kochi-mincho.ttf +displayNamedCIDFontTT Ryumin-Light /usr/share/fonts/truetype/kochi/kochi-mincho.ttf +displayNamedCIDFontTT Ryumin-Light-H /usr/share/fonts/truetype/kochi/kochi-mincho.ttf +displayNamedCIDFontTT Ryumin-Light-Identity-H /usr/share/fonts/truetype/kochi/kochi-mincho.ttf +displayNamedCIDFontTT FutoMinA101-Bold-Identity-H /usr/share/fonts/truetype/kochi/kochi-mincho.ttf +displayNamedCIDFontTT GothicBBB-Meidum /usr/share/fonts/truetype/kochi/kochi-gothic.ttf +displayNamedCIDFontTT GothicBBB-Medium-H /usr/share/fonts/truetype/kochi/kochi-gothic.ttf +displayNamedCIDFontTT GothicBBB-Medium-Identity-H /usr/share/fonts/truetype/kochi/kochi-gothic.ttf +displayNamedCIDFontTT Shingo-Medium-Identity-H /usr/share/fonts/truetype/kochi/kochi-gothic.ttf +displayNamedCIDFontTT ShinGo-Bold-Identity-H /usr/share/fonts/truetype/kochi/kochi-gothic.ttf +displayNamedCIDFontTT ShinGo-Ultra-Identity-H /usr/share/fonts/truetype/kochi/kochi-gothic.ttf +displayNamedCIDFontTT HeiseiKakuGo-W5 /usr/share/fonts/truetype/kochi/kochi-gothic.ttf +displayNamedCIDFontTT HeiseiKakuGo-W7 /usr/share/fonts/truetype/kochi/kochi-gothic.ttf +displayNamedCIDFontTT HeiseiKakuGo-W9 /usr/share/fonts/truetype/kochi/kochi-gothic.ttf +displayNamedCIDFontTT MidashiGo-MB31 /usr/share/fonts/truetype/kochi/kochi-gothic.ttf +displayNamedCIDFontTT FutoGoB101-Bold /usr/share/fonts/truetype/kochi/kochi-gothic.ttf +displayNamedCIDFontTT MS-Gothic /usr/share/fonts/truetype/kochi/kochi-gothic.ttf +displayNamedCIDFontTT MS-PGothic /usr/share/fonts/truetype/kochi/kochi-gothic.ttf +displayNamedCIDFontTT HG-GothicB /usr/share/fonts/truetype/kochi/kochi-gothic.ttf +displayNamedCIDFontTT Kochi-Gothic /usr/share/fonts/truetype/kochi/kochi-gothic.ttf +displayNamedCIDFontTT LX-Gothic /usr/share/fonts/truetype/kochi/kochi-gothic.ttf +displayNamedCIDFontTT LX-P-Gothic /usr/share/fonts/truetype/kochi/kochi-gothic.ttf +displayNamedCIDFontTT lroSVbN /usr/share/fonts/truetype/kochi/kochi-gothic.ttf +displayNamedCIDFontTT lrSVbN /usr/share/fonts/truetype/kochi/kochi-gothic.ttf +displayNamedCIDFontTT ceoSVbN /usr/share/fonts/truetype/kochi/kochi-gothic.ttf +displayNamedCIDFontTT ceoSVbN /usr/share/fonts/truetype/kochi/kochi-gothic.ttf +displayNamedCIDFontTT @qMmpS3 /usr/share/fonts/truetype/kochi/kochi-gothic.ttf +displayNamedCIDFontTT @qMmpS5 /usr/share/fonts/truetype/kochi/kochi-gothic.ttf +displayNamedCIDFontTT @qMmpS7 /usr/share/fonts/truetype/kochi/kochi-gothic.ttf + +psFont16 Adobe-Japan1 H Ryumin-Light-H ISO-2022-JP +psFont16 Adobe-Japan1 V Ryumin-Light-V ISO-2022-JP +psNamedFont16 GothicBBB-Medium-H H GothicBBB-Medium-H ISO-2022-JP +psNamedFont16 GothicBBB-Medium-Identity-H H GothicBBB-Medium-H ISO-2022-JP +psNamedFont16 GothicBBB-Medium-V V GothicBBB-Medium-V ISO-2022-JP +psNamedFont16 MidashiGo-MB31 H GothicBBB-Medium-H ISO-2022-JP +psNamedFont16 MidashiGo-MB31 V GothicBBB-Medium-V ISO-2022-JP +psNamedFont16 FutoGoB101-Bold H GothicBBB-Medium-H ISO-2022-JP +psNamedFont16 FutoGoB101-Bold V GothicBBB-Medium-V ISO-2022-JP +psNamedFont16 HeiseiKakuGo-W5 H GothicBBB-Medium-H ISO-2022-JP +psNamedFont16 HeiseiKakuGo-W5 V GothicBBB-Medium-V ISO-2022-JP +psNamedFont16 HeiseiKakuGo-W9 H GothicBBB-Medium-H ISO-2022-JP +psNamedFont16 HeiseiKakuGo-W9 V GothicBBB-Medium-V ISO-2022-JP +psNamedFont16 HeiseiMaruGo-W4 H GothicBBB-Medium-H ISO-2022-JP +psNamedFont16 HeiseiMaruGo-W4 V GothicBBB-Medium-V ISO-2022-JP +psNamedFont16 MS-Gothic H GothicBBB-Medium-H ISO-2022-JP +psNamedFont16 MS-Gothic V GothicBBB-Medium-V ISO-2022-JP +psNamedFont16 HG-GothicB H GothicBBB-Medium-H ISO-2022-JP +psNamedFont16 HG-GothicB V GothicBBB-Medium-V ISO-2022-JP +psNamedFont16 Kochi-Gothic H GothicBBB-Medium-H ISO-2022-JP +psNamedFont16 Kochi-Gothic V GothicBBB-Medium-V ISO-2022-JP +psNamedFont16 LX-Gothic H GothicBBB-Medium-H ISO-2022-JP +psNamedFont16 LX-Gothic V GothicBBB-Medium-V ISO-2022-JP +psNamedFont16 LX-P-Gothic H GothicBBB-Medium-H ISO-2022-JP +psNamedFont16 LX-P-Gothic V GothicBBB-Medium-V ISO-2022-JP +psNamedFont16 lroSVbN H GothicBBB-Medium-H ISO-2022-JP +psNamedFont16 lroSVbN V GothicBBB-Medium-V ISO-2022-JP +psNamedFont16 lrSVbN H GothicBBB-Medium-H ISO-2022-JP +psNamedFont16 lrSVbN V GothicBBB-Medium-V ISO-2022-JP +psNamedFont16 ceoSVbN H GothicBBB-Medium-H ISO-2022-JP +psNamedFont16 ceoSVbN V GothicBBB-Medium-V ISO-2022-JP +psNamedFont16 ceoSVbN H GothicBBB-Medium-H ISO-2022-JP +psNamedFont16 ceoSVbN V GothicBBB-Medium-V ISO-2022-JP +psNamedFont16 @qMmpS3{ H GothicBBB-Medium-H ISO-2022-JP +psNamedFont16 @qMmpS3{ V GothicBBB-Medium-V ISO-2022-JP +psNamedFont16 @qMmpS5{ H GothicBBB-Medium-H ISO-2022-JP +psNamedFont16 @qMmpS5{ V GothicBBB-Medium-V ISO-2022-JP +psNamedFont16 @qMmpS7{ H GothicBBB-Medium-H ISO-2022-JP +psNamedFont16 @qMmpS7{ V GothicBBB-Medium-V ISO-2022-JP + +textEncoding EUC-JP #----- end Japanese support package --- xpdf-japanese-20040727.orig/debian/control +++ xpdf-japanese-20040727/debian/control @@ -0,0 +1,21 @@ +Source: xpdf-japanese +Section: non-free/text +Priority: optional +Maintainer: Hamish Moffatt +Standards-Version: 3.6.1 +Build-Depends-Indep: debhelper (>= 4), cmap-adobe-japan1 +Build-Conflicts: xpdf-japanese + +Package: xpdf-japanese +Architecture: all +Depends: xpdf-common (>= 3.00-3), cmap-adobe-japan1, ttf-kochi-mincho | ttf-kochi-mincho-naga10, ttf-kochi-gothic | ttf-kochi-gothic-naga10 +Description: Portable Document Format (PDF) suite -- Japanese language support + xpdf is a suite of tools for Portable Document Format (PDF) files. (These are + sometimes called 'Acrobat' files after the name of Adobe's PDF software.) + . + The tools include xpdf, a PDF viewer (in the package xpdf-reader), + and PDF converters (including to/from PostScript) (in the package + xpdf-utils). + . + This package provides Japanese language support for xpdf. + --- xpdf-japanese-20040727.orig/debian/rules +++ xpdf-japanese-20040727/debian/rules @@ -0,0 +1,56 @@ +#!/usr/bin/make -f +TARGET=japanese +CMAP=/usr/share/fonts/cmap/adobe-japan1 + +POSTRM=debian/xpdf-$(TARGET).postrm +PREINST=debian/xpdf-$(TARGET).preinst + +test: + cd CMap && for i in *; do cmp -s $$i $(CMAP)/$$i || echo $$i ../debian/xpdf-$(TARGET)$(CMAP); done + +build: + # Nothing to do + +clean: + dh_testdir + rm -rf *~ debian/*~ debian/files* build-stamp + rm -rf $(POSTRM) $(PREINST) + dh_clean + +binary-indep: # Nothing to build + dh_testdir + dh_installdirs -i + + mkdir -p debian/xpdf-$(TARGET)/etc/xpdf + mkdir -p debian/xpdf-$(TARGET)/usr/share/doc/xpdf-$(TARGET) + mkdir -p debian/xpdf-$(TARGET)/usr/share/xpdf/$(TARGET) + mkdir -p debian/xpdf-$(TARGET)$(CMAP) + + cp -r *.cidToUnicode *.unicodeMap debian/xpdf-$(TARGET)/usr/share/xpdf/$(TARGET)/ + cp add-to-xpdfrc debian/xpdf-$(TARGET)/etc/xpdf/xpdfrc-$(TARGET) + + cp debian/preinst-template $(PREINST) + cp debian/postrm-template $(POSTRM) + + # Copy any CMap files that differ from cmap-*'s + cd CMap && for i in *; do cmp -s $$i $(CMAP)/$$i || cp $$i ../debian/xpdf-$(TARGET)$(CMAP); done + + # Create the rest of the preinst/postrm to divert the cmap files + find debian/xpdf-$(TARGET)$(CMAP) -type f -printf 'dpkg-divert --package xpdf-$(TARGET) --add --rename --divert $(CMAP)/%f.non-xpdf $(CMAP)/%f\n' >> $(PREINST) + find debian/xpdf-$(TARGET)$(CMAP) -type f -printf '\tdpkg-divert --package xpdf-$(TARGET) --remove --rename --divert $(CMAP)/%f.non-xpdf $(CMAP)/%f\n' >> $(POSTRM) + echo fi >> $(POSTRM) + + dh_installdocs -i README + dh_installchangelogs -i + dh_compress -i + dh_fixperms -i + dh_installdeb -i + dh_shlibdeps -i + dh_gencontrol -i + dh_md5sums -i + dh_builddeb -i + +binary-arch: # Nothing to do + +binary: binary-indep binary-arch +.PHONY: binary binary-arch binary-indep clean checkroot --- xpdf-japanese-20040727.orig/debian/changelog +++ xpdf-japanese-20040727/debian/changelog @@ -0,0 +1,59 @@ +xpdf-japanese (1:20040727-1) unstable; urgency=low + + * New upstream version + + -- Hamish Moffatt Wed, 18 Aug 2004 23:55:58 +1000 + +xpdf-japanese (1:20040116-3) unstable; urgency=low + + * Added improved Japanese font mappings. Thanks to Kenshi Muto + . (Closes: #232338) + + -- Hamish Moffatt Sun, 15 Aug 2004 18:19:51 +1000 + +xpdf-japanese (1:20040116-2) unstable; urgency=low + + * Provided TrueType font configuration for Japanese character mappings + (thanks to Kenshi Muto and Derek Noonburg for patches). + (closes: #222998, #231832) + * Requires Xpdf 3.00-3 or better with fixed 16-bit TrueType handling + * Added depends on the required font packages + + -- Hamish Moffatt Tue, 10 Feb 2004 21:31:34 +1100 + +xpdf-japanese (1:20040116-1) unstable; urgency=low + + * New upstream release + * Made packaging more conventional; CMap files are included in the + (pristine) upstream source again to make packaging easier + + -- Hamish Moffatt Tue, 27 Jan 2004 23:55:51 +1100 + +xpdf-japanese (1:20020401-1) unstable; urgency=low + + * Removed CMap files that are also present in cmap-adobe-japan1, and + added dependency on cmap-adobe-japan1. The remaining CMap files are + in the Debian diff so they can be removed later. + * Fixed incorrect version number on this package (now reflects upstream + version number correctly). + + -- Hamish Moffatt Sun, 24 Nov 2002 13:06:16 +1100 + +xpdf-japanese (20020522-2) unstable; urgency=low + + * Fixed inadvertent use of Debian-native package in previous version + + -- Hamish Moffatt Tue, 22 Oct 2002 22:31:29 +1000 + +xpdf-japanese (20020522-1) unstable; urgency=low + + * New upstream release (closes: #153867) + + -- Hamish Moffatt Tue, 20 Aug 2002 23:50:19 +1000 + +xpdf-japanese (20020202-1) unstable; urgency=low + + * Initial release (split off from main xpdf package) + + -- Hamish Moffatt Sun, 3 Feb 2002 00:43:36 +1100 + --- xpdf-japanese-20040727.orig/debian/copyright +++ xpdf-japanese-20040727/debian/copyright @@ -0,0 +1,39 @@ + +This is Debian GNU/Linux's prepackaged version of the +Japanese language support pack for xpdf. + +xpdf and the language support packs are developed by +Derek B. Noonburg . The original +sources were obtained from http://www.foolabs.com/ + + +Copyright: + +This package includes CMap files from Adobe Systems, which +have the following license: + +----------------------------------------------------------- +Copyright 1990-1998 Adobe Systems Incorporated. +All Rights Reserved. + +Patents Pending + +NOTICE: All information contained herein is the property +of Adobe Systems Incorporated. + +Permission is granted for redistribution of this file +provided this copyright notice is maintained intact and +that the contents of this file are not altered in any +way from its original form. + +PostScript and Display PostScript are trademarks of +Adobe Systems Incorporated which may be registered in +certain jurisdictions. +----------------------------------------------------------- + +All other files in the package are Copyright 2002 +Derek B. Noonburg, and are licensed under the GNU General +Public License (GPL), version 2. + +See /usr/share/common-licenses/GPL on any Debian system. + --- xpdf-japanese-20040727.orig/debian/xpdf-japanese.postinst +++ xpdf-japanese-20040727/debian/xpdf-japanese.postinst @@ -0,0 +1,9 @@ +#!/bin/sh +set -e + +if [ "$1" = "configure" ]; then + /usr/sbin/update-xpdfrc +fi + +#DEBHELPER# + --- xpdf-japanese-20040727.orig/debian/postrm-template +++ xpdf-japanese-20040727/debian/postrm-template @@ -0,0 +1,14 @@ +#!/bin/sh +set -e + +if [ "$1" = "purge" ]; then + if [ -x /usr/sbin/update-xpdfrc ]; then + /usr/sbin/update-xpdfrc + fi +fi + +#DEBHELPER# + +# Remove diversions of files from cmap-adobe-* packages that are older +# than the Xpdf versions: +if [ "$1" = "remove" ]; then --- xpdf-japanese-20040727.orig/debian/preinst-template +++ xpdf-japanese-20040727/debian/preinst-template @@ -0,0 +1,7 @@ +#!/bin/sh +set -e + +#DEBHELPER# + +# Add diversions of files from cmap-adobe-* packages that are older +# than the Xpdf versions: --- xpdf-japanese-20040727.orig/debian/compat +++ xpdf-japanese-20040727/debian/compat @@ -0,0 +1 @@ +4