Project

General

Profile

Actions

Feature #8121

closed

Allow overriding direction of part of text

Added by Ebrahim Mohammadi over 13 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Normal
Category:
Text formatting
Target version:
Start date:
2011-04-10
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed

Description

There should be a way to override direction of part of text. Maybe using <span dir="rtl"> and <p dir="rtl"> (needs permitting use of "dir" HTML attribute and/or "direction" CSS attribute) or even better some nicer shorter Textile-ful syntax.

Upstream Textile supports <span dir="rtl">. It also supports another trick using CSS, but just for a complete paragraph (not some part of it):

p{direction: rtl}.

This one doesn't work in Redmine too.

An example (paste it in some RTL context and view there):

ابراهیم C++ را دوست دارد.

In this example "C++" is shown as "++C" in an RTL context, while it should be shown like result of the following HTML snippet:

<p dir="rtl">ابراهیم <div dir="ltr">C++</div> را دوست دارد.</p>

(The "C++" example is a simple one to show the problem. I'm aware of workaround of writing it as "++C", but that's just a workaround. And even if someone prefers to go the workaround way, working around more complex examples can be very more difficult.)


Related issues

Related to Redmine - Defect #27884: RTL wiki class broken in Redmine 3.2.6ClosedJean-Philippe Lang

Actions
Has duplicate Redmine - Feature #11784: {direction:rtl} doesn't work in text formattingClosed

Actions
Actions

Also available in: Atom PDF