<?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>Guy Rutenberg &#187; RTL</title>
	<atom:link href="http://www.guyrutenberg.com/tag/rtl/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.guyrutenberg.com</link>
	<description>Keeping track of what I do</description>
	<lastBuildDate>Sat, 14 Jan 2012 11:30:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>An Early Release of the New cssrtl.py-2.0</title>
		<link>http://www.guyrutenberg.com/2009/09/20/an-early-release-of-the-new-cssrtl-py-2-0/</link>
		<comments>http://www.guyrutenberg.com/2009/09/20/an-early-release-of-the-new-cssrtl-py-2-0/#comments</comments>
		<pubDate>Sun, 20 Sep 2009 10:00:50 +0000</pubDate>
		<dc:creator>Guy</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[cssrtl.py]]></category>
		<category><![CDATA[RTL]]></category>

		<guid isPermaLink="false">http://www.guyrutenberg.com/?p=578</guid>
		<description><![CDATA[It has been three years since I&#8217;ve released the original version of cssrtl.py (and two since it&#8217;s re-release). The old version did a nice job, but experience gained during that time led me to write from scratch a new version. I&#8217;ve detailed more than a month ago, the basic principles and ideas that guided me [...]]]></description>
			<content:encoded><![CDATA[<p>It has been three years since I&#8217;ve released the <a href="/2007/12/28/convert-css-layout-to-rtl-cssrtlpy/">original version</a> of <code>cssrtl.py</code> (and two since it&#8217;s re-release). The old version did a nice job, but experience gained during that time led me to write from scratch a new version. I&#8217;ve detailed more than a month ago, the <a href="/2009/08/05/designing-a-better-a-css-rtl-convertor/">basic principles and ideas</a> that guided me to design a better tool to help adapting CSS files from left-to-right to right-to-left.</p>
<p>The guidelines weren&#8217;t just empty words, they were written while working on the <a href="/2009/08/15/rtl-and-hebrew-adaptation-of-the-fusion-wordpress-theme/">Hebrew adaptation to the Fusion theme</a> and in the same time writing a new proof-of-concept version of <code>cssrtl.py</code>. The original intent was to release a more mature version of that code when it will be completed. However, due to the apparent shortage of time in the present and foreseeable future, I can&#8217;t see myself complete the project any time soon. So following the &#8220;release early&#8221; mantra, I&#8217;ve decided to release the code as-is. As I said, the code is in working state, but not polished, so it may be of benefit but may contain bugs. If you find any bugs or have any suggestions, I would be glad to hear.<br />
<span id="more-578"></span></p>
<h3>Download</h3>
<p>You can download the new version from here: <a href="/wp-content/uploads/2009/09/cssrtl.py-2.0.tar.bz2">cssrtl.py-2.0.tar.bz2</a>. The code is available under the GPLv2 or any later version.</p>
<h3>Usage</h3>
<p>The new version works by creating a seperate css &#8220;fix&#8221; file that fixes the directionality of the css styles.</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">./cssrtl.py &lt; main.css &gt; main-rtl.css</pre></div></div>

<p>Afterward, just link the <code>main-rtl.css</code> after <code>main.css</code> in your HTML files.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.guyrutenberg.com/2009/09/20/an-early-release-of-the-new-cssrtl-py-2-0/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>RTL and Hebrew Adaptation of the Fusion WordPress Theme</title>
		<link>http://www.guyrutenberg.com/2009/08/15/rtl-and-hebrew-adaptation-of-the-fusion-wordpress-theme/</link>
		<comments>http://www.guyrutenberg.com/2009/08/15/rtl-and-hebrew-adaptation-of-the-fusion-wordpress-theme/#comments</comments>
		<pubDate>Sat, 15 Aug 2009 05:52:22 +0000</pubDate>
		<dc:creator>Guy</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[RTL]]></category>

		<guid isPermaLink="false">http://www.guyrutenberg.com/?p=455</guid>
		<description><![CDATA[I&#8217;ve ported the Fusion theme by digitalnature to RTL, and adapted it to Hebrew. Porting this theme to RTL was the main catalysis for improving my cssrtl.py script. Beside translating the theme to Hebrew and making the necessary CSS adaptation to RTL, I had also to adopt the fonts used. The font selected by the [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve ported the <a href="http://digitalnature.ro/projects/fusion">Fusion</a> theme by <a href="http://digitalnature.ro/">digitalnature</a> to RTL, and adapted it to Hebrew.</p>
<p><img src="http://www.guyrutenberg.com/wp-content/uploads/2009/08/screenshot.png" alt="screenshot" title="screenshot" width="300" height="225" class="alignnone size-full wp-image-527" /><br />
<span id="more-455"></span><br />
 Porting this theme to RTL was the main catalysis for improving my <a href="/2009/08/05/designing-a-better-a-css-rtl-convertor/">cssrtl.py</a> script. Beside translating the theme to Hebrew and making the necessary CSS adaptation to RTL, I had also to adopt the fonts used. The font selected by the author weren&#8217;t compatible with Hebrew, and the alternatives looked awful. So I&#8217;ve chose some other fonts from the same family to keep the overall look of the theme, but make it more Hebrew friendly.</p>
<p>You can see a live version of the theme in <a href="http://www.davidzadok.co.il">David Zadok</a>&#8216;s site. The theme can be downloaded from here: <a href="/wp-content/uploads/2009/08/fusion-rtl-2.6.zip">fusion-rtl-2.6.zip</a> [326.8kb]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.guyrutenberg.com/2009/08/15/rtl-and-hebrew-adaptation-of-the-fusion-wordpress-theme/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>RTL Tiddlers in TiddlyWiki</title>
		<link>http://www.guyrutenberg.com/2009/03/28/rtl-tiddlers-in-tiddlywiki/</link>
		<comments>http://www.guyrutenberg.com/2009/03/28/rtl-tiddlers-in-tiddlywiki/#comments</comments>
		<pubDate>Sat, 28 Mar 2009 14:20:47 +0000</pubDate>
		<dc:creator>Guy</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[RTL]]></category>
		<category><![CDATA[TiddlyWiki]]></category>

		<guid isPermaLink="false">http://www.guyrutenberg.com/?p=298</guid>
		<description><![CDATA[I&#8217;ve been using TiddlyWiki for a while now, and it became a very useful tool for me. Today, I&#8217;ve decided to organize my various recipes (somehow cooking and especially making deserts has turned into an hobby of mine), and as you can expect I&#8217;ve decided to use TiddlyWiki for the tasks. There was a slight [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using <a href="http://www.tiddlywiki.com/">TiddlyWiki</a> for a while now, and it became a very useful tool for me. Today, I&#8217;ve decided to organize my various recipes (somehow cooking and especially making deserts has turned into an hobby of mine), and as you can expect I&#8217;ve decided to use TiddlyWiki for the tasks.</p>
<p>There was a slight problem as some of the recipes are in Hebrew, and it seems TiddlyWiki doesn&#8217;t have built-in support for RTL (right-to-left) tiddlers. However, such support can be added via custom stylesheets and the tiddlers&#8217; tags. The idea for this method is taken from <a href="http://zaphands.phatcode.net/#StyleSheet">this TiddlyWiki</a>.</p>
<p>Create a new tiddler called &#8220;StyleSheet&#8221; (without the quotes). This is a special tiddler (a shadow tiddler) that lets you add additional CSS code for your wiki. Insert the following code into the newly created tiddler:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/*{{{*/</span>
div<span style="color: #00AA00;">&#91;</span>tags~<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;RTL&quot;</span><span style="color: #00AA00;">&#93;</span><span style="color: #6666ff;">.tiddler</span> <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">direction</span><span style="color: #00AA00;">:</span> rtl<span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
div<span style="color: #00AA00;">&#91;</span>tags~<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;RTL&quot;</span><span style="color: #00AA00;">&#93;</span><span style="color: #6666ff;">.tiddler</span> <span style="color: #6666ff;">.subtitle</span> <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">direction</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">ltr</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
div<span style="color: #00AA00;">&#91;</span>tags~<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;RTL&quot;</span><span style="color: #00AA00;">&#93;</span><span style="color: #6666ff;">.tiddler</span> <span style="color: #6666ff;">.tagged</span> <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">direction</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">ltr</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #808080; font-style: italic;">/*}}}*/</span></pre></div></div>

<p>Now for every tiddler you want to be in RTL direction just add <code>RTL</code> to its list of tags. After you do it, the tiddler will appear correctly. Here is an example of what in RTL looks like after the fix:<br />
<div id="attachment_301" class="wp-caption aligncenter" style="width: 508px"><img src="http://www.guyrutenberg.com/wp-content/uploads/2009/03/rtl-tiddler.png" alt="A screenshot of an RTL tiddler" title="rtl-tiddler" width="498" height="341" class="size-full wp-image-301" /><p class="wp-caption-text">A screenshot of an RTL tiddler</p></div></p>
]]></content:encoded>
			<wfw:commentRss>http://www.guyrutenberg.com/2009/03/28/rtl-tiddlers-in-tiddlywiki/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Fixing Numbering Direction for Hebrew Text in LyX</title>
		<link>http://www.guyrutenberg.com/2009/01/14/fixing-numbering-direction-for-hebrew-text-in-lyx/</link>
		<comments>http://www.guyrutenberg.com/2009/01/14/fixing-numbering-direction-for-hebrew-text-in-lyx/#comments</comments>
		<pubDate>Wed, 14 Jan 2009 07:57:11 +0000</pubDate>
		<dc:creator>Guy</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Hebrew]]></category>
		<category><![CDATA[LyX]]></category>
		<category><![CDATA[RTL]]></category>

		<guid isPermaLink="false">http://www.guyrutenberg.com/?p=242</guid>
		<description><![CDATA[On Monday, I&#8217;ve submitted a patch to the LyX developers mailing list with a fix for the numbering direction in Hebrew text. In Hebrew text the dot appeared before the numbering symbol instead of after it as it should. This behaviour has been this way for years (at least as long as I can remember). [...]]]></description>
			<content:encoded><![CDATA[<p>On Monday, I&#8217;ve submitted a patch to the LyX developers mailing list with a fix for the numbering direction in Hebrew text. In Hebrew text the dot appeared before the numbering symbol instead of after it as it should.<br />
<img src="http://www.guyrutenberg.com/wp-content/uploads/2009/01/before-fix.png" alt="before-fix" title="before-fix" width="403" height="121" class="aligncenter size-full wp-image-243" /><br />
This behaviour has been this way for years (at least as long as I can remember).<br />
<span id="more-242"></span><br />
My first solution was a patch against the actual LyX code, but developers in the mailing list suggested the issue could be solved within the <code>po</code> file for Hebrew (<code>he.po</code>), as the po files are loaded for each paragraph depending on its language.</p>
<p>So I wrote a patch for the <code>he.po</code> file that fixes the problem.</p>

<div class="wp_syntax"><div class="code"><pre class="diff" style="font-family:monospace;">Index: he.po
===================================================================
<span style="color: #888822;">--- he.po	<span style="">&#40;</span>revision 28095<span style="">&#41;</span></span>
<span style="color: #888822;">+++ he.po	<span style="">&#40;</span>working copy<span style="">&#41;</span></span>
<span style="color: #440088;">@@ -15050,15 +15050,15 @@</span>
&nbsp;
 #: src/Buffer.cpp:<span style="">2902</span>
 msgid &quot;\\arabic<span style="">&#123;</span>enumi<span style="">&#125;</span>.&quot;
<span style="color: #991111;">-msgstr &quot;\\arabic<span style="">&#123;</span>enumi<span style="">&#125;</span>.&quot;</span>
<span style="color: #00b000;">+msgstr &quot;.\\arabic<span style="">&#123;</span>enumi<span style="">&#125;</span>&quot;</span>
&nbsp;
 #: src/Buffer.cpp:<span style="">2908</span>
 msgid &quot;\\roman<span style="">&#123;</span>enumiii<span style="">&#125;</span>.&quot;
<span style="color: #991111;">-msgstr &quot;\\roman<span style="">&#123;</span>enumiii<span style="">&#125;</span>.&quot;</span>
<span style="color: #00b000;">+msgstr &quot;.\\roman<span style="">&#123;</span>enumiii<span style="">&#125;</span>&quot;</span>
&nbsp;
 #: src/Buffer.cpp:<span style="">2911</span>
 msgid &quot;\\Alph<span style="">&#123;</span>enumiv<span style="">&#125;</span>.&quot;
<span style="color: #991111;">-msgstr &quot;\\Alph<span style="">&#123;</span>enumiv<span style="">&#125;</span>.&quot;</span>
<span style="color: #00b000;">+msgstr &quot;.\\Alph<span style="">&#123;</span>enumiv<span style="">&#125;</span>&quot;</span>
&nbsp;
 #: src/Buffer.cpp:<span style="">2928</span> src/insets/InsetCaption.cpp:<span style="">293</span>
 msgid &quot;Senseless!!! &quot;</pre></div></div>

<p>While this patch is against the SVN trunk (LyX 2.0), it could also be applied manually to older LyX versions.<br />
After yo apply the patch you should do the following (I assume that you are in the root of the LyX source tree):</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">cd po/
make he.gmo
cd ../
make install</pre></div></div>

<p>Now restart LyX and you will see the numbering appear as it should.<br />
<img src="http://www.guyrutenberg.com/wp-content/uploads/2009/01/after-fix.png" alt="after-fix" title="after-fix" width="426" height="108" class="aligncenter size-full wp-image-245" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.guyrutenberg.com/2009/01/14/fixing-numbering-direction-for-hebrew-text-in-lyx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Convert CSS layout to RTL &#8211; cssrtl.py</title>
		<link>http://www.guyrutenberg.com/2007/12/28/convert-css-layout-to-rtl-cssrtlpy/</link>
		<comments>http://www.guyrutenberg.com/2007/12/28/convert-css-layout-to-rtl-cssrtlpy/#comments</comments>
		<pubDate>Fri, 28 Dec 2007 08:28:12 +0000</pubDate>
		<dc:creator>Guy</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[cssrtl.py]]></category>
		<category><![CDATA[RTL]]></category>

		<guid isPermaLink="false">http://www.guyrutenberg.com/2007/12/28/convert-css-layout-to-rtl-cssrtlpy/</guid>
		<description><![CDATA[This is a re-release of a script of mine that helps convert CSS layouts to RTL. I originally released it about a year ago but it was lost when I moved to the new blog. The script, cssrtl.py, utilizes a bunch of regular expressions to translate a given CSS layout to RTL. Download You can [...]]]></description>
			<content:encoded><![CDATA[<p>This is a re-release of a script of mine that helps convert CSS layouts to RTL. I originally released it about a year ago but it was lost when I moved to the new blog. The script, <code>cssrtl.py</code>, utilizes a bunch of regular expressions to translate a given CSS layout to RTL. </p>
<p><span id="more-33"></span></p>
<h4>Download</h4>
<p>You can download the script from here: <a href="/wp-content/uploads/2007/12/cssrtl.tar.gz"><code>cssrtl.py</code></a>.</p>
<h4>Usage</h4>
<p>Using the script is pretty simple. Just pass the name of the script to <code>cssrtl.py</code> and he will automatically translate it for you. </p>
<p>Example:<br />
<code>python cssrt.py main.css</code></p>
<p>You can use the <code>-o</code> flag to specify a different output file instead of overwriting the existing file.</p>
<p>If the CSS style for the body tag is missing a <code>direction</code> statement, you should add the <code>-d</code> flag to the list of command line arguments. This will cause the script to add one for you when translating the layout.</p>
<p>See <code>python cssrtl.py --help</code> for more information.</p>
<h4>Limitations</h4>
<p>While this script is pretty useful as it is, it still isn&#8217;t perfect. The major limitation, is that the script doesn&#8217;t automatically mirrors images used in the layout. So if your layout contains images you will need to flip them manually (however the script will position them in right place by automatically). Another limitation is that the script doesn&#8217;t alway handle correctly scripts with IE hacks, so it always good to keep a backup and manually check the result on IE.</p>
<p>Overall, despite some (minor) limitations, the script is very useful, and it helped me a lot when having to translate CSS layouts to RTL. I&#8217;ve successfully used it to translate WordPress, Joomla, Druple and MediaWiki themes with minimal intervention on my side, thus saving a lot of my time. If you find the script useful, it will be nice of your to send a word. Also the script is released under the GPL so if you have any patches/improvements, please send them.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.guyrutenberg.com/2007/12/28/convert-css-layout-to-rtl-cssrtlpy/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.312 seconds -->

