This is the mail archive of the docbook@lists.oasis-open.org mailing list for the DocBook project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: [docbook] need coding for "Caps/smallcaps" and "bolditalic" text


Thanks Bob. It works and now I've no more question for small-caps coding.

Thanks once again to you and all my friends across the sea who helped me to
solve this problem.

Always Yours.
Raju Sharma


> -----Original Message-----
> From: Bob Stayton [mailto:bobs@sco.com]
> Sent: Friday, May 30, 2003 11:00 PM
> To: Raju Sharma
> Cc: docbook
> Subject: Re: [docbook] need coding for "Caps/smallcaps" and "bolditalic"
> text
>
>
> On Thu, May 29, 2003 at 10:25:47AM +0530, Raju Sharma wrote:
> > Hello,
> >
> > Is there any coding/attribute available for making text
> SmallCaps (sc) and
> > BoldItalic (both Bold as well as italic)?
> >
> > I tried to use <emphasis role="smallcaps">...</emphasis> and <emphasis
> > role="bolditalic">...</emphasis>. But it is not working.
> >
> > NOTE: After this I tried <emphasis><emphasis
> > role="bold">..blah...</emphasis></emphasis> for bold italic and
> it works. Is
> > this nesting of <emphasis> acceptable?
>
> If this is for HTML output, you can set the stylesheet
> parameter 'emphasis.propagates.style' to 1, and then
> the role value on emphasis is copied into the class
> attribute for the HTML <span> element that wraps around
> the output.  For example:
>
> <emphasis role="smallcaps">...</emphasis>
>
> becomes:
>
> <span class="smallcaps">...</span>
>
> Then you can add styles to a CSS stylesheet like:
>
> .smallcaps {font-variant: small-caps;}
>
> Be sure to also set the 'html.stylesheet'
> parameter to your stylesheet name, and copy the stylesheet
> file to the output directory.
>
> If this is for FO output as well, you will need to
> customize the template that matches 'emphasis' from
> fo/inline.xsl in a customization layer.  The customization
> could respond to the role attribute to set the appropriate
> XSL font properties in the <fo:inline> output.  Do
> you need more help with that?
>
> --
>
> Bob Stayton                                 400 Encinal Street
> Publications Architect                      Santa Cruz, CA  95060
> Technical Publications                      voice: (831) 427-7796
> The SCO Group                               fax:   (831) 429-1887
>                                             email: bobs@sco.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-help@lists.oasis-open.org
>



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]