Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix rtl textrich taging #105

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Commits on May 9, 2023

  1. Added some features to support taging Farsi

    caracter by character.
    Features:
    * FastStringBuilder:
        + ReplaceOne: replace an oldChar with a newChar and break after
        + ReplaceOne: replace an oldChar with a newChar, starts from specific index and break after
        + get_str: get the string formated char of that index.
    * GlyphFixer:
        + Fix_Taged: fix the taged string with the original string shape
        + FixLa: its a specific type, لا , there is two version, one with hex code: 0xFEFC and 0xFEFB and other version is \0xFE8E\0xFEE0.
          the first version because it is one character it will break the taging. this function will replace them with the second version.
    * RTLSupport:
        + FixRTL:  add another FixRTL function with the Fix_Taged suppurt. the original function will work just fine.
    * RTLTextMeshPro/RTLTextMeshPro3D:
        + add_tag: add a tag to the string at the index.
        + UpdateText/GetFixedText: modified this functions to enable the fixing taged string process.
    * RichTextFixer:
        + GetUntaged: get the untaged version of the string.
    * TextUtils:
        + IsGlyphFixedArabicCharacter: implement support for Special La characters.
    m-nt committed May 9, 2023
    Configuration menu
    Copy the full SHA
    b8e90e1 View commit details
    Browse the repository at this point in the history
  2. change back the test functions

    m-nt committed May 9, 2023
    Configuration menu
    Copy the full SHA
    ab9430c View commit details
    Browse the repository at this point in the history

Commits on May 10, 2023

  1. Configuration menu
    Copy the full SHA
    d54d398 View commit details
    Browse the repository at this point in the history