1 .\" WARNING! THIS FILE WAS GENERATED AUTOMATICALLY BY c2man!
2 .\" DO NOT EDIT! CHANGES MADE TO THIS FILE WILL BE LOST!
3 .TH "fribidi_get_par_direction" 3 "1 February 2013" "GNU FriBidi 0.19.7" "Programmer's Manual"
5 fribidi_get_par_direction \- get base paragraph direction
10 FriBidiParType fribidi_get_par_direction
14 const FriBidiCharType *bidi_types,
16 const FriBidiStrIndex len
22 .B "const FriBidiCharType *bidi_types"
23 Input list of bidi types as returned by
24 fribidi_get_bidi_types().
26 Possible values for a \fBconst FriBidiCharType\fR are as follows:
30 .nr TL \w'FRIBIDI_TYPE_LTR'u+0.2i
33 \fBFRIBIDI_TYPE_LTR\fR
36 \fBFRIBIDI_TYPE_RTL\fR
49 European number Separator.
52 European number Terminator.
57 \fBFRIBIDI_TYPE_NSM\fR
75 \fBFRIBIDI_TYPE_LRE\fR
76 Left-to-Right Embedding.
78 \fBFRIBIDI_TYPE_RLE\fR
79 Right-to-Left Embedding.
81 \fBFRIBIDI_TYPE_LRO\fR
82 Left-to-Right Override.
84 \fBFRIBIDI_TYPE_RLO\fR
85 Right-to-Left Override.
87 \fBFRIBIDI_TYPE_PDF\fR
92 .B "const FriBidiStrIndex len"
95 This function finds the base direction of a single paragraph,
96 as defined by rule P2 of the Unicode Bidirectional Algorithm available at
97 http://www.unicode.org/reports/tr9/#P2.
99 You typically do not need this function as
100 fribidi_get_par_embedding_levels() knows how to compute base direction
101 itself, but you may need this to implement a more sophisticated paragraph
102 direction handling. Note that you can pass more than a paragraph to this
103 function and the direction of the first non-neutral paragraph is returned,
104 which is a very good heuristic to set direction of the neutral paragraphs
105 at the beginning of text. For other neutral paragraphs, you better use the
106 direction of the previous paragraph.
108 Base pargraph direction. No weak paragraph direction is returned,
109 only LTR, RTL, or ON.
111 Possible values for a \fBFriBidiParType\fR are as follows:
115 .nr TL \w'FRIBIDI_PAR_WLTR'u+0.2i
118 \fBFRIBIDI_PAR_LTR\fR
119 Left-To-Right paragraph.
121 \fBFRIBIDI_PAR_RTL\fR
122 Right-To-Left paragraph.
125 DirectiOn-Neutral paragraph.
127 \fBFRIBIDI_PAR_WLTR\fR
128 Weak Left To Right paragraph.
130 \fBFRIBIDI_PAR_WRTL\fR
131 Weak Right To Left paragraph.
135 fribidi_charset_to_unicode(3),
136 fribidi_unicode_to_charset(3),
137 fribidi_parse_charset(3),
138 fribidi_shape_arabic(3),
139 fribidi_get_par_embedding_levels(3),
140 fribidi_reorder_line(3),
141 fribidi_get_bidi_type(3),
142 fribidi_get_bidi_types(3),
143 fribidi_get_bidi_type_name(3),
144 fribidi_debug_status(3),
145 fribidi_mirroring_status(3),
146 fribidi_set_mirroring(3),
147 fribidi_reorder_nsm_status(3),
148 fribidi_set_reorder_nsm(3),
149 fribidi_log2vis_get_embedding_levels(3),
151 fribidi_get_type_internal(3),
152 fribidi_remove_bidi_marks(3),
154 fribidi_join_arabic(3),
155 fribidi_get_joining_type(3),
156 fribidi_get_joining_types(3),
157 fribidi_get_joining_type_name(3),
158 fribidi_get_mirror_char(3),
159 fribidi_shape_mirroring(3),