<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ole Bakstad&#039;s blog &#187; keyboard</title>
	<atom:link href="http://dibon.net/wordpress/tag/keyboard/feed/" rel="self" type="application/rss+xml" />
	<link>http://dibon.net/wordpress</link>
	<description>About stuff that happens, when it happens, if it happens.</description>
	<lastBuildDate>Mon, 15 Jun 2009 20:08:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.3</generator>
		<item>
		<title>Norwegian mac keyboard layout in Ubuntu</title>
		<link>http://dibon.net/wordpress/norwegian-mac-keyboard-layout-in-ubuntu/</link>
		<comments>http://dibon.net/wordpress/norwegian-mac-keyboard-layout-in-ubuntu/#comments</comments>
		<pubDate>Mon, 23 Feb 2009 13:24:07 +0000</pubDate>
		<dc:creator>Ole Bakstad</dc:creator>
				<category><![CDATA[OS]]></category>
		<category><![CDATA[Tips & Hints]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[keyboard]]></category>
		<category><![CDATA[layout]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[norsk]]></category>
		<category><![CDATA[norwegian]]></category>

		<guid isPermaLink="false">http://dibon.net/wordpress/?p=38</guid>
		<description><![CDATA[For the last years I&#8217;ve been using Mac OS X, but now I&#8217;m running Ubuntu. Ubuntu has very much functionality build in, but the Norwegian mac keyboard layout isn&#8217;t that great out of the box. There are three steps required to get the layout partially[NB!] right: Change 3rd level chooser and switch Alt / Win [...]]]></description>
			<content:encoded><![CDATA[<p>For the last years I&#8217;ve been using Mac OS X, but now I&#8217;m running Ubuntu. Ubuntu has very much functionality build in, but the Norwegian mac keyboard layout isn&#8217;t that great out of the box.</p>
<p>There are three steps required to get the layout <em>partially</em><sup>[NB!]</sup> right:</p>
<ol>
<li>Change 3rd level chooser and switch Alt / Win (cmd) key.</li>
<li>Edit the XKB-file to get keys right.</li>
<li>Set the keyboard in  Ubuntu to &#8220;Norway Macintosh&#8221;</li>
</ol>
<h5>Step 1:</h5>
<p>Open the keyboard settings (System -&gt; Preferences -&gt; Keyboard) and click the &#8220;Layouts&#8221; tab. Then click the &#8220;Other options&#8230;&#8221; button.</p>
<p>1.1) Press &#8220;Alt/Win key behavior&#8221; and choose &#8220;Left Alt is swapped with left Win-key&#8221;.<br />
1.2) Press &#8220;Third level choosers&#8221; and select &#8220;Press any of Alt keys to choose 3rd level&#8221; (or &#8220;Press left Alt keys to choose 3rd level&#8221;).</p>
<h5>Step 2:</h5>
<p>This part is a bit more tricky.</p>
<p>Open the terminal and open the folder &#8220;/usr/share/X11/xkb/symbols&#8221;</p>
<p><code>$ cd /usr/share/X11/xkb/symbols</code></p>
<p>The file we are going to edit is named &#8220;no&#8221;, but before we begin lets backup the file!<br />
From now on every command run as root (noted by #).</p>
<p><code># cp no no_backup</code></p>
<p>Now open the &#8220;no&#8221;-file with your favorite editor, I&#8217;m using <a href="http://www.vim.org/">VIM</a>.</p>
<p><code># vim no</code></p>
<p>Scroll down to the part which starts with:</p>
<p><code>// Copied from macintosh_vndr/no<br />
partial alphanumeric_keys<br />
xkb_symbols "mac" {</code></p>
<p>You now need to change the following lines:</p>
<p><code>key &lt;TLDE&gt;  { [      bar,    section, brokenbar, paragraph    ] };<br />
to:<br />
<strong>key &lt;TLDE&gt;  { [      apostrophe, </strong><strong>paragraph, bar, brokenbar ] };</strong></code></p>
<p>And:</p>
<p><code>key &lt;AE04&gt;    { [         4,  currency,       dollar,       dollar ]    };<br />
to:<br />
<strong>key &lt;AE04&gt;    { [         4,   dollar,       currency,       dollar ]    };</strong></code></p>
<p>Then save.</p>
<h5>Step 3:</h5>
<p>The only thing remaining is to select &#8220;Norwegian Macintosh&#8221; as your default keyboard layout.<br />
In System -&gt; Preferences -&gt; Keyboard, press the &#8220;Layouts&#8221;-tab and press the &#8220;+&#8221;-button.</p>
<p>If everything is done right you should have the basic Norwegian mac layout.</p>
<h5>NB!</h5>
<p>This layout is <em>not</em> equivalent to the real Norwegian mac layout. There is a lot of keys that needs mapping to do so. The original layout looks like <a href="http://files.dibon.net/xkb/macos_kb.html">this</a> (keys are pressed from left to right).</p>
<h5>Edit:</h5>
<p>It seems that if you use the newer versions of Apple&#8217;s keyboard you have to change the setup for the TLDE-key and the LSGT-key. I don&#8217;t know why, but it works!</p>
]]></content:encoded>
			<wfw:commentRss>http://dibon.net/wordpress/norwegian-mac-keyboard-layout-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
	</channel>
</rss>

