Skip to main content
1-Visitor
March 28, 2012
Question

how to stop formatting from a style set in a usetext

  • March 28, 2012
  • 5 replies
  • 1490 views
Hello adepters,

I am using a FOSI for a bilingual print publication.

For section titles, I have an e-i-c with a style set of sect1-title which bolds the text and also contains usetext which adds a colon 'after' the text.

There is an attribute rule on title which adds underlining if the <section role="dosage">.

There is another attribute rule on title which adds a space after the title text, and before the colon, if the language on the parent element is French. The usetext source is simply \\.

The problem I am encountering is that for French titles with section role=dosage, the space is appearing but it is getting the underlining as well. Is there any way to stop the underlining from appearing beneath the space? Is there something I can put into the usetext source that will stop the underlining?

Thanks for your help!

Ashley


Ashley Holmes
IT & Production Services
Canadian Pharmacists Association

    5 replies

    1-Visitor
    March 28, 2012
    Hi Ashley:

    Add a subchars to the usetext with a highlt category that turns off underscoring:

    <att>
    <specval attloc="section" attname="language" attval="french">

    <charsubset charsubsetref="underline">
    <usetext source="\" \&quot;=" placemnt="after">
    <subchars>
    <highlt inherit="1" scoring="0">
    ...

    Good luck!

    Suzanne Napoleon
    www.FOSIexpert.com
    "WYSIWYG is last-century technology!"

    1-Visitor
    March 28, 2012
    Ashley,
    The short answer is 'yes, I'm confident there's a way'.

    The slightly longer answer is, we're going to need to see some of your FOSI code in order to give you a useful answer. At the very least, the existing <att> rules that implement the wanted and unwanted formatting.

    Steve Thompson,
    Temporarily Unemployed FOSI Coder
    1-Visitor
    March 28, 2012
    But Suzanne's the expert, so don't listen to me for a second longer. 🙂
    1-Visitor
    March 29, 2012

    D'oh.


    Suzanne, why is it when you mention something I want to hit myself hard on the forehead because it seems so obvious?


    Thanks for the advice - implemented and looks great.


    Ashley

    1-Visitor
    March 29, 2012
    Hi Ashley,

    Don't feel bad -- we've all been there, done that.

    I'm glad it worked 🙂

    Suzanne