Bug 20280 - text-align and text-align-last only partially implemented
Summary: text-align and text-align-last only partially implemented
Status: NEW
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: general (show other bugs)
Version: 0.94
Hardware: All All
: P3 enhancement
Target Milestone: ---
Assignee: fop-dev
Depends on:
Reported: 2003-05-27 23:16 UTC by Lee Gaiteri
Modified: 2012-04-11 06:16 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description Lee Gaiteri 2003-05-27 23:16:41 UTC
I'm seeing this in trying to convert to PDF format, but I think it's a general
issue. I'm using version 0.20.5rc3a. If I use any fo:block or fo:inline element
with the text-align attribute set to "outside", I get an error:

[ERROR] Unknown enumerated value for property 'text-align': outside
[ERROR] Error in text-align property value 'outside':
org.apache.fop.fo.expr.PropertyException: No conversion defined

Trying "inside" will produce a similar error. And text-align-last is even worse,
failing also to allow "left", "right", and "relative". Compliance for these is
simply pass/fail, which should mean that they're either implemented to spec
(allowing all 8 values for text-align, all 9 for text-align-last) or they're
not. There's not even so much as a note in the compliance document to the effect
that they're only partially supported.

This should be an easy fix, but as a stopgap some note could be put into the
compliance document to say that they're not fully implemented, and which values
don't work.
Comment 1 Jeremias Maerki 2003-05-29 22:09:34 UTC
Thanks for reporting. I've updated the compliance document with the 
restriction you uncovered in CVS. Changing entry to "Enhancement" as a 
Comment 2 Gerry King 2007-11-07 07:55:03 UTC
I have an issue with RTF output which I think is due to text-align-last...

The last line in a block has spacing 10pt before in RTF but is fine in PDF.

Here's the XSL-FO which I have edited down:

<fo:flow flow-name="xsl-region-body">
  <fo:block font-family="sazanami-mincho, msmincho, Arial, sans serif"

       ... Preceding blocks deleted for sake of brevity

    <fo:block font-size="10pt" 
              font-family="sazanami-mincho, msmincho, Arial, sans serif"
              space-before="1em" text-align="left" text-align-last="relative">

        &#65288;&#65297;&#65289;&#34892;&#28858;&#12434; etc...
         <fo:block space-after="0.001mm"> </fo:block>
        &#65288;&#65298;&#65289;&#26032;&#28511; etc...
         <fo:block space-after="0.001mm"> </fo:block>
        &#65288;&#65299;&#65289;&#23558;&#26469;  etc... This is the one that gets 10pt before

  <fo:block text-align="center" space-after="1em">



Comment 3 Gerry King 2007-11-08 01:57:06 UTC
Apologises, ignore my previous comment. Issue occurs with or without
Comment 4 Glenn Adams 2012-04-11 06:16:55 UTC
change status from ASSIGNED to NEW for consistency