diff --git a/_includes/footer.html b/_includes/footer.html index 9c7f836..cd798e0 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -1,18 +1,18 @@
-
+
- \ No newline at end of file + crossorigin="anonymous"> + + + \ No newline at end of file diff --git a/_layouts/posts.html b/_layouts/posts.html index b896718..6992b88 100644 --- a/_layouts/posts.html +++ b/_layouts/posts.html @@ -15,7 +15,7 @@
--> - +

Blog Posts

diff --git a/_posts/2019-08-11-Setting-up-JA.md b/_posts/2019-08-11-Setting-up-JA.md new file mode 100644 index 0000000..aab558b --- /dev/null +++ b/_posts/2019-08-11-Setting-up-JA.md @@ -0,0 +1,94 @@ +--- +layout: post +title: "How I set up ひらがな input on my laptop" +description: "I3wm makes everything 10x harder than it should be" +date: 2019-08-12 19:40:00 +categories: 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 [romanji](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: +``` +sudo apt install fonts-vlgothic +``` + +## Language support +Im not sure if this matters, but I have seen other people do it, so why not be safe? + +I am currently running a stock Ubuntu [18.04]() base, which means that everything is pre-configured for Gnome. To set language support in Gnome, pull up the settings panel: +```bash +# This line fixes some compatibility issues between Gnome and I3 when launching the settings menu. I recommend aliasing it. +env XDG_CURRENT_DESKTOP=GNOME gnome-control-center +``` + +![Gnome language settings](/assets/images/language-settings.png) + +Next, go to *Settings > Language and Region > Input Sources*, and click on *Manage Installed Languages*. +This will bring up a window where you can select a new language to install. From here, I clicked on *Install / Remove Language*. + +![Language installation panel](/assets/images/language-installation.png) + +In this list, I just selected the languages I wanted (English and Japanese), and applied my changes. You may be asked to enter your password while installing the new languages. Once installation is complete, log out, and in again. + +With the new language support installed, return to the *Input Sources* settings, and press the `+` button to add a new language. From here, search the language you want (it may be under *Other*) and select it. For Japanese, select the `mozc` variant. + +Gnome's language settings are now configured. If you are using Gnome (not I3), you can stop here. + +## Configuring ibus +Don't get me wrong, I love I3wm, but sometimes it's configurability drives me crazy. + +After searching through various forums and wikis looking for an elegant way to switch languages in I3, I found a link to an [ArchWiki page](https://wiki.archlinux.org/index.php/IBus) at the bottom of a mailing list (I blame Google for not showing this sooner). It turns out that a program called `ibus` is exactly what I needed. Here is how to set it up: + +Remember `mozc` from above? If you are not using it, this package may not work. Search for the appropriate `ibus-` package for your selected language(s). +```bash +# Install ibus-mozc for Japanese (mozc) +sudo apt install ibus-mozc +``` + +Now that `ibus` is installed, run the setup script: +```bash +ibus-setup +``` + +![Ibus settings](/assets/images/ibus-general.png) + +From here, set your shortcut to something not used by I3 (I chose `CTRL+Shift+Space`, but most people prefer `Alt+Space`), and enable the system tray icon. +Now, go to the *Input Method* settings. + +![Ibus input settings](/assets/images/ibus-input.png) + +From here, press the `+`, and add your language(s). + + +## Configuring profile +According to the Wiki page, I needed to add the following to my `~/.profile`: +```bash +# Language support +export GTK_IM_MODULE=ibus +export XMODIFIERS=@im=ibus +export QT_IM_MODULE=ibus +ibus-daemon -d -x +``` + +It turns out that this [causes issues with some browsers](https://github.com/ibus/ibus/issues/2020), so I actually put this in my `~/.profile` instead: +```bash +# Language support +export GTK_IM_MODULE=xim +export XMODIFIERS=@im=ibus +export QT_IM_MODULE=xim +ibus-daemon -drx +``` + +Now, log out and in again to let ibus properly start again, and there should now be a new applet in your bar for language settings. + +## Workflow +`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 romanji 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)! \ No newline at end of file diff --git a/_site/about/index.html b/_site/about/index.html index e2f4fc4..22887ee 100644 --- a/_site/about/index.html +++ b/_site/about/index.html @@ -104,20 +104,20 @@ sub rsa4096/0xA61A2F1676E35144 2019-08-11 [] [expires: 2025-08-09]
-
+
- + + + \ No newline at end of file diff --git a/_site/assets/images/ibus-general.png b/_site/assets/images/ibus-general.png new file mode 100644 index 0000000..2f660e0 Binary files /dev/null and b/_site/assets/images/ibus-general.png differ diff --git a/_site/assets/images/ibus-input.png b/_site/assets/images/ibus-input.png new file mode 100644 index 0000000..976d43c Binary files /dev/null and b/_site/assets/images/ibus-input.png differ diff --git a/_site/assets/images/language-installation.png b/_site/assets/images/language-installation.png new file mode 100644 index 0000000..437032f Binary files /dev/null and b/_site/assets/images/language-installation.png differ diff --git a/_site/assets/images/language-settings.png b/_site/assets/images/language-settings.png new file mode 100644 index 0000000..84c121d Binary files /dev/null and b/_site/assets/images/language-settings.png differ diff --git a/_site/blog/2018/06/27/becomeranter.html b/_site/blog/2018/06/27/becomeranter.html index c7530e2..e014b19 100644 --- a/_site/blog/2018/06/27/becomeranter.html +++ b/_site/blog/2018/06/27/becomeranter.html @@ -109,20 +109,20 @@ pip3 install tensorflow-gpu #for gpu processing
-
+
- + + + \ No newline at end of file diff --git a/_site/blog/2019/04/30/frc-languages.html b/_site/blog/2019/04/30/frc-languages.html index 5fa4493..66cf8e4 100644 --- a/_site/blog/2019/04/30/frc-languages.html +++ b/_site/blog/2019/04/30/frc-languages.html @@ -73,20 +73,20 @@
-
+
- + + + \ No newline at end of file diff --git a/_site/blog/2019/05/27/building-safe-vision-comms.html b/_site/blog/2019/05/27/building-safe-vision-comms.html index 6d45f7a..5bc2f6b 100644 --- a/_site/blog/2019/05/27/building-safe-vision-comms.html +++ b/_site/blog/2019/05/27/building-safe-vision-comms.html @@ -86,20 +86,20 @@
-
+
- + + + \ No newline at end of file diff --git a/_site/blog/2019/06/12/styiling-github.html b/_site/blog/2019/06/12/styiling-github.html index a2bcc92..d37c685 100644 --- a/_site/blog/2019/06/12/styiling-github.html +++ b/_site/blog/2019/06/12/styiling-github.html @@ -97,20 +97,20 @@
-
+
- + + + \ No newline at end of file diff --git a/_site/blog/2019/06/16/graphing-w2a.html b/_site/blog/2019/06/16/graphing-w2a.html index 3338511..3238f14 100644 --- a/_site/blog/2019/06/16/graphing-w2a.html +++ b/_site/blog/2019/06/16/graphing-w2a.html @@ -111,20 +111,20 @@
-
+
- + + + \ No newline at end of file diff --git a/_site/blog/2019/06/17/amm2m1-release.html b/_site/blog/2019/06/17/amm2m1-release.html index defb521..f4ede5d 100644 --- a/_site/blog/2019/06/17/amm2m1-release.html +++ b/_site/blog/2019/06/17/amm2m1-release.html @@ -70,20 +70,20 @@ Your browser does not support audio players
-
+
- + + + \ No newline at end of file diff --git a/_site/blog/2019/06/21/robot-experiences.html b/_site/blog/2019/06/21/robot-experiences.html index d8abd8e..6741d93 100644 --- a/_site/blog/2019/06/21/robot-experiences.html +++ b/_site/blog/2019/06/21/robot-experiences.html @@ -110,24 +110,46 @@
-
+
- + + + \ No newline at end of file diff --git a/_site/blog/2019/06/23/googlectf.html b/_site/blog/2019/06/23/googlectf.html index 32ba074..9a9d3e1 100644 --- a/_site/blog/2019/06/23/googlectf.html +++ b/_site/blog/2019/06/23/googlectf.html @@ -68,20 +68,20 @@
-
+
- + + + \ No newline at end of file diff --git a/_site/blog/2019/06/24/languagehunt2.html b/_site/blog/2019/06/24/languagehunt2.html index 0a0c968..c70919a 100644 --- a/_site/blog/2019/06/24/languagehunt2.html +++ b/_site/blog/2019/06/24/languagehunt2.html @@ -68,20 +68,20 @@
-
+
- + + + \ No newline at end of file diff --git a/_site/blog/2019/06/26/bashsmash.html b/_site/blog/2019/06/26/bashsmash.html index 7b29500..36f3b67 100644 --- a/_site/blog/2019/06/26/bashsmash.html +++ b/_site/blog/2019/06/26/bashsmash.html @@ -177,20 +177,20 @@ __() {/???/???/???n?f
-
+
- + + + \ No newline at end of file diff --git a/_site/blog/2019/06/27/pwnlink.html b/_site/blog/2019/06/27/pwnlink.html index bc524eb..830557c 100644 --- a/_site/blog/2019/06/27/pwnlink.html +++ b/_site/blog/2019/06/27/pwnlink.html @@ -98,20 +98,20 @@
-
+
- + + + \ No newline at end of file diff --git a/_site/blog/2019/06/27/python.html b/_site/blog/2019/06/27/python.html index efa822a..3efdcaa 100644 --- a/_site/blog/2019/06/27/python.html +++ b/_site/blog/2019/06/27/python.html @@ -163,20 +163,20 @@
-
+
- + + + \ No newline at end of file diff --git a/_site/blog/2019/07/01/devdns.html b/_site/blog/2019/07/01/devdns.html index 7e52e17..c7a9c90 100644 --- a/_site/blog/2019/07/01/devdns.html +++ b/_site/blog/2019/07/01/devdns.html @@ -87,24 +87,46 @@
-
+
- + + + \ No newline at end of file diff --git a/_site/blog/2019/07/06/scrapingfrcgithub.html b/_site/blog/2019/07/06/scrapingfrcgithub.html index 54d33d9..95ec2a6 100644 --- a/_site/blog/2019/07/06/scrapingfrcgithub.html +++ b/_site/blog/2019/07/06/scrapingfrcgithub.html @@ -160,20 +160,20 @@
-
+
- + + + \ No newline at end of file diff --git a/_site/blog/2019/07/13/lookback-gmad.html b/_site/blog/2019/07/13/lookback-gmad.html index 4313bdf..427d0c8 100644 --- a/_site/blog/2019/07/13/lookback-gmad.html +++ b/_site/blog/2019/07/13/lookback-gmad.html @@ -81,20 +81,20 @@
-
+
- + + + \ No newline at end of file diff --git a/_site/blog/2019/07/15/mindmap.html b/_site/blog/2019/07/15/mindmap.html index d8fd08a..d6227e7 100644 --- a/_site/blog/2019/07/15/mindmap.html +++ b/_site/blog/2019/07/15/mindmap.html @@ -173,20 +173,20 @@
-
+
- + + + \ No newline at end of file diff --git a/_site/blog/2019/08/10/why-i-carry-nfc.html b/_site/blog/2019/08/10/why-i-carry-nfc.html index 82725cd..8bd6aa3 100644 --- a/_site/blog/2019/08/10/why-i-carry-nfc.html +++ b/_site/blog/2019/08/10/why-i-carry-nfc.html @@ -93,24 +93,46 @@
-
+
- + + + \ No newline at end of file diff --git a/_site/blog/2019/08/12/setting-up-ja.html b/_site/blog/2019/08/12/setting-up-ja.html new file mode 100644 index 0000000..1fb7b26 --- /dev/null +++ b/_site/blog/2019/08/12/setting-up-ja.html @@ -0,0 +1,181 @@ + + Evan Pratten + + + + + + + + + + + + +
+ + + + + + + +
+
+

How I set up ひらがな input on my laptop

+

I3wm makes everything 10x harder than it should be

+
+

2019-08-12 15:40:00 -0400

+ +
+ +

I am currently working with ひらがな, かたかな, and, かんじ in some projects, and needed a more reliable way to write than running some romanji 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, 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:

+
sudo apt install fonts-vlgothic
+
+ +

Language support

+

Im not sure if this matters, but I have seen other people do it, so why not be safe?

+ +

I am currently running a stock Ubuntu 18.04 base, which means that everything is pre-configured for Gnome. To set language support in Gnome, pull up the settings panel:

+
# This line fixes some compatibility issues between Gnome and I3 when launching the settings menu. I recommend aliasing it.
+env XDG_CURRENT_DESKTOP=GNOME gnome-control-center
+
+ +

Gnome language settings

+ +

Next, go to Settings > Language and Region > Input Sources, and click on Manage Installed Languages. +This will bring up a window where you can select a new language to install. From here, I clicked on Install / Remove Language.

+ +

Language installation panel

+ +

In this list, I just selected the languages I wanted (English and Japanese), and applied my changes. You may be asked to enter your password while installing the new languages. Once installation is complete, log out, and in again.

+ +

With the new language support installed, return to the Input Sources settings, and press the + button to add a new language. From here, search the language you want (it may be under Other) and select it. For Japanese, select the mozc variant.

+ +

Gnome’s language settings are now configured. If you are using Gnome (not I3), you can stop here.

+ +

Configuring ibus

+

Don’t get me wrong, I love I3wm, but sometimes it’s configurability drives me crazy.

+ +

After searching through various forums and wikis looking for an elegant way to switch languages in I3, I found a link to an ArchWiki page at the bottom of a mailing list (I blame Google for not showing this sooner). It turns out that a program called ibus is exactly what I needed. Here is how to set it up:

+ +

Remember mozc from above? If you are not using it, this package may not work. Search for the appropriate ibus- package for your selected language(s).

+
# Install ibus-mozc for Japanese (mozc)
+sudo apt install ibus-mozc
+
+ +

Now that ibus is installed, run the setup script:

+
ibus-setup
+
+ +

Ibus settings

+ +

From here, set your shortcut to something not used by I3 (I chose CTRL+Shift+Space, but most people prefer Alt+Space), and enable the system tray icon. +Now, go to the Input Method settings.

+ +

Ibus input settings

+ +

From here, press the +, and add your language(s).

+ +

Configuring profile

+

According to the Wiki page, I needed to add the following to my ~/.profile:

+
# Language support
+export GTK_IM_MODULE=ibus
+export XMODIFIERS=@im=ibus
+export QT_IM_MODULE=ibus
+ibus-daemon -d -x
+
+ +

It turns out that this causes issues with some browsers, so I actually put this in my ~/.profile instead:

+
# Language support
+export GTK_IM_MODULE=xim
+export XMODIFIERS=@im=ibus
+export QT_IM_MODULE=xim
+ibus-daemon -drx
+
+ +

Now, log out and in again to let ibus properly start again, and there should now be a new applet in your bar for language settings.

+ +

Workflow

+

ibus runs in the background and will show an indication of your selected language upon pressing the keyboard shortcut set in the setup tool. 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 romanji 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!

+ +
+
+ +
+
+
+
+ + + + + + + + + + + \ No newline at end of file diff --git a/_site/blog/index.html b/_site/blog/index.html index c38b998..5cf9972 100644 --- a/_site/blog/index.html +++ b/_site/blog/index.html @@ -42,7 +42,7 @@
--> - +

Blog Posts

@@ -58,9 +58,9 @@ Featured Post
-
My weird piece of EDC
-

Reasons why I always carry NFC cards with me

- View +
How I set up ひらがな input on my laptop
+

I3wm makes everything 10x harder than it should be

+ View
@@ -74,6 +74,21 @@ + +
+
My weird piece of EDC
+ +
+

Reasons why I always carry NFC cards with me

+
+ + + + + + + +
Mind map generation with Python
@@ -315,20 +330,20 @@
-
+
-
+ + + \ No newline at end of file diff --git a/_site/feed.xml b/_site/feed.xml index 647465d..edbe6f4 100644 --- a/_site/feed.xml +++ b/_site/feed.xml @@ -1,4 +1,82 @@ -Jekyll2019-08-11T14:41:50-04:00http://0.0.0.0:4000/feed.xmlEvan PrattenComputer wizard, student, <a href="https://frc5024.github.io">@frc5024</a> programming team lead, and radio enthusiast.My weird piece of EDC2019-08-10T16:57:00-04:002019-08-10T16:57:00-04:00http://0.0.0.0:4000/blog/2019/08/10/Why-I-Carry-NFC<p>Im back with a quick little post about something I cary with me everywhere I go, EDC (Every-Day Carry) if you will.</p> +Jekyll2019-08-12T19:42:30-04:00http://0.0.0.0:4000/feed.xmlEvan PrattenComputer wizard, student, <a href="https://frc5024.github.io">@frc5024</a> programming team lead, and radio enthusiast.How I set up ひらがな input on my laptop2019-08-12T15:40:00-04:002019-08-12T15:40:00-04:00http://0.0.0.0:4000/blog/2019/08/12/Setting-up-JA<p>I am currently working with <a href="https://en.wikipedia.org/wiki/Hiragana">ひらがな</a>, <a href="https://en.wikipedia.org/wiki/Katakana">かたかな</a>, and, <a href="https://en.wikipedia.org/wiki/Kanji">かんじ</a> in some projects, and needed a more reliable way to write than running some <a href="https://en.wikipedia.org/wiki/Romanization_of_Japanese">romanji</a> through an online translator. So, this post will detail what I did to enable native inputs on my laptop. This guide is specifically for <a href="https://i3wm.org/">i3wm</a>, because it does not obey system settings for languages and inputs.</p> + +<h2 id="adding-font-support-to-linux">Adding font support to Linux</h2> +<p>Firstly, we need fonts. Depending on your system, these may already be installed. For Japanese, I only used <code class="highlighter-rouge">vlgothic</code>, so here in the package for it:</p> +<div class="highlighter-rouge"><div class="highlight"><pre class="highlight"><code>sudo apt install fonts-vlgothic +</code></pre></div></div> + +<h2 id="language-support">Language support</h2> +<p>Im not sure if this matters, but I have seen other people do it, so why not be safe?</p> + +<p>I am currently running a stock Ubuntu <a href="">18.04</a> base, which means that everything is pre-configured for Gnome. To set language support in Gnome, pull up the settings panel:</p> +<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="c"># This line fixes some compatibility issues between Gnome and I3 when launching the settings menu. I recommend aliasing it.</span> +<span class="nb">env </span><span class="nv">XDG_CURRENT_DESKTOP</span><span class="o">=</span>GNOME gnome-control-center +</code></pre></div></div> + +<p><img src="/assets/images/language-settings.png" alt="Gnome language settings" /></p> + +<p>Next, go to <em>Settings &gt; Language and Region &gt; Input Sources</em>, and click on <em>Manage Installed Languages</em>. +This will bring up a window where you can select a new language to install. From here, I clicked on <em>Install / Remove Language</em>.</p> + +<p><img src="/assets/images/language-installation.png" alt="Language installation panel" /></p> + +<p>In this list, I just selected the languages I wanted (English and Japanese), and applied my changes. You may be asked to enter your password while installing the new languages. Once installation is complete, log out, and in again.</p> + +<p>With the new language support installed, return to the <em>Input Sources</em> settings, and press the <code class="highlighter-rouge">+</code> button to add a new language. From here, search the language you want (it may be under <em>Other</em>) and select it. For Japanese, select the <code class="highlighter-rouge">mozc</code> variant.</p> + +<p>Gnome’s language settings are now configured. If you are using Gnome (not I3), you can stop here.</p> + +<h2 id="configuring-ibus">Configuring ibus</h2> +<p>Don’t get me wrong, I love I3wm, but sometimes it’s configurability drives me crazy.</p> + +<p>After searching through various forums and wikis looking for an elegant way to switch languages in I3, I found a link to an <a href="https://wiki.archlinux.org/index.php/IBus">ArchWiki page</a> at the bottom of a mailing list (I blame Google for not showing this sooner). It turns out that a program called <code class="highlighter-rouge">ibus</code> is exactly what I needed. Here is how to set it up:</p> + +<p>Remember <code class="highlighter-rouge">mozc</code> from above? If you are not using it, this package may not work. Search for the appropriate <code class="highlighter-rouge">ibus-</code> package for your selected language(s).</p> +<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="c"># Install ibus-mozc for Japanese (mozc)</span> +<span class="nb">sudo </span>apt <span class="nb">install </span>ibus-mozc +</code></pre></div></div> + +<p>Now that <code class="highlighter-rouge">ibus</code> is installed, run the setup script:</p> +<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>ibus-setup +</code></pre></div></div> + +<p><img src="/assets/images/ibus-general.png" alt="Ibus settings" /></p> + +<p>From here, set your shortcut to something not used by I3 (I chose <code class="highlighter-rouge">CTRL+Shift+Space</code>, but most people prefer <code class="highlighter-rouge">Alt+Space</code>), and enable the system tray icon. +Now, go to the <em>Input Method</em> settings.</p> + +<p><img src="/assets/images/ibus-input.png" alt="Ibus input settings" /></p> + +<p>From here, press the <code class="highlighter-rouge">+</code>, and add your language(s).</p> + +<h2 id="configuring-profile">Configuring profile</h2> +<p>According to the Wiki page, I needed to add the following to my <code class="highlighter-rouge">~/.profile</code>:</p> +<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="c"># Language support</span> +<span class="nb">export </span><span class="nv">GTK_IM_MODULE</span><span class="o">=</span>ibus +<span class="nb">export </span><span class="nv">XMODIFIERS</span><span class="o">=</span>@im<span class="o">=</span>ibus +<span class="nb">export </span><span class="nv">QT_IM_MODULE</span><span class="o">=</span>ibus +ibus-daemon <span class="nt">-d</span> <span class="nt">-x</span> +</code></pre></div></div> + +<p>It turns out that this <a href="https://github.com/ibus/ibus/issues/2020">causes issues with some browsers</a>, so I actually put this in my <code class="highlighter-rouge">~/.profile</code> instead:</p> +<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="c"># Language support</span> +<span class="nb">export </span><span class="nv">GTK_IM_MODULE</span><span class="o">=</span>xim +<span class="nb">export </span><span class="nv">XMODIFIERS</span><span class="o">=</span>@im<span class="o">=</span>ibus +<span class="nb">export </span><span class="nv">QT_IM_MODULE</span><span class="o">=</span>xim +ibus-daemon <span class="nt">-drx</span> +</code></pre></div></div> + +<p>Now, log out and in again to let ibus properly start again, and there should now be a new applet in your bar for language settings.</p> + +<h2 id="workflow">Workflow</h2> +<p><code class="highlighter-rouge">ibus</code> runs in the background and will show an indication of your selected language upon pressing the keyboard shortcut set in the <a href="#configuring-ibus">setup tool</a>. For languages like Japanese, where it’s writing systems do not use the English / Latin-based alphabets, <code class="highlighter-rouge">ibus</code> will automatically convert your words as you type (this behavior will be different from language to language).</p> + +<p>An example of this is as follows. I want to write the word <em>Computer</em> in Japanese (Katakana to be exact). I would switch to <code class="highlighter-rouge">mozc</code> input, and start typing the romanji word for computer, <em>Pasokon</em>. This will automatically be converted to Hiragana, <em>ぱそこん</em>. <em>Computer</em> 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 <code class="highlighter-rouge">Space</code> (This is indicated in the bottom left of my screen by <code class="highlighter-rouge">ibus</code>), and I now have <em>パソコン</em>, the Katakana word for <em>Computer</em>!</p> + +<hr /> + +<h4 id="after-note-languages">After Note: Languages</h4> +<p>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, <a href="/about#chat-with-me">let me know</a>!</p>I am currently working with ひらがな, かたかな, and, かんじ in some projects, and needed a more reliable way to write than running some romanji 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, because it does not obey system settings for languages and inputs.My weird piece of EDC2019-08-10T16:57:00-04:002019-08-10T16:57:00-04:00http://0.0.0.0:4000/blog/2019/08/10/Why-I-Carry-NFC<p>Im back with a quick little post about something I cary with me everywhere I go, EDC (Every-Day Carry) if you will.</p> <h2 id="how-this-started">How this started</h2> <p>Earlier this year, my friend @retrax24 showed me a piece of “fake ID” he was given as a joke. After some experimentation, he noticed that, upon tapping it to his phone, he would get an error message about an un-formatted card.</p> @@ -569,13 +647,4 @@ __<span class="o">()</span> <span class="o"&g <p>Not too much. Aside from learning new syntax, tools, and no longer worrying about linker errors, Java and C++ have no real difference. Most of the reason Java was chosen was based on support instead of functionality. Java is much better supported by FIRST, WPILib, and other vendors. Java is also taught in the school 5024 is based from. For a more detailed explanation of the benefits of each language, take a look at Chief Delphi. There are plenty of posts there explaining the choices of many teams and their reasoning.</p> <h2 id="side-note">Side note</h2> -<p>I am experimenting with various post formats (This being a short post). Let me know which you prefer via the social platform of your choice.</p>This is a very short post, just to explain the result of The language Hunt.I gave Google’s CTF a short try and learned a thing or two2019-06-23T18:04:00-04:002019-06-23T18:04:00-04:00http://0.0.0.0:4000/blog/2019/06/23/googlectf<p>Honestly, I completely forgot that this was the weekend of Google’s online <a href="https://g.co/ctf">CTF Qualifications</a> for 2019 and was late, unprepared, busy, and did not have a team to work with.</p> - -<h2 id="what-is-this-event">What is this event?</h2> -<p>Google hosts a (yearly?) event where hackers from around the world team up and attempt a variety of tasks like: exploiting machines over a network, reversing firmware, pulling passwords from tcp packets, hacking crypto stuff (something I suck at), breaking compilers. and much more. Generally, this event and others like it are really fun.</p> - -<h2 id="what-i-learned">What I learned</h2> -<p>Many questions I worked on involved extracting a key from a binary. I employed two vastly different tools for this job. First, a standard linux tool, <code class="highlighter-rouge">strings</code>. When passed a filename, it will extract and print all human-readable strings it can find to the terminal. The flag is usually in this dump. If not, I use the second tool. <a href="https://www.nsa.gov/resources/everyone/ghidra/">Ghidra</a>, an open-source reverse engineering tool designed by the NSA. I used this tool a fair amount during my quick attempt at GCTF.</p> - -<h2 id="will-i-do-this-again">Will I do this again?</h2> -<p>Yes! The CTF was very fun to try, and I will definitely give it a proper shot next time.</p>Honestly, I completely forgot that this was the weekend of Google’s online CTF Qualifications for 2019 and was late, unprepared, busy, and did not have a team to work with. \ No newline at end of file +<p>I am experimenting with various post formats (This being a short post). Let me know which you prefer via the social platform of your choice.</p>This is a very short post, just to explain the result of The language Hunt. \ No newline at end of file diff --git a/_site/index.html b/_site/index.html index 104c9e5..d0e3e96 100644 --- a/_site/index.html +++ b/_site/index.html @@ -92,20 +92,20 @@
-
+
- + + + \ No newline at end of file diff --git a/_site/projects.html b/_site/projects.html index 950e01f..cdaa077 100644 --- a/_site/projects.html +++ b/_site/projects.html @@ -102,25 +102,47 @@
-
+
- + + + \ No newline at end of file diff --git a/_site/sign.sh b/_site/sign.sh index 82658f0..392217c 100644 --- a/_site/sign.sh +++ b/_site/sign.sh @@ -1,5 +1,5 @@ #! /bin/bash -jekyll build +# jekyll build gpg --output signed-updates.txt --clearsign verify.txt # (echo "---\nlayout: raw\n---\n\`\`\`" && cat signed-updates.tmp && echo "\n\`\`\`") > signed-updates.md diff --git a/_site/signed-updates.txt b/_site/signed-updates.txt index 24a6969..3923a0f 100644 --- a/_site/signed-updates.txt +++ b/_site/signed-updates.txt @@ -10,6 +10,13 @@ that change will not be listed here. - -------- BEGIN LISTINGS -------- +################################ +TIMESTAMP: 2019-08-12 19:40:00 +UPDATE BY: Evan Pratten + +NOTABLE CHANGES: +Languages blog post + ################################ TIMESTAMP: 2019-08-10 21:24:00 +0000 UPDATE BY: Evan Pratten @@ -37,12 +44,12 @@ Added signing - --------- END LISTINGS --------- -----BEGIN PGP SIGNATURE----- -iQEzBAEBCgAdFiEEclMG7LWwKSk5GlFuk6x7PQcTVtMFAl1QYWYACgkQk6x7PQcT -VtN+sAf+MsRWY9Ra/HFsAQP8L/9oxAZYwJcpG+Ez8YndJfzF6H5T/uV2EWLhifCz -4YZIpTH6/lOWwi+eUE7kGgfTURz+Uqr9g4P0S5bRPeKWN7J+IdgCeP30eie+Ca2Y -z/Wrz/4Dcy11IoerSEfqcze9VMJGLfrGc59Z5Ci/rGVu153l0w7SFshnvDcxEp42 -uZY6ItTOavt1Yl+C3A6BazJh9ZtE0yGFTZbiq1pXJ4AoHnJQx/lBdMD4/ujtrSck -Kn36yTi7iFoJEt0gSlGb4IgIjjNrgqnqakkJf/eupFUFxYygABXFCoZjrVupHkll -YusiBE5oFqOzUaHyTcEGd3MFH9ny/Q== -=Z/lI +iQEzBAEBCgAdFiEEclMG7LWwKSk5GlFuk6x7PQcTVtMFAl1R+V4ACgkQk6x7PQcT +VtNbnQf8DRYU8sUePjkJ1hag+uvXJZ/Rm5i9SYR3u2yS2tQ9uTSTGmETtc4fYyCg +Y15x+w0OqTFZTw0Psu+HvU2Vg2u8ab05Ru/SL+QgAD268rRoyPXzsIF6jpeIF4RT +BkxrAgJ0OycyuLSfPlvn+2xTw3FkTiriAFhao/QPrKmCagvtU37Y/phxnN8YTKYQ +MinKMsSz16m3osdKAD++D4MmAIV9bfmh/+DI1y4bMhDGHsUrcdYV3CCIEVYyGneb +0y6anFK+7QKngFPfyBdutTksVL0+Y79ppjI40u6Icollvl6hRwGLeHzN3Aja0xWN +2o3oeUUX7imTtapnVC1DtQ6eYpZ7Bw== +=iWv1 -----END PGP SIGNATURE----- diff --git a/_site/verify.txt b/_site/verify.txt index 8b7e9b1..b209468 100644 --- a/_site/verify.txt +++ b/_site/verify.txt @@ -7,6 +7,13 @@ that change will not be listed here. -------- BEGIN LISTINGS -------- +################################ +TIMESTAMP: 2019-08-12 19:40:00 +UPDATE BY: Evan Pratten + +NOTABLE CHANGES: +Languages blog post + ################################ TIMESTAMP: 2019-08-10 21:24:00 +0000 UPDATE BY: Evan Pratten diff --git a/assets/images/ibus-general.png b/assets/images/ibus-general.png new file mode 100644 index 0000000..2f660e0 Binary files /dev/null and b/assets/images/ibus-general.png differ diff --git a/assets/images/ibus-input.png b/assets/images/ibus-input.png new file mode 100644 index 0000000..976d43c Binary files /dev/null and b/assets/images/ibus-input.png differ diff --git a/assets/images/language-installation.png b/assets/images/language-installation.png new file mode 100644 index 0000000..437032f Binary files /dev/null and b/assets/images/language-installation.png differ diff --git a/assets/images/language-settings.png b/assets/images/language-settings.png new file mode 100644 index 0000000..84c121d Binary files /dev/null and b/assets/images/language-settings.png differ diff --git a/sign.sh b/sign.sh index 82658f0..392217c 100644 --- a/sign.sh +++ b/sign.sh @@ -1,5 +1,5 @@ #! /bin/bash -jekyll build +# jekyll build gpg --output signed-updates.txt --clearsign verify.txt # (echo "---\nlayout: raw\n---\n\`\`\`" && cat signed-updates.tmp && echo "\n\`\`\`") > signed-updates.md diff --git a/signed-updates.txt b/signed-updates.txt index 24a6969..3923a0f 100644 --- a/signed-updates.txt +++ b/signed-updates.txt @@ -10,6 +10,13 @@ that change will not be listed here. - -------- BEGIN LISTINGS -------- +################################ +TIMESTAMP: 2019-08-12 19:40:00 +UPDATE BY: Evan Pratten + +NOTABLE CHANGES: +Languages blog post + ################################ TIMESTAMP: 2019-08-10 21:24:00 +0000 UPDATE BY: Evan Pratten @@ -37,12 +44,12 @@ Added signing - --------- END LISTINGS --------- -----BEGIN PGP SIGNATURE----- -iQEzBAEBCgAdFiEEclMG7LWwKSk5GlFuk6x7PQcTVtMFAl1QYWYACgkQk6x7PQcT -VtN+sAf+MsRWY9Ra/HFsAQP8L/9oxAZYwJcpG+Ez8YndJfzF6H5T/uV2EWLhifCz -4YZIpTH6/lOWwi+eUE7kGgfTURz+Uqr9g4P0S5bRPeKWN7J+IdgCeP30eie+Ca2Y -z/Wrz/4Dcy11IoerSEfqcze9VMJGLfrGc59Z5Ci/rGVu153l0w7SFshnvDcxEp42 -uZY6ItTOavt1Yl+C3A6BazJh9ZtE0yGFTZbiq1pXJ4AoHnJQx/lBdMD4/ujtrSck -Kn36yTi7iFoJEt0gSlGb4IgIjjNrgqnqakkJf/eupFUFxYygABXFCoZjrVupHkll -YusiBE5oFqOzUaHyTcEGd3MFH9ny/Q== -=Z/lI +iQEzBAEBCgAdFiEEclMG7LWwKSk5GlFuk6x7PQcTVtMFAl1R+V4ACgkQk6x7PQcT +VtNbnQf8DRYU8sUePjkJ1hag+uvXJZ/Rm5i9SYR3u2yS2tQ9uTSTGmETtc4fYyCg +Y15x+w0OqTFZTw0Psu+HvU2Vg2u8ab05Ru/SL+QgAD268rRoyPXzsIF6jpeIF4RT +BkxrAgJ0OycyuLSfPlvn+2xTw3FkTiriAFhao/QPrKmCagvtU37Y/phxnN8YTKYQ +MinKMsSz16m3osdKAD++D4MmAIV9bfmh/+DI1y4bMhDGHsUrcdYV3CCIEVYyGneb +0y6anFK+7QKngFPfyBdutTksVL0+Y79ppjI40u6Icollvl6hRwGLeHzN3Aja0xWN +2o3oeUUX7imTtapnVC1DtQ6eYpZ7Bw== +=iWv1 -----END PGP SIGNATURE----- diff --git a/verify.txt b/verify.txt index 8b7e9b1..b209468 100644 --- a/verify.txt +++ b/verify.txt @@ -7,6 +7,13 @@ that change will not be listed here. -------- BEGIN LISTINGS -------- +################################ +TIMESTAMP: 2019-08-12 19:40:00 +UPDATE BY: Evan Pratten + +NOTABLE CHANGES: +Languages blog post + ################################ TIMESTAMP: 2019-08-10 21:24:00 +0000 UPDATE BY: Evan Pratten