trichview.com

trichview.support




Re: Can I set a translation-table for HTML export?


Return to index


Author

Message

Chris Greenshaw

Posted: 01/21/2003 23:49:13


You can define your own styles and export them. I did this by slight changes

to procedure SaveMiddle in the CRVData.pas unit of the RichView source code.

I do not know of a 'correct' way to do this but the changes are not very

large.


************************************************************

The replacements are of the form:


RVWrite(Stream, Format('<P class=RVPS%d>',[li.ParaNo]));


changed to,


RVWrite(Stream, Format('<P class=%s>',[RVStyle.TextStyles[li.StyleNo].StyleName]));

(note that I use [li.StyleNo].StyleName instead of ParaStyle - that is just

the way I did it you can of course use any string as the StyleName argument)


************************************************************


If you can get Sergey to add support for this to the RichView source in some

way that would be much better!


If you want more information please mail me directly.


Regards


Chris


"R. Haensel" <[email protected]> wrote:

>Hi

>I want to use Richedit (1.7) for editing Web-based CMS (similar HTML) files.

>

>Now i have the problem, that i had to use predefined HTML-Tags, which came

>from the CMS-System, in the exported file. This is necessary for use with

>the CMS-System

>

>Now my question: Is it possible to define Textstyles, wich will be replaced

>to a special HTML-Code?

>E.G:

>Heading -->foobar --> <h1>foobar</h1>

>Default Text -->contenttext --> <p class="contenttext">contenttext</p>

>

>How could i realize this? Or must i write my own export routine?

>

>Thanks

>R. Haensel

>

>

>CMS = Content Management System

>

>





Powered by ABC Amber Outlook Express Converter