Re: Bug#481134: libpoppler does not use cmap files from xpdf-{japanese,...}, and fails to parse Japanese PDF files.
Hi,
> > I'm a bit worried that this needs to be fixed for
> > xpdf-chinese-simplified
> > xpdf-chinese-traditional
> > xpdf-korean
> > xpdf-japanese
> >
> > packages. The fix would probably be simple. It should probably be
> > hardlinks rather than symlinks considering dpkg behavior wrt symlinked
> > dirs.
>
> You can't hardlink directories though, so we might as well symlink the
> individual files.
>
> > I'd like this fix included in lenny so that we don't see a regression
> > in Debian for Japanese users.
> >
> >
> > There was a package in the NEW queue 'poppler-data' which should
> > really have fixed this bug.
> > http://ftp-master.debian.org/new/poppler-data_0.2.0-1.html
> >
> > That going into Debian sid would fix this bug also, but not quite sure
> > if it's reasonable to expect a new package to enter Debian lenny.
>
> I kinda think it's in poppler's domain to fix this; logically
> xpdf-japanese (etc) exists only to enhance xpdf. poppler-data appears to
> be a good solution.
1. poppler was theoretically self-contained, poppler-data was REJECTed
once and not yet part of non-free as of today.
2. Japanese users upgrading from etch would have xpdf-japanese
installed because evince (poppler) needed and used xpdf-japanese, and
natural upgrade path would be xpdf-japanese supporting poppler.
These factors make adding support in poppler somewhat reasonable.
diff -ur xpdf-japanese-20040727-orig/debian/changelog xpdf-japanese-20040727/debian/changelog
--- xpdf-japanese-20040727-orig/debian/changelog 2008-08-22 07:13:09.000000000 -0700
+++ xpdf-japanese-20040727/debian/changelog 2008-08-22 07:24:30.000000000 -0700
@@ -1,3 +1,10 @@
+xpdf-japanese (1:20040727-1.1) unstable; urgency=low
+
+ * add symlinks to facilitate poppler transition for lenny.
+ In the longer term, users should migrate to poppler-data.
+
+ -- Junichi Uekawa <dancer@debian.org> Fri, 22 Aug 2008 07:24:30 -0700
+
xpdf-japanese (1:20040727-1) unstable; urgency=low
* New upstream version
diff -ur xpdf-japanese-20040727-orig/debian/rules xpdf-japanese-20040727/debian/rules
--- xpdf-japanese-20040727-orig/debian/rules 2008-08-22 07:13:09.000000000 -0700
+++ xpdf-japanese-20040727/debian/rules 2008-08-22 07:45:47.000000000 -0700
@@ -2,6 +2,9 @@
TARGET=japanese
CMAP=/usr/share/fonts/cmap/adobe-japan1
+# datadir for poppler
+POPPLER_DATA=/usr/share/poppler
+
POSTRM=debian/xpdf-$(TARGET).postrm
PREINST=debian/xpdf-$(TARGET).preinst
@@ -29,6 +32,11 @@
cp -r *.cidToUnicode *.unicodeMap debian/xpdf-$(TARGET)/usr/share/xpdf/$(TARGET)/
cp add-to-xpdfrc debian/xpdf-$(TARGET)/etc/xpdf/xpdfrc-$(TARGET)
+ # install poppler symlinks
+ mkdir -p debian/xpdf-$(TARGET)${POPPLER_DATA}/cMap/
+ dh_link ${CMAP} ${POPPLER_DATA}/cMap/Adobe-Japan1
+ dh_link /usr/share/xpdf/japanese/Adobe-Japan1.cidToUnicode ${POPPLER_DATA}/cidToUnicode/Adobe-Japan1/Adobe-Japan1.cidToUnicode
+
cp debian/preinst-template $(PREINST)
cp debian/postrm-template $(POSTRM)
regards,
junichi
--
dancer@{netfort.gr.jp,debian.org}
Reply to: