Pinyin input

Hello I’d like to know how can I set up PinYin input so that I can input Chinese characters. I’m using KDE right now, but I’d like a solution that works with every application. Thanks :slight_smile: