Apache OpenOffice (AOO) Bugzilla – Issue 14365
RTL Chart: Bi-directional writing in charts
Last modified: 2013-02-24 21:19:20 UTC
When creating a chart, the textboxes inside (say, the title and the legend) are automatically L2R, and I found no way to change its directionality nor its identation (IE idented to left or to right). I rated it P4 as this rarely matters.
DL->BM: Would you please takeover?
BM_>FT: Please provide a specification for that feature.
*** Issue 15969 has been marked as a duplicate of this issue. ***
Question is, do we allow RTL for all other text within Charts? If so the same must go for legend box content. If not we can postpone this for features of the new Chart engine. Basically at the end we must supply the same formatting issues to any text in Chart as we do in Writer text (given a unified text engine). Anyway I re-ategerted this to OO.o later since it is no requirement within the OO.o 2.0 PCD.
I think I need some more information on this. As I just checked, your cursor travels from right to left, if you entered arabic text in a Writer. The same happens when you edit chart titles. I didn't find any other options in Writer for changing text to RTL mode. (I checked in an OOo 1.1 RC1) So, ... 1. What possibilities does the Writer have for changing to RTL mode? And do we need those for the chart? 2. Do we need a mirrored legend, where the symbols are shown on the right side of the text? I can't answer 1., because I don't know how this feature is implemented in Writer, and I can't answer 2., because I am no Arab and I never had the chance to see an arabic chart.
Questions for you.
FT->Mehling: Please write a full featured list of requirement thart are needed for a RTL Chart.
I want: 1) cells which denotes chart's name and are marked R2L will be written as RTL (and not as in the picture I'll attach) 2)ditto for Chart's subject, it should be possible to define it as R2L 3)ditto for row's names. That's all simple but important.
Created attachment 10692 [details] A misbidirectional Chart
dina: FWI
So, it looks like we would need a setting to switch between "Left to Right" and "Right to Left" for titles, axis labels, the legend (single legend entries) and data series/points (for data labels). For titles, we have an alignment tab-page in the object properties that could be extended. For the other objects we would have to find a suitable place. The setting that can be set in such a control would then be applied to the drawing-layer shapes, which use the edit-engine for rendering, so we would get the correct direction. Retrieving the current setting from the cell is a bit more difficult, as the data transfer interface (new chart) currently only allows passing the content as string or number, and the number format. Maybe we could live without this automatism in the first step of implementation.
->mehlng: About passing only strings from Calc to Chart: I think there is a unicode character that changes the writing mode. Would it be feasible to use this character to pass the cell content's writing modes correctly to the chart?
Taking Issue back. About the Unicode character for writing mode: obviously this should only be used if there is no other way to determine the writing mode.
adapted summary to be consistent with i78477
change owner
retarget to 3.1
CCed: ssa
added keywords
*** Issue 39526 has been marked as a duplicate of this issue. ***
@dr, please take over. Thanks!
Created attachment 57613 [details] Test document containing 3 charts with "LTR", "RTL", "Use super"
Added a "text direction" listbox containing "Left-to-right", "Right-to-left", "Use superordinate settings" to the following places: ** Main/sub/axis titles **: Object Properties -> Alignment -> below rotation control. Renamed "Text direction" fixedline above to "Text orientation" according to cell format dialog in Calc. ** Legend **: Object Properties -> Position -> below position radio group. ** Data series/point labels **: Object Properties -> Data Labels -> below placement listbox. ** Axis labels **: Object Properties -> Label -> below rotation control. Renamed "Rotate text" fixedline above to "Text orientation" according to cell format dialog in Calc. ** Regression curve equation **: Object Properties -> (new tabpage) Alignment -> nothing but the text direction listbox. The listbox is not visible if support for CTL is disabled (Tools -> Options -> Language settings -> Languages). For regression curve equation, the entire new tabpage "Alignment" is not visible if support for CTL is disabled. For data series/points, the listbox is disabled, if data labels are switched off (all checkboxes unchecked).
@dr, thanks a lot :-) ! I'll take over for the rest during your vacation. Created issue 95843 for the necessary changes in the documentation. Created issue 95844 for the necessary changes in the automatic testing scripts.
Fixed in CWS rtlchart01. The new setting is now also loaded correctly and 'Superordinate' setting is implemented. When 'Use superordinate object settings' is set chart elements use the writing direction that is set in the parent document (see Format->Page... Page).
Created attachment 57844 [details] corrected example document
@KLA, please verify in CWS rtlchart01. In case you find some issues that can be solved after feature freeze please submit separate issues. Thanks a lot! Ingrid.
Created attachment 58185 [details] TCS for Bi-directional writing mode for charts
Integration of bi-directional writing mode for chart looks like as in the spec decribed and works fine. Issue verified
Checked by using TCS in current master -> closed