special symbol

Jean-Pierre A. Radley appl at jpr.com
Sun May 30 11:12:41 PDT 2004


Jay R. Ashworth propounded (on Sun, May 30, 2004 at 12:30:39PM -0400):
| On Sun, May 30, 2004 at 10:33:02AM -0500, Richard D. Williams wrote:
| > The symbol is a "section sign".  In HTML it is produced by § or §.
| 
| A*ha*.
| 
| (It's something we detectives say...)
| 
| > It is agreed chr("167") is correct.
| 
| Alas, no, it's not; this is the fundamental problem in this
| conversation.

No need to cry 'alas', since he quite possibly ~does~ want to use
chr("167"); but as you say, that will render as the section sign ~only~
in the appropriate character set.

| >                                   I am trying to print this symbol 
| > on a Kyocera printer using HP4 emulation.

On my HP G85 OfficeJet, chr("167") produces the usual symbol for
"degrees" (a small 'o' superscript) in the default character set; but
choosing the ISO 8859-2 charset, with the escape sequence 'ESC( 2 N',
chr("167") renders the section symbol.

| So, what you need to know is: what character do I send to that printer,
| in that emulation, in the font I'm printing in, with the default
| character set mapping for that font and emulation, to get that glyph on
| paper.
| 
| *Not one part* of that last sentence is optional.
| 
| > When I look at the filepro Character Table the underscored o is,     Dec 
| > =167  Hex=  A7. 
| > If I set h=chr("167") and then print var h on a form, I get the 
| > underscored o.
| > If 167 is indeed the correct decimal code for the section sign, why do I 
| > get this underscored o?
| 
| Because you didn't understand what we said about character set
| mappings.  All of us said it, in different ways, and IIRC, all of us
| were accurate.
| 
| > I would like to create a print code to produce this symbol.
| 
| See above.  Specifically, you need to print out 'man ascii' on that
| printer, and see whether you get the character you want, and which one
| it is. 

Oh?  On my OS, man ascii only reaches from 20(octal) to 176(octal),
and adopts a "mum's the word" stance toward the so-called "high ascii"
values.

Om my OfficeJet, a filePro printcode of '$1b (2N $a7 $1b (1N' does the
job.  On your Kyocera emulating HP PCL, I couldn't possibly say -- as
Jay said, check the details of the font possiblities on ~your~ printer.

But: you've nothing to lose trying what I tried (decimal 167 = octal 247):

	echo '\n\n\033(2N\0247' | lp

If you get your section symbol, then the fP print code I cited above is
what you want.

-- 
JP


More information about the Filepro-list mailing list