fribidi_shape_mirroring (3) - Linux Manuals

fribidi_shape_mirroring: do mirroring shaping

NAME

fribidi_shape_mirroring - do mirroring shaping

SYNOPSIS

#include <fribidi.h>

extern void fribidi_shape_mirroring
(
       const FriBidiLevel *embedding_levels,

       const FriBidiStrIndex len,

       FriBidiChar *str

);

PARAMETERS

const FriBidiLevel *embedding_levels
Input list of embedding levels, as returned by fribidi_get_par_embedding_levels.
const FriBidiStrIndex len
Input string length.
FriBidiChar *str
String to shape.

DESCRIPTION

This functions replaces mirroring characters on right-to-left embeddings in string with their mirrored equivalent as returned by fribidi_get_mirror_char().

This function implements rule L4 of the Unicode Bidirectional Algorithm available at http://www.unicode.org/reports/tr9/#L4.