Display Right-To-Left content in wiki pages and tickets


This is a macro that makes it easier to work with Right-to-Left (RTL) content in Trac wiki pages and tickets. The need for RTL occurs most commonly for languages such as Arabic and Hebrew, and is not natively supported by HTML.

Simply use ![[RTL]] to emit a right-aligned div tag, and ![[LTR]] to close the div:

This text is right-aligned.

And this text is left-aligned.

See also: and Right-to-left_script.

Bugs/Feature Requests

Existing bugs and feature requests for DirClassMacro are here.

If you have any issues, create a new ticket.


Download the zipped source from here.


You can check out DirClassMacro from here using Subversion, or browse the source with Trac.


General instructions on installing Trac plugins can be found on the TracPlugins page.

Recent Changes

16969 by rjollos on 2017-11-18 09:49:02
Conform to PEP8
10397 by itamarost on 2011-07-08 17:35:33
DirClassMacro 0.11-2 and 0.12-2: Added a CSS subtlety that affects indentation of right-to-left wiki-toc floating divs.
8645 by itamarost on 2010-09-05 15:54:05
Adding the dirclassmacro.


Author: itamarost
Maintainer: Itamar Ostricher

Last modified 2 years ago Last modified on May 17, 2022, 5:50:22 AM