cspeterson / splatmoji

Quickly look up and input emoji and/or emoticons/kaomoji on your GNU/Linux desktop via pop-up menu.
MIT License
212 stars 19 forks source link

Some kaomoji don't render properly #19

Closed noaccOS closed 4 years ago

noaccOS commented 4 years ago

Lenny looks fine in selection and in emoticons file image

But when I type it it looks weird image

I don't think it's a font problem because I noticed the same behavior in both Roboto and JetBrains Mono The config file is untouched

cspeterson commented 4 years ago
  1. Share with me the raw text of the non-working Lennies along with some working ones? Could be some unicode stuff being difficult and I'd like a closer look. And if you have put a bunch of Lennyfaces into a tsv, I'd be interested in integrating it into the included emoticon db 🙂
  2. Is it behaving against expectations when using copy mode, or only with type? Because xdotool can just be generally finnicky with many different applications, so it may be one of those situations.
  3. I just pushed new code today that changes slightly how the script hands the selection to xdotool so maybe also just try that while you're at it 😁
noaccOS commented 4 years ago
  1. I just added the tag lenny to the already existing happy, think lenny face. Shrug works as expected

  2. With copy it seems to work as expected

  3. I tried it but there is no difference ¯_(ツ)_/¯

noaccOS commented 4 years ago

It seems to be xdotool to me

The first one doesn't render properly for some reason but it is correct, the second is just plain wrong image

cspeterson commented 4 years ago

HMM I was actually looking at this like it was the usual "xdotool misses characters" problem, but I'm realizing now it's that the wrong characters are coming through. Sorry!

Take a look at this issue: https://github.com/jordansissel/xdotool/issues/97

what locale are you operating under(locale)? does running setxkbmap <keybd layout> like in that issue change anything?

noaccOS commented 4 years ago

My locale is just en_US.UTF-8 As mentioned in the issue you mentioned, just typing setxkbmap without any arguments fixes the rendering of the kaomoji image A somewhat brutal solution might be to run setxkbmap before every xdotool?

cspeterson commented 4 years ago

Closing this because it does appear to be an xdotool problem not a splatmoji problem, and also maybe resolved by new xdotool fwiw

@noaccOS are you on a newer xdotool at this point? do you still need to muck with keymaps?