#1225 Vertical alignment on inlinemediaobject/imagedata ignored

closed-fixed
XSL (1066)
5
2014-01-20
2012-02-15
No

Setting the attribute "valign" to "top", "middle" or "bottom" on an imagedata element inside an inlinemediaobject has no effect in pdf output. The inline image will always be aligned relative to the text baseline. The problem seems to be that the attribute valign from the imagedata element is reflected to "display-align" on the corresponding fo:external-graphic element (see fo/graphics.xsl). Instead, the fo attribute should be "alignment-baseline".

Suggestion for attribute value transformation from "valign" to "alignment-baseline":

1) "top" could be transformed to "baseline"
2) "middle" could be transformed to "central"
3) "bottom" could be translated to "text-before-edge"

Tested with AHFormatter 5.3. See attached file for PDF ouput.

Discussion

  • Frank Arensmeier

    The png file seems damaged. See jpeg instead.

     
  • Robert Stayton

    Robert Stayton - 2012-02-17

    Thanks for the report. This solution seems to work for AH, XEP, and FOP1.

     
  • Robert Stayton

    Robert Stayton - 2012-02-17

    A fix for this issue has been added to the current codebase.
    Please test the fix with the latest snapshot from:

    http://docbook.sourceforge.net/snapshots/

     
  • Robert Stayton

    Robert Stayton - 2012-02-17
    • assigned_to: nobody --> bobstayton
    • status: open --> pending-fixed
     
  • Robert Stayton

    Robert Stayton - 2014-01-20
    • Status: pending-fixed --> closed-fixed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks