[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [emacs-bidi] mirroring of glyphs
From: |
Ehud Karni |
Subject: |
Re: [emacs-bidi] mirroring of glyphs |
Date: |
Fri, 16 Nov 2001 22:05:02 +0200 |
On Fri, 16 Nov 2001 11:49:58 +0200, Eli Zaretskii <address@hidden> wrote:
>
> {
> size_t i = p - mirrored_pairs;
>
> if ((i & 1) == 0)
> return mirrored_pairs[i + 1];
> else
> return mirrored_pairs[i - 1];
> }
This can be changed to:
{
size_t i = p - mirrored_pairs;
return mirrored_pairs [ (i ^ 1) ];
}
Because the mirrored characters are always reciprocal pairs, this will
always work.
Ehud.
--
Ehud Karni Mivtach - Simon Insurance /"\
Tel: +972-3-7966-561 Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign
(USA) Fax and voice mail: 1-815-5509341 X Against HTML Mail
Better Safe Than Sorry / \
mailto:address@hidden http://www.simonwiesel.co.il
- Re: [emacs-bidi] debugging visual-to-logical, (continued)
- Re: [emacs-bidi] mirroring of glyphs, Behdad Esfahbod, 2001/11/19
- Re: [emacs-bidi] mirroring of glyphs, Eli Zaretskii, 2001/11/20
- Re: [emacs-bidi] mirroring of glyphs, Roozbeh Pournader, 2001/11/20
- Re: [emacs-bidi] mirroring of glyphs, Behdad Esfahbod, 2001/11/20
- Re: [emacs-bidi] mirroring of glyphs, Eli Zaretskii, 2001/11/20
- Re: [emacs-bidi] mirroring of glyphs, Behdad Esfahbod, 2001/11/20
- Re: [emacs-bidi] mirroring of glyphs, Eli Zaretskii, 2001/11/16
- Re: [emacs-bidi] mirroring of glyphs,
Ehud Karni <=
- Re: [emacs-bidi] mirroring of glyphs, Eli Zaretskii, 2001/11/17
- Re: [emacs-bidi] mirroring of glyphs, Alex Schroeder, 2001/11/17
- Re: [emacs-bidi] mirroring of glyphs, Eli Zaretskii, 2001/11/17
- Re: [emacs-bidi] testing bidi.el with the pgba tests, Alex Schroeder, 2001/11/15
- Re: [emacs-bidi] Where do I start?, Alex Schroeder, 2001/11/15
- Re: [emacs-bidi] Where do I start?, Behdad Esfahbod, 2001/11/19
- Re: [emacs-bidi] Where do I start?, Alex Schroeder, 2001/11/19