Difference between revisions of "Talk:TextAlignment"

From Apache OpenOffice Wiki
Jump to: navigation, search
(Simplify Tables)
m (Simplify Tables: more simplify)
Line 4: Line 4:
 
Likewise, the origin ("Inherited from style") of the direction attribute seems irrelevant, and need not be called out. This eliminates a couple of rows. --[[User:TJFrazier|TJ]] ([[User_talk:TJFrazier|Talk]] | [[Special:Contributions/TJFrazier|Contribs]]) 18:33, 27 July 2010 (UTC)
 
Likewise, the origin ("Inherited from style") of the direction attribute seems irrelevant, and need not be called out. This eliminates a couple of rows. --[[User:TJFrazier|TJ]] ([[User_talk:TJFrazier|Talk]] | [[Special:Contributions/TJFrazier|Contribs]]) 18:33, 27 July 2010 (UTC)
  
Thank you very much for your feedback.
+
:Thank you very much for your feedback.
  
Yes, the tables could be simplified, but not as far as you proposed.
+
:Yes, the tables could be simplified, but not as far as you proposed.
The first column makes the difference for the cases in which the writing direction of the document and the paragraph/table cell differs and the text alignment value is inherited from the style.
+
:The first column makes the difference for the cases in which the writing direction of the document and the paragraph/table cell differs and the text alignment value is inherited from the style.
I will update the tables today.
+
:I will update the tables today.
Looking forward to further feedback/comments/improvements/...
+
:Looking forward to further feedback/comments/improvements/...
 +
 
 +
::Then perhaps there are rows missing? I have added Row 3 (here, not on the main page):
 +
::::{| class="wikitable" style="text-align:center"
 +
|-
 +
! text alignment value
 +
! writing direction <br> of paragraph/table cell
 +
! writing direction <br> of document
 +
! maps to <br> UNO-API text alignment value
 +
|-
 +
| <code>LEFT</code> || left-to-right || left-to-right OR<br> right-to-left || <code>START</code>
 +
|-
 +
| <code>LEFT</code> <br> inherited from a style || left-to-right || right-to-left || <code>START</code>
 +
|-
 +
| <code>LEFT</code> <br> inherited from a style || left-to-right || <u>left-to-right</u> || ???
 +
|}
 +
 
 +
::If the "???" value should be <code>START</code>, then Rows 2 and 3 (and the document-direction column) are irrelevant; that is, if all three cases result in <code> LEFT -> START</code> then only one case (Row 1) should be shown.
 +
::Likewise, if changing ''only'' the value in the document-direction column makes no difference in the outcome, then the column is irrelevant; the Row 3 example above (and the three other similar entries) is the only place I see where it might have any effect.
 +
::Sorry if I'm being a pain about this, but this is obviously a complex problem. Simplifying it as much as possible at this stage should make the remaining work much easier. --[[User:TJFrazier|TJ]] ([[User_talk:TJFrazier|Talk]] | [[Special:Contributions/TJFrazier|Contribs]]) 10:05, 28 July 2010 (UTC)

Revision as of 10:05, 28 July 2010

Simplify Tables

Planning for the solution may be simplified if we observe that in the two large tables (both preceded by "Conversion for a certain paragraph or table cell:") the writing direction of the document (first column) is irrelevant, having no effect on the outcome case (last column). Thus, the first column and the entire last half of the tables can be omitted.

Likewise, the origin ("Inherited from style") of the direction attribute seems irrelevant, and need not be called out. This eliminates a couple of rows. --TJ (Talk | Contribs) 18:33, 27 July 2010 (UTC)

Thank you very much for your feedback.
Yes, the tables could be simplified, but not as far as you proposed.
The first column makes the difference for the cases in which the writing direction of the document and the paragraph/table cell differs and the text alignment value is inherited from the style.
I will update the tables today.
Looking forward to further feedback/comments/improvements/...
Then perhaps there are rows missing? I have added Row 3 (here, not on the main page):
text alignment value writing direction
of paragraph/table cell
writing direction
of document
maps to
UNO-API text alignment value
LEFT left-to-right left-to-right OR
right-to-left
START
LEFT
inherited from a style
left-to-right right-to-left START
LEFT
inherited from a style
left-to-right left-to-right  ???
If the "???" value should be START, then Rows 2 and 3 (and the document-direction column) are irrelevant; that is, if all three cases result in LEFT -> START then only one case (Row 1) should be shown.
Likewise, if changing only the value in the document-direction column makes no difference in the outcome, then the column is irrelevant; the Row 3 example above (and the three other similar entries) is the only place I see where it might have any effect.
Sorry if I'm being a pain about this, but this is obviously a complex problem. Simplifying it as much as possible at this stage should make the remaining work much easier. --TJ (Talk | Contribs) 10:05, 28 July 2010 (UTC)
Personal tools