docbook-apps

  • 1.  Re: [docbook-apps] RE: XSL-FO and unicode

    Posted 07-08-2010 17:44
    My book provides a workaround for this problem of FOP not supporting the
    font-selection-strategy property. See:

    http://www.sagehill.net/docbookxsl/SpecialChars.html#SwitchSymbol

    It requires a stylesheet customization, as well as changing the XML source files for
    any missing characters. Hopefully the FOP developers will fix this limitation soon.

    Bob Stayton
    Sagehill Enterprises
    bobs@sagehill.net





  • 2.  RE: [docbook-apps] RE: XSL-FO and unicode

    Posted 07-09-2010 06:55
    Hi Bob.
    Yes, I have already been told about this.
    The problem is that my symbols are inside text, and If I was to replace them with some tags, I will get back to my problem of storing HTML style data in XML, thus using CDATA, and so on...
    Do you think it is possible to do the customization on the stylesheet, so that it will detect special characters and replace, say α-bungarotoxin by the <symbol role="symbolfont">α</symbol>-bungarotoxin ?
    I read somewhere that the TRUNK version of FOP has some changes in that matter, I may give it a try...

    Thanks for everything
    Regards,
    Fabien



    -----Message d'origine-----
    De : Bob Stayton [mailto:bobs@sagehill.net]
    Envoyé : jeudi 8 juillet 2010 19:44
    À : Fabien Tillier; rob.cavicchio@emc.com; docbook-apps@lists.oasis-open.org
    Objet : Re: [docbook-apps] RE: XSL-FO and unicode

    My book provides a workaround for this problem of FOP not supporting the
    font-selection-strategy property. See:

    http://www.sagehill.net/docbookxsl/SpecialChars.html#SwitchSymbol

    It requires a stylesheet customization, as well as changing the XML source files for
    any missing characters. Hopefully the FOP developers will fix this limitation soon.

    Bob Stayton
    Sagehill Enterprises
    bobs@sagehill.net





  • 3.  RE: [docbook-apps] RE: XSL-FO and unicode

    Posted 07-09-2010 16:04
    Fabien Tillier [mailto:f.tillier@cerep.fr] wrote:


    > Do you think it is possible to do the customization on the stylesheet, so
    > that it will detect special characters and replace, say α-
    > bungarotoxin by the <symbol role="symbolfont">α</symbol>-bungarotoxin
    > ?

    This is certainly possible to do in XSLT. I have done something similar to create HTML entities for special characters. You need to customize the template that matches your text node, cycle through each character using text functions such as "substring", and then just compare the character to the numerical entity; something like this:

    <xsl:when test="$character = 'α'">
    <fo:inline font-family="'Symbol'"><xsl:value-of=select="$character" /></fo:inline>
    </xsl:when>


    > I read somewhere that the TRUNK version of FOP has some changes in that
    > matter, I may give it a try...

    Ooh, that would be good to know. Please let us know what you find.


    *************************
    Rob Cavicchio
    Principal Technical Writer & Information Architect
    EMC Captiva
    Information Intelligence Group
    EMC Corporation
    3721 Valley Centre Drive, Ste 200
    San Diego, CA 92130

    P: (858) 320-1208
    F: (858) 320-1010
    E: rob.cavicchio@emc.com

    The opinions expressed here are my personal opinions. Content published here is not read or approved in advance by EMC and does not necessarily reflect the views and opinions of EMC.