[xep-support] evem line height with superscript (was:1. unicode characters (eg arrow up) 2. line-height)

Paul A. Hoadley paulh at logicsquad.net
Wed Jan 22 03:02:33 PST 2003


On Wed, Jan 22, 2003 at 11:12:31AM +0100, Tobias Reif wrote:
> 
> >There is a special XSL property, "line-height-shift-adjustment", 
> 
> Thank you very much for these suggestions.
> 
> line-height-shift-adjustment seems to do what it should (though I
> have the impression that now there's a more space *below* the line),
> but the superscript text now nearly touches the above line.

This combination looks pretty good to me:

  <xsl:template name="format.footnote.mark">
    <xsl:param name="mark" select="'?'"/>
    <fo:inline baseline-shift="super" font-size="70%">
      <xsl:copy-of select="$mark"/>
    </fo:inline>
  </xsl:template>

[Above is what I suggested in a previous mail, but with a more
reasonable 70% scale factor.]

  <xsl:attribute-set name="normal.para.spacing">
    <xsl:attribute name="space-before.optimum">1em</xsl:attribute>
    <xsl:attribute name="space-before.minimum">0.8em</xsl:attribute>
    <xsl:attribute name="space-before.maximum">1.2em</xsl:attribute>
    <xsl:attribute name="line-height-shift-adjustment">
      disregard-shifts
    </xsl:attribute>
  </xsl:attribute-set>

With 10 point Times Roman, the superscript footnote marks seem to miss
the descenders from the line above and are not too small, and the line
spacing is unaffected.  However, if you didn't like 90%, Tobias,
you're not going to like 70%.  :-) You may have to keep trying, but
this looks nice to me.  Also, this could break all manner of other
formatting with Norm's FO stylesheets for all I know, in particular
inline graphics -- I've only tested it on a minimal input to see what
it did for footnotes.  There is bound to be a better way.


-- 
Paul.

mailto:paulh at logicsquad.net
mailto:paul.hoadley at student.adelaide.edu.au
-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo at renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html



More information about the Xep-support mailing list