<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: ActionScript 2.0 Arabic Parsing v1.4</title>
	<atom:link href="http://ixd-consultant.com/blog/2010/05/29/actionscript-2-0-arabic-parsing-v1-4/feed/" rel="self" type="application/rss+xml" />
	<link>http://ixd-consultant.com/blog/2010/05/29/actionscript-2-0-arabic-parsing-v1-4/</link>
	<description>IA, UX, AS, Thoughts</description>
	<lastBuildDate>Sat, 23 Apr 2011 12:51:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: xVisage</title>
		<link>http://ixd-consultant.com/blog/2010/05/29/actionscript-2-0-arabic-parsing-v1-4/comment-page-1/#comment-307</link>
		<dc:creator>xVisage</dc:creator>
		<pubDate>Wed, 05 Jan 2011 02:05:51 +0000</pubDate>
		<guid isPermaLink="false">http://ixd-consultant.com/blog/?p=322#comment-307</guid>
		<description>@Edwin

It works, here is an example:
&lt;pre lang=&quot;actionscript&quot;&gt;
import TextField.StyleSheet;
import com.xvisage.utils.StringUtils;
var utils:StringUtils = new StringUtils();
var style:StyleSheet = new StyleSheet();
style.load(&quot;arabic.css&quot;);
style.onLoad = function(done:Boolean) {
	if (done) {
		var styleObj:Object = style.getStyle(&quot;.arabic&quot;);
		var tf:TextFormat = style.transform(styleObj);
		output.htmlText = utils.parseArabic(myString, output, tf);
	}
};
&lt;/pre&gt;
Where &lt;i&gt;&quot;arabic.css&quot;&lt;/i&gt; contains:
&lt;pre lang=&quot;css&quot;&gt;
.arabic {
	font-family:Traditional Arabic; /*do not use single or double quotes around the font-family value ..*/
	font-size:20px;
}
&lt;/pre&gt;
And you need to use the most recent version available &lt;a href=&quot;http://ixd-consultant.com/blog/2010/07/12/open-source-arabic-parsing-v1-5/&quot; target=&quot;_self&quot; rel=&quot;nofollow&quot;&gt;&lt;span style=&quot;color:#0066FF;&quot;&gt;here&lt;/span&gt;&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>@Edwin</p>
<p>It works, here is an example:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #0066CC;">import</span> <span style="color: #0066CC;">TextField</span>.<span style="color: #006600;">StyleSheet</span>;
<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">xvisage</span>.<span style="color: #006600;">utils</span>.<span style="color: #006600;">StringUtils</span>;
<span style="color: #000000; font-weight: bold;">var</span> utils:StringUtils = <span style="color: #000000; font-weight: bold;">new</span> StringUtils<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #000000; font-weight: bold;">var</span> style:StyleSheet = <span style="color: #000000; font-weight: bold;">new</span> StyleSheet<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
style.<span style="color: #0066CC;">load</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;arabic.css&quot;</span><span style="color: #66cc66;">&#41;</span>;
style.<span style="color: #0066CC;">onLoad</span> = <span style="color: #000000; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span>done:<span style="color: #0066CC;">Boolean</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>done<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">var</span> styleObj:<span style="color: #0066CC;">Object</span> = style.<span style="color: #0066CC;">getStyle</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;.arabic&quot;</span><span style="color: #66cc66;">&#41;</span>;
		<span style="color: #000000; font-weight: bold;">var</span> tf:<span style="color: #0066CC;">TextFormat</span> = style.<span style="color: #006600;">transform</span><span style="color: #66cc66;">&#40;</span>styleObj<span style="color: #66cc66;">&#41;</span>;
		output.<span style="color: #0066CC;">htmlText</span> = utils.<span style="color: #006600;">parseArabic</span><span style="color: #66cc66;">&#40;</span>myString, output, tf<span style="color: #66cc66;">&#41;</span>;
	<span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span>;</pre></div></div>

<p>Where <i>&#8220;arabic.css&#8221;</i> contains:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.arabic</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #3333ff;">:Traditional </span>Arabic<span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/*do not use single or double quotes around the font-family value ..*/</span>
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #933;">20px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>And you need to use the most recent version available <a href="http://ixd-consultant.com/blog/2010/07/12/open-source-arabic-parsing-v1-5/" target="_self" rel="nofollow"><span style="color:#0066FF;">here</span></a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Edwin</title>
		<link>http://ixd-consultant.com/blog/2010/05/29/actionscript-2-0-arabic-parsing-v1-4/comment-page-1/#comment-286</link>
		<dc:creator>Edwin</dc:creator>
		<pubDate>Mon, 11 Oct 2010 03:24:26 +0000</pubDate>
		<guid isPermaLink="false">http://ixd-consultant.com/blog/?p=322#comment-286</guid>
		<description>Okay got it working with textFormat but would still like to use a styleSheet. thanks!</description>
		<content:encoded><![CDATA[<p>Okay got it working with textFormat but would still like to use a styleSheet. thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Edwin</title>
		<link>http://ixd-consultant.com/blog/2010/05/29/actionscript-2-0-arabic-parsing-v1-4/comment-page-1/#comment-285</link>
		<dc:creator>Edwin</dc:creator>
		<pubDate>Mon, 11 Oct 2010 03:05:54 +0000</pubDate>
		<guid isPermaLink="false">http://ixd-consultant.com/blog/?p=322#comment-285</guid>
		<description>sorry - the tags didn&#039;t show up - that last line should have the proper tags around it

p class=&#039;pagetitle&#039;

and 

/p</description>
		<content:encoded><![CDATA[<p>sorry &#8211; the tags didn&#8217;t show up &#8211; that last line should have the proper tags around it</p>
<p>p class=&#8217;pagetitle&#8217;</p>
<p>and </p>
<p>/p</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Edwin</title>
		<link>http://ixd-consultant.com/blog/2010/05/29/actionscript-2-0-arabic-parsing-v1-4/comment-page-1/#comment-284</link>
		<dc:creator>Edwin</dc:creator>
		<pubDate>Mon, 11 Oct 2010 03:03:01 +0000</pubDate>
		<guid isPermaLink="false">http://ixd-consultant.com/blog/?p=322#comment-284</guid>
		<description>I can&#039;t seem to change the fontsize of the text - am I missing something? I&#039;ve tried with textformat as shown in the example, but I really want to use a stylesheet. No matter what I try, the text comes out the same small size. Here&#039;s part of my code:

var arabTxt:String = utils.parseArabic(myString);		

pageTitleTF = bg_pageTitle_mc.createTextField(&quot;pageTitleTF&quot;, bg_pageTitle_mc.getNextHighestDepth(), 0, 0, 1, 1);		
pageTitleTF.autoSize = &quot;right&quot;;		
pageTitleTF.embedFonts = true;		
pageTitleTF.styleSheet = appObj.getDisplayStyleSheet();

pageTitleTF.text = &quot;&quot; + arabTxt + &quot;&quot;;</description>
		<content:encoded><![CDATA[<p>I can&#8217;t seem to change the fontsize of the text &#8211; am I missing something? I&#8217;ve tried with textformat as shown in the example, but I really want to use a stylesheet. No matter what I try, the text comes out the same small size. Here&#8217;s part of my code:</p>
<p>var arabTxt:String = utils.parseArabic(myString);		</p>
<p>pageTitleTF = bg_pageTitle_mc.createTextField(&#8220;pageTitleTF&#8221;, bg_pageTitle_mc.getNextHighestDepth(), 0, 0, 1, 1);<br />
pageTitleTF.autoSize = &#8220;right&#8221;;<br />
pageTitleTF.embedFonts = true;<br />
pageTitleTF.styleSheet = appObj.getDisplayStyleSheet();</p>
<p>pageTitleTF.text = &#8220;&#8221; + arabTxt + &#8220;&#8221;;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: xVisage</title>
		<link>http://ixd-consultant.com/blog/2010/05/29/actionscript-2-0-arabic-parsing-v1-4/comment-page-1/#comment-271</link>
		<dc:creator>xVisage</dc:creator>
		<pubDate>Thu, 08 Jul 2010 09:14:10 +0000</pubDate>
		<guid isPermaLink="false">http://ixd-consultant.com/blog/?p=322#comment-271</guid>
		<description>&lt;a href=&quot;http://ixd-consultant.com/blog/2010/07/08/arabic-parsing-and-shared-fonts/&quot; target=&quot;_self&quot; rel=&quot;nofollow&quot;&gt;&lt;span style=&quot;color:#0066ff;&quot;&gt;Here&lt;/span&gt;&lt;/a&gt; is a step-by-step tutorial for using shared fonts in ActionScript 2.0 with the use of &lt;a href=&quot;http://ixd-consultant.com/blog/2010/05/29/actionscript-2-0-arabic-parsing-v1-4/&quot; target=&quot;_self&quot; rel=&quot;nofollow&quot;&gt;&lt;span style=&quot;color:#0066ff;&quot;&gt;Arabic Parsing&lt;/span&gt;&lt;/a&gt; solution ..

For ActionScript 3.0 follow &lt;a href=&quot;http://nochump.com/blog/archives/20&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;&lt;span style=&quot;color:#0066ff;&quot;&gt;this&lt;/span&gt;&lt;/a&gt; tutorial ..</description>
		<content:encoded><![CDATA[<p><a href="http://ixd-consultant.com/blog/2010/07/08/arabic-parsing-and-shared-fonts/" target="_self" rel="nofollow"><span style="color:#0066ff;">Here</span></a> is a step-by-step tutorial for using shared fonts in ActionScript 2.0 with the use of <a href="http://ixd-consultant.com/blog/2010/05/29/actionscript-2-0-arabic-parsing-v1-4/" target="_self" rel="nofollow"><span style="color:#0066ff;">Arabic Parsing</span></a> solution ..</p>
<p>For ActionScript 3.0 follow <a href="http://nochump.com/blog/archives/20" target="_blank" rel="nofollow"><span style="color:#0066ff;">this</span></a> tutorial ..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vivek</title>
		<link>http://ixd-consultant.com/blog/2010/05/29/actionscript-2-0-arabic-parsing-v1-4/comment-page-1/#comment-270</link>
		<dc:creator>Vivek</dc:creator>
		<pubDate>Thu, 24 Jun 2010 07:52:58 +0000</pubDate>
		<guid isPermaLink="false">http://ixd-consultant.com/blog/?p=322#comment-270</guid>
		<description>I am facing problem running this with linked font library and text box is showing me blank text.</description>
		<content:encoded><![CDATA[<p>I am facing problem running this with linked font library and text box is showing me blank text.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vivek</title>
		<link>http://ixd-consultant.com/blog/2010/05/29/actionscript-2-0-arabic-parsing-v1-4/comment-page-1/#comment-268</link>
		<dc:creator>vivek</dc:creator>
		<pubDate>Mon, 21 Jun 2010 19:02:48 +0000</pubDate>
		<guid isPermaLink="false">http://ixd-consultant.com/blog/?p=322#comment-268</guid>
		<description>Thanks a lot for the library.This has made our life much easier. I want to use this but the problem that i am facing is total size of my application. I am using multiple flash swf that is loaded on-demand.Currently i have embedded font in all the movies and able to deliver arabic content.

But I want to embed that font in the base movie and want others to share (with linkage) the embeded font. 

Do you see any issue with this?

If possible, Can you please give a sample on the same?</description>
		<content:encoded><![CDATA[<p>Thanks a lot for the library.This has made our life much easier. I want to use this but the problem that i am facing is total size of my application. I am using multiple flash swf that is loaded on-demand.Currently i have embedded font in all the movies and able to deliver arabic content.</p>
<p>But I want to embed that font in the base movie and want others to share (with linkage) the embeded font. </p>
<p>Do you see any issue with this?</p>
<p>If possible, Can you please give a sample on the same?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: xVisage</title>
		<link>http://ixd-consultant.com/blog/2010/05/29/actionscript-2-0-arabic-parsing-v1-4/comment-page-1/#comment-259</link>
		<dc:creator>xVisage</dc:creator>
		<pubDate>Sat, 29 May 2010 02:48:31 +0000</pubDate>
		<guid isPermaLink="false">http://ixd-consultant.com/blog/?p=322#comment-259</guid>
		<description>Thank you ..</description>
		<content:encoded><![CDATA[<p>Thank you ..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ahmed Ibrahim</title>
		<link>http://ixd-consultant.com/blog/2010/05/29/actionscript-2-0-arabic-parsing-v1-4/comment-page-1/#comment-258</link>
		<dc:creator>Ahmed Ibrahim</dc:creator>
		<pubDate>Sat, 29 May 2010 02:41:15 +0000</pubDate>
		<guid isPermaLink="false">http://ixd-consultant.com/blog/?p=322#comment-258</guid>
		<description>Good job man :)</description>
		<content:encoded><![CDATA[<p>Good job man <img src='http://ixd-consultant.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

