Skip to content

Robotics;Note DaSH charset.utf8 has duplicate characters within it #2

@ItsAllAboutTheCode

Description

@ItsAllAboutTheCode

Hello, I am trying to use the sc3tools to insert re-insert text made from the CommiteeOfZero into .msb files and noticed an issue with the charset.utf8 for Robotics;Note DaSH.
It has duplicate characters such as the letter 'i' and 'v' within it which is causing reinsertion to corrupt text up around the character "i".
image

I ran an awk command to replace the duplicate characters with a space from the charset.utf8 file

awk '{  printme=""; for ( n=1; n<length($0); n++ ) { char=substr($0,n,1); if ( index(printme,char) == 0) printme = printme char; else printme = printme "
[charset.utf8.txt](https://github.com/CommitteeOfZero/sc3tools/files/7043676/charset.utf8.txt)
 "; }; print printme; }' resources/rnd/charset.utf8. > resources/rnd/charset.utf8.remove_dups

I found that substituting the duplicate characters with the ascii space character(0x20) resolves the issues.
Here is an updated charset.utf8 file with the duplicate characters replaced with ascii space.
charset.utf8

Also I noticed an issue with the replacement of text in sc3tools 2.1 and commented on it at c0946d6#r55247130

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions