(root)/
fribidi-1.0.13/
lib/
fribidi-deprecated.h
       1  /* FriBidi
       2   * fribidi-deprecated.h - Deprecated interfaces
       3   *
       4   * Author:
       5   *   Behdad Esfahbod, 2004, 2005
       6   *
       7   * Copyright (C) 2004 Sharif FarsiWeb, Inc
       8   * Copyright (C) 2004, 2005 Behdad Esfahbod
       9   * 
      10   * This library is free software; you can redistribute it and/or
      11   * modify it under the terms of the GNU Lesser General Public
      12   * License as published by the Free Software Foundation; either
      13   * version 2.1 of the License, or (at your option) any later version.
      14   * 
      15   * This library is distributed in the hope that it will be useful,
      16   * but WITHOUT ANY WARRANTY; without even the implied warranty of
      17   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
      18   * Lesser General Public License for more details.
      19   * 
      20   * You should have received a copy of the GNU Lesser General Public License
      21   * along with this library, in a file named COPYING; if not, write to the
      22   * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
      23   * Boston, MA 02110-1301, USA
      24   * 
      25   * For licensing issues, contact <fribidi.license@gmail.com>.
      26   */
      27  #ifndef _FRIBIDI_DEPRECATED_H
      28  #define _FRIBIDI_DEPRECATED_H
      29  
      30  #include "fribidi-common.h"
      31  
      32  #include "fribidi-types.h"
      33  
      34  #include "fribidi-bidi-types.h"
      35  
      36  #include "fribidi-begindecls.h"
      37  
      38  
      39  
      40  /* fribidi_mirroring_status - get current mirroring status
      41   *
      42   * This function is deprecated and only used with other deprecated functions.
      43   */
      44  FRIBIDI_ENTRY fribidi_boolean fribidi_mirroring_status (
      45    void
      46  ) FRIBIDI_GNUC_DEPRECATED;
      47  
      48  /* fribidi_set_mirroring - set mirroring on or off
      49   *
      50   * This function is used to turn character mirroring on or off.
      51   * Character mirroring is the act of replacing a mirrorable glyph
      52   * (character), eg. left parenthesis, with the matching glyph, 
      53   * eg. right parenthesis, in a right-to-left resolved context.
      54   * If your rendering engine does mirroring itself, you may want to 
      55   * turn it off here.
      56   *
      57   * This flag is on by default.
      58   * This function is deprecated and only used with other deprecated functions.
      59   *
      60   * Returns: the new mirroring status.
      61   */
      62  FRIBIDI_ENTRY fribidi_boolean fribidi_set_mirroring (
      63    fribidi_boolean state		/* new state to set */
      64  ) FRIBIDI_GNUC_DEPRECATED;
      65  
      66  
      67  /* fribidi_reorder_nsm_status - get current marks reordering status
      68   *
      69   * This function is deprecated and only used with other deprecated functions.
      70   */
      71  FRIBIDI_ENTRY fribidi_boolean fribidi_reorder_nsm_status (
      72    void
      73  ) FRIBIDI_GNUC_DEPRECATED;
      74  
      75  /* fribidi_set_reorder_nsm - set marks reordering on or off
      76   *
      77   * This function is used to turn non-spacing marks reordering on or
      78   * off.  Reordering non-spacing marks is the act of placing non-spacing
      79   * marks (bidi class NSM) after their base character in a right-to-left
      80   * resolved context.  If your rendering engine expects non-spacing marks
      81   * always after the base character in the memory representation of the
      82   * visual string, you need this option on.  An example of where people
      83   * may need it off is when rendering in the console when non-spacing
      84   * marks cannot be applied on top of the base character.
      85   *
      86   * This flag is on by default.
      87   * This function is deprecated and only used with other deprecated functions.
      88   *
      89   * Returns: the new marks reordering status.
      90   */
      91  FRIBIDI_ENTRY fribidi_boolean fribidi_set_reorder_nsm (
      92    fribidi_boolean state		/* new state to set */
      93  ) FRIBIDI_GNUC_DEPRECATED;
      94  
      95  
      96  
      97  
      98  /* fribidi_log2vis_get_embedding_levels - get embedding levels
      99   *
     100   * Deprecated. Replaced by fribidi_get_par_embedding_levels_ex.
     101   */
     102  FRIBIDI_ENTRY FriBidiLevel
     103  fribidi_log2vis_get_embedding_levels (
     104    const FriBidiCharType *bidi_types,	/* input list of bidi types as returned by
     105  					   fribidi_get_bidi_types() */
     106    const FriBidiStrIndex len,	/* input string length of the paragraph */
     107    FriBidiParType *pbase_dir,	/* requested and resolved paragraph
     108  				 * base direction */
     109    FriBidiLevel *embedding_levels	/* output list of embedding levels */
     110  ) FRIBIDI_GNUC_DEPRECATED;
     111  
     112  /* fribidi_get_type - get character bidi type
     113   *
     114   * Deprecated. Replaced by fribidi_get_bidi_type.
     115   */
     116  FRIBIDI_ENTRY FriBidiCharType
     117  fribidi_get_type (
     118    FriBidiChar ch		/* input character */
     119  ) FRIBIDI_GNUC_DEPRECATED;
     120  
     121  /* fribidi_get_type_internal - get character bidi type
     122   *
     123   * Deprecated. Replaced by fribidi_get_bidi_type.
     124   */
     125  FRIBIDI_ENTRY FriBidiCharType
     126  fribidi_get_type_internal (
     127    FriBidiChar ch		/* input character */
     128  ) FRIBIDI_GNUC_DEPRECATED;
     129  
     130  /* fribidi_get_par_embedding_levels - get bidi embedding levels of a paragraph
     131   *
     132   * Deprecated interface to fribidi_get_par_embedding_levels_ex(). Refer to
     133   * it for documentation.
     134   */
     135  FRIBIDI_ENTRY FriBidiLevel
     136  fribidi_get_par_embedding_levels (
     137    const FriBidiCharType *bidi_types,	/* input list of bidi types as returned by
     138  					   fribidi_get_bidi_types() */
     139    const FriBidiStrIndex len,	/* input string length of the paragraph */
     140    FriBidiParType *pbase_dir,	/* requested and resolved paragraph
     141  				 * base direction */
     142    FriBidiLevel *embedding_levels	/* output list of embedding levels */
     143  ) 
     144       FRIBIDI_GNUC_WARN_UNUSED FRIBIDI_GNUC_DEPRECATED;
     145  
     146  #define UNI_MAX_BIDI_LEVEL	FRIBIDI_BIDI_MAX_EXPLICIT_LEVEL
     147  #define UNI_LRM			FRIBIDI_CHAR_LRM
     148  #define UNI_RLM			FRIBIDI_CHAR_RLM
     149  #define UNI_LRE			FRIBIDI_CHAR_LRE
     150  #define UNI_RLE			FRIBIDI_CHAR_RLE
     151  #define UNI_LRO			FRIBIDI_CHAR_LRO
     152  #define UNI_RLO			FRIBIDI_CHAR_RLO
     153  #define UNI_LS			FRIBIDI_CHAR_LS
     154  #define UNI_PS			FRIBIDI_CHAR_PS
     155  #define UNI_ZWNJ		FRIBIDI_CHAR_ZWNJ
     156  #define UNI_ZWJ			FRIBIDI_CHAR_ZWJ
     157  #define UNI_HEBREW_ALEF		FRIBIDI_CHAR_HEBREW_ALEF
     158  #define UNI_ARABIC_ALEF		FRIBIDI_CHAR_ARABIC_ALEF
     159  #define UNI_ARABIC_ZERO		FRIBIDI_CHAR_ARABIC_ZERO
     160  #define UNI_FARSI_ZERO		FRIBIDI_CHAR_PERSIAN_ZERO
     161  
     162  #define FRIBIDI_TYPE_WL		FRIBIDI_PAR_WLTR
     163  #define FRIBIDI_TYPE_WR		FRIBIDI_PAR_WRTL
     164  #define FRIBIDI_TYPE_L		FRIBIDI_PAR_LTR
     165  #define FRIBIDI_TYPE_R		FRIBIDI_PAR_RTL
     166  #define FRIBIDI_TYPE_N		FRIBIDI_PAR_ON
     167  #define FRIBIDI_TYPE_B		FRIBIDI_TYPE_BS
     168  #define FRIBIDI_TYPE_S		FRIBIDI_TYPE_SS
     169  
     170  #include "fribidi-enddecls.h"
     171  
     172  #endif /* !_FRIBIDI_DEPRECATED_H */
     173  /* Editor directions:
     174   * vim:textwidth=78:tabstop=8:shiftwidth=2:autoindent:cindent
     175   */