Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: stepheny on June 03, 2002, 09:06:44 am

Title: Question on RTF templates
Post by: stepheny on June 03, 2002, 09:06:44 am
hi all,

in the lastest build, there is a feature to customize a RTF Style Templates. But when i try to customize it, it show something like this:

\pard\plain \s1\sb240\sa60\keepn\widctlpar\outlinelevel0\adjustright\b\f17\fs36\cf9\kerning2 8\cgrid {#TEXT# \par }\pard\plain \widctlpar\adjustright \fs20\cgrid {\par}

Is there any document to indicate what is the meaning for these commands?? Or better yet, any program to generate something like this?? Is it possible to do table??

Our company already has some template and format on Use Case already and if we can use this feature to generate a template that will match our requirement that will be great.

many thx,

Stephen Yau
Title: Re: Question on RTF templates
Post by: javelin5 on June 03, 2002, 12:58:53 pm
I agree, this seems like an incredibly useful feature.  We just need to know where to start looking so we can understand how to produce these templates.

Thanks,

Tim
Title: Re: Question on RTF templates
Post by: mch on June 03, 2002, 04:01:13 pm
Hi all,
I believe that these are RTF tags as defined in the RTF standards. I'm not sure what version EA implements but I've found a reference to version 1.6 on the Microsoft site - http://msdn.microsoft.com/library/en-us/dnrtfspec/html/rtfspec.asp . A google search on RTF Specification leads to some other sites. Looks fairly complex though.
Cheers,
Mark
Title: Re: Question on RTF templates
Post by: gsparks on June 04, 2002, 10:50:35 pm
Hi all,

I can only agree that raw RTF is very unfriendly!

The difficulty is that the various fragments are part of a whole - and I havent discovered a way to display or represent each fragment in a WYSIWYG manner.
I had hoped to put all the fragments in an RTF document with some tags to indicate the start and end of each fragment - but in general this approach seemed to cause my copy of Word to GPF with painful regularity.

You could try:
http://www.biblioscape.com/rtf15_spec.htm

for information on RTF tags.

Also note that RTF is not very forgiving ... one misplaced } and the whole document may not load.

THe best way to start would be to try a few of the simpler tags - bold, underline etc. and work up from there.

The main RTF fragment would be the "Basic Style". It defines the character sets and sizes for several headings and other items - so changing some of this could have a big effect.

Hope this is something to get started with,

Geoff Sparks
Title: Re: Question on RTF templates
Post by: Fred Hirschfeld on June 05, 2002, 11:34:11 am
I would recommend that you use Microsoft Word to create the document with the necessary tags and save as RTF. Hopefully this will create the RTF as needed by the tool.
Title: Re: Question on RTF templates
Post by: Darren Lock on June 07, 2002, 02:37:09 am
Geoff,

I think I may have suggested previously about using an RTF control rather than an TextBox to input text. If you used an RTF control in the template editor and provided a menu, tree, list, etc. to pick the # keywords from then users could build up the template in WYSIWYG format.

What do you think?

Rgds, Darren.