docbook-apps

Expand all | Collapse all

Re: [docbook-apps] Superscript footnote numbers in XHTML not formatting correctly

  • 1.  Re: [docbook-apps] Superscript footnote numbers in XHTML not formatting correctly

    Posted 02-17-2012 17:42
    Hi Dave,
    That HTML code looks legit to me. Can you try these variants and see if any of them work in all the browsers?

    Original: earth occur in Australia.[1] More ...



    Variant 1: earth occur in Australia.[1] More ...



    Variant 2: earth occur in Australia.[1] More ...



    Bob Stayton
    Sagehill Enterprises
    bobs@sagehill.net





  • 2.  Re: [docbook-apps] Superscript footnote numbers in XHTML not formatting correctly

    Posted 02-18-2012 01:43
    I tried a few variations, and noted that with the default generated
    markup, the problem of a split footnote number occurs only with
    the first footnote in a chunk -- subsequent footnotes in the chunk are
    rendered correctly (which is, a smaller superscript number and the
    hyperlink immediately underneath only the number: [href="#ftn.d0e490" class="footnote">1c]). This is the case for
    Firefox, Chrome and SeaMonkey. IE8 breaks the footnote across two lines.

    I then found a workaround that renders the first footnote correctly in
    most browsers (IE8 still breaks across lines) -- put an empty tag
    before the (though having duplicate
    tags might have issues
    regarding accessibility or validity, and I'm not sure if epubcheck would
    pass such a chunk as valid):

    [class="footnote">1c]

    But the markup that is rendered most consistently across browsers is to
    put the superscript inside the :

    [1a]

    This places the hyperlink underline a small distance below the
    superscript and makes the square brackets and the number active -- this
    could be better than the default markup because there's a slightly
    larger active link area.



    On 18-02-12 4:42 AM, Bob Stayton wrote:
    > Hi Dave,
    > That HTML code looks legit to me. Can you try these variants and see
    > if any of them work in all the browsers?
    >

    Original: earth occur in Australia.[> href="#ftn.d0e490" class="footnote">1] More ...


    >

    Variant 1: earth occur in Australia.> href="#ftn.d0e490" class="footnote">[1] More ...


    >
    >

    Variant 2: earth occur in Australia.> href="#ftn.d0e490" class="footnote">[1] More ...


    > Bob Stayton
    > Sagehill Enterprises
    > bobs@sagehill.net <mailto:bobs@sagehill.net>
    >
    >