Package: xpdf
Severity: wishlist
Tags: l10n, patch

Hi,

 This is proposal (with patch).
 Now we have xpdf-{chinese-simplified,chinese-traditional,japanese,korean}
 packages in non-free component since cmap data had not been DFSG-free.

 But, now cmap becomes free and I provide it as poppler-data package in main.
 So just merge (a little bit modified) xpdfrc files to xpdf seems enough and 
 good for users.

 Please consider this and check patch, it will also close several bugs.
 Thanks.


step to reproduce)
 1. download pdf from http://www.sony.jp/ServiceArea/impdf/pdf/3068125022.pdf
 2. open it with xpdf
 3. cannot show Japanese characters ;(

 4. make package with attached source and install it
 5. open it with xpdf
 6. correctly showed it :)


-- 
Regards,

 Hideki Yamane     henrich @ debian.or.jp/iijmio-mail.jp
 http://wiki.debian.org/HidekiYamane
diff -Nru xpdf-3.02/debian/changelog xpdf-3.02/debian/changelog
--- xpdf-3.02/debian/changelog	2010-04-04 01:38:25.000000000 +0900
+++ xpdf-3.02/debian/changelog	2010-04-15 10:12:16.000000000 +0900
@@ -1,3 +1,16 @@
+xpdf (3.02-2.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * merge xpdf-{chinese-simplified,chinese-traditional,japanese,korean} support
+    (Closes: #461411, #548182, #548185, #548183, #548184)
+  * debian/lang/etc/xpdf
+    - add xpdfrc-chinese-simplified, also update font path (Closes: #521780)
+    - add xpdfrc-chinese-traditional
+    - add xpdfrc-japanese, also update font path (Closes: #352007)
+    - add xpdfrc-korean
+
+ -- Hideki Yamane (Debian-JP) <[email protected]>  Thu, 15 Apr 2010 10:11:44 +0900
+
 xpdf (3.02-2) unstable; urgency=high
 
   [Michael Gilbert]
diff -Nru xpdf-3.02/debian/control xpdf-3.02/debian/control
--- xpdf-3.02/debian/control	2010-04-03 06:41:48.000000000 +0900
+++ xpdf-3.02/debian/control	2010-04-15 10:05:00.000000000 +0900
@@ -26,10 +26,12 @@
 Package: xpdf-common
 Architecture: all
 Depends: ${misc:Depends}
-Conflicts: xpdf (<= 0.93-6), xpdf-cyrillic, xpdf-greek, xpdf-hebrew, xpdf-latin2, xpdf-thai, xpdf-turkish
-Replaces: xpdf-cyrillic, xpdf-greek, xpdf-hebrew, xpdf-latin2, xpdf-thai, xpdf-turkish
+Conflicts: xpdf (<= 0.93-6), xpdf-cyrillic, xpdf-greek, xpdf-hebrew, xpdf-latin2, xpdf-thai, xpdf-turkish,
+ xpdf-japanese, xpdf-korean, xpdf-chinese-simplified, xpdf-chinese-traditional
+Replaces: xpdf-cyrillic, xpdf-greek, xpdf-hebrew, xpdf-latin2, xpdf-thai, xpdf-turkish,
+ xpdf-japanese, xpdf-korean, xpdf-chinese-simplified, xpdf-chinese-traditional
 Suggests: xpdf-reader | xpdf-utils
-Recommends: gsfonts-x11
+Recommends: gsfonts-x11, poppler-data
 Description: Portable Document Format (PDF) suite -- common files
  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.)
diff -Nru xpdf-3.02/debian/lang/etc/xpdf/xpdfrc-chinese-simplified xpdf-3.02/debian/lang/etc/xpdf/xpdfrc-chinese-simplified
--- xpdf-3.02/debian/lang/etc/xpdf/xpdfrc-chinese-simplified	1970-01-01 09:00:00.000000000 +0900
+++ xpdf-3.02/debian/lang/etc/xpdf/xpdfrc-chinese-simplified	2010-04-15 10:11:26.000000000 +0900
@@ -0,0 +1,9 @@
+#----- begin Chinese Simplified support package (2010-Apr-15)
+cidToUnicode    Adobe-GB1       /usr/share/poppler/cidToUnicode/Adobe-GB1
+unicodeMap      ISO-2022-CN     /usr/share/poppler/unicodeMap/ISO-2022-CN
+unicodeMap      EUC-CN          /usr/share/poppler/unicodeMap/EUC-CN
+unicodeMap      GBK             /usr/share/poppler/unicodeMap/GBK
+cMapDir         Adobe-GB1       /usr/share/poppler/cMap/adobe-gb1
+toUnicodeDir                    /usr/share/poppler/cMap/adobe-gb1
+displayCIDFontTT        Adobe-GB1      /usr/share/fonts/truetype/arphic/uming.ttc
+#----- end Chinese Simplified support package
diff -Nru xpdf-3.02/debian/lang/etc/xpdf/xpdfrc-chinese-traditional xpdf-3.02/debian/lang/etc/xpdf/xpdfrc-chinese-traditional
--- xpdf-3.02/debian/lang/etc/xpdf/xpdfrc-chinese-traditional	1970-01-01 09:00:00.000000000 +0900
+++ xpdf-3.02/debian/lang/etc/xpdf/xpdfrc-chinese-traditional	2010-04-15 09:59:59.000000000 +0900
@@ -0,0 +1,8 @@
+#----- begin Chinese Traditional support package (2010-Apr-15)
+cidToUnicode    Adobe-CNS1      /usr/share/poppler/cidToUnicode/Adobe-CNS1
+unicodeMap      Big5            /usr/share/poppler/unicodeMap/Big5
+unicodeMap      Big5ascii       /usr/share/poppler/unicodeMap/Big5ascii
+cMapDir         Adobe-CNS1      /usr/share/poppler/cMap/adobe-cns1
+toUnicodeDir                    /usr/share/poppler/cMap/adobe-cns1
+displayCIDFontTT        Adobe-CNS1      /usr/share/fonts/truetype/arphic/bkai00mp.ttf
+#----- end Chinese Traditional support package
diff -Nru xpdf-3.02/debian/lang/etc/xpdf/xpdfrc-japanese xpdf-3.02/debian/lang/etc/xpdf/xpdfrc-japanese
--- xpdf-3.02/debian/lang/etc/xpdf/xpdfrc-japanese	1970-01-01 09:00:00.000000000 +0900
+++ xpdf-3.02/debian/lang/etc/xpdf/xpdfrc-japanese	2010-04-15 09:59:05.000000000 +0900
@@ -0,0 +1,82 @@
+#----- begin Japanese support package (2010-Apr-15)
+cidToUnicode    Adobe-Japan1    /usr/share/poppler/cidToUnicode/Adobe-Japan1
+unicodeMap      ISO-2022-JP     /usr/share/poppler/unicodeMap/ISO-2022-JP
+unicodeMap      EUC-JP          /usr/share/poppler/unicodeMap/EUC-JP
+unicodeMap      Shift-JIS       /usr/share/poppler/unicodeMap/Shift-JIS
+cMapDir         Adobe-Japan1    /usr/share/poppler/cMap/Adobe-Japan1
+toUnicodeDir                    /usr/share/poppler/cMap/Adobe-Japan1
+#displayCIDFontX        Adobe-Japan1    "-*-fixed-medium-r-normal-*-%s-*-*-*-*-*-jisx0208.1983-0" ISO-2022-JP
+displayCIDFontTT        Adobe-Japan1    /usr/share/fonts/truetype/ttf-japanese-mincho.ttf
+displayNamedCIDFontTT   Ryumin-Light    /usr/share/fonts/truetype/ttf-japanese-mincho.ttf
+displayNamedCIDFontTT   Ryumin-Light-H  /usr/share/fonts/truetype/ttf-japanese-mincho.ttf
+displayNamedCIDFontTT   Ryumin-Light-Identity-H /usr/share/fonts/truetype/ttf-japanese-mincho.ttf
+displayNamedCIDFontTT   FutoMinA101-Bold-Identity-H     /usr/share/fonts/truetype/ttf-japanese-mincho.ttf
+displayNamedCIDFontTT   GothicBBB-Meidum        /usr/share/fonts/truetype/ttf-japanese-gothic.ttf
+displayNamedCIDFontTT   GothicBBB-Medium-H      /usr/share/fonts/truetype/ttf-japanese-gothic.ttf
+displayNamedCIDFontTT   GothicBBB-Medium-Identity-H     /usr/share/fonts/truetype/ttf-japanese-gothic.ttf
+displayNamedCIDFontTT   Shingo-Medium-Identity-H        /usr/share/fonts/truetype/ttf-japanese-gothic.ttf
+displayNamedCIDFontTT   ShinGo-Bold-Identity-H  /usr/share/fonts/truetype/ttf-japanese-gothic.ttf
+displayNamedCIDFontTT   ShinGo-Ultra-Identity-H /usr/share/fonts/truetype/ttf-japanese-gothic.ttf
+displayNamedCIDFontTT   HeiseiKakuGo-W5 /usr/share/fonts/truetype/ttf-japanese-gothic.ttf
+displayNamedCIDFontTT   HeiseiKakuGo-W7 /usr/share/fonts/truetype/ttf-japanese-gothic.ttf
+displayNamedCIDFontTT   HeiseiKakuGo-W9 /usr/share/fonts/truetype/ttf-japanese-gothic.ttf
+displayNamedCIDFontTT   MidashiGo-MB31  /usr/share/fonts/truetype/ttf-japanese-gothic.ttf
+displayNamedCIDFontTT   FutoGoB101-Bold /usr/share/fonts/truetype/ttf-japanese-gothic.ttf
+displayNamedCIDFontTT   MS-Gothic       /usr/share/fonts/truetype/ttf-japanese-gothic.ttf
+displayNamedCIDFontTT   MS-PGothic      /usr/share/fonts/truetype/ttf-japanese-gothic.ttf
+displayNamedCIDFontTT   HG-GothicB      /usr/share/fonts/truetype/ttf-japanese-gothic.ttf
+displayNamedCIDFontTT   Kochi-Gothic    /usr/share/fonts/truetype/ttf-japanese-gothic.ttf
+displayNamedCIDFontTT   LX-Gothic       /usr/share/fonts/truetype/ttf-japanese-gothic.ttf
+displayNamedCIDFontTT   LX-P-Gothic     /usr/share/fonts/truetype/ttf-japanese-gothic.ttf
+displayNamedCIDFontTT   MSPゴシック  /usr/share/fonts/truetype/ttf-japanese-gothic.ttf
+displayNamedCIDFontTT   MSゴシック    /usr/share/fonts/truetype/ttf-japanese-gothic.ttf
+displayNamedCIDFontTT   DFPゴシック  /usr/share/fonts/truetype/ttf-japanese-gothic.ttf
+displayNamedCIDFontTT   DFP特太ゴシック      /usr/share/fonts/truetype/ttf-japanese-gothic.ttf
+displayNamedCIDFontTT   @ヒラギノ角ゴ3等幅      /usr/share/fonts/truetype/ttf-japanese-gothic.ttf
+displayNamedCIDFontTT   @ヒラギノ角ゴ5等幅      /usr/share/fonts/truetype/ttf-japanese-gothic.ttf
+displayNamedCIDFontTT   @ヒラギノ角ゴ7等幅      /usr/share/fonts/truetype/ttf-japanese-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    MSPゴシック   H     GothicBBB-Medium-H ISO-2022-JP
+psNamedFont16    MSPゴシック   V     GothicBBB-Medium-V ISO-2022-JP
+psNamedFont16    MSゴシック     H     GothicBBB-Medium-H ISO-2022-JP
+psNamedFont16    MSゴシック     V     GothicBBB-Medium-V ISO-2022-JP
+psNamedFont16    DFPゴシック   H     GothicBBB-Medium-H ISO-2022-JP
+psNamedFont16    DFPゴシック   V     GothicBBB-Medium-V ISO-2022-JP
+psNamedFont16    DFP特太ゴシック       H     GothicBBB-Medium-H ISO-2022-JP
+psNamedFont16    DFP特太ゴシック       V     GothicBBB-Medium-V ISO-2022-JP
+psNamedFont16    @ヒラギノ角ゴ3等倍       H     GothicBBB-Medium-H ISO-2022-JP
+psNamedFont16    @ヒラギノ角ゴ3等倍       V     GothicBBB-Medium-V ISO-2022-JP
+psNamedFont16    @ヒラギノ角ゴ5等倍       H     GothicBBB-Medium-H ISO-2022-JP
+psNamedFont16    @ヒラギノ角ゴ5等倍       V     GothicBBB-Medium-V ISO-2022-JP
+psNamedFont16    @ヒラギノ角ゴ7等倍       H     GothicBBB-Medium-H ISO-2022-JP
+psNamedFont16    @ヒラギノ角ゴ7等倍       V     GothicBBB-Medium-V ISO-2022-JP
+
+# comment out textEnconding
+#textEncoding    EUC-JP
+#----- end Japanese support package
+
diff -Nru xpdf-3.02/debian/lang/etc/xpdf/xpdfrc-korean xpdf-3.02/debian/lang/etc/xpdf/xpdfrc-korean
--- xpdf-3.02/debian/lang/etc/xpdf/xpdfrc-korean	1970-01-01 09:00:00.000000000 +0900
+++ xpdf-3.02/debian/lang/etc/xpdf/xpdfrc-korean	2010-04-15 09:59:20.000000000 +0900
@@ -0,0 +1,9 @@
+#----- begin Korean support package (2010-Apr-15)
+cidToUnicode    Adobe-Korea1    /usr/share/poppler/cidToUnicode/Adobe-Korea1
+unicodeMap      ISO-2022-KR     /usr/share/poppler/unicodeMap/ISO-2022-KR
+cMapDir         Adobe-Korea1    /usr/share/poppler/cMap/adobe-korea1
+toUnicodeDir                    /usr/share/poppler/cMap/adobe-korea1
+displayCIDFontTT        Adobe-Korea1    /usr/share/fonts/truetype/baekmuk/batang.ttf
+displayCIDFontTT        Unidocs-Korea1  /usr/share/fonts/truetype/baekmuk/batang.ttf
+#----- end Korean support package
+

Attachment: pgpzNqsurtheQ.pgp
Description: PGP signature

Reply via email to