From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 128055 invoked by alias); 7 Feb 2018 22:35:11 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 127812 invoked by uid 89); 7 Feb 2018 22:35:10 -0000 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 Received: from limerock04.mail.cornell.edu (HELO limerock04.mail.cornell.edu) (128.84.13.244) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 07 Feb 2018 22:35:08 +0000 X-CornellRouted: This message has been Routed already. Received: from authusersmtp.mail.cornell.edu (granite4.serverfarm.cornell.edu [10.16.197.9]) by limerock04.mail.cornell.edu (8.14.4/8.14.4_cu) with ESMTP id w17MZ6aQ003580 for ; Wed, 7 Feb 2018 17:35:06 -0500 Received: from [10.13.22.4] (50-192-26-108-static.hfc.comcastbusiness.net [50.192.26.108]) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.14.4/8.12.10) with ESMTP id w17MZ4jB027852 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for ; Wed, 7 Feb 2018 17:35:06 -0500 Subject: Re: Ghostscript cannot find CMaps in Poppler To: cygwin@cygwin.com References: <20180207014036.14303.qmail@mx2.akamoz.jp> From: Ken Brown Message-ID: Date: Wed, 07 Feb 2018 22:35:00 -0000 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> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Cornell-Gauge: Gauge=X X-PMX-CORNELL-AUTH-RESULTS: dkim-out=none; X-IsSubscribed: yes X-SW-Source: 2018-02/txt/msg00077.txt.bz2 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