Guy Rutenberg

Keeping track of what I do

An Early Release of the New cssrtl.py-2.0

with 2 comments

It has been three years since I’ve released the original version of cssrtl.py (and two since it’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’ve detailed more than a month ago, the basic principles and ideas that guided me to design a better tool to help adapting CSS files from left-to-right to right-to-left.

The guidelines weren’t just empty words, they were written while working on the Hebrew adaptation to the Fusion theme and in the same time writing a new proof-of-concept version of cssrtl.py. 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’t see myself complete the project any time soon. So following the “release early” mantra, I’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.

Download

You can download the new version from here: cssrtl.py-2.0.tar.bz2. The code is available under the GPLv2 or any later version.

Usage

The new version works by creating a seperate css “fix” file that fixes the directionality of the css styles.

./cssrtl.py < main.css > main-rtl.css

Afterward, just link the main-rtl.css after main.css in your HTML files.

Share and Enjoy:
  • del.icio.us
  • StumbleUpon
  • Digg
  • Facebook
  • Mixx
  • Google Bookmarks
  • Simpy

Written by Guy

September 20th, 2009 at 1:00 pm

Posted in Projects,Python

Tagged with , , ,

2 Responses to 'An Early Release of the New cssrtl.py-2.0'

Subscribe to comments with RSS or TrackBack to 'An Early Release of the New cssrtl.py-2.0'.

  1. Hello , thankyou very much first of all .
    Is it useful for Boonex Dolphin7 ?

    Beles

    11 Apr 11 at 13:46

  2. The script aids in “translating” CSS files. It doesn’t assume anything on what produced the actual html. So it should be useful for Dolphin, but it would require, of course, some manual tweaking of the result.

    Guy

    20 Apr 11 at 00:24

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">