mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Document the Bidi class a bit
This is from information given by the auther (Dekel Tsur).
This commit is contained in:
parent
ef4018f68e
commit
878a86ff46
18
src/Bidi.h
18
src/Bidi.h
@ -35,19 +35,27 @@ public:
|
|||||||
///
|
///
|
||||||
bool isBoundary(Buffer const &, Paragraph const & par,
|
bool isBoundary(Buffer const &, Paragraph const & par,
|
||||||
pos_type pos, Font const & font) const;
|
pos_type pos, Font const & font) const;
|
||||||
///
|
/** Maps positions in the visual string to positions
|
||||||
|
* in logical string.
|
||||||
|
*/
|
||||||
pos_type log2vis(pos_type pos) const;
|
pos_type log2vis(pos_type pos) const;
|
||||||
/** Maps positions in the logical string to positions
|
/** Maps positions in the logical string to positions
|
||||||
* in visual string.
|
* in visual string.
|
||||||
*/
|
*/
|
||||||
pos_type vis2log(pos_type pos) const;
|
pos_type vis2log(pos_type pos) const;
|
||||||
///
|
/*
|
||||||
|
* The text direction at logical position \param pos.
|
||||||
|
* Possible values are
|
||||||
|
* 0: left-to-right text
|
||||||
|
* 1: right-to-left text
|
||||||
|
* 2: left-to-right text in right-to-left language (aka numbers)
|
||||||
|
*/
|
||||||
pos_type level(pos_type pos) const;
|
pos_type level(pos_type pos) const;
|
||||||
///
|
/// Is logical position covered by this row?
|
||||||
bool inRange(pos_type pos) const;
|
bool inRange(pos_type pos) const;
|
||||||
/// same_direction?
|
/// Is the whole row in the same direction as the paragraph?
|
||||||
bool same_direction() const;
|
bool same_direction() const;
|
||||||
///
|
/// Compute the data for visual positions.
|
||||||
void computeTables(Paragraph const & par,
|
void computeTables(Paragraph const & par,
|
||||||
Buffer const &, Row const & row);
|
Buffer const &, Row const & row);
|
||||||
private:
|
private:
|
||||||
|
Loading…
Reference in New Issue
Block a user