# ro.map - A romanian keymap also known as programmers style (with alt gr as modifier) [i386-qwerty]
# From diacritice.ro
# English:
# This one uses the correct ş and ţ with comma below but many fonts don't have
# these character, so we keep it as an option for now
# Romanian:
# Foloseşte diacriticele ş şi ţ greşite, adică cele cu sedilă datorită faptului că la ora scrierii
# acestui text, nu existau fonturi de consolă care să conţină caracterele ş şi ţ cu virgulă.

keymaps 0-6,8-10,12
alt_is_meta
include "qwerty-layout"
include "linux-with-alt-and-altgr"
strings as usual

keycode   1 = Escape
keycode   2 = one		exclam		one 		exclam
keycode   3 = two		at		at		at		nul		nul
keycode   4 = three            numbersign
 control keycode   4 = Escape
keycode   5 = four             dollar           dollar           dollar		Control_backslash
keycode   6 = five             percent
 control keycode   6 = Control_bracketright
keycode   7 = six              asciicircum
 control keycode   7 = Control_asciicircum
keycode   8 = seven            ampersand        braceleft	braceleft	Control_underscore
keycode   9 = eight            asterisk         bracketleft	bracketleft	Delete
keycode  10 = nine             parenleft        bracketright	parenleft
keycode  11 = zero             parenright       braceright	parenright
keycode  12 = minus            underscore       backslash	backslash	Control_underscore Control_underscore
keycode  13 = equal            plus
keycode  14 = Delete		Delete		Delete
keycode  15 = Tab		Tab		Tab
keycode  26 = bracketleft      braceleft
	control	keycode  26 = Escape
keycode  27 = bracketright     braceright       asciitilde       asciitilde	Control_bracketright
keycode  28 = Return
	alt	keycode  28 = Meta_Control_m
keycode  29 = Control
keycode  39 = semicolon        colon
keycode  40 = apostrophe       quotedbl
	control	keycode  40 = Control_g
keycode  41 = grave            asciitilde
	control	keycode  41 = nul
keycode  42 = Shift
	alt	keycode	42 = AltGr_Lock
	altgr	alt	keycode	42 = AltGr_Lock		# warning
keycode  43 = backslash        bar
	control	keycode  43 = Control_backslash
keycode  51 = comma            less		comma
keycode  52 = period           greater		period
keycode  53 = slash            question		slash		question
	control	keycode  53 = Delete
keycode  54 = Shift
keycode  56 = Alt
keycode  57 = space		space		space
	control	keycode  57 = nul
keycode  58 = Caps_Lock
keycode  86 = less             greater          bar
keycode  97 = Control

shift 	alt	keycode	100 = AltGr_Lock		# altgr = 100

#keycode 102 = Control_a # Home
#keycode 107 = Control_e # End

#keycode 126 = Decr_Console # Buton windows
#keycode 127 = Incr_Console # Buton windows

#
# Caracterele româneşti sunt mapate astfel:
#  AltGr + a = ă
#  AltGr + i = î
#  AltGr + s = ş
#  AltGr + t = ţ
#  AltGr + q = â
#  AltGr + [ = „ (ghilimele jos)
#  AltGr + ] = ” (ghilimele sus)_
#  AltGr + , = « (croşete stânga)_
#  AltGr + . = » (croşete dreapta)_
#  AltGr + e = ” (euro - disponibil pe puţine fonturi cu diacritice româneşti)_
#  AltGr + c = ” (copyright)_

# alt-left + shift-left = AltGr_Lock

# t ţ Ţ ( cu virgulă / with comma )
altgr keycode 20 = U+021B
shift altgr keycode 20 = U+021A

# i î Î
altgr keycode 23 = +0xEE
shift altgr keycode 23 = +0xCE

# a ă Ă
altgr keycode 30 = U+0103
shift altgr keycode 30 = U+0102

# s ş Ş ( cu virgulă / with comma )
altgr keycode 31 = U+0219
shift altgr keycode 31 = U+0218

# q â Â
altgr keycode 16 = +0xE2
shift altgr keycode 16 = +0xC2

# [ „
altgr keycode 26 = U+201E

# ] ”
altgr keycode 27 = U+201D

# , «
altgr keycode 51 = +0xAB

# . »
altgr keycode 52 = +0xBB

# ß
altgr keycode 17 = ssharp

# €
altgr keycode 18 = U+20AC

# ©
altgr keycode 46 = +0xA9

# ~
altgr keycode 2 = asciitilde

# ˇ
altgr keycode 3 = U+02C7

# ^
altgr keycode 4 = U+005E

# ˘
altgr keycode 5 = U+02D8

# ˚
altgr keycode 6 = U+02DA

# ˛
altgr keycode 7 = U+02DB

# `
altgr keycode 8 = U+0060

# ˙
altgr keycode 9 = U+02D9

# ´
altgr keycode 10 = U+00B4

# ˝
altgr keycode 11 = U+02DD

# ¨
altgr keycode 12 = U+00A8

# §
altgr keycode 25 = U+00A7

# łŁ
altgr keycode 38 = U+0142
shift altgr keycode 38 = U+0141

# đĐ
altgr keycode 32 = U+0111
shift altgr keycode 32 = U+0110
