/* 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:
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,
/* 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:
{"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},
/* 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:
#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 (
#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 */
/* 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