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

Re: dosemu with hebrew




----- Original Message -----
From: "Matan Ziv-Av" <matan@svgalib.org>
To: "Tzafrir Cohen" <tzafrir@technion.ac.il>
Cc: "evyatar" <webmaster@ozint.com>; "Isreali Linux mailing list"
<linux-il@linux.org.il>
Sent: Friday, December 28, 2001 5:38 PM
Subject: Re: dosemu with hebrew


> On Fri, 28 Dec 2001, Tzafrir Cohen wrote:
>
> > On Fri, 28 Dec 2001, Matan Ziv-Av wrote:
> >
> > > On Fri, 28 Dec 2001, evyatar wrote:
> > >
> > > >I use dosemu-1.0.2 and I want to run dos program that use hebrew.
> > > >I use kbd-1.06 to load hebrew in the console and
> > > >then I can write hebrew.
> > > >but after I run dosemu I lose all the hebrew support.
> > >
> > > Dosemu runs the video card's bios' init routine, which loads the fonts
> > > from the card's rom to ram, and since it's a long time since cards
came
> > > with a hebrew font in their rom, the bios actually overwrites the font
> > > you wrote to the card with consolechars.
> > >
> > > There are a few possible solutions -
> > > 1. you can use dos programs that load hebrew fonts (hebega.com).
> > > 2. If you only use text mode, use text mode dosemu - see
> > >2.1.7. Video settingd in README.txt.
> >
> > If you are root you can set the font of the tty from another console
(with
> > the option --tty to consolechars). Does dosemu block this?
>
> In vgacon at least (I don't know about fbcon), there are no per-vc
> fonts, but if you use dosemu in graphics mode, it saves and restore it's
> own fonts on vc enter/leave, in the same way that X11 and svgalib do.
>
>
> --
> Matan Ziv-Av.                         matan@svgalib.org

I put this in dosemu.conf

$_video = "vga" # one of: plainvga, vga, ega, mda, mga, cga
$_console = (1) # use 'console' video
$_graphics = (1) # use the cards BIOS to set graphics

and then I used heb-vga.exe to load hebrew fonts.
Now I need to test the fonts.
so I put this in a file called key.asm
------------------
a
mov ax,100
int 21
mov ah, al
shr al, 1
shr al, 1
shr al, 1
shr al, 1
cmp al, 0a
sbb al, 69
das
push ax
mov dl,al
mov ax,200
int 21
pop ax
mov al, ah
and al, 0f
cmp al, 0a
sbb al, 69
das
mov dl,al
mov ax,200
int 21
mov ah,4c
int 21

r cx
131
n key.com
w
q
-----------------
and then
c:\>debug <key.asm
and then
c:\>key

Happy new year
-evyatar



=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il