delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:subject:to:references:from:message-id:date | |
:mime-version:in-reply-to:content-type | |
:content-transfer-encoding; q=dns; s=default; b=KlIHd678WjuuS8GP | |
lCKONn70ivLwDLGfeeU3Qn46/kb6E5gKCDpGJ2EMScu8xSdYXuUgZv8/wEftJKw8 | |
ztZ1MzCKiAsyPD5LttKvFBWuHZUxEXRYHIhVxC1dJ/x3/UfVO4NJULOZXx1EObI9 | |
yHahVEuAgsoIA8PXCYpkhf204hk= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:subject:to:references:from:message-id:date | |
:mime-version:in-reply-to:content-type | |
:content-transfer-encoding; s=default; bh=UEp9as7rcqUoTm7/I/dLhK | |
D2PDE=; b=fzyEtyZjGmeZe7tGc/RWG8mAA15Rn/8Yexci0/jlkGSRdFV2TJdFJh | |
kZ2bjy1cjkgjtvfrJpndkeq+gfgVbEp7tDfrji65E55A6VUErOu8OlQDL20N47am | |
ygnm8fB9dLL8YDTMYsbO0oSYM6HG5lEcRi7A1XFX7UaHkNwaNctYM= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Authentication-Results: | sourceware.org; auth=none |
X-Virus-Found: | No |
X-Spam-SWARE-Status: | No, score=-2.3 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=Vonobow, vonobow, rights, reserved |
X-HELO: | limerock04.mail.cornell.edu |
X-CornellRouted: | This message has been Routed already. |
Subject: | Re: Ghostscript cannot find CMaps in Poppler |
To: | cygwin AT cygwin DOT com |
References: | <announce DOT 201801091250 DOT w09Colgk014072 AT authusersmtp DOT mail DOT cornell DOT edu> <20180207014036 DOT 14303 DOT qmail AT mx2 DOT akamoz DOT jp> |
From: | Ken Brown <kbrown AT cornell DOT edu> |
Message-ID: | <a5e1ec81-2a43-011e-40f5-c7c94e141696@cornell.edu> |
Date: | Wed, 7 Feb 2018 17:35:02 -0500 |
User-Agent: | Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 |
MIME-Version: | 1.0 |
In-Reply-To: | <20180207014036.14303.qmail@mx2.akamoz.jp> |
X-PMX-Cornell-Gauge: | Gauge=X |
X-PMX-CORNELL-AUTH-RESULTS: | dkim-out=none; |
X-IsSubscribed: | yes |
On 2/6/2018 8:40 PM, Vonobow Smith wrote: > From Cygwin which is bundled with Ghostscript 9.21, > Ghostscript cannot find CMap's at all. As a result, CJK characters > cannot be rendered at all. > >> $ gsnd >> GPL Ghostscript 9.22 (2017-10-04) >> Copyright (C) 2017 Artifex Software, Inc. All rights reserved. >> This software comes with NO WARRANTY: see the file PUBLIC for details. >> GS>/UniJIS-UTF8-H /CMap findresource >> Error: /undefinedresource in findresource > > This is caused by incorrect setting of search path for Ghostscript, > or the directory hierarchy of Poppler. > > GS search path is set as following: > > $ gs --help >> GPL Ghostscript 9.22 (2017-10-04) >> Copyright (C) 2017 Artifex Software, Inc. All rights reserved. >> Usage: gs [switches] [file1.ps file2.ps ...] > ... snip ... >> Search path: >> /usr/share/ghostscript/9.22/Resource/Init : >> /usr/share/ghostscript/9.22/lib : >> /usr/share/ghostscript/9.22/Resource/Font : >> /usr/share/ghostscript/fonts : /usr/share/fonts/urw-base35 : >> /usr/share/fonts : /usr/share/poppler/cMap/Adobe-CNS1 : >> /usr/share/poppler/cMap/Adobe-GB1 : >> /usr/share/poppler/cMap/Adobe-Japan1 : >> /usr/share/poppler/cMap/Adobe-Japan2 : >> /usr/share/poppler/cMap/Adobe-Korea1 > > However, CMap files are placed at: >> $ cd /usr/share/poppler/cMap/Adobe-Japan1/; ls >> 78-EUC-H Adobe-Japan1-H-CID UniHojo-UTF32-H >> 78-EUC-V Adobe-Japan1-H-Host UniHojo-UTF32-V >> 78-H Adobe-Japan1-H-Mac UniHojo-UTF8-H > ... snip ... > > The problem is directory hierachy lacks the element "CMap". > CMap files must be found in CMap directory under the search path, like: > > /usr/share/poppler/cMap/Adobe-Japan1/CMap/UniJIS-UTF8-H > ^^^^ > The old version of the Ghostscript held CMap's under: > > /usr/share/ghostscript/ver.sion/Resources/CMap > > and this is correct. > > The easiest way to solve this problem is creating symbolic links > which name is "CMap" in each directories containing CMap files, > target of the links are the directories itself, like that: > > cd /usr/share/poppler/cMap; for i in *; do (cd $i; ln -s . CMap); done Thanks for the report. I'll fix this in a slightly different way with a new ghostscript release. It might take a week or so before I can get to this. Ken -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |