lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lynx-dev Superscripts


From: Doug Kaufman
Subject: Re: lynx-dev Superscripts
Date: Tue, 6 Jun 2000 22:02:21 -0700 (PDT)

On Tue, 6 Jun 2000, Doug Kaufman wrote:

> OK. I'll send the info to the list when I get home tonight. I didn't
> ... 
> The file with the ISO codepages for MS-DOS is also available from the
> author's web page: "http://www.kostis.net/freeware/indexe.htm";.

I haven't gotten home, but I found the instructions that I sent to
another lynx-dev member in 1998. I hope that this isn't too long.

The following instructions work for me on a US MS-DOS machine. Outside
the US, you may want to follow Kosta Kostis' instructions in
isocp101.zip rather than my modifications which follow.

1. Put the following line in your CONFIG.SYS file. If you don't have
room in high memory, use DEVICE instead of DEVICEHIGH.

DEVICEHIGH=C:\DOS\DISPLAY.SYS CON=(EGA,437,1)

2. Copy the ISOLATIN.CPI and ISOOTHER.CPI files containing the code
pages into C:\DOS. They are from the isocp101.zip file.

3. The following batch file works for me in the US, and differs from
that in the zip file.

@ECHO OFF

ECHO Copyright (C) 1993 by Kosta Kostis - this is freeware!
ECHO Written by address@hidden (Kosta Kostis)
ECHO SwitchCP V1.11 (19-DEC-1993)
: Modified by Doug Kaufman for the US MSDOS system

IF NOT "%1" == "" GOTO DO_PREPARE
ECHO Syntax: SwitchCP #
ECHO    where # is from 1 to 5 or from 7 to 10
GOTO END

:DO_PREPARE
REM load font from alternative CPI-file and select it
IF "%1" == "0" GOTO IBM
IF "%1" == "1" GOTO ISO_1
IF "%1" == "2" GOTO ISO_2
IF "%1" == "3" GOTO ISO_3
IF "%1" == "4" GOTO ISO_4
IF "%1" == "5" GOTO ISO_5
IF "%1" == "6" GOTO ISO_UNKNOWN
IF "%1" == "7" GOTO ISO_7
IF "%1" == "8" GOTO ISO_8
IF "%1" == "9" GOTO ISO_9
IF "%1" == "10" GOTO ISO_10
GOTO ISO_UNKNOWN

:IBM
REM Codepage whatever you have - set it up here
Mode CON CP SEL=437 >nul
ECHO Codepage 437 selected.
GOTO END

:ISO_1
REM ISO 8859-1  (Latin 1) aka IBM Codepage 819
Mode CON CP PREP=((819) C:\DOS\ISOLATIN.CPI) >nul
Mode CON CP SEL=819 >nul
ECHO ISO 8859-1 aka IBM Codepage 819 selected.
GOTO END

:ISO_2
REM ISO 8859-2  (Latin 2)
Mode CON CP PREP=((912) C:\DOS\ISOLATIN.CPI) >nul
Mode CON CP SEL=912 >nul
ECHO ISO 8859-2 aka IBM Codepage 912 selected.
GOTO END

:ISO_3
REM ISO 8859-3  (Latin 3)
Mode CON CP PREP=((913) C:\DOS\ISOLATIN.CPI) >nul
Mode CON CP SEL=913 >nul
ECHO ISO 8859-3 aka IBM Codepage 913 selected.
GOTO END

:ISO_4
REM ISO 8859-4  (Latin 4)
Mode CON CP PREP=((914) C:\DOS\ISOLATIN.CPI) >nul
Mode CON CP SEL=914 >nul
ECHO ISO 8859-4 aka IBM Codepage 914 selected.
GOTO END

:ISO_5
REM ISO 8859-5  (Latin/Cyrillic)
Mode CON CP PREP=((915) C:\DOS\ISOOTHER.CPI) >nul
Mode CON CP SEL=915 >nul
ECHO ISO 8859-5 aka IBM Codepage 915 selected.
GOTO END

:ISO_6
REM ISO 8859-6  (Latin/Arabic) - not yet supported
Mode CON CP PREP=((1089) C:\DOS\ISOOTHER.CPI) >nul
Mode CON CP SEL=1089 >nul
ECHO ISO 8859-6 aka IBM Codepage 1089 selected.
GOTO END

:ISO_7
REM ISO 8859-7  (Latin/Greek)
Mode CON CP PREP=((813) C:\DOS\ISOOTHER.CPI) >nul
Mode CON CP SEL=813 >nul
ECHO ISO 8859-7 aka IBM Codepage 813 selected.
GOTO END

:ISO_8
REM ISO 8859-8  (Latin/Hebrew)
Mode CON CP PREP=((916) C:\DOS\ISOOTHER.CPI) >nul
Mode CON CP SEL=916 >nul
ECHO ISO 8859-8 aka IBM Codepage 916 selected.
GOTO END

:ISO_9
REM ISO 8859-9  (Latin 5)
Mode CON CP PREP=((920) C:\DOS\ISOLATIN.CPI) >nul
Mode CON CP SEL=920 >nul
ECHO ISO 8859-9 aka IBM Codepage 920 selected.
GOTO END

:ISO_10
REM ISO 8859-10 (Latin 6)
Mode CON CP PREP=((919) C:\DOS\ISOLATIN.CPI) >nul
Mode CON CP SEL=919 >nul
ECHO ISO 8859-10 aka IBM Codepage 919 selected.
GOTO END

:ISO_UNKNOWN
REM unknown/unsupported ISO 8859 index
ECHO SwitchCP: Please forgive my "ignorance", but I don't "know" ISO 8859-%1.
ECHO Currently supplied: 1..5, 7..10 (6 missing).

:END

4. I call the following 850.bat. It puts the DOS terminal into cp850.
@echo off
c:\dos\mode con cp prepare=((850) c:\dos\ega.cpi) >nul
c:\dos\mode con cp sel=850 >nul

5. I call the following 437.bat. It puts the DOS terminal into cp437.
This assumes 437 selected as default in DISPLAY.SYS call from
config.sys.
@echo off
c:\dos\mode con cp sel=437 >nul

6. I call this 819.bat. It puts DOS terminal into cp819 (ISO 8859-1).
@echo off
c:\dos\mode con cp prepare=((819) c:\dos\isolatin.cpi) >nul
c:\dos\mode con cp sel=819 >nul




To have MSKERMIT translate automatically, you can put the following
in MSCUSTOM.INI, or type at the MSKERMIT prompt.
        set terminal bytesize 8
        set terminal character-set latin1-iso
        set terminal code CP850

For the above to work, the terminal must be in CP850 (see item 4,
above). If you use CP437, instead of CP850, some of the letters don't
have an equivalent in the codepage and are approximated. If you actually
use Latin1 on your DOS machine (CP819), then you can  use the following.

set terminal character-set transparent

For Latin1 to come through transparently, the MSKERMIT terminal
emulation should be vt220 or vt320. The vt100 series of emulations
won't work, since apparently the real vt100 series by DEC didn't allow
transparent passage of the characters.

This concludes the DOS esoteric syntax post of the day.


                           Doug

__ 
Doug Kaufman
Internet: address@hidden


; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]