summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaoran S. Diao (刁浩然) <0@hairydiode.xyz>2025-08-19 14:16:41 -0700
committerHaoran S. Diao (刁浩然) <0@hairydiode.xyz>2025-08-19 14:16:41 -0700
commit664a42a65564bf88fa2ead88506a4f9731612abb (patch)
tree8e12532f496d7856866a22d2b35d66be88eb8ba3
parentdf5df87632439a47d28214d3b155535259eec2ec (diff)
fixed angle brackets
-rw-r--r--cont/xkbabuse.html51
-rw-r--r--xkbabuse.html51
2 files changed, 50 insertions, 52 deletions
diff --git a/cont/xkbabuse.html b/cont/xkbabuse.html
index 4e5fc07..f093fbe 100644
--- a/cont/xkbabuse.html
+++ b/cont/xkbabuse.html
@@ -1,6 +1,6 @@
-<!--
+&lt!--
123456789-223456789-323456789-423456789-523456789-623456789-723456789-8234567890
-一二三四-->[TITLE] [DATE]
+一二三四--&gt[TITLE] [DATE]
--------------------------------------------------------------------------------
[SETTITLE]Abusing X11's xkb for fun and profit
[SETDATE]08-19-2025
@@ -14,15 +14,15 @@ ex: /usr/share/X11/locale/en_US.UTF-8/Compose on my computer
# UTF-8 (Unicode) Compose sequences
#
# Spacing versions of accents (mostly)
-<dead_tilde> <space> : "~" asciitilde # TILDE
-<dead_tilde> <dead_tilde> : "~" asciitilde # TILDE
-<Multi_key> <minus> <space> : "~" asciitilde # TILDE
-<Multi_key> <space> <minus> : "~" asciitilde # TILDE
-<dead_acute> <space> : "'" apostrophe # APOSTROPHE
+&ltdead_tilde&gt &ltspace&gt : "~" asciitilde # TILDE
+&ltdead_tilde&gt &ltdead_tilde&gt : "~" asciitilde # TILDE
+&ltMulti_key&gt &ltminus&gt &ltspace&gt : "~" asciitilde # TILDE
+&ltMulti_key&gt &ltspace&gt &ltminus&gt : "~" asciitilde # TILDE
+&ltdead_acute&gt &ltspace&gt : "'" apostrophe # APOSTROPHE
...
-<dead_circumflex> <o> : "ồ ocircumflex # LATIN SMALL LETTER O WITH CIRCUMFLEX
+&ltdead_circumflex&gt &lto&gt : "ồ ocircumflex # LATIN SMALL LETTER O WITH CIRCUMFLEX
...
-<Multi_key> <colon> <U2395> : "⍠́ U2360 # : ⎕ APL FUNCTIONAL SYMBOL QUAD COLON
+&ltMulti_key&gt &ltcolon&gt &ltU2395&gt : "⍠́ U2360 # : ⎕ APL FUNCTIONAL SYMBOL QUAD COLON
For those of you who are unaware, if you use for example a German keyboard
layout, pressing "^" followed by "o" will produce "ô". The circumflex "^" key is
@@ -48,9 +48,9 @@ aaa 98 鑆
into
-<a> <a> <a> <space> : "鑫"
-<a> <a> <a> <1> : "龘"
-<a> <a> <a> <2> : "鑆"
+&lta&gt &lta&gt &lta&gt &ltspace&gt : "鑫"
+&lta&gt &lta&gt &lta&gt &lt1&gt : "龘"
+&lta&gt &lta&gt &lta&gt &lt2&gt : "鑆"
To my surprise, after moving this file to ~/.XCompose it worked exactly as I
@@ -67,22 +67,22 @@ compose table use those as the inputs instead of qwerty keys.
Since I started this whole thing by messing with xkb layouts, it didn't take
long for me to edit the us layout into something like this:
- key <AD01> {[ U9AD8, Q ]}; # 高
- key <AD02> {[ U4E94, W ]}; # 五
- key <AD03> {[ U4E00, E ]}; # 一
- key <AD04> {[ U4E8C, R ]}; # 二
- key <AD05> {[ U901A, T ]}; # 通
- key <AD06> {[ U76CA, Y ]}; # 益
- key <AD07> {[ U4EE5, U ]}; # 以
- key <AD08> {[ U5F8C, I ]}; # 後
- key <AD09> {[ U3007, O ]}; # 〇
- key <AD10> {[ U5099, P ]}; # 備
+ key &ltAD01&gt {[ U9AD8, Q ]}; # 高
+ key &ltAD02&gt {[ U4E94, W ]}; # 五
+ key &ltAD03&gt {[ U4E00, E ]}; # 一
+ key &ltAD04&gt {[ U4E8C, R ]}; # 二
+ key &ltAD05&gt {[ U901A, T ]}; # 通
+ key &ltAD06&gt {[ U76CA, Y ]}; # 益
+ key &ltAD07&gt {[ U4EE5, U ]}; # 以
+ key &ltAD08&gt {[ U5F8C, I ]}; # 後
+ key &ltAD09&gt {[ U3007, O ]}; # 〇
+ key &ltAD10&gt {[ U5099, P ]}; # 備
And my compose table to look something like this:
-<U5C0D> <U5C0D> <U5C0D> <U4E8C> <space> : "鑆"
-<U5C0D> <U5C0D> <U5C0D> <space> : "鑫"
-<U5C0D> <U5C0D> <U5C0D> <U8981> <space> : "龘"
+&ltU5C0D&gt &ltU5C0D&gt &ltU5C0D&gt &ltU4E8C&gt &ltspace&gt : "鑆"
+&ltU5C0D&gt &ltU5C0D&gt &ltU5C0D&gt &ltspace&gt : "鑫"
+&ltU5C0D&gt &ltU5C0D&gt &ltU5C0D&gt &ltU8981&gt &ltspace&gt : "龘"
Now if I set my keyboard layout to "boshiamy", it will be sending these custom
key symbols which will be interpreted by my custom compose rules, and if I
@@ -104,4 +104,3 @@ Boshiamy without the preview window or without any sort of predictive text.
The files I've created and further reading are in a git repo <a href="https://hairydiode.xyz/cgit/xkb-boshiamy">here</a>
-
diff --git a/xkbabuse.html b/xkbabuse.html
index ae8ff5c..e800f2b 100644
--- a/xkbabuse.html
+++ b/xkbabuse.html
@@ -16,9 +16,9 @@
<a href="https://hairydiode.xyz">>HairyDiode</a>
--------------------------------------------------------------------------------
-<!--
+&lt!--
123456789-223456789-323456789-423456789-523456789-623456789-723456789-8234567890
-一二三四-->Abusing X11's xkb for fun and profit 08-19-2025
+一二三四--&gtAbusing X11's xkb for fun and profit 08-19-2025
--------------------------------------------------------------------------------
Yesterday I was playing around with xkb keyboard layouts before I discovered
@@ -30,15 +30,15 @@ ex: /usr/share/X11/locale/en_US.UTF-8/Compose on my computer
# UTF-8 (Unicode) Compose sequences
#
# Spacing versions of accents (mostly)
-<dead_tilde> <space> : "~" asciitilde # TILDE
-<dead_tilde> <dead_tilde> : "~" asciitilde # TILDE
-<Multi_key> <minus> <space> : "~" asciitilde # TILDE
-<Multi_key> <space> <minus> : "~" asciitilde # TILDE
-<dead_acute> <space> : "'" apostrophe # APOSTROPHE
+&ltdead_tilde&gt &ltspace&gt : "~" asciitilde # TILDE
+&ltdead_tilde&gt &ltdead_tilde&gt : "~" asciitilde # TILDE
+&ltMulti_key&gt &ltminus&gt &ltspace&gt : "~" asciitilde # TILDE
+&ltMulti_key&gt &ltspace&gt &ltminus&gt : "~" asciitilde # TILDE
+&ltdead_acute&gt &ltspace&gt : "'" apostrophe # APOSTROPHE
...
-<dead_circumflex> <o> : "ồ ocircumflex # LATIN SMALL LETTER O WITH CIRCUMFLEX
+&ltdead_circumflex&gt &lto&gt : "ồ ocircumflex # LATIN SMALL LETTER O WITH CIRCUMFLEX
...
-<Multi_key> <colon> <U2395> : "⍠́ U2360 # : ⎕ APL FUNCTIONAL SYMBOL QUAD COLON
+&ltMulti_key&gt &ltcolon&gt &ltU2395&gt : "⍠́ U2360 # : ⎕ APL FUNCTIONAL SYMBOL QUAD COLON
For those of you who are unaware, if you use for example a German keyboard
layout, pressing "^" followed by "o" will produce "ô". The circumflex "^" key is
@@ -64,9 +64,9 @@ aaa 98 鑆
into
-<a> <a> <a> <space> : "鑫"
-<a> <a> <a> <1> : "龘"
-<a> <a> <a> <2> : "鑆"
+&lta&gt &lta&gt &lta&gt &ltspace&gt : "鑫"
+&lta&gt &lta&gt &lta&gt &lt1&gt : "龘"
+&lta&gt &lta&gt &lta&gt &lt2&gt : "鑆"
To my surprise, after moving this file to ~/.XCompose it worked exactly as I
@@ -83,22 +83,22 @@ compose table use those as the inputs instead of qwerty keys.
Since I started this whole thing by messing with xkb layouts, it didn't take
long for me to edit the us layout into something like this:
- key <AD01> {[ U9AD8, Q ]}; # 高
- key <AD02> {[ U4E94, W ]}; # 五
- key <AD03> {[ U4E00, E ]}; # 一
- key <AD04> {[ U4E8C, R ]}; # 二
- key <AD05> {[ U901A, T ]}; # 通
- key <AD06> {[ U76CA, Y ]}; # 益
- key <AD07> {[ U4EE5, U ]}; # 以
- key <AD08> {[ U5F8C, I ]}; # 後
- key <AD09> {[ U3007, O ]}; # 〇
- key <AD10> {[ U5099, P ]}; # 備
+ key &ltAD01&gt {[ U9AD8, Q ]}; # 高
+ key &ltAD02&gt {[ U4E94, W ]}; # 五
+ key &ltAD03&gt {[ U4E00, E ]}; # 一
+ key &ltAD04&gt {[ U4E8C, R ]}; # 二
+ key &ltAD05&gt {[ U901A, T ]}; # 通
+ key &ltAD06&gt {[ U76CA, Y ]}; # 益
+ key &ltAD07&gt {[ U4EE5, U ]}; # 以
+ key &ltAD08&gt {[ U5F8C, I ]}; # 後
+ key &ltAD09&gt {[ U3007, O ]}; # 〇
+ key &ltAD10&gt {[ U5099, P ]}; # 備
And my compose table to look something like this:
-<U5C0D> <U5C0D> <U5C0D> <U4E8C> <space> : "鑆"
-<U5C0D> <U5C0D> <U5C0D> <space> : "鑫"
-<U5C0D> <U5C0D> <U5C0D> <U8981> <space> : "龘"
+&ltU5C0D&gt &ltU5C0D&gt &ltU5C0D&gt &ltU4E8C&gt &ltspace&gt : "鑆"
+&ltU5C0D&gt &ltU5C0D&gt &ltU5C0D&gt &ltspace&gt : "鑫"
+&ltU5C0D&gt &ltU5C0D&gt &ltU5C0D&gt &ltU8981&gt &ltspace&gt : "龘"
Now if I set my keyboard layout to "boshiamy", it will be sending these custom
key symbols which will be interpreted by my custom compose rules, and if I
@@ -120,7 +120,6 @@ Boshiamy without the preview window or without any sort of predictive text.
The files I've created and further reading are in a git repo <a href="https://hairydiode.xyz/cgit/xkb-boshiamy">here</a>
-
</pre>
</div>
<br>