-
Notifications
You must be signed in to change notification settings - Fork 0
/
unicode-input.html
249 lines (232 loc) · 12.5 KB
/
unicode-input.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="Billy McCulloch" />
<meta name="copyright" content="Billy McCulloch" />
<meta property="og:type" content="article" />
<meta name="twitter:card" content="summary">
<meta name="keywords" content="unicode, ubuntu, uim, xcompose, linux, typography, " />
<meta property="og:title" content="Unicode Input "/>
<meta property="og:url" content="http://bjmcculloch.github.io/unicode-input.html" />
<meta property="og:description" content="Note: I posted this elsewhere on the 'net some time ago, but I'm putting it here to make it easier for me to find… So, I am currently running Ubuntu 10.10 (just installed last night), and have the ability to both use unicode entry with the Ctrl+Shift ..." />
<meta property="og:site_name" content="Organometallic Odyssey" />
<meta property="og:article:author" content="Billy McCulloch" />
<meta property="og:article:published_time" content="2011-05-31T08:45:00" />
<meta name="twitter:title" content="Unicode Input ">
<meta name="twitter:description" content="Note: I posted this elsewhere on the 'net some time ago, but I'm putting it here to make it easier for me to find… So, I am currently running Ubuntu 10.10 (just installed last night), and have the ability to both use unicode entry with the Ctrl+Shift ...">
<title>Unicode Input · Organometallic Odyssey
</title>
<link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css" rel="stylesheet">
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.1/css/font-awesome.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="http://bjmcculloch.github.io/theme/css/pygments.css" media="screen">
<link rel="stylesheet" type="text/css" href="http://bjmcculloch.github.io/theme/tipuesearch/tipuesearch.css" media="screen">
<link rel="stylesheet" type="text/css" href="http://bjmcculloch.github.io/theme/css/elegant.css" media="screen">
<link rel="stylesheet" type="text/css" href="http://bjmcculloch.github.io/theme/css/custom.css" media="screen">
<link href="http://bjmcculloch.github.io/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="Organometallic Odyssey - Full Atom Feed" />
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-51266943-1', 'auto');
ga('send', 'pageview');
</script>
</head>
<body>
<div id="content-sans-footer">
<div class="navbar navbar-static-top">
<div class="navbar-inner">
<div class="container-fluid">
<div class="span1"></div>
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand" href="http://bjmcculloch.github.io/"><span class=site-name>Organometallic Odyssey</span></a>
<div class="nav-collapse collapse">
<ul class="nav pull-right top-menu">
<li ><a href="http://bjmcculloch.github.io">Home</a></li>
<li ><a href="http://bjmcculloch.github.io/categories.html">Categories</a></li>
<li ><a href="http://bjmcculloch.github.io/tags.html">Tags</a></li>
<li ><a href="http://bjmcculloch.github.io/archives.html">Archives</a></li>
<li><form class="navbar-search" action="http://bjmcculloch.github.io/search.html" onsubmit="return validateForm(this.elements['q'].value);"> <input type="text" class="search-query" placeholder="Search" name="q" id="tipue_search_input"></form></li>
</ul>
</div>
</div>
</div>
</div>
<div class="container-fluid">
<div class="row-fluid">
<div class="span1"></div>
<div class="span10">
<article>
<div class="row-fluid">
<header class="page-header span10 offset2">
<h1><a href="http://bjmcculloch.github.io/unicode-input.html"> Unicode Input </a></h1>
</header>
</div>
<div class="row-fluid">
<div class="span8 offset2 article-content">
<p>Note: I posted this elsewhere on the 'net some time ago, but I'm putting it here
to make it easier for me to find…</p>
<p>So, I am currently running Ubuntu 10.10 (just installed last night), and have
the ability to both use unicode entry with the Ctrl+Shift+U sequence, as well as
custom compose keys. This is something I discovered some time ago, and only
recently revisited due to switching from Debian to Ubuntu. I don’t remember why
this works anymore, but anyhow…
1) Install the uim-gtk2.0 package (and uim-qt, if you want).
2) That’s basically it. ツ You can then set your compose keys and whatnot in the
System→Preferences→Keyboard menu.</p>
<p>There’s also another way to setup your .XCompose file; you can source the global
file, then add your own definitions below that, so you have a more compact
compose file (though it becomes subject to upstream’s modifications, which may
or may not be something you want). Anyway, mine looks something like this:</p>
<div class="highlight"><pre><span class="c"># Load the defaults first, so that you can overwrite sequences you don’t like</span>
include <span class="s2">"/usr/share/X11/locale/en_US.UTF-8/Compose"</span>
<span class="c"># Custom additions: Typography</span>
<Multi_key> <period> <period> <period> : <span class="s2">"…"</span> U2026 <span class="c"># HORIZONTAL ELLIPSIS</span>
<Multi_key> <minus> <less> : <span class="s2">"←"</span> leftarrow <span class="c"># LEFTWARDS ARROW</span>
<Multi_key> <bar> <asciicircum> : <span class="s2">"↑"</span> uparrow <span class="c"># UPWARDS ARROW</span>
<Multi_key> <minus> <greater> : <span class="s2">"→"</span> rightarrow <span class="c"># RIGHTWARDS ARROW</span>
<Multi_key> <bar> <v> : <span class="s2">"↓"</span> downarrow <span class="c"># DOWNWARDS ARROW</span>
<Multi_key> <less> <minus> <greater> : <span class="s2">"↔"</span> U2194 <span class="c"># LEFT RIGHT ARROW</span>
<span class="c"># etc. etc.</span>
</pre></div>
<p>UPDATE:</p>
<p>I just upgraded to Ubuntu 11.04, and the compose keys got broken. Basically,
somebody rearranged the keyboard preferences, and you can’t use them to set the
compose keys anymore (among other things). The option is probably available
graphically, but until I find it, you can revert to the old school way of doing
it. Namely,</p>
<p>setxkbmap -option compose:ralt
setxkbmap -option ctrl:nocaps
The first of these will set the compose key to the Right Alt key, which is what
I use. The second command sets the Caps Lock key to function just like another
Ctrl key. Put the appropriate lines into your ~/.profile, and you’re up an
running again!</p>
<section>
<div class="accordion" id="accordion2">
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle disqus-comment-count" data-toggle="collapse" data-parent="#accordion2"
href="http://bjmcculloch.github.io/unicode-input.html#disqus_thread">
Comments
</a>
</div>
<div id="disqus_thread" class="accordion-body collapse">
<div class="accordion-inner">
<div class="comments">
<div id="disqus_thread"></div>
<script type="text/javascript">
var disqus_shortname = 'organometallicodyssey';
var disqus_identifier = 'http://bjmcculloch.github.io/unicode-input.html';
var disqus_url = 'http://bjmcculloch.github.io/unicode-input.html';
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
</div>
</div>
</div>
</div>
</div>
</section>
<hr/>
</div>
<section>
<div class="span2" style="float:right;font-size:0.9em;">
<h4>Published</h4>
<time pubdate="pubdate" datetime="2011-05-31T08:45:00">May 31, 2011</time>
<h4>Category</h4>
<a class="category-link" href="http://bjmcculloch.github.io/categories.html#typography-ref">typography</a>
<h4>Tags</h4>
<ul class="list-of-tags tags-in-article">
<li><a href="http://bjmcculloch.github.io/tags.html#linux-ref">linux
<span>1</span>
</a></li>
<li><a href="http://bjmcculloch.github.io/tags.html#ubuntu-ref">ubuntu
<span>1</span>
</a></li>
<li><a href="http://bjmcculloch.github.io/tags.html#uim-ref">uim
<span>1</span>
</a></li>
<li><a href="http://bjmcculloch.github.io/tags.html#unicode-ref">unicode
<span>1</span>
</a></li>
<li><a href="http://bjmcculloch.github.io/tags.html#xcompose-ref">xcompose
<span>1</span>
</a></li>
</ul>
</div>
</section>
</div>
</article>
</div>
<div class="span1"></div>
</div>
</div>
<div id="push"></div>
</div>
<footer>
<div id="footer">
<ul class="footer-content">
<li class="elegant-power">Powered by <a href="http://getpelican.com/" title="Pelican Home Page">Pelican</a>. Theme: <a href="http://oncrashreboot.com/pelican-elegant" title="Theme Elegant Home Page">Elegant</a> by <a href="http://oncrashreboot.com" title="Talha Mansoor Home Page">Talha Mansoor</a></li>
</ul>
</div>
</footer> <script src="http://code.jquery.com/jquery.min.js"></script>
<script src="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.min.js"></script>
<script>
function validateForm(query)
{
return (query.length > 0);
}
</script>
<script type="text/javascript">
var disqus_shortname = 'organometallicodyssey';
(function () {
var s = document.createElement('script'); s.async = true;
s.type = 'text/javascript';
s.src = '//' + disqus_shortname + '.disqus.com/count.js';
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
}());
</script>
<script language="javascript" type="text/javascript">
function uncollapse() {
if (window.location.hash.match(/^#comment-\d+$/)) {
$('#disqus_thread').collapse('show');
}
}
</script>
<script type="text/javascript" language="JavaScript">
uncollapse();
window.onhashchange=function(){
if (window.location.hash.match(/^#comment-\d+$/))
window.location.reload(true);
}
</script>
<script>
$('#disqus_thread').on('shown', function () {
var link = document.getElementsByClassName('accordion-toggle');
var old_innerHTML = link[0].innerHTML;
$(link[0]).fadeOut(500, function() {
$(this).text('Click here to hide comments').fadeIn(500);
});
$('#disqus_thread').on('hidden', function () {
$(link[0]).fadeOut(500, function() {
$(this).text(old_innerHTML).fadeIn(500);
});
})
})
</script>
</body>
<!-- Theme: Elegant built for Pelican
License : http://oncrashreboot.com/pelican-elegant -->
</html>