|
View:
New views
12 Messages
—
Rating Filter:
Alert me
|
|
|
Summary of bidi branch?Hi, is there somewhere a summary of where the bidi branch stands nowadays? How synched is it to actual developments in which branch? I just got back from a conference where somebody doing critical editions of Arabic text said that pretty much the only usable editor (as in: renders characters correctly) for Unicode R-to-L was Unipad under Windows. Do people actually use emacs-bidi nowadays? Does it work for writing? Just for Hebrew, or other R-to-L scripts, too? What about crazy things like T-to-B scripts (some Japanese and/or Chinese variants IIRC)? I'd be willing to try creating a Yiddish input encoding, though I'd probably have to think quite a bit of how to encode the various letters used in Hebrew words. I don't think there is a standard unambiguous transliteration scheme for those around. -- David Kastrup _______________________________________________ emacs-bidi mailing list emacs-bidi@... http://lists.gnu.org/mailman/listinfo/emacs-bidi |
|
|
Re: Summary of bidi branch?> From: David Kastrup <dak@...>
> Date: Wed, 28 Mar 2007 16:11:25 +0200 > > is there somewhere a summary of where the bidi branch stands nowadays? Not that I know of, but I don't think there's much to summarize; see below. > How synched is it to actual developments in which branch? I think no one synchs it. But the patch is quite localized, so it shouldn't be hard to merge it with the current CVS HEAD. At least I hope so. > I just got back from a conference where somebody doing critical > editions of Arabic text said that pretty much the only usable editor > (as in: renders characters correctly) for Unicode R-to-L was Unipad > under Windows. Yes, it's very sad, especially since the core reordering code was written 5 and a half years ago. (However, I think there's also Yudit, http://www.yudit.org/.) > Do people actually use emacs-bidi nowadays? I cannot imagine that someone uses it, since it crashes the moment you turn on the bidi display option, even if the buffer consists of strict left-to-right characters (e.g., ASCII). The bidi display engine needs work before it becomes even marginally usable. Unfortunately, I don't have anywhere near the time needed for this kind of job. I can help with advice and explanations about the code, though. The reordering code was extensively tested wrapped in a stand-alone program, so I expect most of the debugging needs to take care of the way Emacs calls the buffer iterator and moves around the locus of the iteration. The testing I did emulated linear iteration through buffer text, which is probably somewhat simpler than what Emacs actually does when it prepares the next redisplay. > Does it work for writing? Just for Hebrew, or other R-to-L scripts, > too? It is supposed to work for all scripts that need bidirectional display, provided that the directionality properties of the characters are set up properly, which should already be so in Emacs 23, because the properties are loaded from the Unicode character database. The same code could be used, with a slightly different API, to produce printed matter from bidirectional text. I thought about both of these applications during design and implementation of the reordering code. > What about crazy things like T-to-B scripts (some Japanese and/or > Chinese variants IIRC)? The bidi reordering code I wrote doesn't support that. It only supports the functionality described in the Unicode Annex 9 (a.k.a. UAX #9). > I'd be willing to try creating a Yiddish input encoding, though I'd > probably have to think quite a bit of how to encode the various > letters used in Hebrew words. I don't think there is a standard > unambiguous transliteration scheme for those around. I don't understand: Yiddish uses Hebrew letters, and is written right to left, like Hebrew. So why do you need a new encoding and a new input method? You can just use the Hebrew input method (and hit the same bidi non-support problem ;-). What am I missing? _______________________________________________ emacs-bidi mailing list emacs-bidi@... http://lists.gnu.org/mailman/listinfo/emacs-bidi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: Summary of bidi branch?>>>>> "Eli" == Eli Zaretskii <eliz@...> writes:
Eli> We do have the encoding (arabic-iso-8bit, albeit not thoroughly Eli> supported), but not an input method. [...] Eli> If all you want is to input characters, and don't care about Eli> displaying them correctly, then making an input method that produces Eli> mule-unicode-* characters should be easy. Here is one that does the same chars as the base arabic layout in xkeyboard-config. It'll need a s/is not yet part of/is part of/ in the license and, I presume, assignment papers to be included. In case it gets munged in transit, a copy is available at: http://jhcloos.com/emacs/quail/arabic.el -JimC ============================== cut ============================== ;;; arabic.el --- Quail package for inputting Arabic characters -*-coding: iso-2022-7bit;-*- ;; Copyright (C) 2007 James Cloos <cloos@...> ;; Copyright to be assigned to the Free Software Foundation upon request ;; Keywords: mule, input method, Arabic ;; This file is not yet part of GNU Emacs. ;; GNU Emacs is free software; you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by ;; the Free Software Foundation; either version 2, or (at your option) ;; any later version. ;; GNU Emacs is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;; GNU General Public License for more details. ;; You should have received a copy of the GNU General Public License ;; along with GNU Emacs; see the file COPYING. If not, write to the ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, ;; Boston, MA 02110-1301, USA. ;;; Commentary: ;;; Code: (require 'quail) (quail-define-package "arabic" "Arabic" "ع" nil "Arabic input method. Based on Arabic table in X Keyboard Configuration DB. " nil t t t t nil nil nil nil nil t) ;; ذّ 1! 2@ 3# 4$ 5% 6^ 7& 8* 9( 0) -_ =+ ;; ضَ صً ثُ قٌ فﻹ غإ ع` ه÷ خ× ح؛ ج{ د} <> ;; ش\ سS ي[ ب] لﻷ اأ تـ ن، م/ ك: ط" ;; ئ~ ءْ ؤِ رٍ ﻻﻵ ىآ ة' و, ز. ظ؟ ;; (quail-define-rules ("`" ?ذ) ("Q" ?َ) ("W" ?ً) ("E" ?ُ) ("R" ?ٌ) ("T" ?ﻹ) ("Y" ?إ) ("U" ?`) ("I" ?÷) ("O" ?×) ("P" ?؛) ("A" ?\\) ("S" ?S) ("D" ?[) ("F" ?]) ("G" ?ﻷ) ("H" ?أ) ("J" ?ـ) ("K" ?،) ("L" ?/) (";" ?:) ("Z" ?~) ("X" ?ْ) ("C" ?ِ) ("V" ?ٍ) ("B" ?ﻵ) ("N" ?آ) ("M" ?') ("<" ?,) (">" ?.) ("?" ?؟) ("`" ?ذ) ("q" ?ض) ("w" ?ص) ("e" ?ث) ("r" ?ق) ("t" ?ف) ("y" ?غ) ("u" ?ع) ("i" ?ه) ("o" ?خ) ("p" ?ح) ("a" ?ش) ("s" ?س) ("d" ?ي) ("f" ?ب) ("g" ?ل) ("h" ?ا) ("j" ?ت) ("k" ?ن) ("l" ?م) (";" ?ك) ("z" ?ئ) ("x" ?ء) ("c" ?ؤ) ("v" ?ر) ("b" ?ﻻ) ("n" ?ى) ("m" ?ة) ("," ?و) ("." ?ز) ("/" ?ظ) ("'" ?ط)) ;;; arch-tag: ;;; arabic.el ends here ============================== cut ============================== -- James Cloos <cloos@...> OpenPGP: 1024D/ED7DAEA6 _______________________________________________ emacs-bidi mailing list emacs-bidi@... http://lists.gnu.org/mailman/listinfo/emacs-bidi |
|
|
|
|
|
|
|
|
|
| Free Forum Powered by Nabble | Forum Help |