From 08431a20c55bc9b7f3f1c489a481663633794420 Mon Sep 17 00:00:00 2001 From: Michael Vehrs Date: Sat, 2 May 2015 17:08:54 +0300 Subject: [PATCH] Fix display of keyboard layouts for right-to-left scripts * lisp/international/quail.el (quail-insert-kbd-layout): Force left-to-right paragraph direction. --- lisp/international/quail.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/international/quail.el b/lisp/international/quail.el index 5e422bf5fdb..90a540aae30 100644 --- a/lisp/international/quail.el +++ b/lisp/international/quail.el @@ -793,9 +793,10 @@ you type is correctly handled." keyseq))) (defun quail-insert-kbd-layout (kbd-layout) -"Insert the visual keyboard layout table according to KBD-LAYOUT. + "Insert the visual keyboard layout table according to KBD-LAYOUT. The format of KBD-LAYOUT is the same as `quail-keyboard-layout'." (let (done-list layout i ch) + (setq bidi-paragraph-direction 'left-to-right) ;; At first, convert KBD-LAYOUT to the same size vector that ;; contains translated character or string. (setq layout (string-to-vector kbd-layout) -- 2.39.2