Skip to contentSkip to conversation

charset translation in xdosemu

DISCUSSION ivan 2 participants 2 messages May 11, 2005

lore
Share & tools
lore

ivan

author
#0 lore raw

Hi,

I got dosemu working with character translation cp895->iso8859-2 and it successfuly runs using utf8 xterm and luit -encoding iso-8859-2 dosemu . But, it dos not work in xdosemu. Is translation not implemented for xdosemu?

Using dosemu-1.3.1 and following .dosemurc

$_X_font = "terminus-iso8859-2-24"
$_term_char_set = "ibm"
$_external_char_set = "iso8859-2"
$_internal_char_set = "cp895"

Well, it works with a cp895 font. I'm just being curious about the translation.

I also tried compiling plugin/translation and setting external_char_set to utf8 and run it without luit under utf8 xterm, but all I got was a screen full of at-signs.

Also, would it be hard to implement iso-10646, so that xdosemu could use the same font as the rest of apps in X? I know nothing about Xlib or fontconfig or whatever it involves. I might leran though.

Ivan

#1 lore raw
Quoted 3 lines · ivan

I got dosemu working with character translation cp895->iso8859-2 and it successfuly runs using utf8 xterm and luit -encoding iso-8859-2 dosemu . But, it dos not work in xdosemu. Is translation not implemented for xdosemu?

No, translation is not implemented for xdosemu display, except for copy/paste.

The $_X_font in xdosemu must be a 1-1 DOS font (cpxxx)
Or, with $_X_font = "" you can load a DOS bitmap font just like in real DOS.

Quoted 6 lines

$_X_font = "terminus-iso8859-2-24"
$_term_char_set = "ibm"
$_external_char_set = "iso8859-2"
$_internal_char_set = "cp895"

Well, it works with a cp895 font. I'm just being curious about the translation.

Here $_term_char_set is superfluous (indeed in the CVS version it no longer even exists; and $_external_charset defaults to the locale, so most users will only need to decide on the internal charset).

Quoted 3 lines

I also tried compiling plugin/translation and setting external_char_set to utf8 and run it without luit under utf8 xterm, but all I got was a screen full of at-signs.

That's to be expected, because support for utf8 terminals in only present in the CVS code for the moment, and only if you use a utf8-patched slang library or the recently released slang 2.0.

Quoted 3 lines

Also, would it be hard to implement iso-10646, so that xdosemu could use the same font as the rest of apps in X? I know nothing about Xlib or fontconfig or whatever it involves. I might leran though.

You may have a look here
http://www.inp.nsk.su/~bolkhov/files/fonts/univga/
I think there are some Xlib calls which print unicode characters directly. The XDrawImageString call would need to have an alternative into a call to convert cpxxx to unicode and feed that to XDrawImageString16 I think. You're most welcome to have a go at it.

Bart