From 4373a0bb865265f07507d36e6c151a556f3d94e8 Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Fri, 12 Nov 2021 10:12:37 +0200 Subject: [TextServer] Add ICU Unicode security and spoofing detection. --- doc/classes/TextServer.xml | 21 +++++++++++++++++++++ doc/classes/TextServerExtension.xml | 15 +++++++++++++++ 2 files changed, 36 insertions(+) (limited to 'doc/classes') diff --git a/doc/classes/TextServer.xml b/doc/classes/TextServer.xml index f4c9ade7d1..9f35ddc353 100644 --- a/doc/classes/TextServer.xml +++ b/doc/classes/TextServer.xml @@ -937,6 +937,16 @@ Returns [code]true[/code] if the server supports a feature. + + + + + + Returns index of the first string in [code]dict[/dict] which is visually confusable with the [code]string[/string], or [code]-1[/code] if none is found. + [b]Note:[/b] This method doesn't detect invisible characters, for spoof detection use it in combination with [method spoof_check]. + [b]Note:[/b] Always returns [code]-1[/code] if the server does not support the [constant FEATURE_UNICODE_SECURITY] feature. + + @@ -1476,6 +1486,14 @@ Aligns shaped text to the given tab-stops. + + + + + Returns [code]true[/code] if [code]string[/code] is likely to be an attempt at confusing the reader. + [b]Note:[/b] Always returns [code]false[/code] if the server does not support the [constant FEATURE_UNICODE_SECURITY] feature. + + @@ -1733,6 +1751,9 @@ TextServer supports UAX #31 identifier validation, see [method is_valid_identifier]. + + TextServer supports [url=https://unicode.org/reports/tr36/]Unicode Technical Report #36[/url] and [url=https://unicode.org/reports/tr39/]Unicode Technical Standard #39[/url] based spoof detection features. + Contour point is on the curve. diff --git a/doc/classes/TextServerExtension.xml b/doc/classes/TextServerExtension.xml index 482460cb3b..c686a06e5e 100644 --- a/doc/classes/TextServerExtension.xml +++ b/doc/classes/TextServerExtension.xml @@ -934,6 +934,14 @@ Returns [code]true[/code] if the server supports a feature. + + + + + + Returns index of the first string in [code]dict[/dict] which is visually confusable with the [code]string[/string], or [code]-1[/code] if none is found. + + @@ -1488,6 +1496,13 @@ [b]Note:[/b] This method is used by default line/word breaking methods, and its implementation might be omitted if custom line breaking in implemented. + + + + + Returns [code]true[/code] if [code]string[/code] is likely to be an attempt at confusing the reader. + + -- cgit v1.2.3