Import tizen key layout files 22/120822/2 accepted/tizen_common accepted/tizen_ivi accepted/tizen_mobile accepted/tizen_tv accepted/tizen_wearable accepted/tizen/common/20170328.141141 accepted/tizen/ivi/20170329.034751 accepted/tizen/mobile/20170329.034646 accepted/tizen/tv/20170329.034649 accepted/tizen/unified/20170329.034801 accepted/tizen/wearable/20170329.034716 submit/tizen/20170328.104400 tizen_4.0.m1_release
authorJengHyun Kang <jhyuni.kang@samsung.com>
Fri, 24 Mar 2017 09:20:52 +0000 (18:20 +0900)
committerJengHyun Kang <jhyuni.kang@samsung.com>
Mon, 27 Mar 2017 09:42:50 +0000 (18:42 +0900)
Change-Id: Id7d69c5b89f9b996d4010d0976ca0ff3923de866

22 files changed:
AUTHORS [new file with mode: 0644]
COPYING [new file with mode: 0644]
ChangeLog [new file with mode: 0644]
Makefile.am [new file with mode: 0644]
NEWS [new file with mode: 0644]
README [new file with mode: 0644]
autogen.sh [new file with mode: 0755]
configure.ac [new file with mode: 0644]
make_tizen_keysym.sh [new file with mode: 0755]
packaging/xkb-tizen-data.manifest [new file with mode: 0644]
packaging/xkb-tizen-data.spec [new file with mode: 0644]
xkb/Makefile.am [new file with mode: 0644]
xkb/tizen_key_layout.txt.common [new file with mode: 0644]
xkb/tizen_key_layout.txt.ivi [new file with mode: 0644]
xkb/tizen_key_layout.txt.mobile [new file with mode: 0644]
xkb/tizen_key_layout.txt.tv [new file with mode: 0644]
xkb/tizen_key_layout.txt.wearable [new file with mode: 0644]
xkb/xkb.rule.common [new file with mode: 0644]
xkb/xkb.rule.ivi [new file with mode: 0644]
xkb/xkb.rule.mobile [new file with mode: 0644]
xkb/xkb.rule.tv [new file with mode: 0644]
xkb/xkb.rule.wearable [new file with mode: 0644]

diff --git a/AUTHORS b/AUTHORS
new file mode 100644 (file)
index 0000000..33a267c
--- /dev/null
+++ b/AUTHORS
@@ -0,0 +1,3 @@
+Sungjin Park <sj76.park@samsung.com>
+Duna Oh <duna.oh@samsung.com>
+JengHyun Kang <jhyuni.kang@samsung.com>
diff --git a/COPYING b/COPYING
new file mode 100644 (file)
index 0000000..f737ba1
--- /dev/null
+++ b/COPYING
@@ -0,0 +1,21 @@
+Copyright 2015 Samsung Electronics co., Ltd. All Rights Reserved.
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sub license, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice (including the
+next paragraph) shall be included in all copies or substantial portions
+of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
+IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
+ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/ChangeLog b/ChangeLog
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/Makefile.am b/Makefile.am
new file mode 100644 (file)
index 0000000..423092a
--- /dev/null
@@ -0,0 +1,2 @@
+MAINTAINERCLEANFILES = Makefile.in
+SUBDIRS = xkb
diff --git a/NEWS b/NEWS
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/README b/README
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/autogen.sh b/autogen.sh
new file mode 100755 (executable)
index 0000000..4bb47c4
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+rm -rf autom4te.cache
+rm -f aclocal.m4
+
+echo "Running aclocal..." ; aclocal || exit 1
+echo "Running autoconf..." ; autoconf || exit 1
+echo "Running automake..." ; automake --add-missing --copy --gnu || exit 1
diff --git a/configure.ac b/configure.ac
new file mode 100644 (file)
index 0000000..70060a9
--- /dev/null
@@ -0,0 +1,11 @@
+AC_INIT(xkb-tizen-data, 0.1, jhyuni.kang@samsung.com)
+AM_INIT_AUTOMAKE
+AC_CONFIG_SRCDIR(configure.ac)
+
+AC_CONFIG_FILES([
+Makefile
+xkb/Makefile
+])
+AC_OUTPUT([
+])
+
diff --git a/make_tizen_keysym.sh b/make_tizen_keysym.sh
new file mode 100755 (executable)
index 0000000..58b9922
--- /dev/null
@@ -0,0 +1,54 @@
+#!/bin/sh
+
+KEYMAP_FILE_PATH="./xkb/"
+NEW_DEFINE_NAME_FILE="./new_define_name.txt"
+KEYMAP_FILE_NAME="tizen_key_layout.txt"
+added=0
+
+function generate_keysym(){
+       local file=$1
+
+       if [ ! -e ${NEW_DEFINE_NAME_FILE} ]
+       then
+               touch $NEW_DEFINE_NAME_FILE
+       fi
+
+       while read KEYNAME OPTS
+       do
+               BOOL_DUPLICATED_NAME=false
+
+               while read KEYNAME_NEW
+               do
+                       if [ "$KEYNAME_NEW" = "$KEYNAME" ]
+                       then
+                               BOOL_DUPLICATED_NAME=true
+                       break
+                       fi
+               done < ${NEW_DEFINE_NAME_FILE}
+               if [ "$BOOL_DUPLICATED_NAME" = false ]
+               then
+                       echo "${KEYNAME}" >> $NEW_DEFINE_NAME_FILE
+               fi
+       done < ${file}
+}
+
+for entry in "$KEYMAP_FILE_PATH"/"$KEYMAP_FILE_NAME".*; do
+#echo "$entry"
+if [ -e ${entry} ]
+then
+       echo "Find ${entry}."
+       generate_keysym ${entry}
+added=1
+fi
+done
+
+echo "$added"
+
+if [ "$added" == "0" ]
+then
+       echo "We don't have any key layout file. Using a default layout"
+else
+       echo "mv ${NEW_DEFINE_NAME_FILE} ${TZ_SYS_RO_SHARE}/X11/xkb/new_symbols.txt"
+       mv ${NEW_DEFINE_NAME_FILE} new_symbols.txt
+fi
+exit
diff --git a/packaging/xkb-tizen-data.manifest b/packaging/xkb-tizen-data.manifest
new file mode 100644 (file)
index 0000000..43b01f5
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+   <request>
+      <domain name="_" />
+   </request>
+</manifest>
diff --git a/packaging/xkb-tizen-data.spec b/packaging/xkb-tizen-data.spec
new file mode 100644 (file)
index 0000000..a1f1a2f
--- /dev/null
@@ -0,0 +1,79 @@
+Name:          xkb-tizen-data
+Version:       0.0.1
+Release:       0
+Provides:      xkb-tizen-data = %{version}-%{release}
+BuildArch:     noarch
+Summary:       Xkb data files
+Group:         Graphics & UI Framework/Other
+License:       MIT
+Source0:       %{name}-%{version}.tar.gz
+Source1001:    %{name}.manifest
+Requires: tizen-release
+
+%{!?TZ_SYS_RO_SHARE: %global TZ_SYS_RO_SHARE /usr/share}
+%global TZ_BUILD_CONF_FILE /etc/tizen-build.conf
+%global KEYMAP_INSTALL_PATH %{TZ_SYS_RO_SHARE}/X11/xkb
+
+%description
+Data files for Xkb keymap
+
+%prep
+%setup -q
+cp -a %{SOURCE1001} .
+
+export TZ_SYS_RO_SHARE="%{TZ_SYS_RO_SHARE}"
+./make_tizen_keysym.sh
+echo %{KEYMAP_INSTALL_PATH}
+
+%build
+%autogen
+%configure
+
+make
+
+%install
+rm -rf %{buildroot}
+
+# install service
+%__mkdir_p %{buildroot}/%{KEYMAP_INSTALL_PATH}
+
+%__cp -f xkb/tizen_key_layout.txt.* %{buildroot}/%{KEYMAP_INSTALL_PATH}/
+%__cp -f xkb/xkb.rule.* %{buildroot}/%{KEYMAP_INSTALL_PATH}/
+
+## tizen symbols
+%__cp -f new_symbols.txt %{buildroot}/%{KEYMAP_INSTALL_PATH}/new_symbols.txt
+
+%pre
+if [ -e "%{KEYMAP_INSTALL_PATH}/tizen_key_layout.txt" ]; then
+       rm %{KEYMAP_INSTALL_PATH}/tizen_key_layout.txt
+fi
+if [ -e "%{KEYMAP_INSTALL_PATH}/xkb.rule" ]; then
+       rm %{KEYMAP_INSTALL_PATH}/xkb.rule
+fi
+
+%preun
+
+%post
+_tizen_build_profile=common
+
+if [ -e %{TZ_BUILD_CONF_FILE} ]; then
+       _tizen_build_profile=`grep "TZ_BUILD_PROFILE" %{TZ_BUILD_CONF_FILE} | awk -F '[=]' '{ print $2 }'`
+fi
+
+if [ -e %{KEYMAP_INSTALL_PATH}/tizen_key_layout.txt.${_tizen_build_profile} ]; then
+       ln -s %{KEYMAP_INSTALL_PATH}/tizen_key_layout.txt.${_tizen_build_profile} %{KEYMAP_INSTALL_PATH}/tizen_key_layout.txt
+fi
+
+if [ -e %{KEYMAP_INSTALL_PATH}/xkb.rule.${_tizen_build_profile} ]; then
+       ln -s %{KEYMAP_INSTALL_PATH}/xkb.rule.${_tizen_build_profile} %{KEYMAP_INSTALL_PATH}/xkb.rule
+fi
+
+%postun
+
+%files
+%manifest %{name}.manifest
+%defattr(-,root,root,-)
+%license COPYING
+%{TZ_SYS_RO_SHARE}/X11/xkb/tizen_key_layout.txt*
+%{TZ_SYS_RO_SHARE}/X11/xkb/xkb.rule*
+%{TZ_SYS_RO_SHARE}/X11/xkb/new_symbols.txt
diff --git a/xkb/Makefile.am b/xkb/Makefile.am
new file mode 100644 (file)
index 0000000..5443e2c
--- /dev/null
@@ -0,0 +1,14 @@
+xkbdir = $(xkb_base)
+xkb_DATA = \
+tizen_key_layout.txt.common \
+tizen_key_layout.txt.ivi \
+tizen_key_layout.txt.mobile \
+tizen_key_layout.txt.tv \
+tizen_key_layout.txt.wearable \
+xkb.rule.common \
+xkb.rule.ivi \
+xkb.rule.mobile \
+xkb.rule.tv \
+xkb.rule.wearable
+
+EXTRA_DIST = $(xkb_DATA)
diff --git a/xkb/tizen_key_layout.txt.common b/xkb/tizen_key_layout.txt.common
new file mode 100644 (file)
index 0000000..55af975
--- /dev/null
@@ -0,0 +1,91 @@
+XF86AudioRaiseVolume 115
+XF86AudioLowerVolume 114
+XF86PowerOff 116
+XF86Menu 139
+XF86Home 169
+XF86Back 158
+XF86Camera_Full 212
+XF86Search 217
+XF86AudioPlay 200
+XF86AudioPlay 207 keyboard
+XF86AudioPause 201
+XF86AudioStop 166
+XF86AudioStop 128 keyboard
+XF86AudioNext 163
+XF86AudioPrev 165
+XF86AudioRewind 168
+XF86AudioForward 208
+XF86AudioMedia 226
+XF86AudioPlayPause 164
+XF86AudioMute 113
+XF86AudioRecord 167
+Cancel 223 keyboard
+XF86SoftKBD 148
+XF86QuickPanel 183
+XF86TaskPane 184
+XF86TaskPane 154 keyboard
+XF86HomePage 172
+XF86WWW 150
+XF86Mail 155
+XF86Mail 215 keyboard
+XF86ScreenSaver 152
+XF86MonBrightnessDown 224
+XF86MonBrightnessUp 225
+XF86Voice 149
+Hangul 122 keyboard
+XF86Apps 204
+XF86Call 218
+XF86Game 220
+XF86VoiceWakeUp_LPSD 202
+XF86VoiceWakeUp 203
+XF86TV 189
+XF86Display 227
+XF86RCConfig 192
+XF86RCMode 185
+XF86SoftRC 140
+1 2 keyboard
+2 3 keyboard
+3 4 keyboard
+4 5 keyboard
+5 6 keyboard
+6 7 keyboard
+7 8 keyboard
+8 9 keyboard
+9 10 keyboard
+0 11 keyboard
+minus 12 keyboard
+XF86LowerChannel 109
+XF86RaiseChannel 104
+XF86ChannelList 60
+XF86PreviousChannel 412
+XF86SysMenu 438
+XF86SimpleMenu 191
+XF86History 156
+XF86Favorites 190
+Up 103 keyboard
+Down 108 keyboard
+Left 105 keyboard
+Right 106 keyboard
+Return 28 keyboard
+XF86Close 174
+XF86Close 206 keyboard
+XF86Info 61
+XF86Red 62
+XF86Green 63
+XF86Yellow 64
+XF86Blue 65
+XF86ProgInfo 67
+XF86PictureMode 68
+XF86PictureSize 88
+XF86PIP 66
+XF86Guide 130
+XF86AudioMode 187
+XF86Subtitle 186
+XF863D 188
+Return 352
+XF86Home 354
+XF86TV 377
+XF86RaiseChannel 402
+XF86LowerChannel 403
+XF86AudioPrev 405
+XF86AudioNext 407
diff --git a/xkb/tizen_key_layout.txt.ivi b/xkb/tizen_key_layout.txt.ivi
new file mode 100644 (file)
index 0000000..23893e9
--- /dev/null
@@ -0,0 +1,44 @@
+XF86AudioRaiseVolume 115
+XF86AudioLowerVolume 114
+XF86PowerOff 116
+XF86Menu 169
+XF86Home 139
+XF86Back 158
+XF86Camera 171
+XF86Camera_Full 212
+XF86Search 217
+XF86AudioPlay 200 no_priv
+XF86AudioPlay 207 keyboard no_priv
+XF86AudioPause 201 no_priv
+XF86AudioStop 166 no_priv
+XF86AudioStop 128 keyboard no_priv
+XF86AudioNext 163 no_priv
+XF86AudioPrev 165 no_priv
+XF86AudioRewind 168 no_priv
+XF86AudioForward 208 no_priv
+XF86AudioMedia 226 no_priv
+XF86AudioPlayPause 164 no_priv
+XF86AudioMute 113
+XF86AudioRecord 167
+Cancel 223 keyboard
+XF86SoftKBD 148
+XF86QuickPanel 183
+XF86TaskPane 184
+XF86TaskPane 154 keyboard
+XF86HomePage 172
+XF86WWW 150
+XF86Mail 155
+XF86Mail 215 keyboard
+XF86ScreenSaver 152
+XF86MonBrightnessDown 224
+XF86MonBrightnessUp 225
+XF86Voice 149
+Hangul 122 keyboard
+XF86Apps 204
+XF86Call 218
+XF86Game 220
+XF86VoiceWakeUp_LPSD 202
+XF86VoiceWakeUp 203
+XF86Send 239
+XF86Phone 240
+XF86Stop 243
diff --git a/xkb/tizen_key_layout.txt.mobile b/xkb/tizen_key_layout.txt.mobile
new file mode 100644 (file)
index 0000000..23893e9
--- /dev/null
@@ -0,0 +1,44 @@
+XF86AudioRaiseVolume 115
+XF86AudioLowerVolume 114
+XF86PowerOff 116
+XF86Menu 169
+XF86Home 139
+XF86Back 158
+XF86Camera 171
+XF86Camera_Full 212
+XF86Search 217
+XF86AudioPlay 200 no_priv
+XF86AudioPlay 207 keyboard no_priv
+XF86AudioPause 201 no_priv
+XF86AudioStop 166 no_priv
+XF86AudioStop 128 keyboard no_priv
+XF86AudioNext 163 no_priv
+XF86AudioPrev 165 no_priv
+XF86AudioRewind 168 no_priv
+XF86AudioForward 208 no_priv
+XF86AudioMedia 226 no_priv
+XF86AudioPlayPause 164 no_priv
+XF86AudioMute 113
+XF86AudioRecord 167
+Cancel 223 keyboard
+XF86SoftKBD 148
+XF86QuickPanel 183
+XF86TaskPane 184
+XF86TaskPane 154 keyboard
+XF86HomePage 172
+XF86WWW 150
+XF86Mail 155
+XF86Mail 215 keyboard
+XF86ScreenSaver 152
+XF86MonBrightnessDown 224
+XF86MonBrightnessUp 225
+XF86Voice 149
+Hangul 122 keyboard
+XF86Apps 204
+XF86Call 218
+XF86Game 220
+XF86VoiceWakeUp_LPSD 202
+XF86VoiceWakeUp 203
+XF86Send 239
+XF86Phone 240
+XF86Stop 243
diff --git a/xkb/tizen_key_layout.txt.tv b/xkb/tizen_key_layout.txt.tv
new file mode 100644 (file)
index 0000000..d8b9c4e
--- /dev/null
@@ -0,0 +1,94 @@
+XF86AudioRaiseVolume 115
+XF86AudioLowerVolume 114
+XF86PowerOff 116
+XF86Menu 139
+XF86Home 169
+XF86Back 158
+XF86Camera_Full 212
+XF86Search 217
+XF86AudioPlay 200 no_priv
+XF86AudioPlay 207 keyboard no_priv
+XF86AudioPause 201 no_priv
+XF86AudioStop 166 no_priv
+XF86AudioStop 128 keyboard no_priv
+XF86AudioNext 163 no_priv
+XF86AudioPrev 165 no_priv
+XF86AudioRewind 168 no_priv
+XF86AudioForward 208 no_priv
+XF86AudioMedia 226 no_priv
+XF86AudioPlayPause 164 no_priv
+XF86AudioMute 113
+XF86AudioRecord 167
+Cancel 223 keyboard
+XF86SoftKBD 148
+XF86QuickPanel 183
+XF86TaskPane 184
+XF86TaskPane 154 keyboard
+XF86HomePage 172
+XF86WWW 150
+XF86Mail 155
+XF86Mail 215 keyboard
+XF86ScreenSaver 152
+XF86MonBrightnessDown 224
+XF86MonBrightnessUp 225
+XF86Voice 149
+Hangul 122 keyboard
+XF86Apps 204
+XF86Call 218
+XF86Game 220
+XF86VoiceWakeUp_LPSD 202
+XF86VoiceWakeUp 203
+XF86TV 189
+XF86Display 227
+XF86RCConfig 192
+XF86RCMode 185
+XF86SoftRC 140
+1 2 keyboard
+2 3 keyboard
+3 4 keyboard
+4 5 keyboard
+5 6 keyboard
+6 7 keyboard
+7 8 keyboard
+8 9 keyboard
+9 10 keyboard
+0 11 keyboard
+minus 12 keyboard
+XF86LowerChannel 109
+XF86RaiseChannel 104
+XF86ChannelList 60
+XF86PreviousChannel 412
+XF86SysMenu 438
+XF86SimpleMenu 191
+XF86History 156
+XF86Favorites 190
+Up 103 keyboard
+Down 108 keyboard
+Left 105 keyboard
+Right 106 keyboard
+Return 28 keyboard
+XF86Close 174
+XF86Close 206 keyboard
+XF86Info 61
+XF86Red 62
+XF86Green 63
+XF86Yellow 64
+XF86Blue 65
+XF86ProgInfo 67
+XF86PictureMode 68
+XF86PictureSize 88
+XF86PIP 66
+XF86Guide 130
+XF86AudioMode 187
+XF86Subtitle 186
+XF863D 188
+Return 352
+XF86Home 354
+XF86TV 377
+XF86RaiseChannel 402
+XF86LowerChannel 403
+XF86AudioPrev 405 no_priv
+XF86AudioNext 407 no_priv
+XF86Send 239
+XF86Phone 240
+XF86Stop 243
diff --git a/xkb/tizen_key_layout.txt.wearable b/xkb/tizen_key_layout.txt.wearable
new file mode 100644 (file)
index 0000000..53d03ef
--- /dev/null
@@ -0,0 +1,36 @@
+XF86AudioRaiseVolume 115
+XF86AudioLowerVolume 114
+XF86PowerOff 116
+XF86Menu 169
+XF86Home 139
+XF86Back 158
+XF86Camera_Full 212
+XF86Search 217
+XF86AudioPlay 200 no_priv
+XF86AudioPlay 207 keyboard no_priv
+XF86AudioPause 201 no_priv
+XF86AudioStop 166 no_priv
+XF86AudioStop 128 keyboard no_priv
+XF86AudioNext 163 no_priv
+XF86AudioPrev 165 no_priv
+XF86AudioRewind 168 no_priv
+XF86AudioForward 208 no_priv
+XF86AudioMedia 226 no_priv
+XF86AudioPlayPause 164 no_priv
+XF86AudioMute 113
+XF86AudioRecord 167
+Cancel 223 keyboard
+XF86SoftKBD 148
+XF86TaskPane 184
+XF86TaskPane 154 keyboard
+XF86ScreenSaver 152
+XF86MonBrightnessDown 224
+XF86MonBrightnessUp 225
+XF86Voice 149
+XF86Apps 204
+XF86Call 218
+XF86VoiceWakeUp_LPSD 202
+XF86VoiceWakeUp 203
+XF86Send 239
+XF86Phone 240
+XF86Stop 243
diff --git a/xkb/xkb.rule.common b/xkb/xkb.rule.common
new file mode 100644 (file)
index 0000000..28365bb
--- /dev/null
@@ -0,0 +1,7 @@
+rules=evdev
+model=pc105
+layout=us
+variant=
+options=
+
+supported_layouts=us,ru
diff --git a/xkb/xkb.rule.ivi b/xkb/xkb.rule.ivi
new file mode 100644 (file)
index 0000000..1923d5f
--- /dev/null
@@ -0,0 +1,7 @@
+rules=evdev
+model=pc105
+layout=us
+variant=
+options=
+
+supported_layouts=us,gb
diff --git a/xkb/xkb.rule.mobile b/xkb/xkb.rule.mobile
new file mode 100644 (file)
index 0000000..1923d5f
--- /dev/null
@@ -0,0 +1,7 @@
+rules=evdev
+model=pc105
+layout=us
+variant=
+options=
+
+supported_layouts=us,gb
diff --git a/xkb/xkb.rule.tv b/xkb/xkb.rule.tv
new file mode 100644 (file)
index 0000000..1923d5f
--- /dev/null
@@ -0,0 +1,7 @@
+rules=evdev
+model=pc105
+layout=us
+variant=
+options=
+
+supported_layouts=us,gb
diff --git a/xkb/xkb.rule.wearable b/xkb/xkb.rule.wearable
new file mode 100644 (file)
index 0000000..1923d5f
--- /dev/null
@@ -0,0 +1,7 @@
+rules=evdev
+model=pc105
+layout=us
+variant=
+options=
+
+supported_layouts=us,gb