cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Generated display

SindyYoung
2-Guest

Generated display

Hi Adepters,
I am working with Architect 5.3 and fosi's. I have a note that is input
in one place and displayed as generated text in another. If I wrap the
text inside the paragraph of the note with emphasis set to italicize,
then the generated text displays properly. Since there are literally
hundreds of these instances in a very large document, I wanted to code
the stylesheet to automatically make the text italicized both in the
paragraph and the display text when a certain nesting of tags happen. I
am halfway there, the text inside the paragraph will come in as
italicized, but the generated text remains as stick font and NOT
italicized. Any suggestions!!!

This is how it is appearing now................

<<picture (device=" independent=" bitmap)=">>

<<picture (device=" independent=" bitmap)=">>

This is how it should appear w/o the emphasis
tags..........................

<<picture (device=" independent=" bitmap)=">>

<<picture (device=" independent=" bitmap)=">>

P.S. Please excuse the lack of imagination in my examples. My brain is
too tired.........................

Sindy Young
AWACS Tools and Technology Team,
(253) 657-6964
Kent, WA 98032

7 REPLIES 7

Hi Sindy-



One way to do this would be to include the emphasis markup in the savetext
when you store the content for reuse later. So, you'd have something along
these lines:





<e-i-c gi="para" context="misnote">

<charlist inherit="1">

<savetext textid="some.id" conrule=" !&lt;emphasis&lt;br /&gt;role="italic"&gt;!,#CONTENT,!&lt;/emphasis&gt;!">

</charlist>

</e-i-c>



You could also use pseudo-elements to do something similar:



<e-i-c gi="para" context="misnote">

<charlist inherit="1">

<savetext textid="some.id" conrule="&lt;note.ital&gt;,#CONTENT,&lt;/note.ital&gt;">

</charlist>

</e-i-c>



<e-i-c gi="note.ital">

<charlist inherit="1">



</charlist>

</e-i-c>



Caveat-I'm putting this together off the top of my head; debugging is left
as an exercise for the reader.



--Clay



Clay Helberg

Senior Consultant

TerraxXML


We'd need to see the para e-i-c to tell. Possibly there is a context that is
correct in-place but fails within the gentext construct s the emptype
attribute is ignored in (or not passed through to) gentext. I always try
inserting a usetext source="ASDF" to see where that shows (and doesn't) to
verify whether my particular context or attribute test is firing or not.

Need to see more to really tell (especially context and what the
attriburtes mean), but here is one way:

Save the formatted text somewhere (to a variable) then use it somewhere
else.

This is an example of using a pseudo element (italix.ps) to make the
saved text in the variable format as you want.

<e-i-c gi="para">
<charlist>
</charlist>
<att>
<specval attname="emptype" attloc="para" attval="1">
<charsubset>
<savetext textid="variable_name.txt"&lt;br"/>conrule="<italic.ps>, #CONTENT, </italic.ps>" append="0">
</charsubset>
</att>
</e-i-c>


<e-i-c gi="italic.ps">
<charlist inherit="1">

</charlist>
</e-i-c>

Then when you use it, it will be in italics.

<usetext source="variable_name.txt"></usetext>

-Andy
\ / Andy Esslinger LM Aero Tech Order Data
_____-/\-_____ (817) 279-0442 Box 748, Mail Zone 4285
\_\/_/ (817) 777 3047 Ft. Worth, TX 76101-0748

Alright, time to work on 3-part harmony.

Here are the four panels concerned. Hope this helps. As you can see
there is not a use text anywhere in here. I didn't develop this fosi,
but its what I have to use. It contains semantic tables. Which is
causing me no small amount of frustration. Again thanks in advance for
everyones help.
<e-i-c gi="remark">

<charlist charsubsetref="ownline">

<reset resetlist="rmklist.ct">

<savetext textid="moro.txt" conrule="\\" placemnt="before" append="0">

</charlist>

<att>

<specval attname="maint" attval="1">

<charsubset>

<savetext textid="moro.txt" conrule="\(M)" \&quot;=" placemnt="before"&lt;br"/>append="0">

</charsubset>

</att>

<att>

<specval attname="ops" attval="1">

<charsubset>

<savetext textid="moro.txt" conrule="\(O)" \&quot;=" placemnt="before"&lt;br"/>append="1">

</charsubset>

</att>

</e-i-c>



<e-i-c gi="para" context="remark">

<charlist>

<suppress sup="1">

<reset resetlist="rmklist.ct">

<savetext textid="rmrk.txt" conrule="#CONTENT" append="0">

<savetext textid="cols8-10.tbl"&lt;br"/>
conrule='!<entry namest="melcol8" nameend="melcol10"&lt;br"/>colsep="1"><para>!,moro.txt,rmrk.txt,!</para></entry>!'

placemnt="after" append="0">

<savetext textid="body.tbl"&lt;br"/>
conrule="!<row>!,cols1.tbl,cols2-3.tbl,cols4-7.tbl,cols8-10.tbl,!</row>!
"

placemnt="after" append="1"></charlist>

</e-i-c>



<e-i-c gi="misnote" context="para" remark&quot;=">

<charlist>

<savetext textid="rmrk.txt" conrule="#CONTENT" append="0">

<savetext textid="cols8-10.tbl"&lt;br"/>
conrule='!<entry namest="melcol8" nameend="melcol10"&lt;br"/>colsep="1"><para>!,moro.txt,rmrk.txt,!</para></entry>!'

placemnt="after" append="0">

<savetext textid="body.tbl"&lt;br"/>
conrule="!<row>!,cols1.tbl,cols2-3.tbl,cols4-7.tbl,cols8-10.tbl,!</row>!
"

placemnt="after" append="1"></charlist>

</e-i-c>



<e-i-c gi="para" context="misnote" para=" remark&quot;=" occur="all">
_id="f1031">

<charlist>

<suppress sup="1">

<reset resetlist="rmklist.ct">

<savetext textid="rmrk.txt"&lt;br"/>
conrule='!,<emphasis type="i">,#CONTENT,</emphasis>,!' append="0">

<savetext textid="cols8-10.tbl"&lt;br"/>
conrule='!<entry namest="melcol8" nameend="melcol10"&lt;br"/>colsep="1"><para>!,moro.txt,rmrk.txt,!</para></entry>!'

placemnt="after" append="0">

<savetext textid="body.tbl"&lt;br"/>
conrule="!<row>!,cols1.tbl,cols2-3.tbl,cols4-7.tbl,cols8-10.tbl,!</row>!
"

placemnt="after" append="1"></charlist>

</e-i-c>



Sindy



With this code, I would modify each of these lines:

> conrule='!<entry namest="melcol8" nameend="melcol10"&lt;br"/>> colsep="1"><para>!,moro.txt,rmrk.txt,!</para></entry>!'
>
> placemnt="after" append="0">
>

to be:
conrule='!<entry namest="melcol8" nameend="melcol10"&lt;br"/>colsep="1"><para>!,\ASDFlinenumber\,moro.txt,rmrk.txt,!</para></entry>!'
placemnt="after" append="0">

Where "linenumber" is the actual line number of the FOSI (but I work in a
text editor, you might choose the context string). For example:

\ASDF947\
or
\ASDFparamisnoteremarkpara\

Your output will reveal WHICH of those is firing.

--
Paul Nagai

Thank you Paul, I will try this.
Sindy
Announcements