Darthagnon / SymWinBinaries

Allows one to type special characters such as å or λ on Windows without the alt-key bullshit
Other
8 stars 1 forks source link

Some symbols do not work #7

Open greywatcher opened 3 years ago

greywatcher commented 3 years ago

I tried to map several of the symbols with higher Unicode values. In the Configure window they are written just fine (though emojis turns to pure black and white glyphs). But in the popup window they turn mostly to a number of ▯ and when using them they seem to split up in different glyphs. For example:

U+1D465 MATHEMATICAL ITALIC SMALL X 𝑥 shows up in the popup window as ▯▯ If I choose the first of them the output is � (D835) and if I instead choose the second the output is � (DC65), but if put directly after � both instead turns to 𝑥

U+1D106 MUSICAL SYMBOL LEFT REPEAT SIGN 𝄆 shows up in the popup window as ▯▯ If I choose the first of them the output is � (D835) and if I instead choose the second the output is � (DD06), but if put directly after � both instead turns to 𝄆

🕵️‍♀️ Woman Detective Emoji shows up in the popup window as ▯▯▯ ♀▯ If I choose any of them I get in order � � ️ ‍ ♀ ️ and if I choose them in the exact order � and � turns to🕵 adding the next one changes nothing🕵️ choosing every one in exact order finally turn them all to🕵️‍♀️

I use Windows 10 Version 20H2 x64

Darthagnon commented 3 years ago

I remember having trouble with emoji, as I initially tried to add some as defaults to the number keys, and the code wouldn't build with them.

I'll check, but I don't think I know enough C# to fix it. Ideal would be to have no hardcoded defaults (use some sort of TXT file with defaults, and for saving changes)

greywatcher commented 2 years ago

I have not programmed in about 20 years, but I think it is simply a matter of replacing "utf-8" with "utf-16" or perhaps "utf-32" everywhere in the code.

Darthagnon commented 2 years ago

I'll try that; will do some experimenting for the next update. EDIT: Looking at the original emojis you had trouble with, I remember an article I read somewhere that a lot of fancy modern combination emoji are actually made up of strings of other emoji.