public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* [ANNOUNCEMENT] ghostscript 9.22-2
@ 2018-01-09 12:57 Ken Brown
  2018-02-07  1:40 ` Ghostscript cannot find CMaps in Poppler Vonobow Smith
  0 siblings, 1 reply; 5+ messages in thread
From: Ken Brown @ 2018-01-09 12:57 UTC (permalink / raw)
  To: cygwin

The following packages have been uploaded to the Cygwin distribution:

* ghostscript-9.22-2
* libgs9-9.22-2
* libgs-devel-9.22-2

GNU Ghostscript is a PostScript interpreter capable of converting PS
files into a number of printer output formats.  Ghostscript can also
render PS files into a number of graphics file formats.

This is a rebuild with a couple of bug fixes.  In particular, it
should fix the problem reported here:

  https://cygwin.com/ml/cygwin/2018-01/msg00061.html

Ken Brown
Cygwin's Ghostscript maintainer

--
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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Ghostscript cannot find CMaps in Poppler
  2018-01-09 12:57 [ANNOUNCEMENT] ghostscript 9.22-2 Ken Brown
@ 2018-02-07  1:40 ` Vonobow Smith
  2018-02-07 22:35   ` Ken Brown
  0 siblings, 1 reply; 5+ messages in thread
From: Vonobow Smith @ 2018-02-07  1:40 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 2137 bytes --]

 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

Sorry if it is alread reported. Best Regards.

[-- Attachment #2: cygcheck.tar.gz --]
[-- Type: application/gzip, Size: 4717 bytes --]

[-- Attachment #3: Type: text/plain, Size: 219 bytes --]


--
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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Ghostscript cannot find CMaps in Poppler
  2018-02-07  1:40 ` Ghostscript cannot find CMaps in Poppler Vonobow Smith
@ 2018-02-07 22:35   ` Ken Brown
  2018-02-12 23:14     ` Ken Brown
  0 siblings, 1 reply; 5+ messages in thread
From: Ken Brown @ 2018-02-07 22:35 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Ghostscript cannot find CMaps in Poppler
  2018-02-07 22:35   ` Ken Brown
@ 2018-02-12 23:14     ` Ken Brown
  2018-02-14 15:56       ` Vonobow Smith
  0 siblings, 1 reply; 5+ messages in thread
From: Ken Brown @ 2018-02-12 23:14 UTC (permalink / raw)
  To: cygwin

On 2/7/2018 5:35 PM, Ken Brown wrote:
> 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.
[...]
> 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.

I've uploaded ghostscript-9.22-3, which should fix this.  Please confirm.

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Ghostscript cannot find CMaps in Poppler
  2018-02-12 23:14     ` Ken Brown
@ 2018-02-14 15:56       ` Vonobow Smith
  0 siblings, 0 replies; 5+ messages in thread
From: Vonobow Smith @ 2018-02-14 15:56 UTC (permalink / raw)
  To: cygwin

> >>  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.
> [...]
> > 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.
> I've uploaded ghostscript-9.22-3, which should fix this.  Please confirm.

Now it seems to work fine.
My vertical writing script also works fine. :-)

Thank you for resolving the problem.

Best regards.

--
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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-02-14 15:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-09 12:57 [ANNOUNCEMENT] ghostscript 9.22-2 Ken Brown
2018-02-07  1:40 ` Ghostscript cannot find CMaps in Poppler Vonobow Smith
2018-02-07 22:35   ` Ken Brown
2018-02-12 23:14     ` Ken Brown
2018-02-14 15:56       ` Vonobow Smith

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).