2 * fribidi-flags.h - option flags
4 * $Id: fribidi-flags.h,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-flags.h,v $
11 * Behdad Esfahbod, 2005
13 * Copyright (C) 2005 Behdad Esfahbod
15 * This library is free software; you can redistribute it and/or
16 * modify it under the terms of the GNU Lesser General Public
17 * License as published by the Free Software Foundation; either
18 * version 2.1 of the License, or (at your option) any later version.
20 * This library is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
23 * Lesser General Public License for more details.
25 * You should have received a copy of the GNU Lesser General Public License
26 * along with this library, in a file named COPYING; if not, write to the
27 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
28 * Boston, MA 02110-1301, USA
30 * For licensing issues, contact <license@farsiweb.info>.
32 #ifndef _FRIBIDI_FLAGS_H
33 #define _FRIBIDI_FLAGS_H
35 #include "fribidi-common.h"
37 #include "fribidi-types.h"
39 #include "fribidi-begindecls.h"
41 typedef fribidi_uint32 FriBidiFlags;
44 * Define option flags that various functions use. Each mask has
48 #define FRIBIDI_FLAG_SHAPE_MIRRORING 0x00000001
49 #define FRIBIDI_FLAG_REORDER_NSM 0x00000002
51 #define FRIBIDI_FLAG_SHAPE_ARAB_PRES 0x00000100
52 #define FRIBIDI_FLAG_SHAPE_ARAB_LIGA 0x00000200
53 #define FRIBIDI_FLAG_SHAPE_ARAB_CONSOLE 0x00000400
55 #define FRIBIDI_FLAG_REMOVE_BIDI 0x00010000
56 #define FRIBIDI_FLAG_REMOVE_JOINING 0x00020000
57 #define FRIBIDI_FLAG_REMOVE_SPECIALS 0x00040000
61 * And their combinations.
64 #define FRIBIDI_FLAGS_DEFAULT ( \
65 FRIBIDI_FLAG_SHAPE_MIRRORING | \
66 FRIBIDI_FLAG_REORDER_NSM | \
67 FRIBIDI_FLAG_REMOVE_SPECIALS )
69 #define FRIBIDI_FLAGS_ARABIC ( \
70 FRIBIDI_FLAG_SHAPE_ARAB_PRES | \
71 FRIBIDI_FLAG_SHAPE_ARAB_LIGA )
73 #include "fribidi-enddecls.h"
75 #endif /* !_FRIBIDI_FLAGS_H */
77 * vim:textwidth=78:tabstop=8:shiftwidth=2:autoindent:cindent