HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Can I customize model scripts to print characters ...
Operating System - HP-UX
1827879
Members
1577
Online
109969
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2002 08:49 PM
02-20-2002 08:49 PM
Hey Guys,
Can I customize the printing model scripts (say PCL5.nloo) to print characters from different locale simultaneously? I would like to print both traditional and simplified chinese characters in one file. For traditional or simplified chinese characters alone, I can use the option zh_HK.utf8 or zh_CN.utf8 respectively.
Any technical or white paper for printing mechanism and PCL is also welcomed.
Regards.
Can I customize the printing model scripts (say PCL5.nloo) to print characters from different locale simultaneously? I would like to print both traditional and simplified chinese characters in one file. For traditional or simplified chinese characters alone, I can use the option zh_HK.utf8 or zh_CN.utf8 respectively.
Any technical or white paper for printing mechanism and PCL is also welcomed.
Regards.
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2002 07:22 AM
02-25-2002 07:22 AM
Solution
Do you want to (automatically) print the *whole* file in one locale and then the whole file in another locale, or do you want to print it in different locales line for line?
If the former (first), then it is best to set up a dummy printer (start with a copy of the "dumb" model script and modify that), which does not print the file, but does two *new* lp commands, i.e.
lp -d... -o.... $file
lp -d... -o.... $file
If the former (first), then it is best to set up a dummy printer (start with a copy of the "dumb" model script and modify that), which does not print the file, but does two *new* lp commands, i.e.
lp -d... -o.... $file
lp -d... -o.... $file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2002 08:00 AM
02-25-2002 08:00 AM
Re: Can I customize model scripts to print characters from different locale simultaneously.
The PCL5.nloo doesn't have any whitepaper to describe it's opertation. However, it should be fairly easy to describe a new -o option to do this.
Briefly, the .nloo script must process eacj line, one at a time. What it does is to examine each 16 bit symbol, then based on the locale setting, download a set of font characters for just that line, along with a set of dummy bytes to trigger those font characters to appear. This is done because the majority of printers will never have enough memory for a full Chinese character set, especially at high resolution.
So in the script, you can first process the special option, perhaps called -olocale2-zh_CN.utf8, and then where the processing of each line occurs, create a second copy of the same code but use the second locale and output a second line in the same manner.
Bill Hassell, sysadmin
Briefly, the .nloo script must process eacj line, one at a time. What it does is to examine each 16 bit symbol, then based on the locale setting, download a set of font characters for just that line, along with a set of dummy bytes to trigger those font characters to appear. This is done because the majority of printers will never have enough memory for a full Chinese character set, especially at high resolution.
So in the script, you can first process the special option, perhaps called -olocale2-zh_CN.utf8, and then where the processing of each line occurs, create a second copy of the same code but use the second locale and output a second line in the same manner.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2002 09:39 PM
02-26-2002 09:39 PM
Re: Can I customize model scripts to print characters from different locale simultaneously.
Hey guys,
Thank you for your advice. In fact, I am looking for a workaround solution to print text files with Unicode characters encoded in utf8 format. Unicode character set, comprised of characters from different countries or languages, includes both simplified and traditional Chinese characters. Thus, characters from different countries or language may appear in one line. However, no option in the PCL5.nloo model script is available to print such files. It seems that HP do not support the Unicode standard on printing at all.
I am also looking for 3rd party solution for the problem. Grateful if someone can provide any information on it.
Thank you for your advice. In fact, I am looking for a workaround solution to print text files with Unicode characters encoded in utf8 format. Unicode character set, comprised of characters from different countries or languages, includes both simplified and traditional Chinese characters. Thus, characters from different countries or language may appear in one line. However, no option in the PCL5.nloo model script is available to print such files. It seems that HP do not support the Unicode standard on printing at all.
I am also looking for 3rd party solution for the problem. Grateful if someone can provide any information on it.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP