Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 42161 - CJK patch for xpdf-3.00
Summary: CJK patch for xpdf-3.00
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Printing (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on: 69500
Blocks:
  Show dependency tree
 
Reported: 2004-02-19 10:22 UTC by Ming Zhao (RETIRED)
Modified: 2005-03-15 12:58 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
modified ebuild (xpdf-3.00.ebuild,887 bytes, text/plain)
2004-02-19 10:24 UTC, Ming Zhao (RETIRED)
Details
CJK patch (xpdf-3.00-cjk.patch,9.25 KB, patch)
2004-02-19 10:24 UTC, Ming Zhao (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ming Zhao (RETIRED) gentoo-dev 2004-02-19 10:22:32 UTC
acura(acura@bbs.smth.org) provided a patch which fixed the CJK problem
of xpdf 3.0. The original patch can be downloaded from
http://61.153.200.30/lucida/xpdf-final.diff.gz

The attachments are the modified ebuild and the patch.

After emerge it, you should take the following actions to make it work.

1. add the following sentence to the ~/.Xdefaults
xpdf*.fontList: -*-helvetica-medium-r-normal--12-*-*-*-*-*-iso8859-1;hanzigbk12st:
Replace hanzigbk12st with corresponding local font.
Then use `` xrdb -merge ~/.Xdefaults '' to merge it.

2. Add the following sentence to ~/.xpdfrc or /etc/xpdfrc
textEncoding        GBK
Also you should replace GBK with your locale.

3. Set suitable TTF font in ~/.xpdfrc or /etc/xpdfrc. Such as
displayCIDFontTT Adobe-GB1 /usr/share/fonts/ttf/zh_CN/gbsn00lp.ttf
Comment 1 Ming Zhao (RETIRED) gentoo-dev 2004-02-19 10:24:18 UTC
Created attachment 25932 [details]
modified ebuild
Comment 2 Ming Zhao (RETIRED) gentoo-dev 2004-02-19 10:24:59 UTC
Created attachment 25933 [details, diff]
CJK patch
Comment 3 Heinrich Wendel (RETIRED) gentoo-dev 2004-02-20 05:25:55 UTC
does this patch replace all the xpdf-lang ebuids?
Comment 4 Ming Zhao (RETIRED) gentoo-dev 2004-02-20 12:07:13 UTC
No, these ebuils are still needed. Sorry for ignoring them;-)
Comment 5 Heinrich Wendel (RETIRED) gentoo-dev 2004-03-14 04:33:04 UTC
sorry for taking so long, what does this patch do then exactly?
Comment 6 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-03-14 04:56:13 UTC
xpdf 3.0 supports only CID or OTF fonts, but CJK CID/OTF free fonts
aren't available atm. The patch enables TrueType fonts support.  xpdf
upstream applied the patch to the CVS tree a while ago, so it'll be
included in the next release of xpdf. (we need the patch until then)
Comment 7 Heinrich Wendel (RETIRED) gentoo-dev 2004-03-14 05:30:41 UTC
ok, applied that patch :)
Comment 8 Heinrich Wendel (RETIRED) gentoo-dev 2004-10-24 06:22:32 UTC
This patch causes segfaults on certain pdf files, see bug #67799, maybe there is a newer version available?
Comment 9 Heinrich Wendel (RETIRED) gentoo-dev 2004-10-24 16:36:25 UTC
i had to cut down the patch to the part the other distributions are using as well to avoid segfaults, see bug #67799
Comment 10 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-10-30 06:32:28 UTC
xpdfrc.1 says

displayCIDFontTT Adobe-Japan1 "/usr/share/fonts/kochi-substitute/kochi-gothic-subst.ttf"
displayCIDFontTT Adobe-CNS1 "/usr/share/fonts/ttf/zh_TW/bkai00mp.ttf"
displayCIDFontTT Adobe-GB1 "/usr/share/fonts/ttf/zh_CN/gkai00mp.ttf"
displayCIDFontTT Adobe-Korea1 "/usr/share/fonts/ttf/korean/baekmuk/batang.ttf"
displayCIDFontTT Unidocs-Korea1 "/usr/share/fonts/ttf/korean/baekmuk/batang.ttf"

but it is true only if >=media-fonts/kochi-substitute-20030809-r2,
<=media-fonts/arphicfonts-0.1-r1 and <=media-fonts/baekmuk-fonts-2.1-r1.
I wanted to modify xpdfrc.1 to make xpdf depend on >=media-fonts/arphicfonts-0.1-r2
and >=media-fonts/baekmuk-fonts-2.2 but ia64 blocks it.
I'll open a bug to ask ia64 team to stablise them. 
Comment 11 Heinrich Wendel (RETIRED) gentoo-dev 2005-03-15 12:58:32 UTC
i think this one is fixed then.