From johnnyreb.4@southland.smart.net.SPAMMEN.VERBOTEN Mon Feb 4 15:00:23 2002 Path: ulcc.ac.uk!server3.netnews.ja.net!server1.netnews.ja.net!server2.netnews.ja.net!btnet-peer0!btnet-peer1!btnet!news.maxwell.syr.edu!sn-xit-03!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: Ray Chason Newsgroups: rec.games.roguelike.nethack Subject: PATCH: Fix for NT keyboard and support for ISO-8859-1 character set: part 2, user's guide Date: Fri, 01 Feb 2002 03:44:25 -0000 Organization: Not bloody likely Message-ID: X-Newsreader: Royal News, Alpha 1 X-MS-Windows-95: Where do you want to go today? X-MS-Windows-XP: All your base are belong to us. X-Complaints-To: newsabuse@supernews.com Lines: 88 Xref: ulcc.ac.uk rec.games.roguelike.nethack:158049 New options =========== The ISO-8859-1 patch adds two new options, so that the user may conform the output to the capabilities of her computer: * "accents", when false, turns off the display of diacritics. The internal representation of strings is not affected; rather, the characters are mapped onto US ASCII before display. The default value is true, allowing display of diacritics. * "IBMcharset" is meaningful only in ports that support IBMgraphics. It informs Nethack of the character set. If "IBMcharset" is false, ISO-8859-1 is assumed; if true, the default character set found in IBM PCs is assumed. If "IBMcharset" is true, ISO-8859-1 characters that are not available in the IBM PC character set are mapped to US ASCII, as if "accents" were set. Other characters are left unchanged. If "IBMcharset" is false, all ISO-8859-1 characters are displayed unchanged. When IBMgraphics is also in effect, certain map symbols are changed to avoid characters not available in the local character set. Linux, MSDOS, and Windows NT can still display most IBMgraphics, because they define additional symbols not present in official ISO-8859-1; the characters altered are: * Linux: open door is displayed as a solid block. * MSDOS and NT: pool, water, and lava are displayed as a section mark, '§'. * All: iron bars are displayed as a lowercase letter pi. * All: fountain is displayed as the German double S character, 'ß'. Display options in the configuration file are honored, and override these changes. The default setting for IBMcharset is false, so that ISO-8859-1 is assumed. The new options are not preserved in the save file; if they were, the save file would not be compatible with unpatched Nethack. Setting character sets ====================== The procedure for setting up character sets differs by platform: * At a Linux console, one may set the display character set with the setfont command, and the keyboard map with the loadkeymap command. * Xterms and their KDE and GNOME equivalents vary somewhat in their configuration, but usually support ISO-8859-1 without user intervention. Set accents to true and IBMcharset to false (these are the defaults). * In Windows NT (IIRC) it is sufficient to type "chcp 850" and run Nethack in a full-screen shell. * MSDOS (including Windows 9x, whether running an MSDOS or NT version of Nethack) is more complicated, requiring entries in CONFIG.SYS and AUTOEXEC.BAT. The lines below are for Windows 9x, setting up to a default US configuration; paths may need to be changed for real MSDOS or non-US locales: * In CONFIG.SYS, include these lines: country=001,,c:\windows\command\country.sys device=c:\windows\command\display.sys con=(ega,437,1) * In AUTOEXEC.BAT, include these lines: c:\windows\command\nlsfunc c:\windows\command\country.sys c:\windows\command\mode con cp prepare=((850)c:\windows\command\ega.cpi) You can then set the code page as follows (or set them in AUTOEXEC.BAT): chcp 850 keyb us,850,c:\windows\command\keyboard.sys Note that screen fonts only take effect in full screen windows. If you run Nethack in a window, you will always see the default font; IBMcharset should be true for this configuration. -- --------------===============<[ Ray Chason ]>===============-------------- PGP public key at http://www.smart.net/~rchason/pubkey.asc Delenda est Windoze