Skip to contentSkip to conversation

using Turkish in dosemu

PATCH Baurjan Ismagulov 4 participants 11 messages Jun 16, 2002 – Jun 25, 2002 5 messages not in the archive

lore
Share & tools
lore
#0 lore raw

Hello,

I'm working on Turkish support in dosemu. Attached is the layout for Turkish Q keyboard generating characters in DOS 857 encoding.

I've got some questions:

1. As http://marc.theaimsgroup.com/?l=linux-msdos&m=91644293607253&w=2
suggests, the layout works for xdosemu only. How can I get it to work on the console? Ultimately, my goal is to work remotely, from telnet sessions on win98/2000.

I've created a loadkeys keymap generating characters in DOS 857 encoding. When I start dosemu and type some characters 857-specific characters, they don't get echoed at all.

2. I'm able to use the layout defining $_layout="load tr" in dosemu.conf. If I understand README.txt correctly, that is equivalent to defining the ("internal") layout in src/base/keyboard/keymaps.c and specifying $_layout="tr". Is this right?

If so, I suspect that dosemu crashing with signal 11 when non-existent internal keymap is specified is not intended behaviour. I can reproduce that running dosemu 1.0.2.1 from debian sid after defining $_layout="tr".

3. As far as I could understand, one also needs a suitable bitmap font in order to see correct glyphs. Is there an easy way to convert, say, fixed font from X11 distribution to .bdf?

I found a utility called fstobdf, but it seem to work with font servers only -- just wanted to ask whether there is an easier way before configuring my own one.

Thanks in advance,
Baurjan.

etc/keymap/tr +29 -0
diff -Naur dosemu-1.0.2.1.orig/etc/keymap/tr dosemu-1.0.2.1/etc/keymap/tr
@@ -0,0 +1,29 @@
+#keytable tr
+keytable keyb-user {
+  0=
+     0,27,"1234567890*-",127,9,
+     "qwertyu",141,"op",167,129,13,0,"as",
+     "dfghjkl",159,"i",130,0,44,"zxcv",
+     "bnm",148,135,".",0,"*",0," ",0,0,0,0,0,0,
+     0,0,0,0,0,0,0,0,0,0,"-",0,0,0,"+",0,
+     0,0,0,0,0,0,"<",0,0,0,0,0,0,0,0,0,
+     0
+  shift 0=
+     0,27,"!'^+%&/()=?_",127,9,
+     "QWERTYUIOP",166,154,13,0,"AS",
+     "DFGHJKL",158,152,34,0,";ZXCV",
+     "BNM",153,128,":",0,"*",0," ",0,0,0,0,0,0,
+     0,0,0,0,0,0,0,0,0,0,"-",0,0,0,"+",0,
+     0,0,0,0,0,0,">",0,0,0,0,0,0,0,0,0,
+     0
+  alt 0=
+     0,0,0,0,"#$",0,0,"{[]}\",0,0,0,
+     "@",0,0,0,0,0,0,0,0,0,0,"~",0,0,0,0,
+     0,0,0,0,0,0,0,0,0,0,0,"`",0,0,0,0,
+     0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+     0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+     0,0,0,0,0,0,"|",0,0,0,0,0,0,0,0,0,
+     0
+  numpad 0=
+     "789-456+1230."
+}
#1 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

Baurjan Ismagulov writes:

Baurjan> 3. As far as I could understand, one also needs a suitable Baurjan> bitmap font in order to see correct glyphs. Is there an easy Baurjan> way to convert, say, fixed font from X11 distribution to Baurjan> .bdf?

There is mkvgafont within console-cyrillic package from woody or sid.

Signature · 1 line
  Sergey Suleymanov
#2 lore raw
In reply to Baurjan Ismagulov

Hello,

Quoted 1 line

There is mkvgafont within console-cyrillic package from woody or sid.

Yes, thank you! I stumbled across it after three-hour fstobdf hacking, so now I've got original 857 8x16 font as well as some larger fonts converted from X11 misc 8859-9.

Now I have even more questions:

1. I still can't figure out why non-ascii characters don't work on plain terminal -- the dos application doesn't even see that the key is pressed. I've tried some Cyrillic and 8859-1 layouts with the same results -- keys do not seem to reach the application.

Any help (RTFM, hints, pointers) would be greatly appreciated.

2. README.txt claims that with $_term_char_set="ibm" no translation is made when characters are printed. However, I do see some characters translated. E.g., characters 16, 17 (filled (triangle-like) big arrow right and left, respectively) are replaced with 62 and 60 (greater-than and less-than signs). The same for some 857-specific characters (e.g., small dotless i (141 in 857) is translated to small i with grave (which is 141 in 437)).

I think this is a bug. Any ideas?

Please cc to me, as I'm not subscribed.

With best regards,
Baurjan.

etc/cp857-8x16.bdf +5900 -0
diff -Naur dosemu-1.0.2.1.orig/etc/cp857-8x16.bdf dosemu-1.0.2.1.ibr/etc/cp857-8x16.bdf
@@ -0,0 +1,5900 @@
+STARTFONT 2.1
+COMMENT cp857-8x16
+FONT cp857-8x16
+SIZE 16 75 75
+FONTBOUNDINGBOX 8 16 0 -4
+STARTPROPERTIES 3
+FONT_DESCENT 4
+FONT_ASCENT 12
+DEFAULT_CHAR 0
+ENDPROPERTIES
+CHARS 256
+STARTCHAR C000
+ENCODING 0
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C001
+ENCODING 1
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+7e
+81
+a5
+81
+81
+bd
+99
+81
+81
+7e
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C002
+ENCODING 2
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+7e
+ff
+db
+ff
+ff
+c3
+e7
+ff
+ff
+7e
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C003
+ENCODING 3
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+00
+00
+6c
+fe
+fe
+fe
+fe
+7c
+38
+10
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C004
+ENCODING 4
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+00
+00
+10
+38
+7c
+fe
+7c
+38
+10
+00
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C005
+ENCODING 5
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+00
+18
+3c
+3c
+e7
+e7
+e7
+18
+18
+3c
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C006
+ENCODING 6
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+00
+18
+3c
+7e
+ff
+ff
+7e
+18
+18
+3c
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C007
+ENCODING 7
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+00
+00
+00
+00
+18
+3c
+3c
+18
+00
+00
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C008
+ENCODING 8
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+ff
+ff
+ff
+ff
+ff
+ff
+e7
+c3
+c3
+e7
+ff
+ff
+ff
+ff
+ff
+ff
+ENDCHAR
+STARTCHAR C009
+ENCODING 9
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+00
+00
+00
+3c
+66
+42
+42
+66
+3c
+00
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C00a
+ENCODING 10
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+ff
+ff
+ff
+ff
+ff
+c3
+99
+bd
+bd
+99
+c3
+ff
+ff
+ff
+ff
+ff
+ENDCHAR
+STARTCHAR C00b
+ENCODING 11
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+1e
+0e
+1a
+32
+78
+cc
+cc
+cc
+cc
+78
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C00c
+ENCODING 12
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+3c
+66
+66
+66
+66
+3c
+18
+7e
+18
+18
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C00d
+ENCODING 13
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+3f
+33
+3f
+30
+30
+30
+30
+70
+f0
+e0
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C00e
+ENCODING 14
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+7f
+63
+7f
+63
+63
+63
+63
+67
+e7
+e6
+c0
+00
+00
+00
+ENDCHAR
+STARTCHAR C00f
+ENCODING 15
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+00
+18
+18
+db
+3c
+e7
+3c
+db
+18
+18
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C0010
+ENCODING 16
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+80
+c0
+e0
+f0
+f8
+fe
+f8
+f0
+e0
+c0
+80
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C0011
+ENCODING 17
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+02
+06
+0e
+1e
+3e
+fe
+3e
+1e
+0e
+06
+02
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C0012
+ENCODING 18
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+18
+3c
+7e
+18
+18
+18
+7e
+3c
+18
+00
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C0013
+ENCODING 19
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+66
+66
+66
+66
+66
+66
+66
+00
+66
+66
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C0014
+ENCODING 20
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+7f
+db
+db
+db
+7b
+1b
+1b
+1b
+1b
+1b
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C0015
+ENCODING 21
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+7c
+c6
+60
+38
+6c
+c6
+c6
+6c
+38
+0c
+c6
+7c
+00
+00
+00
+ENDCHAR
+STARTCHAR C0016
+ENCODING 22
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+00
+00
+00
+00
+00
+00
+fe
+fe
+fe
+fe
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C0017
+ENCODING 23
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+18
+3c
+7e
+18
+18
+18
+7e
+3c
+18
+7e
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C0018
+ENCODING 24
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+18
+3c
+7e
+18
+18
+18
+18
+18
+18
+18
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C0019
+ENCODING 25
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+18
+18
+18
+18
+18
+18
+18
+7e
+3c
+18
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C001a
+ENCODING 26
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+00
+00
+00
+18
+0c
+fe
+0c
+18
+00
+00
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C001b
+ENCODING 27
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+00
+00
+00
+30
+60
+fe
+60
+30
+00
+00
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C001c
+ENCODING 28
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+00
+00
+00
+00
+c0
+c0
+c0
+fe
+00
+00
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C001d
+ENCODING 29
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+00
+00
+00
+28
+6c
+fe
+6c
+28
+00
+00
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C001e
+ENCODING 30
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+00
+00
+10
+38
+38
+7c
+7c
+fe
+fe
+00
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C001f
+ENCODING 31
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+00
+00
+fe
+fe
+7c
+7c
+38
+38
+10
+00
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C0020
+ENCODING 32
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C0021
+ENCODING 33
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+18
+3c
+3c
+3c
+18
+18
+18
+00
+18
+18
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C0022
+ENCODING 34
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+66
+66
+66
+24
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C0023
+ENCODING 35
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+00
+6c
+6c
+fe
+6c
+6c
+6c
+fe
+6c
+6c
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C0024
+ENCODING 36
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+18
+18
+7c
+c6
+c2
+c0
+7c
+06
+06
+86
+c6
+7c
+18
+18
+00
+00
+ENDCHAR
+STARTCHAR C0025
+ENCODING 37
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+00
+00
+c2
+c6
+0c
+18
+30
+60
+c6
+86
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C0026
+ENCODING 38
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+38
+6c
+6c
+38
+76
+dc
+cc
+cc
+cc
+76
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C0027
+ENCODING 39
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+30
+30
+30
+60
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C0028
+ENCODING 40
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+0c
+18
+30
+30
+30
+30
+30
+30
+18
+0c
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C0029
+ENCODING 41
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+30
+18
+0c
+0c
+0c
+0c
+0c
+0c
+18
+30
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C002a
+ENCODING 42
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+00
+00
+00
+66
+3c
+ff
+3c
+66
+00
+00
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C002b
+ENCODING 43
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+00
+00
+00
+18
+18
+7e
+18
+18
+00
+00
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C002c
+ENCODING 44
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+00
+00
+00
+00
+00
+00
+00
+18
+18
+18
+30
+00
+00
+00
+ENDCHAR
+STARTCHAR C002d
+ENCODING 45
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+00
+00
+00
+00
+00
+fe
+00
+00
+00
+00
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C002e
+ENCODING 46
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+18
+18
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C002f
+ENCODING 47
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+00
+00
+02
+06
+0c
+18
+30
+60
+c0
+80
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C0030
+ENCODING 48
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+38
+6c
+c6
+c6
+d6
+d6
+c6
+c6
+6c
+38
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C0031
+ENCODING 49
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+18
+38
+78
+18
+18
+18
+18
+18
+18
+7e
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C0032
+ENCODING 50
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+7c
+c6
+06
+0c
+18
+30
+60
+c0
+c6
+fe
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C0033
+ENCODING 51
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+7c
+c6
+06
+06
+3c
+06
+06
+06
+c6
+7c
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C0034
+ENCODING 52
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+0c
+1c
+3c
+6c
+cc
+fe
+0c
+0c
+0c
+1e
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C0035
+ENCODING 53
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+fe
+c0
+c0
+c0
+fc
+06
+06
+06
+c6
+7c
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C0036
+ENCODING 54
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+38
+60
+c0
+c0
+fc
+c6
+c6
+c6
+c6
+7c
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C0037
+ENCODING 55
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+fe
+c6
+06
+06
+0c
+18
+30
+30
+30
+30
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C0038
+ENCODING 56
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+7c
+c6
+c6
+c6
+7c
+c6
+c6
+c6
+c6
+7c
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C0039
+ENCODING 57
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+7c
+c6
+c6
+c6
+7e
+06
+06
+06
+0c
+78
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C003a
+ENCODING 58
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+00
+00
+18
+18
+00
+00
+00
+18
+18
+00
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C003b
+ENCODING 59
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+00
+00
+18
+18
+00
+00
+00
+18
+18
+30
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C003c
+ENCODING 60
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+00
+06
+0c
+18
+30
+60
+30
+18
+0c
+06
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C003d
+ENCODING 61
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+00
+00
+00
+7e
+00
+00
+7e
+00
+00
+00
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C003e
+ENCODING 62
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+00
+60
+30
+18
+0c
+06
+0c
+18
+30
+60
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C003f
+ENCODING 63
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+7c
+c6
+c6
+0c
+18
+18
+18
+00
+18
+18
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C0040
+ENCODING 64
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+00
+7c
+c6
+c6
+de
+de
+de
+dc
+c0
+7c
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C0041
+ENCODING 65
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+10
+38
+6c
+c6
+c6
+fe
+c6
+c6
+c6
+c6
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C0042
+ENCODING 66
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+fc
+66
+66
+66
+7c
+66
+66
+66
+66
+fc
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C0043
+ENCODING 67
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+3c
+66
+c2
+c0
+c0
+c0
+c0
+c2
+66
+3c
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C0044
+ENCODING 68
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+f8
+6c
+66
+66
+66
+66
+66
+66
+6c
+f8
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C0045
+ENCODING 69
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+fe
+66
+62
+68
+78
+68
+60
+62
+66
+fe
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C0046
+ENCODING 70
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+fe
+66
+62
+68
+78
+68
+60
+60
+60
+f0
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C0047
+ENCODING 71
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+3c
+66
+c2
+c0
+c0
+de
+c6
+c6
+66
+3a
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C0048
+ENCODING 72
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+c6
+c6
+c6
+c6
+fe
+c6
+c6
+c6
+c6
+c6
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C0049
+ENCODING 73
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+3c
+18
+18
+18
+18
+18
+18
+18
+18
+3c
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C004a
+ENCODING 74
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+1e
+0c
+0c
+0c
+0c
+0c
+cc
+cc
+cc
+78
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C004b
+ENCODING 75
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+e6
+66
+66
+6c
+78
+78
+6c
+66
+66
+e6
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C004c
+ENCODING 76
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+f0
+60
+60
+60
+60
+60
+60
+62
+66
+fe
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C004d
+ENCODING 77
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+c6
+ee
+fe
+fe
+d6
+c6
+c6
+c6
+c6
+c6
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C004e
+ENCODING 78
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+c6
+e6
+f6
+fe
+de
+ce
+c6
+c6
+c6
+c6
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C004f
+ENCODING 79
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+7c
+c6
+c6
+c6
+c6
+c6
+c6
+c6
+c6
+7c
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C0050
+ENCODING 80
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+fc
+66
+66
+66
+7c
+60
+60
+60
+60
+f0
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C0051
+ENCODING 81
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+7c
+c6
+c6
+c6
+c6
+c6
+c6
+d6
+de
+7c
+0c
+0e
+00
+00
+ENDCHAR
+STARTCHAR C0052
+ENCODING 82
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+fc
+66
+66
+66
+7c
+6c
+66
+66
+66
+e6
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C0053
+ENCODING 83
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+7c
+c6
+c6
+60
+38
+0c
+06
+c6
+c6
+7c
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C0054
+ENCODING 84
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+7e
+7e
+5a
+18
+18
+18
+18
+18
+18
+3c
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C0055
+ENCODING 85
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+c6
+c6
+c6
+c6
+c6
+c6
+c6
+c6
+c6
+7c
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C0056
+ENCODING 86
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+c6
+c6
+c6
+c6
+c6
+c6
+c6
+6c
+38
+10
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C0057
+ENCODING 87
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+c6
+c6
+c6
+c6
+d6
+d6
+d6
+fe
+ee
+6c
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C0058
+ENCODING 88
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+c6
+c6
+6c
+7c
+38
+38
+7c
+6c
+c6
+c6
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C0059
+ENCODING 89
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+66
+66
+66
+66
+3c
+18
+18
+18
+18
+3c
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C005a
+ENCODING 90
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+fe
+c6
+86
+0c
+18
+30
+60
+c2
+c6
+fe
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C005b
+ENCODING 91
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+3c
+30
+30
+30
+30
+30
+30
+30
+30
+3c
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C005c
+ENCODING 92
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+00
+80
+c0
+e0
+70
+38
+1c
+0e
+06
+02
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C005d
+ENCODING 93
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+3c
+0c
+0c
+0c
+0c
+0c
+0c
+0c
+0c
+3c
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C005e
+ENCODING 94
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+10
+38
+6c
+c6
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C005f
+ENCODING 95
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+ff
+00
+00
+ENDCHAR
+STARTCHAR C0060
+ENCODING 96
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+30
+18
+0c
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C0061
+ENCODING 97
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+00
+00
+00
+78
+0c
+7c
+cc
+cc
+cc
+76
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C0062
+ENCODING 98
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+e0
+60
+60
+78
+6c
+66
+66
+66
+66
+7c
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C0063
+ENCODING 99
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+00
+00
+00
+7c
+c6
+c0
+c0
+c0
+c6
+7c
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C0064
+ENCODING 100
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+1c
+0c
+0c
+3c
+6c
+cc
+cc
+cc
+cc
+76
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C0065
+ENCODING 101
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+00
+00
+00
+7c
+c6
+fe
+c0
+c0
+c6
+7c
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C0066
+ENCODING 102
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+1c
+36
+32
+30
+78
+30
+30
+30
+30
+78
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C0067
+ENCODING 103
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+00
+00
+00
+76
+cc
+cc
+cc
+cc
+cc
+7c
+0c
+cc
+78
+00
+ENDCHAR
+STARTCHAR C0068
+ENCODING 104
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+e0
+60
+60
+6c
+76
+66
+66
+66
+66
+e6
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C0069
+ENCODING 105
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+18
+18
+00
+38
+18
+18
+18
+18
+18
+3c
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C006a
+ENCODING 106
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+06
+06
+00
+0e
+06
+06
+06
+06
+06
+06
+66
+66
+3c
+00
+ENDCHAR
+STARTCHAR C006b
+ENCODING 107
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+e0
+60
+60
+66
+6c
+78
+78
+6c
+66
+e6
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C006c
+ENCODING 108
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+38
+18
+18
+18
+18
+18
+18
+18
+18
+3c
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C006d
+ENCODING 109
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+00
+00
+00
+ec
+fe
+d6
+d6
+d6
+d6
+c6
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C006e
+ENCODING 110
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+00
+00
+00
+dc
+66
+66
+66
+66
+66
+66
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C006f
+ENCODING 111
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+00
+00
+00
+7c
+c6
+c6
+c6
+c6
+c6
+7c
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C0070
+ENCODING 112
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+00
+00
+00
+dc
+66
+66
+66
+66
+66
+7c
+60
+60
+f0
+00
+ENDCHAR
+STARTCHAR C0071
+ENCODING 113
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+00
+00
+00
+76
+cc
+cc
+cc
+cc
+cc
+7c
+0c
+0c
+1e
+00
+ENDCHAR
+STARTCHAR C0072
+ENCODING 114
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+00
+00
+00
+dc
+76
+66
+60
+60
+60
+f0
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C0073
+ENCODING 115
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+00
+00
+00
+7c
+c6
+60
+38
+0c
+c6
+7c
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C0074
+ENCODING 116
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+10
+30
+30
+fc
+30
+30
+30
+30
+36
+1c
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C0075
+ENCODING 117
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+00
+00
+00
+cc
+cc
+cc
+cc
+cc
+cc
+76
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C0076
+ENCODING 118
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+00
+00
+00
+c6
+c6
+c6
+c6
+c6
+6c
+38
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C0077
+ENCODING 119
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+00
+00
+00
+c6
+c6
+d6
+d6
+d6
+fe
+6c
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C0078
+ENCODING 120
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+00
+00
+00
+c6
+6c
+38
+38
+38
+6c
+c6
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C0079
+ENCODING 121
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+00
+00
+00
+c6
+c6
+c6
+c6
+c6
+c6
+7e
+06
+0c
+f8
+00
+ENDCHAR
+STARTCHAR C007a
+ENCODING 122
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+00
+00
+00
+fe
+cc
+18
+30
+60
+c6
+fe
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C007b
+ENCODING 123
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+0e
+18
+18
+18
+70
+18
+18
+18
+18
+0e
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C007c
+ENCODING 124
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+18
+18
+18
+18
+18
+18
+18
+18
+18
+18
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C007d
+ENCODING 125
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+70
+18
+18
+18
+0e
+18
+18
+18
+18
+70
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C007e
+ENCODING 126
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+76
+dc
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C007f
+ENCODING 127
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+00
+00
+10
+38
+6c
+c6
+c6
+c6
+fe
+00
+00
+00
+00
+00
+ENDCHAR
+STARTCHAR C0080
+ENCODING 128
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+3c
+66
+c2
+c0
+c0
+c0
+c0
+c2
+66
+3c
+18
+30
+00
+00
+ENDCHAR
+STARTCHAR C0081
+ENCODING 129
+SWIDTH 666 0
+DWIDTH 8 0
+BBX 8 16 0 -4
+BITMAP
+00
+00
+cc
+00
+00
+cc
+cc
+cc
+cc
+cc
+cc
+76
+00
+00
+00
+00
[… more lines in the raw message]

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Part of the diff is not shown here. View the raw message.

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw

Hello Sergey,

thanks much for your reply!

Quoted 2 lines · Sergey Suleymanov

Dosemu passed only known keys. You have to define all needed keys in keymap file.

Could you please give a bit more details? Do you mean I should:

1. Load a Linux keymap generating appropriate codes in 857 encoding.

E.g., comma key (between m and period on US keyboards) should generate o with diaeresis. I have "keycode 51=+148 +153" in the .kmap file. Is this correct? (I think that particular letter is the same in 437).

2. Specify $_layout="load tr", where tr is the file I've sent in the first posting.

This setup doesn't work for me. I don't load keyb or any other keyboard driver under DOS, if this is relevant.

Quoted 3 lines

For "ibm" charset dosemu issues \033(U escapes. If you are not using native (without acm) fonts, you'll get some misplaced chars.

I assume that \033(U makes the console driver output the symbol at the specified position in the font (couldn't find anything useful via Google. How can I search for literal strings?), doesn't it?

I'm using cp857-8x16 stolen from DOS. It does have an acm (mapping 857 characters to Unicode), but I also load the same acm, so that showcfont outputs for the following commands are identical:

consolechars -f cp857-8x16.psf -m cp857.acm consolechars -f cp857-8x16.psf -m straight-to-font

If I interpret what you are saying correctly, this font should work.

When I look at the file with all 256 characters in Volkov, it shows some characters translated. And this looks as _translation_, not as "some misplaced chars". Returning to the original example: right and left arrows are translated to greater and less signs, so that subdir labels in Volkov look (literally) as ">SUB-DIR<" (instead of filled triangles around the text). Looks as if dosemu thinks that the application outputs 437, and the screen accepts 8859-1. Is it somehow related to $_internal_char_set and $_external_char_set?

Thanks in advance,
Baurjan.

P.S. Please cc to me, I'm not subscribed.

A message that is not in the archive (sent off-list or not yet received): [email protected]

#6 lore raw

Hello,

Quoted 6 lines · Sergey Suleymanov

Baurjan> 1. Load a Linux keymap generating appropriate codes in 857 Baurjan> encoding.

That's right. Try to disable rawkeyboard option. I don't know yet why rawkeyboard is not working, but without it dosemu gets this o with diaeresis.

I do have it disabled, and my dosemu doesn't like that character. Even in -D+a output I can't see that it even reads it (I do see each letter of "exitemu" command).

Actually, both Cyrillic and Turkish did work for me with dosemu 0.64 and rawkeyboard and console enabled -- I was using display.sys, mode con cp and keyb, not dosemu.conf. But this time I can use neither console nor rawkeyboard since I want to use multiple dosemu processes remotely.

Quoted 6 lines

Baurjan> When I look at the file with all 256 characters in Volkov, Baurjan> it shows some characters translated. And this looks as Baurjan> _translation_, not as "some misplaced chars".

Mmm, my English is ugly ;) I mean "different kernel's unicode-to-font mapping"

No problem regarding the language, it's ok -- and I've understood what you'd meant. In the arrow example below I've tried to show that it isn't unicode-to-font mapping that matters (IMHO, that is).

Although I've got a glitch here, too. When I loadkeys and consolechars the 857 files, everything is working as expected. Then I start dosemu (no rawkeyboard, no console) and immediately exit. After that characters 166 and 167 (capital and small g breve in 857) get displayed as section sign (displaced-double-s, "paragraph" in Russian) and broken pipe (vertical bar split into two). Does dosemu fiddle with acms? showcfont shows that all characters are on their proper places, i.e., the loaded font is intact. I also saved the in-memory acm, and it seems to be identical to straight-to-font. How comes that different characters get displayed when the same code is output?

Quoted 8 lines

Baurjan> Returning to the original example: right and left arrows are Baurjan> translated to greater and less signs, so that subdir labels Baurjan> in Volkov look (literally) as ">SUB-DIR<" (instead of filled Baurjan> triangles around the text).

Are all translated characters below ascii 32? In your example triangles are ascii 10 and 11, and slang engine will not pass it to the terminal. Just translate to something similar.

No, unfortunately, some characters above 128 are also translated. Two of them are small dotless i (141 in 857) and capital i with dot above (152 in 857) -- they get translated into small i with grave (141 in 437) and capital y with diaeresis (152 in 437).

Quoted 5 lines

Baurjan> Looks as if dosemu thinks that the application outputs 437, Baurjan> and the screen accepts 8859-1. Is it somehow related to Baurjan> $_internal_char_set and $_external_char_set?

You are set both ones to cp857, aren't you?

Yes, I've tried these, too. However, I couldn't find any information on them, so I don't completely understand these options. What do they default to?

Let's say, I've pressed a key with code 51. Kernel reads it from the keyboard hardware and translates to 148 according to my .kmap file. dosemu takes 148 and has to interpret it according to $_external_char_set. Let's assume it is correct, and dosemu knows that the character is small o with diaeresis. Internally, it stores the code of small o with diaeresis in $_internal_char_set. Since this one is the same as external, the character's internal representation is also 148. That is what gets passed to the application. When the application prints the character, how does dosemu know that I have 857 on the terminal? Or is the scenario incorrect?

Thanks much,
Baurjan.

#7 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

Baurjan Ismagulov writes:

Baurjan> I do have it disabled, and my dosemu doesn't like that Baurjan> character. Even in -D+a output I can't see that it even Baurjan> reads it (I do see each letter of "exitemu" command).

Is this patch helps?

src/plugin/kbd_unicode/config/plugin_parser +1 -1
diff -urbN dosemu-1.1.3.2.orig/src/plugin/kbd_unicode/config/plugin_parser dosemu-1.1.3.2/src/plugin/kbd_unicode/config/plugin_parser
@@ -88,7 +88,7 @@
 	}
 
 
-	if (!table || (count == 0) || (keynum >= count)) {
+	if (!table || (count == 0)) {
 		count = 0;
 		table = 0;
 		return;

Don't forget type "make mrproper"

Baurjan> Does dosemu fiddle with acms? showcfont shows that all Baurjan> characters are on their proper places, i.e., the loaded font Baurjan> is intact. I also saved the in-memory acm, and it seems to Baurjan> be identical to straight-to-font. How comes that different Baurjan> characters get displayed when the same code is output?

Try to do this:

consolechars -f cp857-8x16.psf -m straight-to-font ..type cp857 keys
echo -ne '\033(U'
..type cp857 keys

Are result the same? Anyway, '\033(U' is issued only for cp437 codepage.

Baurjan> Let's say, I've pressed a key with code 51. Kernel reads it Baurjan> from the keyboard hardware and translates to 148 according Baurjan> to my .kmap file. dosemu takes 148 and has to interpret it Baurjan> according to $_external_char_set.

...to get unicode keysym U_LATIN_SMALL_LETTER_O_WITH_DIAERESIS (0x00f6)

Baurjan> Let's assume it is correct, and dosemu knows that the Baurjan> character is small o with diaeresis. Internally, it stores Baurjan> the code of small o with diaeresis in
Baurjan> $_internal_char_set.

        Just reverse translation unicode keysym (0x00f6) to bios
        return code (0x3394)

Baurjan> Since this one is the same as external, the character's Baurjan> internal representation is also 148. That is what gets Baurjan> passed to the application. When the application prints the Baurjan> character, how does dosemu know that I have 857 on the Baurjan> terminal?

$_external_char_set

Baurjan> Or is the scenario incorrect?

It should be. :)

I don't know how cp857 looks like, wouldn't you check src/plugin/extra_charsets/cp857.c?

Signature · 1 line
  Sergey Suleymanov
#8 lore raw

Hello,

Quoted 1 line · Sergey Suleymanov

Is this patch helps?

Unfortunately, no :( (tried both default compiletime-settings and compiletime-settings.devel).

Quoted 7 lines
        consolechars -f cp857-8x16.psf -m straight-to-font
        ..type cp857 keys
        echo -ne '\033(U'
        ..type cp857 keys

        Are result the same? Anyway, '\033(U' is issued only for cp437
        codepage.

That's it! The results are not the same. Could you please describe the effect of this escape once more (seems that I misinterpreted your previous explanation)? And why is it used in dosemu? Can I revert to the previous ("before-the-escape") state?

BTW, Turkish-specific 857 characters work perfectly in 1.1.3.2!

With best regards,
Baurjan.

A message that is not in the archive (sent off-list or not yet received): [email protected]

#10 lore raw
Quoted 5 lines · Sergey Suleymanov

Baurjan> Unfortunately, no :( (tried both default Baurjan> compiletime-settings and compiletime-settings.devel).

Strange. It should fix loading external keytable with "load <keymap>".

The only difference was that pressing altgr-[ produces 159 (small s with cedilla) instead of 156 (pound sign), which is printed without the patch -- while both of these are not what I want.

I've started to think that my dosemu tr keymap is wrong. I list 857 codes there; shoudn't I? Sergey, if you are able to produce small o with diaeresis, could you please send your loadkeys and dosemu keymaps?

Quoted 1 line

Was patch applied without reject? Did you do make mrproper?

Yes. Yes.

Quoted 1 line

Can you mail me -D+k debug output?

Here are some interesting lines:

config.term_charset=2
keyb_config_charset=terminal_cp437
paste_charset=iso8859-1
keyb_charset=iso8859-1
keynum->keysym: 33->00f6

Keynum 0x33 is comma (the key between m and period), isn't it? And 0x00f6 is utf-8 code for small o with diaeresis, isn't it? If so, shouldn't it be 0x0094 (odiaeresis in 857)? I use "keycode 51 = 148 less" in the kernel keymap, and the following in dosemu keymap:

keytable keyb-user {
0=

     0,27,"1234567890*-",127,9,
     "qwertyu",141,"op",167,129,13,0,"as",
     "dfghjkl",159,"i",130,0,44,"zxcv",
     "bnm",148,135,".",0,"*",0," ",0,0,0,0,0,0,

...

And are those cp437 / iso8859-1 settings important? Should they be set to cp857 / iso8859-9, or that requires extra hacking?

Quoted 2 lines

BTW, you can check keytable with dosemu -I 'keytable dump <filename>' It's name should be keyb-user.

dosemu.bin -I 'keytable dump tr' didn't show any keyboard-related info, and dos session didn't start.

Quoted 3 lines

"echo -ne '\033(K'" or "charset G0 cp437" enables IBM Codepage 437 mapping to Unicode. I think codepage 437 is not the same as codepage 857, isn't it?

Yes, these are different.

With best regards,
Baurjan.

A message that is not in the archive (sent off-list or not yet received): [email protected]

#12 lore raw
Quoted 5 lines · Sergey Suleymanov

Baurjan> config.term_charset=2 keyb_config_charset=terminal_cp437 Baurjan> paste_charset=iso8859-1 keyb_charset=iso8859-1

Why do you specify cp437 and iso8859-1 instead of cp857 and iso8859-9?

Well, I don't specify them. They are preset to these values, and setting $_*_char_set variables does not seem to alter them. I've tried to set these in /etc/dosemu/dosemu.conf; that didn't help either.

Quoted 6 lines

Baurjan> keynum-> keysym: 33->00f6 Keynum 0x33 is comma (the key Baurjan> between m and period), isn't it? And 0x00f6 is utf-8 code Baurjan> for small o with diaeresis, isn't it? If so, shouldn't it be Baurjan> 0x0094 (odiaeresis in 857)?

        Bios code 0x3394 to be exactly.

Yes, I agree BIOS code should be so. However, the -D+k output shows character codes only, without the scan code. So I conclude that 33->00f6 is wrong.

I looked at keyb-user from dosemu -I 'keytable dump <file>'. It is as follows:

keytable keyb-user {
0=

     0,27,49,50,51,52,53,54,55,56,57,48,42,45,127,9,
     "qwertyuiop[]",13,0,"as",
     "dfghjkl;",39,96,0,92,"zxcv",
     "bnm,./",0,"*",0," ",0,0,0,0,0,0,

...

I.e., the default. Does this mean that my /usr/lib/dosemu/keymap/tr is not loaded correctly? I have $_layout = "load tr" in /etc/dosemu/dosemu.conf. strace shows that /usr/lib/dosemu/keymap/tr gets opened. But the dump output doesn't change when I modify that file.

Quoted 4 lines

I reproduce turkish environment with (Am I right?)

consolechars -f default8x16.psf.gz -m iso09 loadkeys trq

This setup doesn't have iso-8859-9 glyphs. Some time ago I sent Turkish fonts and alternative keyboard layouts to Wartan Hachaturow, Debian console-data maintainer; unfortunately, the bug report has not been acknowledged yet. I'll send you the font privately.

Quoted 2 lines

$_external_char_set is your linux console charset (iso8859-9) and $_internal_char_set is your DOS codepage (cp857)

This setup almost works! First, all keys producing codes above 127 get passed to the DOS application. Second, only 857 characters that are also in 437 (odiaeresis, ccedilla, udiaeresis) come with proper values; others are replaced with 0x3f -- question mark (scedilla, gbreve, etc.).

Can you reproduce this behaviour? Layout is as follows:

, -> odiaeresis
. -> ccedilla
; -> scedilla
i -> dotlessi
[ -> gbreve
] -> udiaeresis

I rechecked src/plugin/extra_charsets/cp857.c and src/plugin/translate/charsets/iso8859-9.c against the respective files under http://www.unicode.org/Public/MAPPINGS/, everything seems to be correct.

BTW, what are those struct field inits by name (like "struct char_set iso8859_9 = { .c0 = &ascii_c0 }")? Is it gcc extension or C99 (or whatever)?

Quoted 2 lines

It dumps keytables into the file you specified and exit. According debug you post keytable is ok.

I don't think it's ok. How comes that keynum 0x33 maps to keysym 0x00f6, whereas it should be 0x0094?

And those keyb_config_charset, paste_charset and keyb_charset in -D+k output -- why are they terminal_cp437, iso8859-1 and iso8859-1 with _any_ combination of _*_char_set?

With best regards,
Baurjan.

A message that is not in the archive (sent off-list or not yet received): [email protected]

#14 lore raw
Quoted 1 line · Sergey Suleymanov

Silly question - do you use dosemu version 1.1.3.2 ?

Aaaahhh!!! I've forgotten to replace global.conf and dosemu.conf. Everything works now. Thank you very much, Sergey!

When can I expect the changes being integrated into the source? I couldn't find the link to cvs tree on the sourceforge project page; is dosemu distributed via tarballs/patches only?

BTW, this problem wouldn't have happened if Makefile provided proper sitewide installation under a certain prefix. Why did The Team decide to remove it?

Now, I want to run a DOS application on linux server, telnetting from win98 and win2000. To achieve real DOS look and feel, there are two issues remaining.

1. How can I make escape key work the same way as in DOS (acting after a single stroke)?

As far as I could understand, in that case dosemu would rely on a certain timeout to distinguish between the escape key and other keys generating \033 as the first character of the sequence. Would this method cause problems with typeahead over network connections? Is there any workaround (besides redefining cygwin key strings -- I'm afraid this would require recompiling)?

2. Ideally, I want to be able to use as much 857 characters as possible (linedrawing, filled boxes, etc.).

I'm going to use telnet from cygwin, which is win32 console application. It would use 1254 font while in full-screen mode. Adding 1254 support to dosemu wouldn't solve my problem, since 1254 doesn't provide linedrawing characters at all. So, I'm thinking about converting 857 font to use in the full-screen DOS box.

a) Which file provides these fonts? I.e., is it in, say,

      vgaf1254.fon, or ega2.cpi?

b) Does anyone know a tool to convert fonts to that format?

Thanks in advance,
Baurjan.

#15 lore raw
Quoted 3 lines · Baurjan Ismagulov

When can I expect the changes being integrated into the source? I couldn't find the link to cvs tree on the sourceforge project page; is dosemu distributed via tarballs/patches only?

Yes; we don't have a cvs tree.

Quoted 3 lines

BTW, this problem wouldn't have happened if Makefile provided proper sitewide installation under a certain prefix. Why did The Team decide to remove it?

a proper prefix installation has never existed. The "make install" used to put a suid-root dos executable in $(INSTROOT)/usr/bin. Then for dosemu 1.0.2 Hans Lermen decided that the installation in $HOME was the way forward and that distributors should worry about making rpm's.

I don't completely agree with that - DOSEMU isn't a standard part of many Linux distro's any more (that was already true before 1.0.2 was out). But also haven't got around to get a proper "install" target working.

The SuSE RPM looks good and the Debian .deb also has some good sides, so they can serve as examples.

I'll look if I can add some more robustness to global.conf though so that DOSEMU does not crash with a global.conf of a different version.

Quoted 2 lines

1. How can I make escape key work the same way as in DOS (acting after a single stroke)?

This should already work. A timeout of 0.25 seconds is used. If it does not work you missed a patch in this mailing list, so check the archives (or groups.google.com mlist.linux.msdos).

Bart