Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!lll-crg!lll-lcc!pyramid!amiga!andy From: andy@amiga.UUCP (Andy Finkel) Newsgroups: net.micro.amiga Subject: Re: printer driver character mapping question Message-ID: <1266@amiga.amiga.UUCP> Date: Mon, 9-Jun-86 10:24:12 EDT Article-I.D.: amiga.1266 Posted: Mon Jun 9 10:24:12 1986 Date-Received: Wed, 11-Jun-86 00:34:04 EDT References: <3816@utah-cs.UUCP> Reply-To: andy@skipper.UUCP (andy finkel) Organization: Commodore Business Machines, 1200 Wilson Drive, West Chester, PA 19380 Lines: 53 Keywords: device dependent printer driver In article <3816@utah-cs.UUCP> crum@utah-cs.UUCP (Gary L. Crum) writes: >I'm posting this article for u-rlcarl%utah-ug@utah-cs.{UUCP,ARPA} . > > I am writing an Amiga device dependent printer driver, but am having a >problem sending plain text to the printer. The device Independent printer >code seems to assume that it can pass all printable characters directly to >the printer, without consulting the device dependent code. This is fine >for the standard ASCII character set (codes from $20 to $7E), but doesn't >work at all when printing the Amiga's extended set of foreign and other >characters which have codes $A0 to $FF. Most printers, including >IBM-compatible ones, have defined a completely different set of characters >in this range, and so an Amiga character usually has no resemblance at all >to its symbol printed by the printer. > > My printer has the capability of printing most of the Amiga's extended >characters, but I need some way to convert an Amiga printable character >into an equivalent character on my printer. Can the device dependent >printer code include a lookup table for translating printable characters >before they are sent to the printer? Or is there a way to force the device >independent code to call some routine in the device dependent driver >whenever a printable character is to be sent to the printer? I don't want >to have to run all of my text files through a separate filter before I send >them out to the printer! > > Thanks. > Richard Carlson This was one of the features we added for 1.2...a mapping table to allow you to choose the character(s) send to the printer for each of the codes in the Amiga extended character set. This character mapping table is part of the printer dependent code, so can be entirely different for each printer. (We just got finished defining tables for our current crop of printers). As an added bonus, there's a default table with halfway reasonable values for use in the general case, or when you don't feel like defining a table of your own. Anyway, it will be along with 1.2.... andy -- andy finkel Commodore(Amiga) {ihnp4|seismo|allegra}!cbmvax!andy or pyramid!amiga!andy Any expressed opinions are mine; but feel free to share. I disclaim all responsibilities, all shapes, all sizes, all colors. "Remember, no matter where you grow, there you are." - Buckaroo Bonsai.