Skip to content

Character Colors break in Visual Studio Code if letters with accents are included in name(example: à á) #133

@MotonariMori

Description

@MotonariMori

What is the current behavior?
The Character Colors functionality does not work in Visual Studio Code if the name of the character contains a letter with an accent on it.
(In my example I had used ú and á in different cases)

Please provide the steps to reproduce, and if possible a minimal demo of the problem:

  1. Setup a Yarn Spinner project in YSC
  2. Navigate to the Project.yarnproject tab
  3. Create a character with letters with an accent (example: ú á) in the "Character Colors" section, and set a custom color for it (example: Máti)
  4. Create a second character with the same name, removing the accent (example: Mati)
  5. Navigate to main.yarn and write lines useing both characters.
  6. Observe: Only the character without the accent get's correctly recognised and coloured, while the one with the accent is not recognised as the character.
    (Example: Mati get's correctly coloured, while Máti is not recognised.)
    This happens both in tzhe Dialogue Preview and the File itself.

What is the expected behavior?
Character Color functionality should either support accented letters, or throw a warning if accented (or other special) letters are input that will break it.

Please tell us about your environment

  • Operating System: Win10 on long term support
  • Yarn Spinner Version: v3.2.113 (28c908a)
  • Extension Version: v3.2.113 (28c908a)
  • Unity Version: -> Not yet in engine, planning to use Godot.

Other information

Threw in a screenshot of the behaviour occuring in VSCode

Image

Add tags
VSCode, Character Colour

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething not working as intended

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions