<?xml version="1.0" encoding="utf-8"?>
<feed version="0.3" xmlns="http://purl.org/atom/ns#">
<link rel="alternate" type="text/html" href="https://gamma.unpythonic.net/"/>

<title>Jeff Epler's blog</title>
<modified>2013-02-06T14:59:15Z</modified>
<tagline>Photos, electronics, cnc, and more</tagline>
<author><name>Jeff Epler</name><email>jepler@unpythonic.net</email></author>
<entry>
<title>The growth of Unicode over time</title>
<issued>2013-02-06T14:59:15Z</issued>
<modified>2013-02-06T14:59:15Z</modified>
<id>https://gamma.unpythonic.net/01360162755</id>
<link rel="alternate" type="text/html" href="https://gamma.unpythonic.net/01360162755"/>
<content type="text/html" mode="escaped">
&lt;div style=&quot;float:right;clear:right&quot;&gt;&lt;!-- growth-of-unicode.png--&gt;&lt;div class=albumouter style=width:306px id=&gt;&lt;div class=albumimage style=&quot;width:306px;margin-left:0.0px;&quot;&gt;&lt;a href=&quot;https://media.unpythonic.net/emergent-files/01360162755/growth-of-unicode.png&quot; class=&quot;thickbox&quot; rel=&quot;album&quot; title=&quot;The growth of Unicode over time&quot;&gt;&lt;img src=&quot;https://media.unpythonic.net/emergent-files/01360162755/growth-of-unicode-small.jpg&quot; width=300 height=241&gt;&lt;/a&gt;&lt;div &gt;&lt;div style=&quot;float: right&quot; &gt;&lt;a href=&quot;https://media.unpythonic.net/emergent-files/01360162755/growth-of-unicode.png&quot;&gt;&lt;img class=zoom src=&quot;https://media.unpythonic.net/emergent-files/default/zoom.png&quot;&gt;&lt;/a&gt;&lt;/div&gt;&lt;a href=&quot;https://media.unpythonic.net/emergent-files/01360162755/growth-of-unicode.png&quot;&gt;The growth of Unicode over time&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;/div&gt;
This graph shows the number of defined code points in unicode from its first
release in 1991 to the preset; the last data point is the number of code points
in Unicode 6.2 plus all characters from the &amp;quot;pipeline table&amp;quot; of proposed new
characters (retrieved January 2013).  However, it is likely that only a subset
of those characters will be in the next unicode standard.</content>
</entry>
<entry>
<title>Friendlier unicode entry in rxvt-unicode</title>
<issued>2012-06-28T16:24:02Z</issued>
<modified>2012-06-28T16:24:02Z</modified>
<id>https://gamma.unpythonic.net/01340900642</id>
<link rel="alternate" type="text/html" href="https://gamma.unpythonic.net/01340900642"/>
<content type="text/html" mode="escaped">
&lt;div style=&quot;float:right;clear:right&quot;&gt;&lt;!-- entering-unicode.png--&gt;&lt;div class=albumouter style=width:306px id=&gt;&lt;div class=albumimage style=&quot;width:306px;margin-left:0.0px;&quot;&gt;&lt;a href=&quot;https://media.unpythonic.net/emergent-files/01340900642/entering-unicode.png&quot; class=&quot;thickbox&quot; rel=&quot;album&quot; title=&quot;The script in action&quot;&gt;&lt;img src=&quot;https://media.unpythonic.net/emergent-files/01340900642/entering-unicode-small.jpg&quot; width=300 height=64&gt;&lt;/a&gt;&lt;div &gt;&lt;div style=&quot;float: right&quot; &gt;&lt;a href=&quot;https://media.unpythonic.net/emergent-files/01340900642/entering-unicode.png&quot;&gt;&lt;img class=zoom src=&quot;https://media.unpythonic.net/emergent-files/default/zoom.png&quot;&gt;&lt;/a&gt;&lt;/div&gt;&lt;a href=&quot;https://media.unpythonic.net/emergent-files/01340900642/entering-unicode.png&quot;&gt;The script in action&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;/div&gt;
I recently was hanging out on #rxvt-unicode where a fellow user mentioned
that entering unicodes via the shift+ctrl+&amp;lt;hex digits&amp;gt; method was inconvenient.
He mentioned that some other program (which?) uses shift+ctrl+u followed by
hex digits.  So I wrote a perl plugin for rxvt-unicode that does just that.</content>
</entry>
<entry>
<title>Custom compose sequences in X</title>
<issued>2011-02-01T16:33:44Z</issued>
<modified>2011-02-01T16:33:44Z</modified>
<id>https://gamma.unpythonic.net/01296578024</id>
<link rel="alternate" type="text/html" href="https://gamma.unpythonic.net/01296578024"/>
<content type="text/html" mode="escaped">

In modern gnome-based Linux distributions, it's quite easy to enable
a compose key through the Keyboard Preferences window.  However, I
had trouble finding information on how to define custom compose sequences
like compose+&amp;quot;inf&amp;quot; for ∞.

&lt;p&gt;The answer is the ~/.XCompose file.  Start by copying the default compose
file (/usr/share/X11/locale/en_US.UTF-8/Compose for me) to ~/.XCompose, and
then edit it to add any additional sequences that are desired.  (You can
also remove any sequences you don't use, though it's not clear whether
there's any benefit to this.  For example, I removed all &amp;quot;dead key&amp;quot; sequences)

&lt;p&gt;Applications seem to read this file once at startup, so my testing generally
involves opening a new urxvt to verify the sequence works and inserts the
desired character.

&lt;p&gt;The Character Map applet is quite useful for finding the desired characters.

&lt;p&gt;Make sure your text editor is using the right character encoding (typically
UTF-8).

&lt;p&gt;Here are some of the sequences I've found it useful to define:
&lt;blockquote&gt;&lt;pre&gt;
&amp;lt;Multi_key&amp;gt; &amp;lt;i&amp;gt; &amp;lt;n&amp;gt; &amp;lt;f&amp;gt; : &quot;∞&quot;
&amp;lt;Multi_key&amp;gt; &amp;lt;p&amp;gt; &amp;lt;i&amp;gt;     : &quot;π&quot;
&amp;lt;Multi_key&amp;gt; &amp;lt;o&amp;gt; &amp;lt;h&amp;gt; &amp;lt;m&amp;gt; : &quot;Ω&quot;
&lt;/pre&gt;&lt;/blockquote&gt;

&lt;p&gt;It's also worth noting that you can define compose sequences that result in
entire strings:
&lt;blockquote&gt;&lt;pre&gt;
&amp;lt;Multi_key&amp;gt; &amp;lt;m&amp;gt; &amp;lt;e&amp;gt;     : &quot;Jeff Epler &amp;lt;jepler@unpythonic.net&amp;gt;&quot;
&lt;/pre&gt;&lt;/blockquote&gt;

&lt;p&gt;&lt;b&gt;Update,&lt;/b&gt; May 2011: By default in certain locales including the en_US
locale, gtk+ uses its own hardcoded list of compose sequences.  To get
~/.XCompose support in gtk+ applications, arrange to set GTK_IM_MODULE=xim in
the environment.  Related: &lt;a href=&quot;https://bugzilla.gnome.org/show_bug.cgi?id=96053&quot;&gt;gnome bug 96053&lt;/a&gt;, where I found the answer
for how to get gtk/gnome apps to behave.
</content>
</entry>
</feed>
