×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Calling Eurpoean Symbols
2

Calling Eurpoean Symbols

Calling Eurpoean Symbols

(OP)
good afternoon all,
does anyone know the escape sequence to print the Euro and the British Pound?
thanks in advance.
regards,
longhair

RE: Calling Eurpoean Symbols

I would look up a list of symbol sets. Most (that have
a-z,A-Z,0-9 to distinguish from linedraw and dingbat symbol sets for example) will have different symbols for characters
other than the standard letters,numbers, and punctuation characters.

I luckily have an old tech reference manual from a Toshiba
PageLaser that is excellent. I'm not even sure Toshiba still makes laser printers. Whether you can get this info from HP, I don't know. Most of the ISO symbol sets have the
pound symbol (Brittish currency) symbol as chr$(23H) instead of chr$(24H) for the dollar symbol. Whether that's available on your printer is ???

If you are using a laser printer, you could develop the
symbol using raster graphics. The reason I excluded inkjets is that it's been my experience that the inkjets will print
one raster graphic (preferably the last thing to be printed)
and ignore the rest. Of course, that just might be that I am
handling it incorrectly (that it only prints one).

RE: Calling Eurpoean Symbols

I didnt mention the code for the ISO symbol sets:
CHR$(27);"(1E" 'ISO United Kingdom
CHR$(27);"(1F" 'ISO French
also
CHR$(27);"(0G" 'HP German
are a few that should have the pound symbol as CHR$(35)

RE: Calling Eurpoean Symbols

You must first select a symbol set that has the symbol you want.  According to HP's PCL5 Comparison Guide, symbol set 13J (Venture Internatiional) has the British pound as 18710, BBhex and the Japanese yen as 18810, BChex.  My copy precedes the adoption of the Euro symbol, so I don't have any referance to that.  As per Buff1, the symbol set is accessed by the escape sequence esc(s, where s is the symbol set, in this case 13J.

RE: Calling Eurpoean Symbols

(OP)
afternoon all,
i decided to test this before doing it programatically.
i set the printers symbol set manually to one that should contain a euro symbol (windows cp1252 latin 1) which is listed in the pcl menu as an available symbol set.
i then created a file with a couple of spaces the word test and the euro symbol - chr(128).
when i alter the file to the printer i get the spaces and the word test but no euro symbol.  if i bring the file over to windows i can see the euro symbol in it.
could the issue be that this is being printed off of an hpux box?
any suggestions?
regards,
longhair

RE: Calling Eurpoean Symbols

longhair, what do you mean "set the printer's symbol set manually"?  Please explain this process.  Also, what does "alter the file to the printer" mean?

RE: Calling Eurpoean Symbols

(OP)
webrabbit,
by setting manually i mean - i went to the printer a 5Si in this case and used the menus button to select the pcl menu.  i then selected the sym set (symbology set) and changed it from pc-8 to win l-5 (i also tried many other sets that are native to the printer).
as far as alter the file to the printer - sorry unix terminology.  i'm coding the program and printing from a hpux system.
could the issue be the driver that the printer is set to use on the unix system?
if i ftp the file over to windows i can see the symbols fine and they print fine, but then we loose the ability to call the form (via pcl) that is stored on the printer and has to be used for this print job.
regards,
longhair.

RE: Calling Eurpoean Symbols

Maybe your "lp" is stripping the input to 7 bits.

Can you print any 8bit characters from any symbol set?

Is there a "raw" option to your lp command?

For example try...

lp -d yourprintername -o raw yourpclfilename

Jim Asman
http://www.spectracolorservices.com

RE: Calling Eurpoean Symbols

(OP)
jlasman,
thanks for the suggestion.
the net_lj5x driver does have the option, however it did not produce the correct symbol.
what i have found is that if i choose a symbol set that does not include the chr$ then all data after it is moved 1 space to the left.  if i choose a symbol set that does include the chr$ then then data is spaced properly.  i take this to mean that the data is getting to the printer it's just not being properly interpreted.
regards,
longhair

RE: Calling Eurpoean Symbols

What is the DOS command you are using to print?

What is the Unix command?

I would embed the symbol set command in the pcl file and not worry about the control panel setting.

If you have some way to cat the file directly to the printer port, bypassing the spooler, try that.


Jim Asman
http://www.spectracolorservices.com

RE: Calling Eurpoean Symbols

(OP)
jlasman,
unix - lp -d<device name> -onb -o raw <file name>
what would the sytax be of the cat command?  something like - cat <file name> | lp -d<device name>...
regards,
longhair

RE: Calling Eurpoean Symbols

I suspect that your driver is sending a PCL symbol set command, which would override the front panel selection.  If the test data are small enough, perhaps you can put the printer into "hex dump" mode and see what is actually being received.

RE: Calling Eurpoean Symbols

(OP)
webrabbit,
thanks for the idea but i don't think that's it.
if i choose a chr$ that is one character in pc-8 and a different one in lets say iso l5 i get the character printed out when the control panel is set to pc-8.  i set the control panel to iso l5 and i get a blank space.
regards,
longhair

RE: Calling Eurpoean Symbols

(OP)
jlasman,
get a square black block, exactly like the symbol on the page marked 'Internal Symbol Set Charts B-3' of the HP PCL/PLJ Reference PCL 5 Companion Guide.
regards,
longhair

RE: Calling Eurpoean Symbols

OK! I can only assume that the euro symbol is NOT available in the font you are using, at least with the symbol set in use.

What printer model are you using? Are you sure it doesn't predate the euro?

This begs the question then as to why it prints OK from DOS! What print command are you usung to print from DOS?

Maybe a windows driver is somehow interceding on your behalf and is using a soft font.

Jim Asman
http://www.spectracolorservices.com

RE: Calling Eurpoean Symbols

(OP)
jlasman,
printer is an hp laserjet 5si.
the idea that it might prdate the euro recently came to mind.  i've been trying to find a site that either lists printers that can print the euro or lists the ones that you would need a dimm or flash card for.
haven't tried to print from dos, just unix and windows.
since it's a network printer and not set up on lpt1 i'll have to find the commands to send the print job to it.
regards,
longhair

RE: Calling Eurpoean Symbols

Looking on HP's website, I can find NO evidence that the euro symbol is contained in any builtin font on any HP printer. Apparently the euro was placed at chr(128) on ALL the windows soft TTF fonts that correlate to the internal printer fonts.

Jim Asman
http://www.spectracolorservices.com

RE: Calling Eurpoean Symbols

The 5si was well before the euro. If you are printing from a windows application, then the windows driver must be having a hand in this.

You will have to download a soft font to RAM, get a font DIMM, or download to FLASH memory. HP has some freebie soft fonts with the euro.

And so it goes...

Jim Asman
http://www.spectracolorservices.com

RE: Calling Eurpoean Symbols

(OP)
jlasman,
thanks for the help.  just posted a question to one of hp's forums so i'll see what transpiers there.  just using the 5si because it's in the office right next to me and i don't have to worry about fouling up anyone elses print jobs with my tests.  ultimately this will be printed from the hpux box in the states to a remote site in the uk.  it will be printed on an hp laserjet 2420.  i was just trying to get all the kinks out locally.
regards,
longhair

RE: Calling Eurpoean Symbols

(OP)
jlasman,
just to close off the thread - it was the printer.
went to a newer one that has the roman-9 symbol set and everything works just fine.

regards,
longhair

RE: Calling Eurpoean Symbols

(OP)
jlasman,
no, it was a 2430 that we have down in the warehouse.
uk is 5 hours ahead so they are gone for the day and i didn't want to send a test over that could foul up their printer (didn't want a call at 2 or 3 in the morning that they could not print).
regards,
longhair

RE: Calling Eurpoean Symbols

I just tested on my printers.

LJ 5000 - no joy

DeskJet 2280 - Yess!!! Symbol Set 9U  chr(128)

Thanks for the followup

Jim Asman
http://www.spectracolorservices.com

RE: Calling Eurpoean Symbols

You could as i suggested earlier, make the symbol in a
raster graphics file and print it when needing to print that
symbol. More work but might be worth it.

RE: Calling Eurpoean Symbols

Here's another suggestion for the raster graphics.
Get a gif picture of the symbol, then i have some dos software that will convert it to hp raster graphics. You'll
need to play with it to get it to the correct size, but then you can save it to a file, and open and read it in and
print it to the printer. I've done this with signatures very effectively on a different operating system (THEOS) which is a multi-user system not unlike unix in some ways.

RE: Calling Eurpoean Symbols

With FonCreator you can take an existing TrueType font, and insert that .gif image into the correct spot.

RE: Calling Eurpoean Symbols

The euro symbol is allocated Unicode code-point U+20AC.

Whether a glyph associated with this code-point is present in 'standard' printer resident fonts depends (as Jim pointed out and others confirmed by practical means) on the age of the device.

Most modern LaserJet and clone devices will have the euro glyph present in most of the standard fonts (but probably not LinePrinter).

Assuming that the target printer does have the required glyph, the 'mapping' to an eight-bit character code will depend on the symbol set selected: for Windows ANSI (symbol set 19U), U+20AC is mapped to 0x80; the same mapping exists for the older Windows 3.0 symbol set (9U).

Another point: FontCreator can indeed do some excellent things, but only with native TrueType fonts; you can't use it to change printer-resident fonts.

RE: Calling Eurpoean Symbols

As regards the pound sterling symbol: this is allocated Unicode code-point U+00A3.

If you use the ISO8859/1 Latin-1 coded character set (HP symbol set 0N) this provides a simple mapping to the first 256 Unicode characters (those defined in row 0 of plane 0 (the Basic Multilingual Plane (BMP)).
i.e. 0xA3 maps to U+00A3 , etc.

The Windows ANSI coded character set (symbol set 19U) is a 'superset' of ISO 8859/1, in that characters in the range 0x80-0x9F (which are defined in ISO 8859/1, and Unicode, as 'undefined control codes) are used within Windows ANSI to map to various additional characters (with Unicode code-points at or above U+0100).

Most common operating systems in use today (in the western world) default to use of ISO 8859/1 or Windows ANSI (for 8-bit working), although many actually use (16-bit) Unicode internally.

Most browsers support ISO 8859/1, but also support UTF-8, which is a standard mechanism for representing 16-bit Unicode (UCS-2) or 32-bit UCS-4 values unambiguously, whilst allowing for short 8-bit forms for the standard ASCII characters; I don't think that many (if any?) printers support UTF-8.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close