DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 8th March 2010
psycho psycho is offline
New User
 
Join Date: Mar 2010
Posts: 1
Thanked 0 Times in 0 Posts
Default OpenBSD keyboard layouts

While installing OpenBSD 4.6 there was a question where i had to select keyboard layout.
Problem is, there is no my keyboard layout which I usually use.
That is "hr" ( I am from Croatia).
I know that it is possible to use it under FreeBSD so I'm wondering is there a way to get more of these layouts, so I can get that one.
I know it's no big deal, but it really is pain in the... especially when it comes to programming where I have to type all kind of characters.
Thanx!
Reply With Quote
  #2   (View Single Post)  
Old 8th March 2010
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

Adding additional layouts will require that you patch & recompile the kernel, I'm not aware of any Croatian (Hrvatski) patches yet.

I do believe the following files require modification, the kbd(8) program may also require some changes.. as well as reinstall the system header files.

/usr/sys/dev/pckbc/wskbdmap_mfii.c
/usr/src/sys/dev/wscons/wsksymdef.h


Example of adding new layouts, this was sent to the tech@ list in 2003.

http://marc.info/?l=openbsd-tech&m=104153165920094&w=2

You may wish to obtain a US or British keyboard, for the time being anyway.

I do believe keyboard layouts can be configured separately in Xorg, which would be another workaround solution.

Hope that helps.
Reply With Quote
  #3   (View Single Post)  
Old 9th March 2010
Oko's Avatar
Oko Oko is offline
Fsck Surgeon
 
Join Date: May 2008
Location: Kosovo, Serbia
Posts: 842
Thanked 36 Times in 32 Posts
Default

OpenBSD is very poorly localized. That is by design! OpenBSD is very simple system which does not really need localization.

If you use X window system you can use xmodmap to get Gaj's Latin alphabet (Gajevu Latinicu).

I am little bit puzzled why anybody, who uses computers to write programs, needs Croatian
language anyway. I am using computers almost thirty years and I have never heard of any programming language based on Croatian or Serbian language for that matter. If you need to do heavy text editing using TeX/LaTeX that is whole another story. In that case contact me of the list and I will help you out.

Last edited by Oko; 9th March 2010 at 04:39 AM.
Reply With Quote
  #4   (View Single Post)  
Old 9th March 2010
Pjoter's Avatar
Pjoter Pjoter is offline
Shell Scout
 
Join Date: Sep 2008
Posts: 92
Thanked 7 Times in 7 Posts
Default

I wouldn't call "simple design" by lack of functionalities. Simple desgin may have a lot of functionalities. It is the same reason that OpenBSD doesn't have reach locale support as NetBSD- simply lack of time and hands to work. This is the rason not a design.

A someone who writes programms may also use web browser to write in locale language/key board mapping- both things come toghether.

Anyway lack of support of key maps is a fact. Pitty NetBSD and OpenBSD doesn't have such good supprot as FreeBSD (what about working framebuffer).

Piotr.
Reply With Quote
  #5   (View Single Post)  
Old 15th March 2010
backrow backrow is offline
Real Name: Anthony J. Bentley
Shell Scout
 
Join Date: Jul 2009
Location: Albuquerque, NM
Posts: 116
Thanked 10 Times in 4 Posts
Default

Quote:
Originally Posted by Oko
If you use X window system you can use xmodmap to get Gaj's Latin alphabet (Gajevu Latinicu).
Another way to type special characters is the compose key:
$ setxkbmap -option compose:ralt

(You can use other keys instead of ralt too.)

Now I can type, e.g., "alt D -" and get that D with a line through it.


I do wish OpenBSD supported locales, so I could type arbitrary Unicode characters with Compose. On the Linux boxes at school, for example, I can type arrow keys or smart quotes easy, because their compose supports more than 255 characters.

There was a guy who did some work on it, so it's not impossible. I hope to see reasonable locale support in OpenBSD within a few years.
__________________
Many thanks to the forum regulars who put time and effort into helping others solve their problems.
Reply With Quote
  #6   (View Single Post)  
Old 15th March 2010
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,930
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by backrow View Post
I hope to see reasonable locale support in OpenBSD within a few years.
Users have no say in the direction the OpenBSD project takes. If leverage exists, it is in the ability to provide code for consideration, or the ability to contribute funds and/or hardware to the project requesting such features.
Reply With Quote
  #7   (View Single Post)  
Old 15th March 2010
backrow backrow is offline
Real Name: Anthony J. Bentley
Shell Scout
 
Join Date: Jul 2009
Location: Albuquerque, NM
Posts: 116
Thanked 10 Times in 4 Posts
Default

Quote:
Originally Posted by ocicat View Post
Users have no say in the direction the OpenBSD project takes. If leverage exists, it is in the ability to provide code for consideration, or the ability to contribute funds and/or hardware to the project requesting such features.
Why do you think I didn't complain to the list? I'm confident that since someone smarter than me has released some code for it, it'll make it into OpenBSD eventually.
__________________
Many thanks to the forum regulars who put time and effort into helping others solve their problems.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows keyboard shortcuts rex Other OS 1 4th March 2009 05:44 PM
Phonetic Russian keyboard ?! nero FreeBSD Installation and Upgrading 3 31st August 2008 06:19 PM
Keyboard Layout mfaridi FreeBSD General 6 26th June 2008 07:13 PM
Skype and keyboard indicator greencross FreeBSD Ports and Packages 2 28th May 2008 08:31 AM
Keyboard delboy FreeBSD Installation and Upgrading 2 23rd May 2008 05:55 PM


All times are GMT. The time now is 10:27 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick