From 7e382d2cc7f5c08bda7d0d7195b074d91811c5d7 Mon Sep 17 00:00:00 2001 From: behdad Date: Wed, 9 Jun 2004 08:56:53 +0000 Subject: [PATCH] Not serious changed. Going to remove easy-to-replace compatibility stuff. --- bin/fribidi-benchmark.c | 8 ++++---- bin/fribidi-main.c | 14 +++++++------- lib/fribidi-bidi-type.h | 12 +++++++----- lib/fribidi.h | 16 ++++++++++++---- 4 files changed, 30 insertions(+), 20 deletions(-) diff --git a/bin/fribidi-benchmark.c b/bin/fribidi-benchmark.c index b49fa3e..3de8795 100644 --- a/bin/fribidi-benchmark.c +++ b/bin/fribidi-benchmark.c @@ -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, diff --git a/bin/fribidi-main.c b/bin/fribidi-main.c index 0b31089..97a1d41 100644 --- a/bin/fribidi-main.c +++ b/bin/fribidi-main.c @@ -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}, diff --git a/lib/fribidi-bidi-type.h b/lib/fribidi-bidi-type.h index 49322ef..ceadc6b 100644 --- a/lib/fribidi-bidi-type.h +++ b/lib/fribidi-bidi-type.h @@ -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 */ diff --git a/lib/fribidi.h b/lib/fribidi.h index f246eda..190b3a5 100644 --- a/lib/fribidi.h +++ b/lib/fribidi.h @@ -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: @@ -43,13 +43,21 @@ #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 -- 2.40.0