| View previous topic :: View next topic |
| Author |
Message |
Jesper Frier Certified Professional


Joined: 09 Sep 2006 Posts: 1923 Location: Stoevring, Denmark
|
| Posted: Thu Feb 22, 2007 8:44 pm Post subject: RTF codes |
|
|
The automatic transformation from HTML to RTF is not 100%.
Here are the main RTF codes you can use to make your RTF-template look nice.
Line break (remember to hit the space key so the code is like \par_)
Tab (also here remember the space at the end)
Bold
Mailto
| Code: | {\field{\*\fldinst{HYPERLINK "mailto:((E-mail))\par
"}}{\fldrslt{\pard\cf1\ul mailto:((E-mail))\cf0\ulnone\v
}}}} |
|
|
| Back to top |
|
 |
metropolitanhotel Just can't stay away
Joined: 25 Jul 2007 Posts: 22
|
| Posted: Wed Sep 05, 2007 6:26 pm Post subject: |
|
|
Rich text is hurting my brain! Every time I go back into my rich text signatures they have added extra spaces and/or line breaks...
As this article suggests, I can't actually add spaces at the end of each statement or the cockpit strips them off.
Any ideas of how to control rich text? Thanks in advance  |
|
| Back to top |
|
 |
Jesper Frier Certified Professional


Joined: 09 Sep 2006 Posts: 1923 Location: Stoevring, Denmark
|
| Posted: Wed Sep 05, 2007 6:30 pm Post subject: 4.8.7 |
|
|
| Should be better in v.4.8.7? Are you up to date? |
|
| Back to top |
|
 |
metropolitanhotel Just can't stay away
Joined: 25 Jul 2007 Posts: 22
|
| Posted: Wed Sep 05, 2007 6:34 pm Post subject: Re: 4.8.7 |
|
|
| Jesper Frier wrote: | | Should be better in v.4.8.7? Are you up to date? |
Better, but still bad... It seems to require at least one extra line break at the end or it breaks the code and puts one of those little squares at the end (that stop sign.exe from running) |
|
| Back to top |
|
 |
Jesper Frier Certified Professional


Joined: 09 Sep 2006 Posts: 1923 Location: Stoevring, Denmark
|
| Posted: Wed Sep 05, 2007 6:46 pm Post subject: |
|
|
Please post your code, and I shall look into it asap ...  |
|
| Back to top |
|
 |
metropolitanhotel Just can't stay away
Joined: 25 Jul 2007 Posts: 22
|
| Posted: Wed Sep 05, 2007 6:53 pm Post subject: |
|
|
| Code: | {\rtf1\ansi\ansicpg1252\deff0\deflang2057{\fonttbl{\f0\fswiss\fprq2\fcharset0 Verdana;}}
{\*\generator Msftedit 5.41.15.1507;}\viewkind4\uc1\pard\f0\fs24\par
\fs20 ((Display_name))\par
((Title))\par
\par
Metropolitan Hotel\par
Old Park Lane\par
London\par
W1K 1LB\par
\par
Direct Tel:\tab ((Telephone_Number))\par
Direct Fax:\tab ((Fax_number))\par
E-mail:\tab\tab ((Email))\par
Website:\tab metropolitan.como.bz\par
\par
PART OF THE COMO GROUP\par
\par
\pard\fs24
}
|
It should display as shown below, but I can't get rid of the top line break or the bottom two line breaks...
| Code: |
((Display_name))
((Title))
Metropolitan Hotel
Old Park Lane
London
W1K 1LB
Direct Tel: ((Telephone_Number))
Direct Fax: ((Fax_number))
E-mail: ((Email))
Website: metropolitan.como.bz
PART OF THE COMO GROUP
|
If I go into the cockpit editor at all it often adds all sorts of stuff, sometimes there are 4 or 5 spaces in front of the last line. |
|
| Back to top |
|
 |
Jesper Frier Certified Professional


Joined: 09 Sep 2006 Posts: 1923 Location: Stoevring, Denmark
|
| Posted: Wed Sep 05, 2007 6:57 pm Post subject: Generate from HTML |
|
|
One quick question; Why spend time on RTF (and TXT) for your standard signature if you use HTML?
Unless you use the same signature for replies ...
We only recommend generating RTF and TXT for reply signatures as they are used when replying these formats.
| Code: | {\rtf1\ansi\ansicpg1252\deff0\deflang1030{\fonttbl{\f0\fswiss\fcharset0 Arial;}{\f1\froman\fcharset0 Times New Roman;}}
{\colortbl ;\red0\green0\blue0;}
{\*\generator Msftedit 5.41.15.1507;}\viewkind4\uc1\pard\sb100\sa100\cf1\f0\fs20 ((Display_name)) \line ((Title)) \line\line Metropolitan Hotel \line Old Park Lane \line London \line W1K 1LB \line\line Direct Tel: ((Telephone_Number)) \line Direct Fax: ((Fax_number)) \line E-mail: ((Email)) \line Website: metropolitan.como.bz \line\line PART OF THE COMO GROUP\cf0\f1\fs24 \par
\pard\cf1\f0\fs20
} |
Does this work? (Used 'Generate from HTML' in Cockpit menu) |
|
| Back to top |
|
 |
metropolitanhotel Just can't stay away
Joined: 25 Jul 2007 Posts: 22
|
| Posted: Thu Sep 06, 2007 9:30 am Post subject: |
|
|
That displays as:
| Code: | ((Display_name))
((Title))
Metropolitan Hotel
Old Park Lane
London
W1K 1LB
Direct Tel: ((Telephone_Number))
Direct Fax: ((Fax_number))
E-mail: ((Email))
Website: metropolitan.como.bz
PART OF THE COMO GROUP
|
I remove the spaces at the front of the first line, the line breaks at the bottom, and corrected the font and size. However after saving the editted version, if I go out and back in again it has added line breaks all over the place, and unless I have a line break at the bottom, I get the invalid square character in my code.
Unfortuntely we do need rich text and plain text versions of the signatures for replying to people who use this format.
I have found a way to force the error... if you open the existing RTF signature, then save it, it automatically puts an extra line break at the top and the bottom. If you do this multiple times it will keep adding extra lines. I guess I should get my RTF file perfect then press save once, then never touch it again! |
|
| Back to top |
|
 |
Jesper Frier Certified Professional


Joined: 09 Sep 2006 Posts: 1923 Location: Stoevring, Denmark
|
| Posted: Thu Sep 06, 2007 4:42 pm Post subject: RTF |
|
|
I use version 4.8.7 and this code displays like below in my Cockpit ...
| Code: | {\rtf1\ansi\ansicpg1252\deff0\deflang1030{\fonttbl{\f0\fswiss\fcharset0 Arial;}{\f1\froman\fcharset0 Times New Roman;}}
{\colortbl ;\red0\green0\blue0;}
{\*\generator Msftedit 5.41.15.1507;}\viewkind4\uc1\pard\sb100\sa100\cf1\f0\fs20 ((Display_name)) \line ((Title)) \line\line Metropolitan Hotel \line Old Park Lane \line London \line W1K 1LB \line\line Direct Tel: ((Telephone_Number)) \line Direct Fax: ((Fax_number)) \line E-mail: ((Email)) \line Website: metropolitan.como.bz \line\line PART OF THE COMO GROUP\cf0\f1\fs24 \par
\pard\cf1\f0\fs20
} |
| Jesper Frier wrote: | ((Display_name))
((Title))
Metropolitan Hotel
Old Park Lane
London
W1K 1LB
Direct Tel: ((Telephone_Number))
Direct Fax: ((Fax_number))
E-mail: ((Email))
Website: metropolitan.como.bz
PART OF THE COMO GROUP |
I am trying to recreate the problems you have, but I cannot ... I don't use 'code view' - only 'design view' - maybe that's the reason.
Also I cannot recreate this ... save and edited several times now - both in code view and design view ...
| metropolitanhotel wrote: | | I have found a way to force the error... if you open the existing RTF signature, then save it, it automatically puts an extra line break at the top and the bottom. If you do this multiple times it will keep adding extra lines. I guess I should get my RTF file perfect then press save once, then never touch it again! |
|
|
| Back to top |
|
 |
|