docbook-apps

  • 1.  Customization of the text output of

    Posted 07-24-2014 10:24
    I want to customize the text output of <keycap function="backspace"/>
    and <keycap function="delete">
    [the first I think is ugly and the second doesn't correspond to all of
    the keyboards I have looked at which have a primary 'Delete' key not
    'Del']

    I can see this is a language/localization issue. Is there a simple(r)
    way of customizing without have to customize a language setting?

    Thanks Phillip



  • 2.  Re: [docbook-apps] Customization of the text output of

    Posted 07-24-2014 10:31
    Hi Phillip

    You can create a local localisation file with your own strings. You need
    to set the local.l10n.xml parameter in your customisation layer. See
    http://www.sagehill.net/docbookxsl/CustomGentext.html.

    Simon Dew

    Technical Author | Stanley Security Solutions
    1 Park Gate Close, Bredbury, Stockport SK6 2SZ, U.K.

    Simon.Dew@SBDInc.com | +44 (0) 161 406 3400
    www.stanleysecuritysolutions.co.uk

    Registered Office: Stanley House, Bramble Road, Swindon
    Registered in England and Wales No. 181585 VAT No. 232 2446 95

    On 24/07/2014 11:24, Phillip Kent wrote:

    > I want to customize the text output of <keycap function="backspace"/>
    > and <keycap function="delete">
    > [the first I think is ugly and the second doesn't correspond to all of
    > the keyboards I have looked at which have a primary 'Delete' key not
    > 'Del']
    >
    > I can see this is a language/localization issue. Is there a simple(r)
    > way of customizing without have to customize a language setting?
    >
    > Thanks Phillip
    >
    > ---------------------------------------------------------------------
    > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
    >


  • 3.  Re: [docbook-apps] Customization of the text output of

    Posted 07-24-2014 10:56
    Thanks. Perfect...

    So I add this to the 'common' file of my customization layer:

    <xsl:param name="local.l10n.xml" select="document('')"/>
    <l:i18n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0">
    <l:l10n language="en">
    <l:context name="keycap">
    <l:template name="delete" text="Delete"/>
    <l:template name="backspace" text="Backspace"/>
    </l:context>
    </l:l10n>
    </l:i18n>


    On Thu, Jul 24, 2014 at 11:31 AM, Dew, Simon <Simon.Dew@sbdinc.com> wrote:
    > Hi Phillip
    >
    > You can create a local localisation file with your own strings. You need
    > to set the local.l10n.xml parameter in your customisation layer. See
    > http://www.sagehill.net/docbookxsl/CustomGentext.html.
    >
    > Simon Dew
    >
    > Technical Author | Stanley Security Solutions
    > 1 Park Gate Close, Bredbury, Stockport SK6 2SZ, U.K.
    >
    > Simon.Dew@SBDInc.com | +44 (0) 161 406 3400
    > www.stanleysecuritysolutions.co.uk
    >
    > Registered Office: Stanley House, Bramble Road, Swindon
    > Registered in England and Wales No. 181585 VAT No. 232 2446 95
    >
    > On 24/07/2014 11:24, Phillip Kent wrote:
    >
    >> I want to customize the text output of <keycap function="backspace"/>
    >> and <keycap function="delete">
    >> [the first I think is ugly and the second doesn't correspond to all of
    >> the keyboards I have looked at which have a primary 'Delete' key not
    >> 'Del']
    >>
    >> I can see this is a language/localization issue. Is there a simple(r)
    >> way of customizing without have to customize a language setting?
    >>
    >> Thanks Phillip
    >>
    >> ---------------------------------------------------------------------
    >> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    >> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
    >>



    --
    //www.phillipkent.net



  • 4.  Re: [docbook-apps] Customization of the text output of

    Posted 07-24-2014 11:23
    Yep, that code looks about right.

    Simon Dew

    Technical Author | Stanley Security Solutions
    1 Park Gate Close, Bredbury, Stockport SK6 2SZ, U.K.

    Simon.Dew@SBDInc.com | +44 (0) 161 406 3400
    www.stanleysecuritysolutions.co.uk

    Registered Office: Stanley House, Bramble Road, Swindon
    Registered in England and Wales No. 181585 VAT No. 232 2446 95

    On 24/07/2014 11:55, Phillip Kent wrote:

    > Thanks. Perfect...
    >
    > So I add this to the 'common' file of my customization layer:
    >
    > <xsl:param name="local.l10n.xml" select="document('')"/>
    > <l:i18n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0">
    > <l:l10n language="en">
    > <l:context name="keycap">
    > <l:template name="delete" text="Delete"/>
    > <l:template name="backspace" text="Backspace"/>
    > </l:context>
    > </l:l10n>
    > </l:i18n>
    >
    >
    > On Thu, Jul 24, 2014 at 11:31 AM, Dew, Simon <Simon.Dew@sbdinc.com> wrote:
    >> Hi Phillip
    >>
    >> You can create a local localisation file with your own strings. You need
    >> to set the local.l10n.xml parameter in your customisation layer. See
    >> http://www.sagehill.net/docbookxsl/CustomGentext.html.
    >>
    >> Simon Dew
    >>
    >> Technical Author | Stanley Security Solutions
    >> 1 Park Gate Close, Bredbury, Stockport SK6 2SZ, U.K.
    >>
    >> Simon.Dew@SBDInc.com | +44 (0) 161 406 3400
    >> www.stanleysecuritysolutions.co.uk
    >>
    >> Registered Office: Stanley House, Bramble Road, Swindon
    >> Registered in England and Wales No. 181585 VAT No. 232 2446 95
    >>
    >> On 24/07/2014 11:24, Phillip Kent wrote:
    >>
    >>> I want to customize the text output of <keycap function="backspace"/>
    >>> and <keycap function="delete">
    >>> [the first I think is ugly and the second doesn't correspond to all of
    >>> the keyboards I have looked at which have a primary 'Delete' key not
    >>> 'Del']
    >>>
    >>> I can see this is a language/localization issue. Is there a simple(r)
    >>> way of customizing without have to customize a language setting?
    >>>
    >>> Thanks Phillip
    >>>
    >>> ---------------------------------------------------------------------
    >>> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    >>> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
    >>>
    >
    >
    >