<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    <title>English Banditry (Entries tagged as computers)</title>
    <link>http://englishbanditry.com/boke/</link>
    <description>The struggle to survive in Asia.</description>
    <dc:language>en</dc:language>
    <generator>Serendipity 1.3.1 - http://www.s9y.org/</generator>
    <pubDate>Mon, 18 Aug 2008 23:19:57 GMT</pubDate>

    <image>
        <url>http://englishbanditry.com/boke/templates/bulletproof/img/s9y_banner_small.png</url>
        <title>RSS: English Banditry - The struggle to survive in Asia.</title>
        <link>http://englishbanditry.com/boke/</link>
        <width>100</width>
        <height>21</height>
    </image>

<item>
    <title>How to merge XML files for Supermemo CE using XSLT (especially for Chinese/Japanese)</title>
    <link>http://englishbanditry.com/boke/index.php?/archives/51-How-to-merge-XML-files-for-Supermemo-CE-using-XSLT-especially-for-ChineseJapanese.html</link>
            <category>SRS and Supermemo</category>
    
    <comments>http://englishbanditry.com/boke/index.php?/archives/51-How-to-merge-XML-files-for-Supermemo-CE-using-XSLT-especially-for-ChineseJapanese.html#comments</comments>
    <wfw:comment>http://englishbanditry.com/boke/wfwcomment.php?cid=51</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://englishbanditry.com/boke/rss.php?version=2.0&amp;type=comments&amp;cid=51</wfw:commentRss>
    

    <author>nospam@example.com (your host)</author>
    <content:encoded>
    &lt;br /&gt;
&lt;p&gt;Recently I&#039;ve wanted to start adding more cards to my Supermemo CE collection. Much to my shock and disgust the only way to do it is to export XML, merge the two XML&#039;s externally, and then reimport. It&#039;s completely impractical when your collection is 3,000 plus elements and you just want to add ~50 new cards at a time. (This was MUCH easier on Palm Supermemo 5 years ago.)&lt;/p&gt;&lt;p&gt;This is the XSLT code (merge.xslt) that should do the trick for merging:&lt;font color=&quot;#cc0033&quot;&gt; &lt;/font&gt;&lt;/p&gt;&lt;br /&gt;&lt;hr width=&quot;100%&quot; size=&quot;2&quot; /&gt;&lt;pre&gt;&amp;lt;xsl:transform version=&amp;quot;1.0&amp;quot; &lt;br /&gt;  xmlns:xsl=&amp;quot;http://www.w3.org/1999/XSL/Transform&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;xsl:output method=&amp;quot;xml&amp;quot; &lt;br /&gt;            encoding=&amp;quot;UTF-8&amp;quot;&lt;br /&gt;            indent=&amp;quot;no&amp;quot; /&amp;gt;&lt;br /&gt;  &amp;lt;xsl:template match=&amp;quot;/&amp;quot;&amp;gt;&lt;br /&gt;    &amp;lt;SuperMemoCollection&amp;gt;&lt;br /&gt;      &amp;lt;xsl:copy-of select=&amp;quot;//SuperMemoCollection/SuperMemoElement&amp;quot;/&amp;gt;        &lt;br /&gt;      &amp;lt;xsl:copy-of select=&amp;quot;document(&#039;file_to_append.xml&#039;)//SuperMemoCollection/SuperMemoElement&amp;quot;/&amp;gt;        &lt;br /&gt;    &amp;lt;/SuperMemoCollection&amp;gt;&lt;br /&gt;  &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;&amp;lt;/xsl:transform&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;hr width=&quot;100%&quot; size=&quot;2&quot; /&gt;&lt;p&gt;Then get some XML processing thinggy like nxslt (freeware) and just do:&lt;/p&gt;&lt;pre&gt;nxslt.exe exported.xml merge.xslt -ascii -o reimportme.xml &lt;/pre&gt;&lt;p&gt;The beautiful thing here is that your file_to_append.xml does NOT need to be Decimal NCR encoded. I am using a UTF-16 LE file with Japanese text right in there and merging it with the UTF-8 file that Supermemo CE exports, and nxslt converts the final output to the Supermemo CE required UTF-8 with Decimal NCR encoded Japanese automatically since I used the &amp;quot;-ascii&amp;quot; flag. &lt;/p&gt;&lt;p&gt;If you want to make it even easier you can use my Powershell script. Copy the contents of the zip to your SD card and then future additions to your collection will go this smooth:&lt;/p&gt;&lt;ol&gt;&lt;li&gt;Export collection in Supermemo CE&lt;/li&gt;&lt;li&gt;Plug you SD card into your desktop&lt;/li&gt;&lt;li&gt;Copy over new_stuff_to_add.xml to the SD card&lt;/li&gt;&lt;li&gt;Type: &lt;b&gt;.\combineSMCExml.ps1 exported.xml new_stuff_to_add.xml&lt;/b&gt;&lt;/li&gt;&lt;li&gt;Import collection (exported.xml) back into Supermemo CE&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;The zip file containing merge.xslt, nxslt.exe, and combineSMCExml.ps1 can be downloaded here: &lt;a href=&quot;http://englishbanditry.com/boke/uploads/2008/SupermemoCE/combinesmcexml.zip&quot; title=&quot;combinesmcexml.zip&quot; target=&quot;_blank&quot;&gt;combinesmcexml.zip&lt;/a&gt;.&lt;/p&gt;&lt;b&gt;&lt;p&gt;WARNING:&lt;/p&gt;&lt;/b&gt;&lt;p&gt;I encountered a very frustrating problem with nxslt -- if there are &lt;i&gt;*any*&lt;/i&gt; encoded HTML tags in new_stuff_to_add.xml (of the type &amp;amp;lt; or &amp;amp;gt;) then instead of getting the Decimal NCR encoded you need for Japanese/Chinese to show up in SMCE you will get a string of ???? question marks. &lt;strike&gt;&lt;i&gt;If anyone knows a workaround, please let me know.&lt;/i&gt;&lt;/strike&gt;&lt;i&gt;  &lt;font color=&quot;#0033cc&quot;&gt;8/18: &lt;/font&gt;&lt;/i&gt;&lt;i&gt;&lt;font color=&quot;#0033cc&quot;&gt;It seems upgrading to nxslt2 does the trick, the only problem is the &#039;-ascii&#039; tag disappears.&lt;/font&gt;&lt;/i&gt;&lt;/p&gt;&lt;p /&gt; 
    </content:encoded>

    <pubDate>Fri, 15 Aug 2008 11:53:14 -0700</pubDate>
    <guid isPermaLink="false">http://englishbanditry.com/boke/index.php?/archives/51-guid.html</guid>
    <category>computers</category>
<category>language learning</category>
<category>srs</category>
<category>studying</category>
<category>supermemo</category>

</item>
<item>
    <title>How to make your own Supermemo XML file (especially for Chinese and Japanese).</title>
    <link>http://englishbanditry.com/boke/index.php?/archives/45-How-to-make-your-own-Supermemo-XML-file-especially-for-Chinese-and-Japanese..html</link>
            <category>SRS and Supermemo</category>
    
    <comments>http://englishbanditry.com/boke/index.php?/archives/45-How-to-make-your-own-Supermemo-XML-file-especially-for-Chinese-and-Japanese..html#comments</comments>
    <wfw:comment>http://englishbanditry.com/boke/wfwcomment.php?cid=45</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://englishbanditry.com/boke/rss.php?version=2.0&amp;type=comments&amp;cid=45</wfw:commentRss>
    

    <author>nospam@example.com (your host)</author>
    <content:encoded>
    &lt;br /&gt;
&lt;p&gt;I am interested in getting items into my SRS with as little effort as possible. Every minute wasted inputting data is a minute that could have otherwise been used to learn more. I am creating templates to make JGloss (a program to add Furigana and definitions to Japanese text semi-automatically) export directly to Supermemo XML format. It can be a &lt;i&gt;bitch&lt;/i&gt; because Supermemo gives no info why an XML file will not import when import fails. Here are some details I needed in the process:&lt;/p&gt;&lt;h2&gt;Supermemo 2006 XML Format&lt;/h2&gt;&lt;hr width=&quot;100%&quot; size=&quot;2&quot; /&gt;I have experimentally determined that the files attached below are the MINIMUM of data needed for Supermemo 2006 to import one Question and Answer without any errors into a named folder. The text file can be in plain ASCII for English. If you want another language, the text file can be in UTF-8, UTF-16 little or big, or ASCII + Decimal NCR format. I recommend Babelpad for conversion, though notepad can save to UTF-8. The attached UTF-8, UTF-16, and NCR samples files have Japanese and Chinese text in them. &lt;p&gt;If you try to import to a template with text elements, you will get scrambled characters. &lt;b&gt;You must import to a template with two html elements&lt;/b&gt;, one marked as the answer. (You can also &#039;apply&#039; such a template after importing and the scrambled characters will be fixed.) If you do not &lt;b&gt;set the template as an &#039;Item&#039; template &lt;/b&gt;(leave it as a &#039;Topic&#039; template) then you will probably have a problem -- so double check that if no Question or Answer contents shows up.&lt;/p&gt;&lt;p&gt;&lt;b&gt;IF YOU WANT TO PUT HTML CODE BETWEEN THE &amp;lt;QUESTION&amp;gt;&amp;lt;/QUESTION&amp;gt; OR &amp;lt;ANSWER&amp;gt;&amp;lt;/ANSWER&amp;gt; TAGS, the HTML must be &lt;u&gt;encoded&lt;/u&gt;!  Plain HTML will interfere with Supermemo&#039;s XML parsing and the import will fail.&lt;/b&gt;&lt;/p&gt;&lt;p&gt;If you have any problems, my recommendations are as follows:&lt;/p&gt;&lt;p&gt;1. Create a brand new collection and brand new blank item. From the tool bar add two HTML elements to a blank Item (if there were any fields already on it, delete them) and then set one as the answer. Save this as the Default template and also name it. If import XML works in a new collection, you have deduced the problem lies somewhere in your existing collection.&lt;/p&gt;&lt;p&gt;2. Try importing all of the different sample files below. If even ASCII won&#039;t work, the problem is not Chinese or Japanese. &lt;/p&gt;&lt;p&gt;Sample XML files: &lt;a target=&quot;_blank&quot; title=&quot;xmloutputtestonly.xml&quot; href=&quot;http://englishbanditry.com/boke/uploads/2008/Supermemo2006/xmloutputtestonly.xml&quot;&gt;ASCII (UTF-8)&lt;/a&gt; | &lt;a href=&quot;http://englishbanditry.com/boke/uploads/2008/Supermemo2006/xmloutputtestonly-UTF-8.xml&quot; title=&quot;xmloutputtestonly-UTF-8.xml&quot; target=&quot;_blank&quot;&gt;UTF-8&lt;/a&gt; | &lt;a href=&quot;http://englishbanditry.com/boke/uploads/2008/Supermemo2006/xmloutputtestonly-UTF-16little.xml&quot; title=&quot;xmloutputtestonly-UTF-16little.xml&quot; target=&quot;_blank&quot;&gt;UTF-16 LE&lt;/a&gt; | &lt;a href=&quot;http://englishbanditry.com/boke/uploads/2008/Supermemo2006/xmloutputtestonly-UTF-16big.xml&quot; title=&quot;xmloutputtestonly-UTF-16big.xml&quot; target=&quot;_blank&quot;&gt;UTF-16 BE&lt;/a&gt; | &lt;a href=&quot;http://englishbanditry.com/boke/uploads/2008/Supermemo2006/xmloutputtestonly-ascii_and_decimalNCR.xml&quot; title=&quot;xmloutputtestonly-ascii_and_decimalNCR.xml&quot; target=&quot;_blank&quot;&gt;ASCII and Decimal NCR (UTF-8)&lt;/a&gt;&lt;/p&gt;&lt;h2&gt;Supermemo CE XML Format&lt;/h2&gt;&lt;hr width=&quot;100%&quot; size=&quot;2&quot; /&gt;The minimum XML file required to import into Supermemo CE is a bit simpler as &lt;b&gt;the ID element is not required&lt;/b&gt;. (That means you can get by without any programming -- just make a header XML, footer XML, several element XML&#039;s and then copy header.xml+1.xml+2.xml+footer.xml output.xml.) There is also no need for a extra outer topic element to create a folder as Supermemo CE is flat anyhow.&lt;p&gt;My experimentation shows: perfect results from English only (ASCII) and from Decimal NCR format when using Chinese/Japanese or a mix thereof. &lt;b&gt;If there is ENCODED HTML &lt;/b&gt;between the answer or question tags, it will work properly if you tick the &amp;quot;HTML&amp;quot; box from in SM CE Mode menu. Results with HTML were ugly as hell though (terrible font) and there is NO SUPPORT for RUBY tags. &lt;/p&gt;&lt;p&gt;Sample XML files that work: &lt;a href=&quot;http://englishbanditry.com/boke/uploads/2008/SupermemoCE/xmloutputtestonly.xml&quot; title=&quot;xmloutputtestonly.xml&quot; target=&quot;_blank&quot;&gt;ASCII (UTF-8)&lt;/a&gt; | &lt;a href=&quot;http://englishbanditry.com/boke/uploads/2008/SupermemoCE/xmloutputtestonly-ascii_and_decimalNCR.xml&quot; title=&quot;xmloutputtestonly-ascii_and_decimalNCR.xml&quot; target=&quot;_blank&quot;&gt;ASCII and Decimal NCR (UTF-8)&lt;/a&gt;&lt;/p&gt;&lt;p /&gt;&lt;div style=&quot;border: 1px solid gray; position: absolute; left: 0px; top: 0px; width: 16px; height: 16px; background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAABnRSTlMA+QD7AP7IFnaXAAAACXBIWXMAAA7EAAAOxAGVKw4bAAACfUlEQVR4nD2Sy0uUYRTGn/N+71wcnaYxL0gpNSm56WZEKCkRRJv6F4qIIqxNq7AoKmgTbbrRxlpEuamgAqmVRpQUFDVdnLLMSsX7jM7Fb77vvZwWoz0cOAee5/esDjxlPWV9becLpverYmZme+/N4siM1tqWXE/Z4vKB0lLaLiyapnMzz764zLz2zAwze8oWmT1mj1kxe8xFZgkAgGWUB2noQlXsyGDyUuO+Rh+AkOR8n1dPU6Zv1LxL65CNvD9AnrIlhgEpyQFo+5Obl3d36vuZuQGuO1++o4HC0v04jq23vZqyJYABIchPPYyEC+13NzWEx3q6EnB/5yfKg4ldMCAH5k4ye/iBwLKYDQUFrT/48mi6p2u/P5ZEoErmP5U8BjgWMk3Vy4CkYMFRqR8AOFJX/PU4uLoFRgs7yv8br72v6N4vALCkUFbNPfoc2rYOgBOvDydaoV0YT8ZWUW6SJYmCzhVzZR0JwQTHIHtjYMWhjSK8WWfeAHkgA3JhPFFRi9k+AnKnnsffHrOGBRyyp1/Ioy3MoFUbkHkN+PrztE7nES2gWkgxRGmUXdkLCzCEM1HwB6dlVRQEC1BNBMjpkyOmNjVNQ4M0ln2XokqIQACWAUjzatz5mpXXP/iJmExlVH9c9w8U3Fwa5KIqfvHvyg5ZnPomqpvBACBNkGhk3j07QIY1yOTVKHyKxoOVlbGDX+q7ivjpGO+FqG2GBQBSzAudvf6tDxY2F3G8LWsq236qZAMaJxJXFzC8ADtdGDeBPb3QDICKygpJAGh57Gz3ZPfHNSdc/JnzpsaVV4FoR3DnhSXg/y8tSZCZHcbQcQ612WhroL6dysMASmkA/wALgWlRuJztiwAAAABJRU5ErkJggg==); background-repeat: no-repeat; background-color: rgb(238, 238, 238); cursor: pointer; z-index: 65535; display: none;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;border: 1px solid gray; position: absolute; left: 0px; top: 0px; width: 16px; height: 16px; background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAABnRSTlMA+QD7AP7IFnaXAAAACXBIWXMAAA7EAAAOxAGVKw4bAAACfUlEQVR4nD2Sy0uUYRTGn/N+71wcnaYxL0gpNSm56WZEKCkRRJv6F4qIIqxNq7AoKmgTbbrRxlpEuamgAqmVRpQUFDVdnLLMSsX7jM7Fb77vvZwWoz0cOAee5/esDjxlPWV9becLpverYmZme+/N4siM1tqWXE/Z4vKB0lLaLiyapnMzz764zLz2zAwze8oWmT1mj1kxe8xFZgkAgGWUB2noQlXsyGDyUuO+Rh+AkOR8n1dPU6Zv1LxL65CNvD9AnrIlhgEpyQFo+5Obl3d36vuZuQGuO1++o4HC0v04jq23vZqyJYABIchPPYyEC+13NzWEx3q6EnB/5yfKg4ldMCAH5k4ye/iBwLKYDQUFrT/48mi6p2u/P5ZEoErmP5U8BjgWMk3Vy4CkYMFRqR8AOFJX/PU4uLoFRgs7yv8br72v6N4vALCkUFbNPfoc2rYOgBOvDydaoV0YT8ZWUW6SJYmCzhVzZR0JwQTHIHtjYMWhjSK8WWfeAHkgA3JhPFFRi9k+AnKnnsffHrOGBRyyp1/Ioy3MoFUbkHkN+PrztE7nES2gWkgxRGmUXdkLCzCEM1HwB6dlVRQEC1BNBMjpkyOmNjVNQ4M0ln2XokqIQACWAUjzatz5mpXXP/iJmExlVH9c9w8U3Fwa5KIqfvHvyg5ZnPomqpvBACBNkGhk3j07QIY1yOTVKHyKxoOVlbGDX+q7ivjpGO+FqG2GBQBSzAudvf6tDxY2F3G8LWsq236qZAMaJxJXFzC8ADtdGDeBPb3QDICKygpJAGh57Gz3ZPfHNSdc/JnzpsaVV4FoR3DnhSXg/y8tSZCZHcbQcQ612WhroL6dysMASmkA/wALgWlRuJztiwAAAABJRU5ErkJggg==); background-repeat: no-repeat; background-color: rgb(238, 238, 238); cursor: pointer; z-index: 65535; display: none;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;border: 1px solid gray; position: absolute; left: 0px; top: 0px; width: 16px; height: 16px; background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAABnRSTlMA+QD7AP7IFnaXAAAACXBIWXMAAA7EAAAOxAGVKw4bAAACfUlEQVR4nD2Sy0uUYRTGn/N+71wcnaYxL0gpNSm56WZEKCkRRJv6F4qIIqxNq7AoKmgTbbrRxlpEuamgAqmVRpQUFDVdnLLMSsX7jM7Fb77vvZwWoz0cOAee5/esDjxlPWV9becLpverYmZme+/N4siM1tqWXE/Z4vKB0lLaLiyapnMzz764zLz2zAwze8oWmT1mj1kxe8xFZgkAgGWUB2noQlXsyGDyUuO+Rh+AkOR8n1dPU6Zv1LxL65CNvD9AnrIlhgEpyQFo+5Obl3d36vuZuQGuO1++o4HC0v04jq23vZqyJYABIchPPYyEC+13NzWEx3q6EnB/5yfKg4ldMCAH5k4ye/iBwLKYDQUFrT/48mi6p2u/P5ZEoErmP5U8BjgWMk3Vy4CkYMFRqR8AOFJX/PU4uLoFRgs7yv8br72v6N4vALCkUFbNPfoc2rYOgBOvDydaoV0YT8ZWUW6SJYmCzhVzZR0JwQTHIHtjYMWhjSK8WWfeAHkgA3JhPFFRi9k+AnKnnsffHrOGBRyyp1/Ioy3MoFUbkHkN+PrztE7nES2gWkgxRGmUXdkLCzCEM1HwB6dlVRQEC1BNBMjpkyOmNjVNQ4M0ln2XokqIQACWAUjzatz5mpXXP/iJmExlVH9c9w8U3Fwa5KIqfvHvyg5ZnPomqpvBACBNkGhk3j07QIY1yOTVKHyKxoOVlbGDX+q7ivjpGO+FqG2GBQBSzAudvf6tDxY2F3G8LWsq236qZAMaJxJXFzC8ADtdGDeBPb3QDICKygpJAGh57Gz3ZPfHNSdc/JnzpsaVV4FoR3DnhSXg/y8tSZCZHcbQcQ612WhroL6dysMASmkA/wALgWlRuJztiwAAAABJRU5ErkJggg==); background-repeat: no-repeat; background-color: rgb(238, 238, 238); cursor: pointer; z-index: 65535; display: none;&quot;&gt;&lt;/div&gt; 
    </content:encoded>

    <pubDate>Fri, 18 Jul 2008 12:29:44 -0700</pubDate>
    <guid isPermaLink="false">http://englishbanditry.com/boke/index.php?/archives/45-guid.html</guid>
    <category>computers</category>
<category>srs</category>
<category>supermemo</category>

</item>
<item>
    <title>Trackballs and Chinese Don't Mix</title>
    <link>http://englishbanditry.com/boke/index.php?/archives/29-Trackballs-and-Chinese-Dont-Mix.html</link>
            <category>Computer Literacy</category>
    
    <comments>http://englishbanditry.com/boke/index.php?/archives/29-Trackballs-and-Chinese-Dont-Mix.html#comments</comments>
    <wfw:comment>http://englishbanditry.com/boke/wfwcomment.php?cid=29</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://englishbanditry.com/boke/rss.php?version=2.0&amp;type=comments&amp;cid=29</wfw:commentRss>
    

    <author>nospam@example.com (your host)</author>
    <content:encoded>
    &lt;p&gt;&lt;em&gt;So&lt;/em&gt; I bought a trackball some months back when I started getting out of control carpal tunnel. One delectable side effect which I failed to anticipate was the sheer dumbfounding perplexity it seems to have brought upon my Chinese co-workers. And I have no idea why, they&#039;re all certified computer nerds.  Now it isn&#039;t all that often that a coworker needs to come over and operate my terminal in order show me something, ... but today has to be about the twentieth time someone came over to my cubicle and scraped the entire Logitech unit across the bare surface of the desk. (Yes, the same people have done it on multiple occasions each.) It wasn&#039;t just that the girl wasn&#039;t looking -- after seeing that the cursor had failed to move as she directed it, she perplexedly looked at me and then pointed on the screen to the spot where she wished me to direct the voodoo magic cursor influencer. &lt;/p&gt;&lt;p&gt;Never mind how much it delights me to see their faces flash with exasperation when they try to tap something out on my Dvorak key-mapped keyboard. &lt;/p&gt; 
    </content:encoded>

    <pubDate>Fri, 23 May 2008 12:31:12 -0700</pubDate>
    <guid isPermaLink="false">http://englishbanditry.com/boke/index.php?/archives/29-guid.html</guid>
    <category>computer literacy</category>
<category>computers</category>
<category>stupidity</category>

</item>

</channel>
</rss>