Text entry represents about 1 million lines of code if you include rendering. But that is not why operating systems are so bloated. The reason they’re bloated it’s because they don’t put small teams on operating systems do you have gigantic teams who use giant team approaches to making the operating systems. No small team can build a text entry field from scratch. The reason is that you have 20 different language input method editors, each requiring intimate knowledge of the human language. So you have a team for each one and you end up with 1000 people on the operating system team and guess what you’ll get: a giant bloated mess.
If you look at my hero prof Wirth’s Lilith machine, You’ll see an operating system written from scratch in the Oberon language that a single person can understand the entirety of. It was graphical and did a lot of stuff. But he didn’t try to do Asian input methods because that would’ve been 10 times more than the code that the rest of the operating system took. And of course It got no traction because if you don’t do Asian languages you’re cutting out a good fraction of the entire human race. There have been some great operating system work from Nokia, Symbian wasn’t bad and they had evolved into something terrific, but they were destroyed by Microsoft Mole named Elop , Who infiltrated their organization and convince them to drop their very lean operating system in return for windows mobile which destroyed their company and caused them to completely collapse. Other than Adobe I don’t know any other company that knows enough about about human writing systems To build an actual competitive operating system that would suffice in today’s mobile world. I wouldn’t be surprised if Samsung is gradually building enough knowledge to do it, I don’t know the internals of Samsung but they are big enough to have enough engineers on staff to conquer this tough area where you need a team for each region you’re supporting. You can spend an entire lifetime and still not master Japanese text. Japanese is by far the most difficult language on earth to process. They use four different writing systems simultaneously: romaji, hiragana, katakana, and kanji, And to top it off family names in Japanese are not even in their character set and are therefore non-drawable, so people have to be able to add custom glyphs to their computers. No other language on earth has this problem. I made a lot of money in Japan because I knew how to work with their language it’s a fascinating subject that is immensely complex.