2 * fribidi-deprecated.c - deprecated interfaces.
5 * Behdad Esfahbod, 2001, 2002, 2004
6 * Dov Grobgeld, 1999, 2000
8 * Copyright (C) 2004 Sharif FarsiWeb, Inc
9 * Copyright (C) 2001,2002 Behdad Esfahbod
10 * Copyright (C) 1999,2000 Dov Grobgeld
12 * This library is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU Lesser General Public
14 * License as published by the Free Software Foundation; either
15 * version 2.1 of the License, or (at your option) any later version.
17 * This library is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 * Lesser General Public License for more details.
22 * You should have received a copy of the GNU Lesser General Public License
23 * along with this library, in a file named COPYING; if not, write to the
24 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
25 * Boston, MA 02110-1301, USA
27 * For licensing issues, contact <fribidi.license@gmail.com>.
32 #undef FRIBIDI_NO_DEPRECATED
34 #include <fribidi-deprecated.h>
37 #ifdef FRIBIDI_NO_DEPRECATED
40 static FriBidiFlags flags = FRIBIDI_FLAGS_DEFAULT | FRIBIDI_FLAGS_ARABIC;
42 FRIBIDI_ENTRY fribidi_boolean
43 fribidi_set_mirroring (
48 return FRIBIDI_ADJUST_AND_TEST_BITS (flags, FRIBIDI_FLAG_SHAPE_MIRRORING, state);
51 FRIBIDI_ENTRY fribidi_boolean
52 fribidi_mirroring_status (
56 return FRIBIDI_TEST_BITS (flags, FRIBIDI_FLAG_SHAPE_MIRRORING);
59 FRIBIDI_ENTRY fribidi_boolean
60 fribidi_set_reorder_nsm (
65 return FRIBIDI_ADJUST_AND_TEST_BITS (flags, FRIBIDI_FLAG_REORDER_NSM, state);
69 fribidi_reorder_nsm_status (
73 return FRIBIDI_TEST_BITS (flags, FRIBIDI_FLAG_REORDER_NSM);
79 FRIBIDI_ENTRY FriBidiLevel
80 fribidi_log2vis_get_embedding_levels (
81 const FriBidiCharType *bidi_types, /* input list of bidi types as returned by
82 fribidi_get_bidi_types() */
83 const FriBidiStrIndex len, /* input string length of the paragraph */
84 FriBidiParType *pbase_dir, /* requested and resolved paragraph
86 FriBidiLevel *embedding_levels /* output list of embedding levels */
89 return fribidi_get_par_embedding_levels_ex (bidi_types, NULL, len, pbase_dir, embedding_levels);
92 FRIBIDI_ENTRY FriBidiCharType
94 FriBidiChar ch /* input character */
97 return fribidi_get_bidi_type (ch);
100 FRIBIDI_ENTRY FriBidiCharType
101 fribidi_get_type_internal (
102 FriBidiChar ch /* input character */
105 return fribidi_get_bidi_type (ch);
109 FRIBIDI_ENTRY FriBidiLevel
110 fribidi_get_par_embedding_levels (
112 const FriBidiCharType *bidi_types,
113 const FriBidiStrIndex len,
114 /* input and output */
115 FriBidiParType *pbase_dir,
117 FriBidiLevel *embedding_levels
120 return fribidi_get_par_embedding_levels_ex (/* input */
122 NULL, /* No bracket_types */
124 /* input and output */
130 #endif /* !FRIBIDI_NO_DEPRECATED */
132 /* Editor directions:
133 * vim:textwidth=78:tabstop=8:shiftwidth=2:autoindent:cindent