all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Uwe Brauer <oub@mat.ucm.es>
To: emacs-devel@gnu.org
Subject: some progress (was: bidi support? (Hebrew))
Date: Fri, 21 Jun 2013 15:27:49 +0200	[thread overview]
Message-ID: <87ip17h9uy.fsf@gilgamesch.quim.ucm.es> (raw)
In-Reply-To: 87vc57hfyc.fsf@gilgamesch.quim.ucm.es

[-- Attachment #1: Type: text/plain, Size: 1780 bytes --]

>> "Uwe" == Uwe Brauer <oub@mat.ucm.es> writes:

   > Hi

   > What do I miss?
Well the http://www.emacswiki.org/emacs/DisplayEngineForBiDi

Gives some hints, however I am missing interactive function turning bidi
on and off.

So the following is mostly trivial.
BTW where and how can I use bigger fonts for hebrew? (I am using  Laptop
with a 12 inch screen and the one emacs uses per default are small)

;; Basic setup for hebrew, using the bidi-engine, 
;; and an external hebrew-keyboard, (KDE with the phonetic option on)

(setq-default bidi-display-reordering t)


(defun my-turn-bidi-on ()
  "Just start with  to R2L."
  (interactive)
  (setq  bidi-paragraph-direction 'right-to-left)
  (message "R2L on!"))

(defun my-turn-bidi-off ()
  "Just start with  to L2R."
(interactive)
  (setq  bidi-paragraph-direction 'left-to-right)
  (message "R2L off!"))

;; this is from Xemacs, where (interactive "_") exists.

;; by Adrian Kubala Adrian Kubala <adrian@sixfingeredman.net>


(defun make-repeat-command (symbol command-list)
  "Command changes with each repetition.
SYMBOL is a symbol unique to this command."
  (if (eq last-command symbol)
      (set symbol (+ (eval symbol) 1))
    (set symbol 0))
  (if (>= (eval symbol) (length command-list))
      (set symbol 0))
  (call-interactively (nth (eval symbol) command-list))
  (setq this-command symbol))


(defun my-toggle-bidi ()
;  (interactive "_")
  (interactive)
  (make-repeat-command 'my-toggle-bidi '(my-turn-bidi-on
                                  my-turn-bidi-off)))


(global-set-key [(control right)] 'my-turn-bidi-on)
(global-set-key [(control left)] 'my-turn-bidi-off)
(global-set-key [(control down)] 'my-toggle-bidi)


(provide 'my-hebew-init)

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5556 bytes --]

  reply	other threads:[~2013-06-21 13:27 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-21 11:16 bidi support? (Hebrew) Uwe Brauer
2013-06-21 13:27 ` Uwe Brauer [this message]
2013-06-21 13:50   ` some progress (was: bidi support? (Hebrew)) Eli Zaretskii
2013-06-21 14:03     ` some progress Uwe Brauer
2013-06-21 14:35       ` Eli Zaretskii
2013-06-21 14:53         ` Uwe Brauer
2013-06-21 15:05           ` Eli Zaretskii
2013-06-21 16:04             ` Uwe Brauer
2013-06-21 18:09               ` Eli Zaretskii
2013-06-21 17:45             ` Uwe Brauer
2013-06-21 18:12               ` Eli Zaretskii
2013-06-21 15:02         ` Uwe Brauer
2013-06-21 16:42         ` Uwe Brauer
2013-06-21 18:10           ` Eli Zaretskii
2013-06-21 19:46             ` Uwe Brauer
2013-06-22  9:53               ` Eli Zaretskii
2013-06-22 16:25                 ` Uwe Brauer
2013-06-22 17:09                 ` a strict visual cursor in r2l and l2r buffers (was: some progress) Uwe Brauer
2013-06-22 22:17                   ` Eli Zaretskii
2013-06-23 16:22                     ` a strict visual cursor in r2l and l2r buffers Uwe Brauer
2013-06-23 16:47                       ` Eli Zaretskii
2013-06-23 19:43                         ` Uwe Brauer
2013-06-24 16:21                           ` Eli Zaretskii
2013-06-29 13:50                           ` Eli Zaretskii
2013-06-29 15:17                             ` Stefan Monnier
2013-06-29 15:26                               ` Eli Zaretskii
2013-06-29 16:10                             ` Uwe Brauer
2013-06-29 17:01                               ` Eli Zaretskii
2013-06-29 17:04                                 ` Uwe Brauer
2013-06-29 18:09                                   ` Eli Zaretskii
2013-06-29 19:33                                     ` Uwe Brauer
2013-06-29 19:38                                       ` Eli Zaretskii
2013-06-21 13:39 ` bidi support? (Hebrew) Eli Zaretskii
2013-06-21 15:01 ` Stefan Monnier
2013-06-21 16:09 ` Glenn Morris

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ip17h9uy.fsf@gilgamesch.quim.ucm.es \
    --to=oub@mat.ucm.es \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.