chris.bracken.jp

Statically generated site for chris.bracken.jp
git clone https://git.bracken.jp/chris.bracken.jp.git
Log | Files | Refs

index.xml (16134B)


      1 <?xml version="1.0" encoding="utf-8" standalone="yes"?>
      2 <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
      3   <channel>
      4     <title>Howto on Chris Bracken</title>
      5     <link>https://chris.bracken.jp/tags/howto/</link>
      6     <description>Recent content in Howto on Chris Bracken</description>
      7     <generator>Hugo -- gohugo.io</generator>
      8     <language>en</language>
      9     <managingEditor>chris@bracken.jp (Chris Bracken)</managingEditor>
     10     <webMaster>chris@bracken.jp (Chris Bracken)</webMaster>
     11     <lastBuildDate>Tue, 10 May 2011 00:00:00 +0000</lastBuildDate><atom:link href="https://chris.bracken.jp/tags/howto/index.xml" rel="self" type="application/rss+xml" />
     12     <item>
     13       <title>Moving to the US: Importing a Canadian Vehicle</title>
     14       <link>https://chris.bracken.jp/2011/05/moving-to-us-letter-of-compliance/</link>
     15       <pubDate>Tue, 10 May 2011 00:00:00 +0000</pubDate>
     16       <author>chris@bracken.jp (Chris Bracken)</author>
     17       <guid>https://chris.bracken.jp/2011/05/moving-to-us-letter-of-compliance/</guid>
     18       <description>&lt;p&gt;A big difference between the last time I moved to the US and this time is that
     19 this time, I&amp;rsquo;ve got a lot more stuff. One of those things is a Nissan Rogue
     20 that&amp;rsquo;s been quietly living its life in Canada. Faced with the prospect of
     21 selling the car and buying a new one, I chose instead to import the one I know
     22 and love.  Here is my story.  But be forewarned, it is not for the faint of
     23 heart.&lt;/p&gt;
     24 &lt;figure&gt;&lt;img src=&#34;https://chris.bracken.jp/post/2011-05-10-futile.jpg&#34;
     25     alt=&#34;Scrawny kid vs sumo wrestler&#34;&gt;
     26 &lt;/figure&gt;
     27 
     28 &lt;p&gt;To import a vehicle to the US from Canada, you need to undertake a series of
     29 quests. These are detailed on the &lt;a href=&#34;http://stnw.nhtsa.gov/cars/rules/import/&#34;&gt;NHTSA website&lt;/a&gt; under the heading
     30 &lt;em&gt;Vehicle Importation Guidelines (Canadian)&lt;/em&gt;. As of May 2011, you need the
     31 following items in increasing order of difficulty:&lt;/p&gt;
     32 &lt;p&gt;&lt;strong&gt;[easy]&lt;/strong&gt; The following information about your car:&lt;/p&gt;
     33 &lt;ol&gt;
     34 &lt;li&gt;VIN&lt;/li&gt;
     35 &lt;li&gt;Make/Model/Year&lt;/li&gt;
     36 &lt;li&gt;Month/Year of manufacture&lt;/li&gt;
     37 &lt;li&gt;Registration &amp;amp; ownership information&lt;/li&gt;
     38 &lt;/ol&gt;
     39 &lt;p&gt;&lt;strong&gt;[easy]&lt;/strong&gt; &lt;a href=&#34;http://www.epa.gov/oms/imports/&#34;&gt;EPA Form 3520-1&lt;/a&gt;. You will likely be importing your
     40 vehicle under &lt;em&gt;code EE: identical in all material respects to a US certified
     41 version&lt;/em&gt;.&lt;/p&gt;
     42 &lt;p&gt;&lt;strong&gt;[easy]&lt;/strong&gt; &lt;a href=&#34;http://www.nhtsa.gov/cars/rules/import/&#34;&gt;NHTSA Form HS-7&lt;/a&gt;. You will most likely be importing your
     43 vehicle under box 2B, for vehicles that complied with Canadian CMVSA
     44 regulations at their time of manufacture and where the manufacturer attests
     45 that, with a few exceptions, it meets US regulations; see final item.&lt;/p&gt;
     46 &lt;p&gt;&lt;strong&gt;[medium]&lt;/strong&gt; A letter on the manufacturer&amp;rsquo;s letterhead from the Canadian
     47 distributor, stating that there are no open recalls or service campaigns on the
     48 vehicle. I&amp;rsquo;m not sure if this is required, but Nissan Canada thought it would
     49 be.&lt;/p&gt;
     50 &lt;p&gt;&lt;strong&gt;[hard]&lt;/strong&gt; A letter from the vehicle’s original manufacturer, on
     51 the manufacturer’s letterhead identifying the vehicle by vehicle identification
     52 number (VIN) and stating that the vehicle conforms to all applicable FMVSS
     53 &amp;ldquo;except for the labeling requirements of Standards Nos. 101 &lt;em&gt;Controls and
     54 Displays&lt;/em&gt; and 110 &lt;em&gt;Tire Selection and Rims&lt;/em&gt; or 120 &lt;em&gt;Tire Selection and Rims for
     55 Motor Vehicles other than Passenger Cars&lt;/em&gt;, and/or the specifications of
     56 Standard No. 108 &lt;em&gt;Lamps, Reflective Devices, and Associated Equipment&lt;/em&gt;,
     57 relating to daytime running lamps.&amp;rdquo;&lt;/p&gt;
     58 &lt;p&gt;Items 1-3 are left as an exercise to the reader. I will focus here on items 4
     59 and 5 to save you the 14 hours of accumulated hold time and multiple phone
     60 calls. Prepare yourself friend, for here begins a journey of hurt and
     61 frustration, but you will prevail.&lt;/p&gt;
     62 &lt;p&gt;Let&amp;rsquo;s start with item 4. I gave &lt;a href=&#34;http://www.nissan.ca/common/footer/en/contact.html&#34;&gt;Nissan Canada&lt;/a&gt; a ring at
     63 1-800-387-0122 and managed to make it through the phone navigation system to a
     64 human operator. I told them I was importing a Canadian Nissan into the States
     65 and needed a &lt;em&gt;Letter of Compliance&lt;/em&gt;. After a bit of digging, they stated that
     66 such letters are only provided by &lt;em&gt;Nissan North America,&lt;/em&gt; but they would
     67 instead mail out two other letters on Nissan letterhead:&lt;/p&gt;
     68 &lt;ol&gt;
     69 &lt;li&gt;A letter stating the VIN and that the vehicle has no pending recalls or
     70 service campaigns on it.&lt;/li&gt;
     71 &lt;li&gt;In place of a &lt;em&gt;Certificate of Origin&lt;/em&gt; (which Nissan Canada does not
     72 provide), a letter stating the VIN and that the vehicle was manufactured for
     73 sale in the Canadian market and complied with all safety and emission
     74 regulations at the time of manufacture.&lt;/li&gt;
     75 &lt;/ol&gt;
     76 &lt;p&gt;We&amp;rsquo;re almost there, but your next and final mission is also the most
     77 challenging: the &lt;em&gt;Letter of Compliance&lt;/em&gt;. Call &lt;a href=&#34;http://www.nissanusa.com/apps/contactus&#34;&gt;Nissan North
     78 America&lt;/a&gt; Consumer Affairs Department at 1-800-647-7261. Navigate
     79 through the phone system to an operator - get their name and extension. They
     80 may ask for your VIN only to find it&amp;rsquo;s not in their system. Canadian VINs are
     81 not in their system. Some operators thought they were, others were sure they
     82 weren&amp;rsquo;t. They&amp;rsquo;re not. Many operators tried and failed to find it. Ask them to
     83 open a file, give them the vehicle information and your info and get the file
     84 number. Use this number whenever you call.&lt;/p&gt;
     85 &lt;p&gt;Here are the five steps to success:&lt;/p&gt;
     86 &lt;ol&gt;
     87 &lt;li&gt;Tell the operator that you&amp;rsquo;re importing a Canadian Nissan vehicle to the US
     88 and that you need a &lt;em&gt;Letter of Compliance&lt;/em&gt; stating the VIN and that the
     89 vehicle was built to conform to Canadian and United States EPA emissions
     90 standards and all US Federal motor vehicle standards except for daytime
     91 running light brightness. There is a very good chance they&amp;rsquo;ve never heard of
     92 this. Get them to talk to their supervisor, and their supervisor. Anyone.
     93 Someone will know.&lt;/li&gt;
     94 &lt;li&gt;They will tell you that the vehicle needs to have its daytime running lights
     95 disabled before they will issue the letter of compliance. All the government
     96 rules seem to specifically exclude the daytime running lights, and the
     97 letter they issue even states that the vehicle doesn&amp;rsquo;t meet that standard,
     98 but for whatever reason they want a copy of a work statement showing the
     99 work was done. Remember to get the operator&amp;rsquo;s name and extension and the
    100 fax number for the work statement before you hang up.&lt;/li&gt;
    101 &lt;li&gt;Get the daytime running lights disabled. It&amp;rsquo;s a setting change in the
    102 on-board computer; your local dealer will do this in under 30 mins for $50
    103 or so. &lt;/li&gt;
    104 &lt;li&gt;Fax your the work statement and put your name, return fax number and a
    105 request for the &lt;em&gt;Letter of Compliance&lt;/em&gt; on the cover sheet. Phone Nissan
    106 North America Consumer Affairs back. The phone navigation system will give
    107 you hope that you can input an extension directly, only to find it only
    108 accepts 5-digit extensions but your rep has a 6-digit extension. You&amp;rsquo;ll end
    109 up back in the queue. Ask whoever you get to put you through to your
    110 previous rep, by extension. When you get through, say that you sent the fax
    111 and request the letter. Ask them to phone you back when they&amp;rsquo;ve faxed it.&lt;/li&gt;
    112 &lt;li&gt;You&amp;rsquo;ll get the fax eventually - &lt;em&gt;check the information!&lt;/em&gt; On my letter, the
    113 year, model and VIN were all incorrect, though they got my name right. If
    114 it&amp;rsquo;s incorrect, try again.&lt;/li&gt;
    115 &lt;/ol&gt;
    116 &lt;p&gt;You now have everything you need to import your Nissan to the States. Good
    117 luck my friends, I don&amp;rsquo;t envy you, but know that I am with you and that victory
    118 will someday be yours too.&lt;/p&gt;
    119 </description>
    120     </item>
    121     
    122     <item>
    123       <title>Installing Mozc on Ubuntu</title>
    124       <link>https://chris.bracken.jp/2011/04/installing-mozc-on-ubuntu/</link>
    125       <pubDate>Fri, 22 Apr 2011 00:00:00 +0000</pubDate>
    126       <author>chris@bracken.jp (Chris Bracken)</author>
    127       <guid>https://chris.bracken.jp/2011/04/installing-mozc-on-ubuntu/</guid>
    128       <description>&lt;p&gt;If you&amp;rsquo;re a Japanese speaker, one of the first things you do when you install a
    129 fresh Linux distribution is to install a decent &lt;a href=&#34;https://en.wikipedia.org/wiki/Japanese_IME&#34;&gt;Japanese IME&lt;/a&gt;.
    130 Ubuntu defaults to &lt;a href=&#34;https://sourceforge.jp/projects/anthy/news/&#34;&gt;Anthy&lt;/a&gt;, but I personally prefer &lt;a href=&#34;https://code.google.com/p/mozc/&#34;&gt;Mozc&lt;/a&gt;, and
    131 that&amp;rsquo;s what I&amp;rsquo;m going to show you how to install here.&lt;/p&gt;
    132 &lt;p&gt;&lt;em&gt;Update (2011-05-01):&lt;/em&gt; Found an older &lt;a href=&#34;https://www.youtube.com/watch?v=MfgjTCXZ2-s&#34;&gt;video tutorial&lt;/a&gt; on YouTube
    133 which provides an alternative (and potentially more comprehensive) solution for
    134 Japanese support on 10.10 using ibus instead of uim, which is the better choice
    135 for newer releases.&lt;/p&gt;
    136 &lt;p&gt;&lt;em&gt;Update (2011-10-25):&lt;/em&gt; The software installation part of this process got a
    137 whole lot easier in Ubuntu releases after Natty, and as noted above, I&amp;rsquo;d
    138 recommend sticking with ibus over uim.&lt;/p&gt;
    139 &lt;h3 id=&#34;japanese-input-basics&#34;&gt;Japanese Input Basics&lt;/h3&gt;
    140 &lt;p&gt;Before we get going, let&amp;rsquo;s understand a bit about how Japanese input works on
    141 computers. Japanese comprises three main character sets: the two phonetic
    142 character sets, hiragana and katakana at 50 characters each, plus many
    143 thousands of Kanji, each with multiple readings. Clearly a full keyboard is
    144 impractical, so a mapping is required.&lt;/p&gt;
    145 &lt;p&gt;Input happens in two steps. First, you input the text phonetically, then you
    146 convert it to a mix of kanji and kana.&lt;/p&gt;
    147 &lt;figure&gt;&lt;img src=&#34;https://chris.bracken.jp/post/2011-04-22-henkan.png&#34;
    148     alt=&#34;Japanese IME completion menu&#34;&gt;
    149 &lt;/figure&gt;
    150 
    151 &lt;p&gt;Over the years, two main mechanisms evolved to input kana. The first was common
    152 on old &lt;em&gt;wapuro&lt;/em&gt;, and assigns a kana to each key on the keyboard—e.g. where
    153 the &lt;em&gt;A&lt;/em&gt; key appears on a QWERTY keyboard, you&amp;rsquo;ll find a ち. This is how our
    154 grandparents hacked out articles for the local &lt;em&gt;shinbun&lt;/em&gt;, but I suspect only a
    155 few die-hard traditionalists still do this. The second and more common method
    156 is literal &lt;a href=&#34;https://en.wikipedia.org/wiki/Wapuro&#34;&gt;transliteration of roman characters into kana&lt;/a&gt;. You
    157 type &lt;em&gt;fujisan&lt;/em&gt; and out comes ふじさん.&lt;/p&gt;
    158 &lt;p&gt;Once the phonetic kana have been input, you execute a conversion step wherein
    159 the input is transformed into the appropriate mix of kanji and kana. Given the
    160 large number of homonyms in Japanese, this step often involves disambiguating
    161 your input by selecting the intended kanji. For example, the &lt;em&gt;mita&lt;/em&gt; in &lt;em&gt;eiga wo
    162 mita&lt;/em&gt; (I watched a movie) is properly rendered as 観た whereas the &lt;em&gt;mita&lt;/em&gt; in
    163 &lt;em&gt;kuruma wo mita&lt;/em&gt; (I saw a car) should be 見た, and in neither case is it &lt;em&gt;mita&lt;/em&gt;
    164 as in the place name &lt;em&gt;Mita-bashi&lt;/em&gt; (Mita bridge) which is written 三田.&lt;/p&gt;
    165 &lt;h3 id=&#34;some-implementation-details&#34;&gt;Some Implementation Details&lt;/h3&gt;
    166 &lt;p&gt;Let&amp;rsquo;s look at implementation. There are two main components used in inputting
    167 Japanese text:&lt;/p&gt;
    168 &lt;p&gt;The GUI system (e.g. ibus, uim) is responsible for:&lt;/p&gt;
    169 &lt;ol&gt;
    170 &lt;li&gt;Maintaining and switching the current input mode:
    171 ローマ字、ひらがな、カタカナ、半額カタカナ.&lt;/li&gt;
    172 &lt;li&gt;Transliteration of character input into kana: &lt;em&gt;ku&lt;/em&gt; into く,
    173 &lt;em&gt;nekko&lt;/em&gt; into ねっこ, &lt;em&gt;xtu&lt;/em&gt; into っ.&lt;/li&gt;
    174 &lt;li&gt;Managing the text under edit (the underlined stuff) and the
    175 drop-down list of transliterations.&lt;/li&gt;
    176 &lt;li&gt;Ancillary functions such as supplying a GUI for custom dictionary
    177 management, kanji lookup by radical, etc.&lt;/li&gt;
    178 &lt;/ol&gt;
    179 &lt;p&gt;The transliteration engine (e.g. Anthy, Mozc) is responsible for transforming a
    180 piece of input text, usually in kana form, into kanji: for example みる into
    181 one of: 見る、観る、診る、視る. This involves:&lt;/p&gt;
    182 &lt;ol&gt;
    183 &lt;li&gt;Breaking the input phrase into components.&lt;/li&gt;
    184 &lt;li&gt;Transforming each component into the appropriate best guess based on context
    185 and historical input.&lt;/li&gt;
    186 &lt;li&gt;Supplying alternative transformations in case the best guess was incorrect.&lt;/li&gt;
    187 &lt;/ol&gt;
    188 &lt;h3 id=&#34;why-mozc&#34;&gt;Why Mozc?&lt;/h3&gt;
    189 &lt;p&gt;TL;DR: because it&amp;rsquo;s better. Have a look at the conversion list up at the top of
    190 this post. The input is &lt;em&gt;kinou&lt;/em&gt;, for which there are two main conversion
    191 candidates: 機能 (feature) and 昨日 (yesterday). Notice however, that it also
    192 supplies several conversions for yesterday&amp;rsquo;s date in various formats, including
    193 「平成23年4月21日」 using &lt;a href=&#34;https://en.wikipedia.org/wiki/Japanese_era_name&#34;&gt;Japanese Era Name&lt;/a&gt; rather than the
    194 Western notation 2011. This is just one small improvement among dozens of
    195 clever tricks it performs. If you&amp;rsquo;re thinking this bears an uncanny resemblance
    196 to tricks that &lt;a href=&#34;https://www.google.com/intl/ja/ime/&#34;&gt;Google&amp;rsquo;s Japanese IME&lt;/a&gt; supports, you&amp;rsquo;re right: Mozc
    197 originated from the same codebase.&lt;/p&gt;
    198 &lt;h3 id=&#34;switching-to-mozc&#34;&gt;Switching to Mozc&lt;/h3&gt;
    199 &lt;p&gt;So let&amp;rsquo;s assume you&amp;rsquo;re now convinced to abandon Anthy and switch to Mozc.
    200 You&amp;rsquo;ll need to make some changes. Here are the steps:&lt;/p&gt;
    201 &lt;p&gt;If you haven&amp;rsquo;t yet done so, install some Japanese fonts from either Software
    202 Centre or Synaptic. I&amp;rsquo;d recommend grabbing the &lt;em&gt;ttf-takao&lt;/em&gt; package.&lt;/p&gt;
    203 &lt;p&gt;Next up, we&amp;rsquo;ll install and configure Mozc.&lt;/p&gt;
    204 &lt;ol&gt;
    205 &lt;li&gt;&lt;strong&gt;Install ibus-mozc:&lt;/strong&gt; &lt;code&gt;sudo apt-get install ibus-mozc&lt;/code&gt;&lt;/li&gt;
    206 &lt;li&gt;&lt;strong&gt;Restart the ibus daemon:&lt;/strong&gt; &lt;code&gt;/usr/bin/ibus-daemon --xim -r -d&lt;/code&gt;&lt;/li&gt;
    207 &lt;li&gt;&lt;strong&gt;Set your input method to mozc:&lt;/strong&gt;
    208 &lt;ol&gt;
    209 &lt;li&gt;Open &lt;em&gt;Keyboard Input Methods&lt;/em&gt; settings.&lt;/li&gt;
    210 &lt;li&gt;Select the &lt;em&gt;Input Method&lt;/em&gt; tab.&lt;/li&gt;
    211 &lt;li&gt;From the &lt;em&gt;Select an input method&lt;/em&gt; drop-down, select Japanese, then mozc from
    212 the sub-menu.&lt;/li&gt;
    213 &lt;li&gt;Select &lt;em&gt;Japanese - Anthy&lt;/em&gt; from the list, if it appears there, and click
    214 &lt;em&gt;Remove&lt;/em&gt;.&lt;/li&gt;
    215 &lt;/ol&gt;
    216 &lt;/li&gt;
    217 &lt;li&gt;&lt;strong&gt;Optionally, remove Anthy from your system:&lt;/strong&gt; &lt;code&gt;sudo apt-get autoremove anthy&lt;/code&gt;&lt;/li&gt;
    218 &lt;/ol&gt;
    219 &lt;p&gt;Log out, and back in. You should see an input method menu in the menu
    220 bar at the top of the screen.&lt;/p&gt;
    221 &lt;p&gt;That&amp;rsquo;s it, Mozcを楽しんでください!&lt;/p&gt;
    222 </description>
    223     </item>
    224     
    225   </channel>
    226 </rss>