Bidi::Paragraph
Combined reference to BidiInfo and a specific paragraph within it
Provides convenient access to paragraph-level operations without
needing to pass both BidiInfo and ParagraphInfo separately.
This matches the Rust Paragraph<'a, 'text> struct.
Constructors
new(info : BidiInfo, para : ParagraphInfo)
SourceInstance methods
direction
Returns the overall direction of the paragraph (Ltr, Rtl, or Mixed)
Determined by examining the levels of all characters in the paragraph:
- All LTR levels → Ltr
- All RTL levels → Rtl
- Mixed LTR/RTL levels → Mixed
info
Sourceinfo=(info : BidiInfo)
SourceReturns the embedding level at a specific character position
Parameters:
pos: Character position within the paragraph (0-based, in characters)
Returns: The Level at that position
para
Sourcepara=(para : ParagraphInfo)
Source