]> granicus.if.org Git - fribidi/commitdiff
Not serious changed. Going to remove easy-to-replace compatibility stuff.
authorbehdad <behdad>
Wed, 9 Jun 2004 08:56:53 +0000 (08:56 +0000)
committerbehdad <behdad>
Wed, 9 Jun 2004 08:56:53 +0000 (08:56 +0000)
bin/fribidi-benchmark.c
bin/fribidi-main.c
lib/fribidi-bidi-type.h
lib/fribidi.h

index b49fa3e6cb48db6999d4d673e011c67290527f99..3de87953e757a529ff8145b2757ec522b563eaef 100644 (file)
@@ -1,10 +1,10 @@
 /* FriBidi
  * fribidi-benchmark.c - command line benchmark tool for libfribidi
  *
- * $Id: fribidi-benchmark.c,v 1.3 2004-05-22 11:21:40 behdad Exp $
+ * $Id: fribidi-benchmark.c,v 1.4 2004-06-09 08:56:53 behdad Exp $
  * $Author: behdad $
- * $Date: 2004-05-22 11:21:40 $
- * $Revision: 1.3 $
+ * $Date: 2004-06-09 08:56:53 $
+ * $Revision: 1.4 $
  * $Source: /home/behdad/src/fdo/fribidi/togit/git/../fribidi/fribidi2/bin/fribidi-benchmark.c,v $
  *
  * Authors:
@@ -197,7 +197,7 @@ benchmark (
   for (i = 0; i < niter; i++)
     {
       /* Create a bidi string */
-      base = FRIBIDI_TYPE_ON;
+      base = FRIBIDI_PAR_ON;
       if (!fribidi_log2vis (us, len, &base,
                            /* output */
                            out_us, positionVtoL, positionLtoV,
index 0b31089e0eefd88950a5be63e28f8ee21253ed5f..97a1d41def4fc766c479bba2b409029cbb26ec9b 100644 (file)
@@ -1,10 +1,10 @@
 /* FriBidi
  * fribidi-main.c - command line program for libfribidi
  *
- * $Id: fribidi-main.c,v 1.7 2004-06-04 09:41:11 behdad Exp $
+ * $Id: fribidi-main.c,v 1.8 2004-06-09 08:56:53 behdad Exp $
  * $Author: behdad $
- * $Date: 2004-06-04 09:41:11 $
- * $Revision: 1.7 $
+ * $Date: 2004-06-09 08:56:53 $
+ * $Revision: 1.8 $
  * $Source: /home/behdad/src/fdo/fribidi/togit/git/../fribidi/fribidi2/bin/fribidi-main.c,v $
  *
  * Authors:
@@ -251,12 +251,12 @@ main (
        {"nomirror", 0, (int *) (void *) &do_mirror, false},
        {"reordernsm", 0, (int *) (void *) &do_reorder_nsm, true},
        {"clean", 0, (int *) (void *) &do_clean, true},
-       {"ltr", 0, (int *) (void *) &input_base_direction, FRIBIDI_TYPE_LTR},
-       {"rtl", 0, (int *) (void *) &input_base_direction, FRIBIDI_TYPE_RTL},
+       {"ltr", 0, (int *) (void *) &input_base_direction, FRIBIDI_PAR_LTR},
+       {"rtl", 0, (int *) (void *) &input_base_direction, FRIBIDI_PAR_RTL},
        {"wltr", 0, (int *) (void *) &input_base_direction,
-        FRIBIDI_TYPE_WLTR},
+        FRIBIDI_PAR_WLTR},
        {"wrtl", 0, (int *) (void *) &input_base_direction,
-        FRIBIDI_TYPE_WRTL},
+        FRIBIDI_PAR_WRTL},
        {"basedir", 0, (int *) (void *) &show_basedir, true},
        {"ltov", 0, (int *) (void *) &show_ltov, true},
        {"vtol", 0, (int *) (void *) &show_vtol, true},
index 49322ef7ea3bad70aa2e1d60431d0fe77d88e1fe..ceadc6baa32112d7656c43ca2e2c7ab6f5eb822f 100644 (file)
@@ -1,10 +1,10 @@
 /* FriBidi
  * fribidi-bidi-type.h - get character bidi type
  *
- * $Id: fribidi-bidi-type.h,v 1.3 2004-06-04 09:41:11 behdad Exp $
+ * $Id: fribidi-bidi-type.h,v 1.4 2004-06-09 08:56:53 behdad Exp $
  * $Author: behdad $
- * $Date: 2004-06-04 09:41:11 $
- * $Revision: 1.3 $
+ * $Date: 2004-06-09 08:56:53 $
+ * $Revision: 1.4 $
  * $Source: /home/behdad/src/fdo/fribidi/togit/git/../fribidi/fribidi2/lib/Attic/fribidi-bidi-type.h,v $
  *
  * Author:
@@ -43,7 +43,8 @@
 #define fribidi_get_bidi_type FRIBIDI_NAMESPACE(get_bidi_type)
 /* fribidi_get_bidi_type - get character bidi type
  *
- * This function returns the bidi type of a character.
+ * This function returns the bidi type of a character.  There are a few macros
+ * defined in fribidi-bidi-types.h for querying a bidi type.
  */
 FRIBIDI_ENTRY FriBidiCharType
 fribidi_get_bidi_type (
@@ -66,7 +67,8 @@ fribidi_get_bidi_type (
 #define fribidi_get_bidi_types FRIBIDI_NAMESPACE(get_bidi_types)
 /* fribidi_get_bidi_types - get bidi types for an string of characters
  *
- * This function finds the bidi types of an string of characters.
+ * This function finds the bidi types of an string of characters.  See
+ * fribidi_get_bidi_type for more information.
  */
      FRIBIDI_ENTRY void fribidi_get_bidi_types (
   const FriBidiChar *str,      /* input string */
index f246edad11a4b30353d0df988f0179e319080ace..190b3a534e5879f7e3f155873640bebdf237abcd 100644 (file)
@@ -1,10 +1,10 @@
 /* FriBidi
  * fribidi.h - Unicode bidirectional and Arabic joining algorithms
  *
- * $Id: fribidi.h,v 1.2 2004-06-07 20:38:21 behdad Exp $
+ * $Id: fribidi.h,v 1.3 2004-06-09 08:56:53 behdad Exp $
  * $Author: behdad $
- * $Date: 2004-06-07 20:38:21 $
- * $Revision: 1.2 $
+ * $Date: 2004-06-09 08:56:53 $
+ * $Revision: 1.3 $
  * $Source: /home/behdad/src/fdo/fribidi/togit/git/../fribidi/fribidi2/lib/fribidi.h,v $
  *
  * Author:
 #endif /* FRIBIDI_CHARSETS */
 
 
+/* See fribidi-bidi.h for the core functions fribidi_get_par_embedding_levels
+ * and fribidi_reorder_line which are probably the main calls you need.  See
+ * README for a better understanding of what calls you need.
+ */
+
+
 #define fribidi_shape FRIBIDI_NAMESPACE(shape)
 /* fribidi_shape - do bidi-dependent shaping
  *
  * This function does all shaping work that depends on the resolved embedding
  * levels of the characters.  Currently it does mirroring and Arabic shaping,
  * but the list may grow later.  Individual shaping features can be turned
- * on/off using environmental setting functions fribidi_env_*.
+ * on/off using environmental setting functions fribidi_env_*.  Feel free to
+ * do your own shaping before or after calling this function, but you should
+ * take care of embedding levels yourself then.
  */
 FRIBIDI_ENTRY void fribidi_shape (
   const FriBidiLevel *embedding_level_list,    /* input list of embedding