struct

Bidi::Paragraph

Inherits Struct < Value < Object

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)
Source

Instance 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
Source
info
Source
info=(info : BidiInfo)
Source
level_at(pos : Int32) : Level

Returns 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

Source
para
Source
para=(para : ParagraphInfo)
Source