From 5361ec9f43e454d0869c3ce0984fda34a95472a1 Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Wed, 18 Jan 2023 09:33:35 +0200 Subject: Implement BiDi override mode for GDScript source. --- doc/classes/Control.xml | 4 ++-- doc/classes/TextServer.xml | 11 +++++++---- doc/classes/TextServerExtension.xml | 2 +- 3 files changed, 10 insertions(+), 7 deletions(-) (limited to 'doc/classes') diff --git a/doc/classes/Control.xml b/doc/classes/Control.xml index 75afb0cdbf..7082eff97d 100644 --- a/doc/classes/Control.xml +++ b/doc/classes/Control.xml @@ -196,12 +196,12 @@ - + User defined BiDi algorithm override function. - Returns an [Array] of [Vector2i] text ranges, in the left-to-right order. Ranges should cover full source [param text] without overlaps. BiDi algorithm will be used on each range separately. + Returns an [Array] of [Vector3i] text ranges and text base directions, in the left-to-right order. Ranges should cover full source [param text] without overlaps. BiDi algorithm will be used on each range separately. diff --git a/doc/classes/TextServer.xml b/doc/classes/TextServer.xml index d2c6dee373..711fb89217 100644 --- a/doc/classes/TextServer.xml +++ b/doc/classes/TextServer.xml @@ -1042,7 +1042,7 @@ - + @@ -1634,6 +1634,9 @@ Text is written from right to left. + + Text writing direction is the same as base string writing direction. Used for BiDi override only. + Text is written horizontally. @@ -1881,7 +1884,7 @@ Font have fixed-width characters. - Use default behavior. Same as [constant STRUCTURED_TEXT_NONE] unless specified otherwise in the control description. + Use default Unicode BiDi algorithm. BiDi override for URI. @@ -1896,8 +1899,8 @@ BiDi override for lists. Structured text options: list separator [code]String[/code]. - - Use default Unicode BiDi algorithm. + + BiDi override for GDScript. User defined structured text BiDi override function. diff --git a/doc/classes/TextServerExtension.xml b/doc/classes/TextServerExtension.xml index e144b09eb6..f4b306cf96 100644 --- a/doc/classes/TextServerExtension.xml +++ b/doc/classes/TextServerExtension.xml @@ -896,7 +896,7 @@ - + -- cgit v1.2.3