Summary: | [Feature request] define positional origin for tab stops | ||
---|---|---|---|
Product: | LibreOffice | Reporter: | ajlittoz <page74010-sf> |
Component: | Writer | Assignee: | Not Assigned <libreoffice-bugs> |
Status: | NEEDINFO --- | QA Contact: | |
Severity: | enhancement | ||
Priority: | medium | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | odf ooxml | ||
i915 platform: | i915 features: | ||
Attachments: | Writer sample document with word flushed at right margin when A4 portait |
Description
ajlittoz
2013-01-30 09:18:10 UTC
Can you please provide a test document so this can be tested against and subsequently be confirmed. Setting to NEEDINFO until more detail is provided. After providing the requested info, please reset this bug to UNCONFIRMED. Thanks :) Created attachment 89707 [details]
Writer sample document with word flushed at right margin when A4 portait
What kind of test document do you need? This is an enhancement request for a feature which is not presently offered by Writer. A sample document could be built like this: - create a new A4 portrait document - insert a line containing A (tab) B - give this line a named style, e.g. "Custom" based on "Default" - modify tabs in "Custom" style: create one right-aligned tab at right margin Result: "A" is flushed at left margin, "B" at right margin. Save document, re-open it. Format->Page, change to A4 landscape. Result: "B" is no longer at right margin and stays 17cm from left margin, as per definition. My intent was to keep "B" flushed at right margin, but this is not possible in the present implementation since ALL tabs are relative to left margin. This requires to attach a new property to a tab definition (its coordinate origin). It is worth noting that for this request to be possible it would require amending ODF and, if interoperability with OOXML is to be maintained, conversion of these percentages to the calculated twentieths of a point equivalent. In ODF v1.2 the style:position attribute in relation to the style:tab-stop element (19.508.3) uses the XSL specification definition for Units of Measure: http://www.w3.org/TR/2001/REC-xsl-20011015/slice5.html#section-N8185-Definitions-of-Units-of-Measure i.e., centimetre, millimetre, inch, point, pica, pixel, em I suppose this could always be augmented somehow to allow percentage values, although these may ultimately need to be calculated in the internal measurement of LO (fractions of millimetre?) anyway. An separate percentage value (in additional to the scalar value) may be an option, although this would seem to increase conversion complexity. In the OOXML spec the w:pos attribute in relation to w:tab element (17.3.1.37) uses Signed Measurement in Twentieths of a Point (17.18.81 ST_SignedTwipsMeasure) appears to be used. Any percentage value would need to be translated to this unit for export. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.