1

Clean up some UTF

This commit is contained in:
Evan Pratten 2021-08-21 12:41:47 -04:00
parent 217c8bc1b7
commit 040bcb6e15

View File

@ -6,7 +6,7 @@ date: 2019-08-12
tags: notes languages
---
I am currently working with [ひらがな](https://en.wikipedia.org/wiki/Hiragana), [かたかな](https://en.wikipedia.org/wiki/Katakana), and, [かんじ](https://en.wikipedia.org/wiki/Kanji) in some projects, and needed a more reliable way to write than running some [romaji](https://en.wikipedia.org/wiki/Romanization_of_Japanese) through an online translator. So, this post will detail what I did to enable native inputs on my laptop. This guide is specifically for [i3wm](https://i3wm.org/), because it does not obey system settings for languages and inputs.
I am currently working with [Hiragana](https://en.wikipedia.org/wiki/Hiragana), [Katakana](https://en.wikipedia.org/wiki/Katakana), and, [Kanji](https://en.wikipedia.org/wiki/Kanji) in some projects, and needed a more reliable way to write than running some [romaji](https://en.wikipedia.org/wiki/Romanization_of_Japanese) through an online translator. So, this post will detail what I did to enable native inputs on my laptop. This guide is specifically for [i3wm](https://i3wm.org/), because it does not obey system settings for languages and inputs.
## Adding font support to Linux
Firstly, we need fonts. Depending on your system, these may already be installed. For Japanese, I only used `vlgothic`, so here in the package for it:
@ -89,8 +89,3 @@ Now, log out and in again to let ibus properly start again, and there should now
`ibus` runs in the background and will show an indication of your selected language upon pressing the keyboard shortcut set in the [setup tool](#configuring-ibus). For languages like Japanese, where it's writing systems do not use the English / Latin-based alphabets, `ibus` will automatically convert your words as you type (this behavior will be different from language to language).
An example of this is as follows. I want to write the word *Computer* in Japanese (Katakana to be exact). I would switch to `mozc` input, and start typing the romaji word for computer, *Pasokon*. This will automatically be converted to Hiragana, *ぱそこん*. *Computer* is not a word that one would write in Hiragana as far as I know, so Katakana would be a better choice. To convert this word, I just press `Space` (This is indicated in the bottom left of my screen by `ibus`), and I now have *パソコン*, the Katakana word for *Computer*!
---
#### After Note: Languages
In case you can't tell, English is my native language. If I messed up my spelling or context with the small amount of Japanese in this post, [let me know](/about#chat-with-me)!