###############################################################################
# Copyright (c) 2009, Oracle and/or its affiliates. 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, sublicense,
# 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 NONINFRINGEMENT. IN NO EVENT SHALL
# THE AUTHORS OR COPYRIGHT HOLDERS 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/nls/iso8859-8/Compose.pre b/nls/iso8859-8/Compose.pre
index 1ca90c7..108087e 100644
--- a/nls/iso8859-8/Compose.pre
+++ b/nls/iso8859-8/Compose.pre
@@ -1,14 +1,57 @@
+XCOMM Arabic input table (Ascii input mode)
XCOMM
-XCOMM ISO 8859-8 Compose Sequence
-XCOMM
-XCOMM Sequence Definition
+XCOMM Note: The quoted string after the token STATE will appear
+XCOMM in the status area when XIM status area is specified.
+
+STATE "[ English ]"
+Ctrl<T> : SWITCH_STATE_TO "[ Hebrew ]"
+Ctrl<space> : SWITCH_STATE_TO "[ Hebrew ]"
+<Multi_key> <h> <h> : SWITCH_STATE_TO "[ Hebrew ]"
+
+END_STATE
+
+
XCOMM
+XCOMM Hebrew input table (Hebrew input mode)
XCOMM
-XCOMM This file currently has no entries. It appears that a compose file (even
-XCOMM just an empty one) is required for the appropriate keysyms to work for
-XCOMM this encoding.
+
+
+STATE "[ Hebrew ]"
+Ctrl<T> : SWITCH_STATE_TO "[ English ]"
+Ctrl<space> : SWITCH_STATE_TO "[ English ]"
+
XCOMM
-XCOMM <Multi_key> Means <Compose>
-XCOMM Special Character
+<q> : "/"
+<w> : "'"
+<e> : "\xf7"
+<r> : "\xf8"
+<t> : "\xe0"
+<y> : "\xe8"
+<u> : "\xe5"
+<i> : "\xef"
+<o> : "\xed"
+<p> : "\xf4"
+<a> : "\xf9"
+<s> : "\xe3"
+<d> : "\xe2"
+<f> : "\xeb"
+<g> : "\xf2"
+<h> : "\xe9"
+<j> : "\xe7"
+<k> : "\xec"
+<l> : "\xea"
+<semicolon> : "\xf3"
+<z> : "\xe6"
+<x> : "\xf1"
+<c> : "\xe1"
+<v> : "\xe4"
+<b> : "\xf0"
+<n> : "\xee"
+<m> : "\xf6"
+<comma> : "\xfa"
+<period> : "\xf5"
+<slash> : "."
+<grave> : ";"
+<apostrophe> : ","
+END_STATE
-XCOMM End of Sequence Definition