Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!lll-winken!uunet!maverick.ksu.ksu.edu!ux1.cso.uiuc.edu!csrd.uiuc.edu!s41.csrd.uiuc.edu!eijkhout From: eijkhout@s41.csrd.uiuc.edu (Victor Eijkhout) Newsgroups: comp.text.tex Subject: Re: Problem with TeX character codes Message-ID: <1991Feb7.175735.12642@csrd.uiuc.edu> Date: 7 Feb 91 17:57:35 GMT References: <1991Feb7.112203.12456@polaris.utu.fi> Sender: news@csrd.uiuc.edu (news) Organization: UIUC Center for Supercomputing Research and Development Lines: 37 knuutila@tucos.utu.fi (Timo Knuutila) writes: >Dear TeXackers, >I encountered the following problem when trying to marry TeX, PostScript fonts >and foreign language hyphenation in my TeX-system (SB-TeX, emTeX drivers and >font libraries, dvips54, 386 PC). You could try adding virtual fonts to this... >I have a scandinavian keyboard with special keys for the accented scandinavian >letters (\"a, \"o, \"A, \"O, \aa, \AA) and I'm trying to map these to the >corresponding PostScript character codes. In what follows, suppose that >x, y, X and Y stand for the characters of a-, o-, A- and O-umlaut, >respectively. >The easiest way to map these characters to something TeX knows about, would be > \catcode`\x=\active [misguided attempt deleted] >They should be mapped directly to character codes (the > x: 0x99 [...] >I made the following macro definitions (after x etc had been declared to be >active characters): > \defx{^^99} [...] This is too low level. Have you tried \catcode`x\active \def x{\char"99 } ? That addresses directly the font position, without trying to force some earlier translation table. Victor.