On Friday 08 May 2009 22:20:40 Abdelrazak Younes wrote:
> I must have missed the purpose of Inset::plaintext()... ;-)

That is only half of the story. :-)

The other half is coded in the text classes (layout files).

Take the section style as an example (I took this chunk from stdsections.inc):

Style Section
        Category              Section
        Margin                Dynamic
        LabelType             Counter
        LabelCounter          section
        TocLevel              1
        NextNoIndent          1
        LabelSep              xxx
        ParSkip               0.4
        TopSep                1.3
        BottomSep             0.7
        ParSep                0.7
        Align                 Block
        OptionalArgs          1
        Font
          Series              Bold
          Size                Larger
        EndFont
                 Output Latex
             Type             Command
             Name             section
             NeedProtect      1
        End
                 Output Plaintext
                 Type             Header
        End
        Output Html
             Type             Command
             Name             h2
        End
End

Notice at the end the differences between the several output formats.
This would allow to create styles that could be defined through css files and 
not just using some hardwired heuristic like what we do for plain text.

> Abdel.

-- 
José Abílio

Reply via email to