special symbol

Brian K. White brian at aljex.com
Sat May 29 15:23:05 PDT 2004


Richard D. Williams wrote:
> Perhaps I should be more clear. I need this to print on a form.
>
> After trying:   h=chr("167"), this yielded:   º
>
> Any other ideas would be appreciated.
>
> Richard D. Williams
>
> Bob Stockler wrote:
>
>> On Sat, May 29, 2004 at 01:38:15PM -0500, Richard D. Williams wrote:
>>>
>>> Does anyone know the code to produce this symbol,  §?
>>
>> On an SCO ScoTerm Window it's chr("167").
>>
>>  [trebor] ~: mawk 'BEGIN{ i=167 ; printf "%3d - %c\n",i,i}'
>>  167 - §
>>
>> Bob

In that case, just issue a printer code to switch to a latin font just for
that character.

For hplaser try adding this code to your print code table, say you make it
code 130:

130      : $1b (0N                         : Latin-1 character set

Similar to the ones 24, 25, & 26 that are already there.

Then in your output format put a print code 130 somewhere before the data
that might contain the symbol, and a code 24 after it if you need to switch
back to IBM for the line/box drawing characters.

The symbol may exist in one of the already existing alternate character sets
in code 25 or 26 but I don't know off hand it does or what ascii value it
might be. I just happen to have a chart for latin-1 so in latin-1 I know
which character it is, and I just happen to know the pcl code to request
latin-1 character set.

A quick way to test if this will work as expected on your printer to see if
your printer actually has the necessary built-in font to honor the request
is like I did with an echo comand at a unix prompt:
echo "\033(0N\0247\014\c" |lp -o raw -d hplaser

\0247 is the octal equivalent of decimal 167

Brian K. White  --  brian at aljex.com  --  http://www.aljex.com/bkw/
+++++[>+++[>+++++>+++++++<<-]<-]>>+.>.+++++.+++++++.-.[>+<---]>++.
filePro BBx  Linux SCO  Prosper/FACTS AutoCAD  #callahans Satriani



More information about the Filepro-list mailing list