diff src/bidi.c @ 107980:c2eddf34eaf2

Improve commentary regarding redisplay.
author Eli Zaretskii <eliz@gnu.org>
date Mon, 19 Apr 2010 18:35:15 +0300
parents 8b1a353e3aab
children f52b0e29b841
line wrap: on
line diff
--- a/src/bidi.c	Mon Apr 19 11:26:06 2010 -0400
+++ b/src/bidi.c	Mon Apr 19 18:35:15 2010 +0300
@@ -23,7 +23,8 @@
    as per UAX#9, a part of the Unicode Standard.
 
    Unlike the reference and most other implementations, this one is
-   designed to be called once for every character in the buffer.
+   designed to be called once for every character in the buffer or
+   string.
 
    The main entry point is bidi_get_next_char_visually.  Each time it
    is called, it finds the next character in the visual order, and
@@ -34,6 +35,11 @@
    more details about its algorithm that finds the next visual-order
    character by resolving their levels on the fly.
 
+   The two other entry points are bidi_paragraph_init and
+   bidi_mirror_char.  The first determines the base direction of a
+   paragraph, while the second returns the mirrored version of its
+   argument character.
+
    If you want to understand the code, you will have to read it
    together with the relevant portions of UAX#9.  The comments include
    references to UAX#9 rules, for that very reason.