[go: up one dir, main page]

File: fribidi_log2vis.3

package info (click to toggle)
fribidi 0.19.2-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 3,808 kB
  • ctags: 1,078
  • sloc: sh: 10,229; ansic: 7,292; makefile: 346
file content (120 lines) | stat: -rw-r--r-- 2,944 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
.\" WARNING! THIS FILE WAS GENERATED AUTOMATICALLY BY c2man!
.\" DO NOT EDIT! CHANGES MADE TO THIS FILE WILL BE LOST!
.TH "fribidi_log2vis" 3 "30 January 2006" "GNU FriBidi 0.19.2" "Programmer's Manual"
.SH "NAME"
fribidi_log2vis \- get visual string
.SH "SYNOPSIS"
.ft B
#include <fribidi.h>
.sp
FriBidiLevel fribidi_log2vis
.br
(
.br
	const FriBidiChar *str,
.br
	const FriBidiStrIndex len,
.br
	FriBidiParType *pbase_dir,
.br
	FriBidiChar *visual_str,
.br
	FriBidiStrIndex *positions_L_to_V,
.br
	FriBidiStrIndex *positions_V_to_L,
.br
	FriBidiLevel *embedding_levels
.br
);
.ft R
.SH "PARAMETERS"
.TP
.B "const FriBidiChar *str"
Input logical string.
.TP
.B "const FriBidiStrIndex len"
Input string length.
.TP
.B "FriBidiParType *pbase_dir"
Requested and resolved paragraph
base direction.
.sp
Possible values for a \fBFriBidiParType\fR are as follows:
.RS 0.75in
.PD 0
.ft B
.nr TL \w'FRIBIDI_PAR_WLTR'u+0.2i
.ft R
.TP \n(TLu
\fBFRIBIDI_PAR_LTR\fR
Left-To-Right paragraph.
.TP \n(TLu
\fBFRIBIDI_PAR_RTL\fR
Right-To-Left paragraph.
.TP \n(TLu
\fBFRIBIDI_PAR_ON\fR
DirectiOn-Neutral paragraph.
.TP \n(TLu
\fBFRIBIDI_PAR_WLTR\fR
Weak Left To Right paragraph.
.TP \n(TLu
\fBFRIBIDI_PAR_WRTL\fR
Weak Right To Left paragraph.
.RE
.PD
.TP
.B "FriBidiChar *visual_str"
Output visual string.
.TP
.B "FriBidiStrIndex *positions_L_to_V"
Output mapping from logical to
visual string positions.
.TP
.B "FriBidiStrIndex *positions_V_to_L"
Output mapping from visual string
back to the logical string
positions.
.TP
.B "FriBidiLevel *embedding_levels"
Output list of embedding levels.
.SH "DESCRIPTION"
This function converts the logical input string to the visual output
strings as specified by the Unicode Bidirectional Algorithm.  As a side
effect it also generates mapping lists between the two strings, and the
list of embedding levels as defined by the algorithm.

If NULL is passed as any of the the lists, the list is ignored and not
filled.

This function is obsolete because it only handles one-line paragraphs.
Please consider using other functions instead.  Deprecated.
.SH "RETURNS"
Maximum level found plus one, or zero if any error occured
(memory allocation failure most probably).
.SH "SEE ALSO"
fribidi_charset_to_unicode(3),
fribidi_unicode_to_charset(3),
fribidi_parse_charset(3),
fribidi_shape_arabic(3),
fribidi_get_par_direction(3),
fribidi_get_par_embedding_levels(3),
fribidi_reorder_line(3),
fribidi_get_bidi_type(3),
fribidi_get_bidi_types(3),
fribidi_get_bidi_type_name(3),
fribidi_debug_status(3),
fribidi_mirroring_status(3),
fribidi_set_mirroring(3),
fribidi_reorder_nsm_status(3),
fribidi_set_reorder_nsm(3),
fribidi_log2vis_get_embedding_levels(3),
fribidi_get_type(3),
fribidi_get_type_internal(3),
fribidi_remove_bidi_marks(3),
fribidi_join_arabic(3),
fribidi_get_joining_type(3),
fribidi_get_joining_types(3),
fribidi_get_joining_type_name(3),
fribidi_get_mirror_char(3),
fribidi_shape_mirroring(3),
fribidi_shape(3)