docbook-apps

  • 1.  re: How to create sidebars for epub3?

    Posted 10-13-2012 02:43
    Jason, one thing that you should remember is that Amazon recently made
    the Kindle 3s support KF8. Kindle 3s were available as early as Fall,
    2010, so that did wonders for backward compatibility. Ideally one
    would like to support everything, but I think people trade up their
    ebook devices a lot more regularly than their laptop for example. The
    Kindle 4 (i.e., Kindle Touch) now sells for $70. I just can't imagine
    that there are many Kindle 1 and 2 owners who have refused to trade up
    to a 70$ device. So I am comfortable igoring the mobi7 for my ebooks
    (although I do try to make sure it's not sucky in Kindle Previewer).

    I haven't tried sidebars in epub3, but I played around pretty heavily
    with them in epub2. I found that when sidebar is outputted to xhtml,
    it adds an extra
    in the output , and for
    me at least it caused major difficulties rendering in the browser.
    (and probably in the epub reader). I even filed a bug about it.
    http://sourceforge.net/tracker/?func=detail&aid=3083800&group_id=21935&atid=373747
    (Make sure to expand to read the comments) I don't know if this bug
    report is still relevant though.

    It led me to devise workarounds so I didn't need to use a sidebar on
    epub files.

    I wanted sidebars to do pullquotes and as a container for image +
    caption. I ended up making templates for images + captions which did
    not suck instead. (i'll be happy to share them, but I put them on my
    epub-docbook dump page . It's the first 2 points.
    http://www.imaginaryplanet.net/weblogs/idiotprogrammer/2010/11/ebookepub-production-secrets-tips-tricks/

    With mobipocket 7, it was impossible to make any kind of floating
    sidebars (or floating ANYTHING); the formatting guide said the only
    way to approximate a sidebar was to begin and end it with an hr. So
    you'd have to do major transformations to the mobi7 output to make it
    work.


    One final thing with regard to sidebars and new ebook readers. Even if
    the sidebars render properly (and I think we're finally at the point
    where that is indeed possible), the reading devices of 4x6 inches
    don't really let you use sidebars very well. Obviously they would look
    better in something with the form factor of an ipad (and you can use
    media queries in kf8 and epub3 devices to take advantage of them), but
    on the smaller 4x6 sidebars don't give you much. The only case I could
    think of for sidebars was a small floating image (less than half the
    size of the width). The problem is that the body of the text next to
    the sidebar would only be half as wide and would look awkward on a
    page.

    If I were writing css media queries, I would probably hide the
    sidebars altogether from the 4x6 devices.

    Anyway, those are my thoughts.




    --
    Robert Nagle
    6121 Winsome Ln #56C, Houston TX 77057-5581
    (H) 713 893 3424/ (W) 832-251-7522 Carbon Neutral Since Jan 2010
    http://www.robertnagle.info



  • 2.  Re: [docbook-apps] re: How to create sidebars for epub3?

    Posted 10-13-2012 06:19
    On 10/13/2012 03:43 AM, Robert Nagle wrote:
    > Jason, one thing that you should remember is that Amazon recently made
    > the Kindle 3s support KF8. Kindle 3s were available as early as Fall,
    > 2010, so that did wonders for backward compatibility. Ideally one
    > would like to support everything, but I think people trade up their
    > ebook devices a lot more regularly than their laptop for example. The
    > Kindle 4 (i.e., Kindle Touch) now sells for $70. I just can't imagine
    > that there are many Kindle 1 and 2 owners who have refused to trade up
    > to a 70$ device.


    About the same number of ie6 or 8 users?
    I think the above logic is flawed. Customers are strange beasts.





    regards

    --
    Dave Pawson
    XSLT XSL-FO FAQ.
    http://www.dpawson.co.uk



  • 3.  Re: [docbook-apps] re: How to create sidebars for epub3?

    Posted 10-13-2012 10:42
    Just to add to this, apparently getting a later Kindle device is not
    necessarily 'trading up' in some people's view - as in this review:

    http://www.hanselman.com/blog/AmazonKindlePaperwhite3GWiFiReview.aspx

    Phil Fearon

    On Sat, Oct 13, 2012 at 7:19 AM, DaveP <davep@dpawson.co.uk> wrote:
    > On 10/13/2012 03:43 AM, Robert Nagle wrote:
    >>
    >> Jason, one thing that you should remember is that Amazon recently made
    >> the Kindle 3s support KF8. Kindle 3s were available as early as Fall,
    >> 2010, so that did wonders for backward compatibility. Ideally one
    >> would like to support everything, but I think people trade up their
    >> ebook devices a lot more regularly than their laptop for example. The
    >> Kindle 4 (i.e., Kindle Touch) now sells for $70. I just can't imagine
    >> that there are many Kindle 1 and 2 owners who have refused to trade up
    >> to a 70$ device.
    >
    >
    >
    > About the same number of ie6 or 8 users?
    > I think the above logic is flawed. Customers are strange beasts.
    >
    >
    >
    >
    >
    > regards
    >
    > --
    > Dave Pawson
    > XSLT XSL-FO FAQ.
    > http://www.dpawson.co.uk
    >
    >
    > ---------------------------------------------------------------------
    > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
    >



  • 4.  RE: [docbook-apps] re: How to create sidebars for epub3?

    Posted 10-15-2012 14:46
    I think the tipping point is coming (if nothing else those devices will start falling apart, unlike IE6, God help us), but the audience for our content is not very tech-savvy. They are likely still using Kindles they got as gifts and don't even know there are new ones to buy. I would make the decision to abandon mobi7 based on your customers/audience.

    -----Original Message-----
    From: DaveP [mailto:davep@dpawson.co.uk]
    Sent: Saturday, October 13, 2012 1:19 AM
    To: docbook-apps@lists.oasis-open.org
    Subject: Re: [docbook-apps] re: How to create sidebars for epub3?

    On 10/13/2012 03:43 AM, Robert Nagle wrote:
    > Jason, one thing that you should remember is that Amazon recently made
    > the Kindle 3s support KF8. Kindle 3s were available as early as Fall,
    > 2010, so that did wonders for backward compatibility. Ideally one
    > would like to support everything, but I think people trade up their
    > ebook devices a lot more regularly than their laptop for example. The
    > Kindle 4 (i.e., Kindle Touch) now sells for $70. I just can't imagine
    > that there are many Kindle 1 and 2 owners who have refused to trade up
    > to a 70$ device.


    About the same number of ie6 or 8 users?
    I think the above logic is flawed. Customers are strange beasts.





    regards

    --
    Dave Pawson
    XSLT XSL-FO FAQ.
    http://www.dpawson.co.uk

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org




  • 5.  Re: [docbook-apps] re: How to create sidebars for epub3?

    Posted 10-14-2012 03:57
    Regarding the issue of empty titlepage div creating problems:

    > I haven't tried sidebars in epub3, but I played around pretty heavily
    > with them in epub2. I found that when sidebar is outputted to xhtml,
    > it adds an extra
    in the output , and for
    > me at least it caused major difficulties rendering in the browser.

    I looked at that bug before releasing 1.77.1 and didn't see a good way to
    fix it. The titlepage templates are generated from the titlepage spec file
    using template/titlepage.xsl, and any fix seemed to involve all elements
    with titles. I just looked again and came up with this customization
    workaround for sidebar:

    <xsl:template match="d:sidebar">

    <xsl:call-template name="common.html.attributes"/>
    <xsl:call-template name="id.attribute"/>
    <xsl:call-template name="anchor"/>
    <xsl:variable name="titlepage">
    <xsl:call-template name="sidebar.titlepage"/>
    </xsl:variable>
    <xsl:if test="count(exsl:node-set($titlepage)/descendant-or-self::*)
    > 1">
    <xsl:copy-of select="$titlepage"/>
    </xsl:if>
    <xsl:apply-templates/>

    </xsl:template>

    This version puts the titlepage stuff into a variable and then tests to see
    if the results have more than one element. If there is a single element
    (which would be the case for an empty div), then the empty div is not
    output. I only did a couple of tests with this change, so let me know if it
    does or does not work for you.

    Bob Stayton
    Sagehill Enterprises
    bobs@sagehill.net

    --------------------------------------------------
    From: "Robert Nagle" <idiotprogrammer@gmail.com>
    Sent: Friday, October 12, 2012 7:43 PM
    To: <docbook-apps@lists.oasis-open.org>
    Cc: <afx@afximages.com>; <zech@loyolapress.com>
    Subject: [docbook-apps] re: How to create sidebars for epub3?

    > Jason, one thing that you should remember is that Amazon recently made
    > the Kindle 3s support KF8. Kindle 3s were available as early as Fall,
    > 2010, so that did wonders for backward compatibility. Ideally one
    > would like to support everything, but I think people trade up their
    > ebook devices a lot more regularly than their laptop for example. The
    > Kindle 4 (i.e., Kindle Touch) now sells for $70. I just can't imagine
    > that there are many Kindle 1 and 2 owners who have refused to trade up
    > to a 70$ device. So I am comfortable igoring the mobi7 for my ebooks
    > (although I do try to make sure it's not sucky in Kindle Previewer).
    >
    > I haven't tried sidebars in epub3, but I played around pretty heavily
    > with them in epub2. I found that when sidebar is outputted to xhtml,
    > it adds an extra
    in the output , and for
    > me at least it caused major difficulties rendering in the browser.
    > (and probably in the epub reader). I even filed a bug about it.
    > http://sourceforge.net/tracker/?func=detail&aid=3083800&group_id=21935&atid=373747
    > (Make sure to expand to read the comments) I don't know if this bug
    > report is still relevant though.
    >
    > It led me to devise workarounds so I didn't need to use a sidebar on
    > epub files.
    >
    > I wanted sidebars to do pullquotes and as a container for image +
    > caption. I ended up making templates for images + captions which did
    > not suck instead. (i'll be happy to share them, but I put them on my
    > epub-docbook dump page . It's the first 2 points.
    > http://www.imaginaryplanet.net/weblogs/idiotprogrammer/2010/11/ebookepub-production-secrets-tips-tricks/
    >
    > With mobipocket 7, it was impossible to make any kind of floating
    > sidebars (or floating ANYTHING); the formatting guide said the only
    > way to approximate a sidebar was to begin and end it with an hr. So
    > you'd have to do major transformations to the mobi7 output to make it
    > work.
    >
    >
    > One final thing with regard to sidebars and new ebook readers. Even if
    > the sidebars render properly (and I think we're finally at the point
    > where that is indeed possible), the reading devices of 4x6 inches
    > don't really let you use sidebars very well. Obviously they would look
    > better in something with the form factor of an ipad (and you can use
    > media queries in kf8 and epub3 devices to take advantage of them), but
    > on the smaller 4x6 sidebars don't give you much. The only case I could
    > think of for sidebars was a small floating image (less than half the
    > size of the width). The problem is that the body of the text next to
    > the sidebar would only be half as wide and would look awkward on a
    > page.
    >
    > If I were writing css media queries, I would probably hide the
    > sidebars altogether from the 4x6 devices.
    >
    > Anyway, those are my thoughts.
    >
    >
    >
    >
    > --
    > Robert Nagle
    > 6121 Winsome Ln #56C, Houston TX 77057-5581
    > (H) 713 893 3424/ (W) 832-251-7522 Carbon Neutral Since Jan 2010
    > http://www.robertnagle.info
    >
    > ---------------------------------------------------------------------
    > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
    >
    >
    >