<?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>davinci’s notebook &#187; Hindi</title>
	<atom:link href="http://stargrads.net/blogs/davinci/tag/hindi/feed/" rel="self" type="application/rss+xml" />
	<link>http://stargrads.net/blogs/davinci</link>
	<description>everything is an experiment</description>
	<lastBuildDate>Mon, 21 Mar 2011 18:31:14 +0000</lastBuildDate>
	<language>fa</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Mock-up of a Yudit-like mobile application</title>
		<link>http://stargrads.net/blogs/davinci/2009/09/mock-up-of-a-yudit-like-mobile-application/</link>
		<comments>http://stargrads.net/blogs/davinci/2009/09/mock-up-of-a-yudit-like-mobile-application/#comments</comments>
		<pubDate>Wed, 02 Sep 2009 02:50:41 +0000</pubDate>
		<dc:creator>davinci</dc:creator>
				<category><![CDATA[personal]]></category>
		<category><![CDATA[programming and technical issues]]></category>
		<category><![CDATA[BlackBerry]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[Cangjie]]></category>
		<category><![CDATA[cellphone]]></category>
		<category><![CDATA[Chinese]]></category>
		<category><![CDATA[Devanagari]]></category>
		<category><![CDATA[Farsi]]></category>
		<category><![CDATA[g11n]]></category>
		<category><![CDATA[globalisation]]></category>
		<category><![CDATA[globalization]]></category>
		<category><![CDATA[Hindi]]></category>
		<category><![CDATA[i18n]]></category>
		<category><![CDATA[input methods]]></category>
		<category><![CDATA[internationalisation]]></category>
		<category><![CDATA[internationalization]]></category>
		<category><![CDATA[J2ME]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[L10n]]></category>
		<category><![CDATA[languages]]></category>
		<category><![CDATA[localisation]]></category>
		<category><![CDATA[localization]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[National Language Support]]></category>
		<category><![CDATA[Native Language Support]]></category>
		<category><![CDATA[NLS]]></category>
		<category><![CDATA[Persian]]></category>
		<category><![CDATA[porting]]></category>
		<category><![CDATA[RIM]]></category>
		<category><![CDATA[SCIM]]></category>
		<category><![CDATA[Sun]]></category>
		<category><![CDATA[Unicode editor]]></category>
		<category><![CDATA[Yudit]]></category>

		<guid isPermaLink="false">http://stargrads.net/blogs/davinci/?p=1265</guid>
		<description><![CDATA[
In this post, I describe a brief experiment to write a Yudit-like application for a mobile environment.
]]></description>
			<content:encoded><![CDATA[<p>One application that I always look for in a mobile device is a multilingual dictionary.  If one is not available, I can make do with support for multiple input methods (such as through <a href="http://en.wikipedia.org/wiki/Smart_Common_Input_Method">SCIM</a>), access to the internet, and a decent web browser (one that handles non-Latin fonts and right-to-left scripts).</p>
<p>I often end up using a program called <a href="http://www.yudit.org/">Yudit</a>, a Unicode editor written by Gáspár Sinai, even on a system that has native integrated support for multiple input methods, because it&#8217;s available on a wide range of systems and I&#8217;m familiar with the input methods bundled with it.  For example, even though the same input method is supposedly available on both Microsoft Windows and through SCIM, there may be slight differences in the keyboard layouts that can result in typos if one is not careful.</p>
<p>It seems that the majority of wireless handheld devices ship with only one input method.  Yudit does not appear to run on any of the major mobile operating systems<span id="more-1265"></span>, but it would be overkill anyway, since people aren&#8217;t likely to want to edit entire Unicode documents on their cell phones.  On the other hand, it would be useful to be able to switch input methods, even if only to type a few words into an e-mail, or to look something up in an online dictionary.</p>
<p>In adapting input methods designed for personal computers to cellphones, one immediately runs into the problem that what would have been a single keystroke on a full-sized keyboard becomes a key combination or a series of taps on a keypad.  With the <a href="http://en.wikipedia.org/wiki/Predictive_text">predictive text</a> systems used on some cellphones, one also runs into the problem of <a href="http://en.wikipedia.org/wiki/Predictive_text#Textonyms">textonyms</a>.</p>
<p>I wanted to see if I could port some of Yudit&#8217;s input methods to a mobile environment, so I ignored these problems for the moment and assumed, for the sake of simplicity, that the device had a full-sized keyboard.  I also decided to write a Java <a href="http://en.wikipedia.org/wiki/MIDlet">MIDlet</a>, because these can be run on a number of different mobile platforms.  (Yudit itself is written in C++.)</p>
<p>Even this simplified version of the problem turned out not to be so easy.  I tried using the <a href="http://java.sun.com/javame/reference/apis/jsr037/javax/microedition/lcdui/TextField.html"><code>TextField</code></a> and <a href="http://java.sun.com/javame/reference/apis/jsr037/javax/microedition/lcdui/TextBox.html"><code>TextBox</code></a> classes in the <a href="http://java.sun.com/javame/reference/apis/jsr037/javax/microedition/lcdui/package-summary.html"><code>javax.microedition.lcdui</code></a> package, and while I was able to capture the user&#8217;s input and replace it with the appropriate Unicode, neither class handled bidirectional text very well.  </p>
<p>I tried mixing the Chinese-CJ (Cangjie), Devanagari, and Farsi input methods (used for entering Chinese, Hindi, and Persian text, respectively), and the result was that my little program became very confused.  On some emulated devices, the left and right arrow keys would move the cursor left and right, respectively, while within the Persian text; but on others, the effects of these keys were reversed, as were the effects of the backspace and delete keys.</p>
<p>It would probably take a lot more work to get any of these input methods working properly, but this was only a first attempt, which I wanted to document in case anyone else wanted to try something similar.  Also, it&#8217;s possible that I would have been more successful if I had used UI libraries specific to a company or manufacturer, such as RIM&#8217;s <a href="http://www.blackberry.com/developers/docs/4.2api/net/rim/device/api/ui/package-summary.html"><code>net.rim.device.api.ui</code></a> package, rather than the generic (and hence not as powerful) <code>javax.microedition.lcdui</code> package. </p>
<p>I&#8217;ve included several screenshots of what my little experiment looks like when run on Sun&#8217;s Java ME SDK mobile emulator with a generic device, as well as on RIM&#8217;s BlackBerry emulator with two different devices.  The Devanagari did not render at all on the emulated BlackBerry devices.  There were also some small layout problems, which I didn&#8217;t fix since this was only supposed to be a quick experiment.</p>
<p>Screenshots of experiment on Sun&#8217;s generic emulated mobile phone:<br />
<a href="http://img26.imageshack.us/img26/946/sun1a.jpg" target="_blank"><img src="http://img26.imageshack.us/img26/946/sun1a.th.jpg" border="0" /></a> <a href="http://img25.imageshack.us/img25/5093/sun2g.jpg" target="_blank"><img src="http://img25.imageshack.us/img25/5093/sun2g.th.jpg" border="0" /></a> <a href="http://img527.imageshack.us/img527/821/sun3.jpg" target="_blank"><img src="http://img527.imageshack.us/img527/821/sun3.th.jpg" border="0" /></a> <a href="http://img527.imageshack.us/img527/5495/sun4w.jpg" target="_blank"><img src="http://img25.imageshack.us/img25/1512/sun4x.th.jpg" border="0" /></a></p>
<p>Screenshots of experiment on RIM&#8217;s emulated <a href="http://na.blackberry.com/eng/devices/blackberrycurve8300/">BlackBerry Curve 8300</a>:<br />
<a href="http://img26.imageshack.us/img26/9814/blackberry83001.jpg" target="_blank"><img src="http://img26.imageshack.us/img26/9814/blackberry83001.th.jpg" border="0" /></a> <a href="http://img25.imageshack.us/img25/8673/blackberry83002.jpg" target="_blank"><img src="http://img25.imageshack.us/img25/8673/blackberry83002.th.jpg" border="0" /></a> <a href="http://img26.imageshack.us/img26/9484/blackberry83003.jpg" target="_blank"><img src="http://img26.imageshack.us/img26/9484/blackberry83003.th.jpg" border="0" /></a> <a href="http://img26.imageshack.us/img26/806/blackberry83004.jpg" target="_blank"><img src="http://img26.imageshack.us/img26/806/blackberry83004.th.jpg" border="0" /></a></p>
<p>Screenshots of experiment on RIM&#8217;s emulated <a href="http://na.blackberry.com/eng/devices/blackberrytour/">BlackBerry Tour 9630</a>:<br />
<a href="http://img26.imageshack.us/img26/1907/blackberry96301.jpg" target="_blank"><img src="http://img26.imageshack.us/img26/1907/blackberry96301.th.jpg" border="0" /></a> <a href="http://img26.imageshack.us/img26/5524/blackberry96302.jpg" target="_blank"><img src="http://img26.imageshack.us/img26/5524/blackberry96302.th.jpg" border="0" /></a> <a href="http://img25.imageshack.us/img25/6650/blackberry96303.jpg" target="_blank"><img src="http://img25.imageshack.us/img25/6650/blackberry96303.th.jpg" border="0" /></a> <a href="http://img25.imageshack.us/img25/927/blackberry96304.jpg" target="_blank"><img src="http://img25.imageshack.us/img25/927/blackberry96304.th.jpg" border="0" alt="Free Image Hosting at www.ImageShack.us" /></a></p>
<p>Considering the size of the mobile device markets in China, India, and the Middle East, getting different input methods to work in a mobile environment is an important (and potentially financially rewarding) problem to tackle.</p>
<p>&#8211; davinci</p>
<img src="http://stargrads.net/blogs/davinci/?ak_action=api_record_view&id=1265&type=feed" alt="" /><p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://stargrads.net/blogs/davinci/2009/09/mock-up-of-a-yudit-like-mobile-application/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The causes of my depression, part 17: my &#8220;frivolous&#8221; web site and how I learned Persian</title>
		<link>http://stargrads.net/blogs/davinci/2009/05/the-causes-of-my-depression-part-17-my-frivolous-web-site-and-how-i-learned-persian/</link>
		<comments>http://stargrads.net/blogs/davinci/2009/05/the-causes-of-my-depression-part-17-my-frivolous-web-site-and-how-i-learned-persian/#comments</comments>
		<pubDate>Thu, 07 May 2009 20:05:42 +0000</pubDate>
		<dc:creator>davinci</dc:creator>
				<category><![CDATA[autobiography]]></category>
		<category><![CDATA[personal]]></category>
		<category><![CDATA[9/11]]></category>
		<category><![CDATA[abusive parents]]></category>
		<category><![CDATA[child abuse]]></category>
		<category><![CDATA[Chinese]]></category>
		<category><![CDATA[Hindi]]></category>
		<category><![CDATA[Iranian]]></category>
		<category><![CDATA[Iranians]]></category>
		<category><![CDATA[Klingon]]></category>
		<category><![CDATA[Nobel Prize in Literature]]></category>
		<category><![CDATA[Persian]]></category>
		<category><![CDATA[Systems Control Group]]></category>
		<category><![CDATA[terrorist attacks]]></category>
		<category><![CDATA[V. S. Naipaul]]></category>

		<guid isPermaLink="false">http://stargrads.net/blogs/davinci/?p=219</guid>
		<description><![CDATA[
Unlike most other graduate students, I didn't have a web page through most of graduate school.  This post explains why.
]]></description>
			<content:encoded><![CDATA[<p>When I entered graduate school to study discrete-event control systems, I once again put up a <a href="http://web.archive.org/web/*/http://home.davidyeung.ca">web site</a> with my interests and my writings.  As a part of that, I experimented with automatic translation, but the state of the technology was pretty poor at the time, and so it didn&#8217;t work out.  What I ended up with was a web site with sections in four languages &#8212; <a href="http://web.archive.org/web/*/http://home.davidyeung.ca/">English</a>, <a href="http://web.archive.org/web/*/http://home.davidyeung.ca/index_c.html">Chinese</a>, <a href="http://web.archive.org/web/*/http://home.davidyeung.ca/index_k.html">Klingon</a>, and <a href="http://web.archive.org/web/*/http://home.davidyeung.ca/index_h.html">Hindi</a> &#8212; and different content in each.  </p>
<p>I featured a number of projects on the web site which had nothing to do with school<span id="more-219"></span>.  I posted articles <em>on</em> <a href="http://web.archive.org/web/*/http://buddhism.davidyeung.ca">Buddhism</a> and <em>in</em> <a href="http://web.archive.org/web/*/http://klingon.davidyeung.ca">Klingon</a>, discussed the design of <a href="http://web.archive.org/web/*/http://home.davidyeung.ca/buddhies/lma/">a really &#8220;old school&#8221; computer game</a>, and <a href="http://web.archive.org/web/*/http://home.davidyeung.ca/books/book_reviews.html">reviewed books</a>.  The book reviews page was particularly interesting because I used it to hint at some parts of my life and some of my interests without being explicit; for example, Evelyn Lau&#8217;s <u>Runaway</u> was the autobiographical account of a Chinese Canadian girl&#8217;s escape from her abusive parents, and V. S. Naipaul&#8217;s travelogues recounted his observations about the malaise in the Muslim world.</p>
<p>When I was at the Systems Control Group at the University of Toronto, about half of the graduate students (at least those who showed up in the lab regularly) were Iranian.  I learned Persian <em>very</em> quickly by listening to their conversations.  So a rumour started about me that I could learn a language just by listening to other people speak it for a week.  The rumour was very amusing to me, and I wish it were true.  But the reason that Persian was relatively easy for me to pick up was that I had learned (and forgotten) how to speak Urdu previously, and had been writing software to parse Urdu, Arabic, and Persian texts for a number of years.  Also, I could <a href="http://stargrads.net/blogs/davinci/2008/11/gifted-program-in-mississauga/">memorise songs and poems and recite them</a> without, at first, understanding their meanings.  My Iranian friends were very impressed by this, and taught several songs to me.</p>
<p>Some time in the summer of 2001, I added a Persian section to my web site.  At around that time, my father criticised me for a web site filled with &#8220;frivolity&#8221;, and told me that any employer who saw it would laugh at me and not hire me.  I knew that was nonsense, because my web site was in fact getting a lot of attention.  People e-mailed me about various things on it from all over the world, so at least <em>some</em> people found it interesting, and perhaps these included my future employers.  But I <a href="http://web.archive.org/web/20020206193041/http://home.davidyeung.ca/">took it down</a> while I planned a way to put up a &#8220;serious&#8221; web site &#8212; presumably one that looked as bland as everyone else&#8217;s &#8212; while still featuring the <em>content</em> that I wanted to showcase.</p>
<p>Then the September 11, 2001, terrorist attacks happened.  And V. S. Naipaul <a href="http://nobelprize.org/nobel_prizes/literature/laureates/2001/naipaul-bio.html">won the Nobel Prize in Literature</a>.  My parents were <em>unusually quiet</em> for the next little while.  </p>
<p>&#8211; davinci</p>
<img src="http://stargrads.net/blogs/davinci/?ak_action=api_record_view&id=219&type=feed" alt="" /><p>Related posts:<ol>
<li><a href='http://stargrads.net/blogs/davinci/2009/05/the-causes-of-my-depression-part-19-the-demographics-of-my-graduate-school-labmates/' rel='bookmark' title='The causes of my depression, part 19: the demographics of my graduate school labmates'>The causes of my depression, part 19: the demographics of my graduate school labmates</a></li>
<li><a href='http://stargrads.net/blogs/davinci/2009/05/my-depression-in-waterloo-part-2-role-reversal-and-sacrifice/' rel='bookmark' title='My depression in Waterloo, part 2: role reversal and sacrifice'>My depression in Waterloo, part 2: role reversal and sacrifice</a></li>
<li><a href='http://stargrads.net/blogs/davinci/2009/04/the-causes-of-my-depression-part-4-the-mentorship-program/' rel='bookmark' title='The causes of my depression, part 4: the Mentorship Program'>The causes of my depression, part 4: the Mentorship Program</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://stargrads.net/blogs/davinci/2009/05/the-causes-of-my-depression-part-17-my-frivolous-web-site-and-how-i-learned-persian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

