Opened 15 years ago

Closed 15 years ago

#6973 closed defect (later)

UPDATE: ghostscript-8.51

Reported by: tatyana@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc: digdog@…, tatyana@…
Port:

Description

Plain ghostscript does not have any Asian (e.g. Japanese, Chinese, Korean, and so on.) fonts. If you want to print some *exotic* documents, you have to install some additional fonts and CMaps manually. This is not so efficiently, isn't it.

I thought that DarwinPorts' powerful "variants" option makes this problem solve. And I wrote a patch. Please see the attachment file.

usage) If we want to print Japanese text using ghostscript, all we have to do is typing "+hiragino +aj16". Hiragino fonts and Adobe Japan 1-6 CMap files are installed with gs automatically.

Would you mind to accept this patch?

Sincerely.

Attachments (4)

Portfile.diff (5.0 KB) - added by tatyana@… 15 years ago.
Portfile.diff
Portfile.2.diff (5.0 KB) - added by tatyana@… 15 years ago.
Portfile.diff
Portfile.3.diff (5.0 KB) - added by tatyana@… 15 years ago.
Portfile.diff
Portfile.4.diff (4.2 KB) - added by tatyana@… 15 years ago.
fixed Portfile.diff

Download all attachments as: .zip

Change History (13)

Changed 15 years ago by tatyana@…

Attachment: Portfile.diff added

Portfile.diff

Changed 15 years ago by tatyana@…

Attachment: Portfile.2.diff added

Portfile.diff

comment:1 Changed 15 years ago by tatyana@…

attachments.isobsolete: 01

comment:2 Changed 15 years ago by tatyana@…

Cc: tatyana@… added

Changed 15 years ago by tatyana@…

Attachment: Portfile.3.diff added

Portfile.diff

comment:3 Changed 15 years ago by tatyana@…

attachments.isobsolete: 01

comment:4 Changed 15 years ago by digdog@…

Since the opentype fonts in the system library are only exist in Mac OS X, and not available for OpenDarwin, I think the variant hiragino part might be a problem.

However, I had no questions on CMap releated variants.

comment:5 Changed 15 years ago by jmpp@…

(In reply to comment #4)

Since the opentype fonts in the system library are only exist in Mac OS X, and not available for OpenDarwin, I think the variant hiragino part might be a problem.

What about including these in a "macosx" platform section? That would not include OpenDarwin, hence no conflict.

-jmpp

PS: Without having read too deep into the patch, nor ghostscript's build system (therefore suggesting to take this comment with a grain of salt), I'd like to point out the proposed portfile is a bit too "turing complete", i.e. it attemps to solve manually some things which our infrastructure already handles quite well. I'd suggest writing something that simplifies the variants and relies a bit more on our {pre,post}-<target> and <variable>-{delete,append} hooks.

comment:6 Changed 15 years ago by tatyana@…

(In reply to comment #4)

Since the opentype fonts in the system library are only exist in Mac OS X, and not available for OpenDarwin, I think the variant hiragino part might be a problem.

I think there is no serious issue, because

  1. Nothing will be changed unless using "+hiragino" explicitly.
  1. By definition, peoples who already have Hiragino fonts can use this variant.
  1. Even if you haven't Hiragino fonts, nor OSX, you can buy it as an independent product.

(the font is a product of Dainippon Screen Mfg. Co.ltd.)

Since Hiragino font is widely used in Japan, i think it is worthy and important to support it in gs.

comment:7 Changed 15 years ago by tatyana@…

(In reply to comment #5)

the proposed portfile is a bit too "turing complete"

How embarrassing.. (/) What you say is absolutely right. I fixed it. Thanks to point out.

Changed 15 years ago by tatyana@…

Attachment: Portfile.4.diff added

fixed Portfile.diff

comment:8 Changed 15 years ago by tatyana@…

attachments.isobsolete: 01

comment:9 Changed 15 years ago by tatyana@…

Resolution: later
Status: newclosed
Note: See TracTickets for help on using tickets.