Bug 690706 - UTF-8-PCL support, additional symbol sets
Summary: UTF-8-PCL support, additional symbol sets
Status: RESOLVED FIXED
Alias: None
Product: GhostPCL
Classification: Unclassified
Component: PCL interpreter (show other bugs)
Version: unspecified
Hardware: All All
: P4 enhancement
Assignee: Henry Stiles
URL:
Keywords: bountiable
Depends on:
Blocks:
 
Reported: 2009-08-14 09:05 UTC by Joe
Modified: 2011-11-28 09:33 UTC (History)
2 users (show)

See Also:
Customer:
Word Size: ---


Attachments
utf8pcl-690706.tar.gz (16.87 KB, application/x-gzip)
2009-09-07 10:39 UTC, Joe
Details
Color Laser Symbol Set output (360.43 KB, application/pdf)
2011-03-02 19:25 UTC, Henry Stiles
Details
HP-UX 11i v3 International Printing Features from HP website (470.79 KB, application/pdf)
2011-03-03 10:07 UTC, Joe
Details
about HP LaserJet Printers with UTF-8 Firmware (104.20 KB, application/pdf)
2011-03-03 10:12 UTC, Joe
Details
Reference Output of HP Laserjet P4015 for eu_utf8.pcl, eu_wincp.pcl, wgl4-utf8.pcl (2.47 MB, application/pdf)
2011-03-04 09:43 UTC, Joe
Details
eu_wincp.pdf with empty chars (72.15 KB, application/pdf)
2011-11-25 15:14 UTC, Vincent A.
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joe 2009-08-14 09:05:42 UTC
GhostPDL does not yet support UTF-8-PCL.
I am going to add support for PCL commands "text parsing method 83" [ ESC & t 
83 P ] and symbol set 18N [ ESC ( 18 N ] .
see http://docs.hp.com/en/5991-7956/5991-7956.pdf

In a first step to print European languages, I have added 4 new symbol sets to 
plsymbol.c
   &map_9R_unicode,    /* windows-1251 cyrillic */
   &map_9G_unicode,    /* windows-1253 greek    */
   &map_9V_unicode,    /* windows-1256 Arabic   */
   &map_19L_unicode,   /* windows-1257 baltic   */

Greetings from Austria
Joe
Comment 1 Ray Johnston 2009-08-20 10:07:29 UTC
Marking this bountiable. We will pay the bounty if the submitter provides the
patch (and we accept it).
Comment 2 Joe 2009-09-04 07:52:49 UTC
my patch is ready, where should I send it to?
Comment 3 Henry Stiles 2009-09-04 08:04:42 UTC
Post patches here ... see "Create a new Attachment" above.  Note submissions
will be published under the GPL and the Artifex Commercial license upon acceptance.
Comment 4 Joe 2009-09-07 10:39:32 UTC
Created attachment 5359 [details]
utf8pcl-690706.tar.gz

compressed tar archive contains patch ghostpdl-utf8.diff and some pcl test
files.
Comment 5 Joe 2009-09-07 10:41:42 UTC
Here is my patch.
I understand that it will be published under the GPL and under the Artifex 
Commercial license when accepted.

1) add UTF-8 text parsing method 83/1008

2) add symbol sets
9R  - windows-1251 cyrillic
9G  - windows-1253 greek
19L - windows-1257 baltic
9V  - windows-1256 Arabic
18N - (590) unicode
Comment 6 Joe 2010-04-23 08:58:18 UTC
Do I have a chance that somebody might check the patch I have posted in July 2009?
Comment 7 Henry Stiles 2010-04-24 14:41:29 UTC
Sorry we simply haven't had time to review this.  I looked at it briefly and we are happy to pay you the bounty but I don't know when we'll have a chance to integrate and test, in the mean time you'll need to maintain a fork of ghostpcl.  Send me email privately to get contact information for the bounty, thanks for helping us with ghostpcl.
Comment 8 Alex Andrushchak 2011-02-10 19:57:13 UTC
(In reply to comment #6)
> Do I have a chance that somebody might check the patch I have posted in July
> 2009?

Hello Joe, could you please provide forked ghostpdl with your patches?
I also need 3R (IBM866) symbol set support?

Guys, it is very strange that someone created patch about 2 years ago but you did not reviewed it yet.
Comment 9 Henry Stiles 2011-03-02 19:25:44 UTC
Created attachment 7307 [details]
Color Laser Symbol Set output

I have some time to look at this now, it isn't clear what should be done here.  All the printers I have access to do not seem to support these symbols sets and there is very little to go on in the HP documentation.  The link to the HP-UX docs posted in this bug is dead.  The attachment shows output from a Color Laserjet 4600 which illustrates the symbol sets are not supported.

We have focused our PCL development on target western HP model printers, so I don't think we would want to have this patch in the mainline code.  Possibly it could be included with conditional compilation.

Can you send me the name of an HP printer device and a reference to any relevant PCL documentation.
Comment 10 Joe 2011-03-03 10:07:11 UTC
Created attachment 7309 [details]
HP-UX 11i v3 International Printing Features from HP website

paper gives PCL commands for PCL Symbol Set ID 18N (UTF-8)
On selected LaserJet printers released in 2004 or later with UTF-8 firmware, such as the LaserJet 2400, 4250, and 4350 series.
Comment 11 Joe 2011-03-03 10:12:53 UTC
Created attachment 7310 [details]
about HP LaserJet Printers with UTF-8 Firmware

document downloaded from the HP website some time ago.
Comment 12 Joe 2011-03-03 10:23:30 UTC
printers supporting utf-8 symbol set 18N and text parsing method 83:
HP Laserjet P54015, model nr CB511A
Konica Minolta bizhub C353
Comment 13 Henry Stiles 2011-03-03 21:06:47 UTC
(In reply to comment #12)
> printers supporting utf-8 symbol set 18N and text parsing method 83:
> HP Laserjet P54015, model nr CB511A
> Konica Minolta bizhub C353

Hello Joe

If you could update scans of each of the pcl test files from one of these devices I will integrate the code.  I am a bit uneasy working without reference output.
Comment 14 Joe 2011-03-04 09:43:14 UTC
Created attachment 7321 [details]
Reference Output of HP Laserjet P4015 for eu_utf8.pcl, eu_wincp.pcl, wgl4-utf8.pcl
Comment 15 Henry Stiles 2011-03-11 07:12:35 UTC
Integrated in ghostspdl revision 12278.
Comment 16 Vincent A. 2011-11-25 15:14:20 UTC
Created attachment 8153 [details]
eu_wincp.pdf with empty chars
Comment 17 Vincent A. 2011-11-25 15:15:04 UTC
Comment on attachment 8153 [details]
eu_wincp.pdf with empty chars

Hi Joe,
I've applied your patch on ghostpdl 8.70 to make it works on RHEL 5.x

When I am using your sample eu_wincp.pcl and eu_utf8.pcl. My pdf doesn't contains all chars. And obviously I have the same result in my pcl files.

I've read in bug #691581 that it should be linked to the embeded font :
name                                 type         emb sub uni object ID
------------------------------------ ------------ --- --- --- ---------
[none]                               Type 3       yes no  no      12  0
FYUVNH+NimbusMono-Reg                TrueType     yes yes yes      8  0

which doesn't contains all the greek symbol set (the one I need).

is there any type to install / use a font which work for win1253? 

I attach the result of eu_wincp.pcl with empty chars
Comment 18 Vincent A. 2011-11-25 15:51:19 UTC
Comment on attachment 8153 [details]
eu_wincp.pdf with empty chars

Hi Joe,
I've applied your patch on ghostpdl 8.70 to make it works on RHEL 5.x

When I am using your sample eu_wincp.pcl and eu_utf8.pcl. My pdf doesn't contains all chars. And obviously I have the same result in my pcl files.

I've read in bug #691581 that it should be linked to the embeded font :
name                                 type         emb sub uni object ID
------------------------------------ ------------ --- --- --- ---------
[none]                               Type 3       yes no  no      12  0
FYUVNH+NimbusMono-Reg                TrueType     yes yes yes      8  0

which doesn't contains all the greek symbol set (the one I need).

is there any type to install / use a font which work for win1253? 

I attach the result of eu_wincp.pcl with empty chars
Comment 19 Joe 2011-11-25 16:57:13 UTC
Hi Vincent, Nimbus Mono does not cover greek and cyrillic script.

Find a suitable TrueType font, e.g. Liberation Mono or Microsoft Core Fonts.

Modify pl/plftable.c as described in http://www.artifex.com/downloads/doc/ghostpcl.pdf

You will have to use the Postscript font name.  To find out, I recommend BabelPad and BabelMap under Windows.
Comment 20 Vincent A. 2011-11-28 09:33:02 UTC
(In reply to comment #19)
> Hi Vincent, Nimbus Mono does not cover greek and cyrillic script.
> 
> Find a suitable TrueType font, e.g. Liberation Mono or Microsoft Core Fonts.
> 
> Modify pl/plftable.c as described in
> http://www.artifex.com/downloads/doc/ghostpcl.pdf
> 
> You will have to use the Postscript font name.  To find out, I recommend
> BabelPad and BabelMap under Windows.

Thank you a lot, it works so good :)