Linux MS DOS discussions
 help / color / mirror / Atom feed
* charset translation in xdosemu
@ 2005-05-11 11:32 ivan
  2005-05-11 12:23 ` Bart Oldeman
  0 siblings, 1 reply; 2+ messages in thread
From: ivan @ 2005-05-11 11:32 UTC (permalink / raw)
  To: linux-msdos

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: charset translation in xdosemu
  2005-05-11 11:32 charset translation in xdosemu ivan
@ 2005-05-11 12:23 ` Bart Oldeman
  0 siblings, 0 replies; 2+ messages in thread
From: Bart Oldeman @ 2005-05-11 12:23 UTC (permalink / raw)
  To: ivan; +Cc: linux-msdos

On Wed, 11 May 2005, ivan wrote:

> 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.

> $_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).

> 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.

> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-05-11 12:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-11 11:32 charset translation in xdosemu ivan
2005-05-11 12:23 ` Bart Oldeman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox