CSSJanus: Convert LTR CSS to RTL

Posted: December 25th, 2009 | Author: | Filed under: Web Development | Tags: , , , , | No Comments »

I found CSSJanus couple days ago, an online tool that attempts to change CSS from left-to-right to right-to-left, by changing properties like text-align, float and direction from “left” to “right”, “ltr” to “rtl” (and vice-versa), dealing with CSS properties that has “something: top left bottom right” (like margin: 10px 5px 1px 3px), and also some less obvious properties that effects text/layout direction/alignment.

It does quite a good job – converting LTR to RTL is 90% done (and completely done in some cases) after using it, there are some changes that must be made manually sometimes – but starting off with this is a great start who saves most of the job.

CSSJanus was written by Lindsey Simon (who works at Google) in Python. More information can be read at the Google Opensource Blog and the code can be obtained at Google Code.

A video showing the developer, explaining about it and showing it in action: