Module: Prawn::Rtl::Support::PrawnTextPatch
- Included in:
- Text::Formatted::Box
- Defined in:
- lib/prawn/rtl/support.rb
Overview
Patch module that intercepts Prawn’s text rendering to apply RTL transformations.
This module is prepended to Prawn::Text::Formatted::Box to automatically process RTL text before rendering. It intercepts the original_text method and applies Arabic letter connection and bidirectional text reordering to any text fragments that contain RTL characters.
Instance Method Summary collapse
-
#original_text ⇒ Array<Hash>
Overrides the original_text method to apply RTL transformations.