2 * fribidi-shape.c - shaping
4 * $Id: fribidi-shape.c,v 1.1 2005-11-03 01:39:01 behdad Exp $
6 * $Date: 2005-11-03 01:39:01 $
8 * $Source: /home/behdad/src/fdo/fribidi/togit/git/../fribidi/fribidi2/lib/fribidi-shape.c,v $
11 * Behdad Esfahbod, 2001, 2002, 2004
12 * Dov Grobgeld, 1999, 2000
14 * Copyright (C) 2005 Behdad Esfahbod
16 * This library is free software; you can redistribute it and/or
17 * modify it under the terms of the GNU Lesser General Public
18 * License as published by the Free Software Foundation; either
19 * version 2.1 of the License, or (at your option) any later version.
21 * This library is distributed in the hope that it will be useful,
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
24 * Lesser General Public License for more details.
26 * You should have received a copy of the GNU Lesser General Public License
27 * along with this library, in a file named COPYING; if not, write to the
28 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
29 * Boston, MA 02110-1301, USA
31 * For licensing issues, contact <license@farsiweb.info>.
36 #include <fribidi-shape.h>
37 #include <fribidi-mirroring.h>
38 #include <fribidi-arabic.h>
45 const FriBidiLevel *embedding_levels,
46 const FriBidiStrIndex len,
47 /* input and output */
48 FriBidiArabicProp *ar_props,
53 (len == 0 || !str) return;
55 DBG ("in fribidi_shape");
57 fribidi_assert (embedding_levels);
60 fribidi_shape_arabic (flags, embedding_levels, len, ar_props, str);
62 if (FRIBIDI_TEST_BITS (flags, FRIBIDI_FLAG_SHAPE_MIRRORING))
63 fribidi_shape_mirroring (embedding_levels, len, str);
68 * vim:textwidth=78:tabstop=8:shiftwidth=2:autoindent:cindent