Book a Demo

Author Topic: Question on RTF templates  (Read 6027 times)

stepheny

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Question on RTF templates
« 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

javelin5

  • EA User
  • **
  • Posts: 32
  • Karma: +0/-0
    • View Profile
Re: Question on RTF templates
« Reply #1 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
Timothy F. Brown

mch

  • EA User
  • **
  • Posts: 31
  • Karma: +0/-0
    • View Profile
Re: Question on RTF templates
« Reply #2 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

gsparks

  • EA User
  • **
  • Posts: 325
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Re: Question on RTF templates
« Reply #3 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

Fred Hirschfeld

  • Guest
Re: Question on RTF templates
« Reply #4 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.

Darren Lock

  • EA User
  • **
  • Posts: 36
  • Karma: +0/-0
    • View Profile
Re: Question on RTF templates
« Reply #5 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.
Darren Lock
United Kingdom