On Tue, Jun 26, 2012 at 03:03:11PM +0300, Claudiu Tanaselia wrote:
> Hello,
> 
> I wasn't surprised to find out that Romanian keyboard layout is not
> supported by default OpenBSD installation. However, I think this

That's because gysies use dvorak layout.

> problem is fixable (at least locally if not in future releases), but
> I'll need your help, since I'm new to OpenBSD.

I do the following:

LC_CTYPE=ro_RO.UTF-8

in my .profile and then

XTerm*Font: -misc-fixed-medium-r-normal--18-120-100-100-c-90-iso10646-1
XTerm*eightBitInput: true
XTerm*locale: true
XTerm*utf8: 1

in my .Xdefaults and then my XCompose looks like this:
--------------------------------------------------------------------------------
#include "%L"

<Multi_key> <period>            : "ă"   U0103
<Multi_key> <greater>           : "Ă"   U0102
<Multi_key> <a>                 : "â"   UE2
<Multi_key> <A>                 : "Â"   UC2
<Multi_key> <i>                 : "î"   UEE
<Multi_key> <I>                 : "Î"   UCE

# Cedilla versions
#<Multi_key> <t>                        : "ţ"   U0163
#<Multi_key> <T>                        : "Ţ"   U0162
#<Multi_key> <s>                        : "ş"   U015F
#<Multi_key> <S>                        : "Ş"   U015E

# Comma versions
<Multi_key> <t>                 : "ț"   U021B
<Multi_key> <T>                 : "Ț"   U021A
<Multi_key> <s>                 : "ș"   U0219
<Multi_key> <S>                 : "Ș"   U0218
--------------------------------------------------------------------------------

After you set-up all of this start a new xterm and cat .XCompose.

You should see the proper characters for both cedilla and comma
versions.

> Probably I have to start with wsconsctl, but I'm not sure how to use
> this tool to remap my keyboard. Basically, the following characters
> addition and adjustment of the "us" layout is needed (encoding is
> UTF-16):

Hahahah, right... UTF-16 hahahaha. Forget about that.
That's a Windowsism that even the Microsoft fans want to get rid of.

UTF-8 is the standard in the rest of the civilised world.

I'm not sure what's the state with wscons and terms, miod might shed
some light into that. But I don't think you want to use those in a non-X
environment and for that my tricks above should suffice.

Reply via email to