🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #9282

Re: Accented characters

#9282
From: Geoffrey H. Cooper
Date: Thu, 15 Mar 1990 02:45
73 lines
3822 bytes
In article <430@seti.inria.fr> soulard@fantasio.inria.fr (Herve Soulard) writes:
>
>	Just one question :
>		How can I use accented characters in a string ?
>
You must reencode the font, so that the accented characters are
accessible.  The is a nice example of this in the blue book.  

Later versions of PostScript have an ISOLatin1Encoding vector that you
can use to get this standard accented encoding.  The code would be
something like:

/ISOHelvetica
    /Helvetica findfont dup length dict begin
    { 1 index /FID eq { pop pop } { def } ifelse } forall
    /Encoding ISOLatin1Encoding def
    currentdict end definefont pop

/ISOHelvetica findfont 10 scalefont ....

If you don't have ISOLatin1Encoding, here is what it is, so you can
define it using "EXITSERVER":

---------------------------
/ISOLatin1Encoding
[
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/space /exclam /quotedbl /numbersign /dollar /percent /ampersand /quoteright
/parenleft /parenright /asterisk /plus /comma /minus /period /slash
/zero /one /two /three /four /five /six /seven
/eight /nine /colon /semicolon /less /equal /greater /question
/at /A /B /C /D /E /F /G
/H /I /J /K /L /M /N /O
/P /Q /R /S /T /U /V /W
/X /Y /Z /bracketleft /backslash /bracketright /asciicircum /underscore
/quoteleft /a /b /c /d /e /f /g
/h /i /j /k /l /m /n /o
/p /q /r /s /t /u /v /w
/x /y /z /braceleft /bar /braceright /asciitilde /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/dotlessi /grave /acute /circumflex /tilde /macron /breve /dotaccent
/dieresis /.notdef /ring /cedilla /.notdef /hungarumlaut /ogonek /caron
/space /exclamdown /cent /sterling /currency /yen /brokenbar /section
/dieresis /copyright /ordfeminine /guillemotleft /logicalnot /hyphen
/registered /macron
/degree /plusminus /twosuperior /threesuperior
/acute /mu /paragraph /periodcentered
/cedilla /onesuperior /ordmasculine /guillemotright
/onequarter /onehalf /threequarters /questiondown
/Agrave /Aacute /Acircumflex /Atilde /Adieresis /Aring /AE /Ccedilla
/Egrave /Eacute /Ecircumflex /Edieresis /Igrave /Iacute /Icircumflex /Idieresis
/Eth /Ntilde /Ograve /Oacute /Ocircumflex /Otilde /Odieresis /multiply
/Oslash /Ugrave /Uacute /Ucircumflex /Udieresis /Yacute /Thorn /germandbls
/agrave /aacute /acircumflex /atilde /adieresis /aring /ae /ccedilla
/egrave /eacute /ecircumflex /edieresis /igrave /iacute /icircumflex /idieresis
/eth /ntilde /ograve /oacute /ocircumflex /otilde /odieresis /divide
/oslash /ugrave /uacute /ucircumflex /udieresis /yacute /thorn /ydieresis
]
def
---------------------------

If you want a different encoding, this can also be achieved.  Adobe
requires that you put both the accents and the unaccented versions of
the characters in the encoding, along with the accented version.  So
you must have an encoding for "grave" & "a" if you want to use "agrave".

- Geof
-- 
geof@aurora.com / aurora!geof@decwrl.dec.com / geof%aurora.com@decwrl.dec.com
Technical Details
Message-ID: <1990Mar15.024516.1300@aurora.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!ucbvax!decwrl!aurora!geof
References: <430@seti.inria.fr>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!ucbvax!decwrl!aurora!geof
From: geof@aurora.com (Geoffrey H. Cooper)
Newsgroups: comp.lang.postscript
Subject: Re: Accented characters
Message-ID: <1990Mar15.024516.1300@aurora.com>
Date: 15 Mar 90 02:45:16 GMT
References: <430@seti.inria.fr>
Reply-To: geof@aurora.UUCP (Geoffrey H. Cooper)
Organization: The Aurora Group, Palo Alto, CA
Lines: 73