4 Replies Latest reply on Feb 18, 2004 10:51 AM by Viet

    Message layout improved

    Viet Master

      We have rewritten the message parsers for the forum because the previous stuff was not getting the job properly.

      The features are :


      • improved HTML support, outside a pre tag and code tag it behaves as
        HTML (unless it's filtered) and in these tags it will be shown as is
      • well formdness completion, any open tag will be closed wether it is HTML or special codes
      • text renderer is fixed
      • easy to extend


        I copy/paste a test case example :

        this is some plain text
        I love to write entities like < or > to see how the renderer interprets that
        check the line break around this line
        here we check the wellformdness of the HTML stuff because we enter a code section
        which must terminates any open HTML tag
        bold
        italic

        the next line is a quote of myself which contains code
        julien wrote:

        this is an XML sample, so the great than etc... should be displayed instead of
        being treated as entities
        <?xml version="1.0"?>
        <root> the root element is bold
        </root>
        


        the code is closed, we are going to test the nested quotes

        this is a nested quote

        the next line is code that contains no breaks
        public static void



        next one is a quote with no line break
        quote with no line break



        we are going to test if the renderer closes the unclosed statements
        bold, italic, underline

        http://www.test.com


        • first item



          • first item
          • second item



            1. first item
            2. second item



              1. first item
              2. second item


                big red


                a
                a
                a
                a


                a
                a
                a
                a


                a
                a
                a
                a

                a
                 a
                 a
                 a
                


                this is the end of the message


        • 1. Re: Message layout improved
          Daniel Le Berre Newbie

          Hi Julien,

          As a consequence, it is impossible to build the latest nukes from source:

          1 - JFlex is missing from the third party directory

          2 - Once 1) fixed, I obtain the following error message:

          _default:compile-classes:
           [depend] Deleted 0 out of date files in 0 seconds
           [javac] Compiling 40 source files to /tmp/nukes-snapshot/common/output/classes
          [execmodules] /tmp/nukes-snapshot/common/src/main/org/jboss/nukes/common/format/code/CodeParser.java:13: package org.jboss.nukes.common.parsing does not exist
          [execmodules] import org.jboss.nukes.common.parsing.ParseEvent;
          [execmodules] ^
          [execmodules] /tmp/nukes-snapshot/common/src/main/org/jboss/nukes/common/format/code/CodeParser.java:14: package org.jboss.nukes.common.parsing does not exist
          [execmodules] import org.jboss.nukes.common.parsing.AbstractParser;
          [execmodules] ^
          [execmodules] /tmp/nukes-snapshot/common/src/main/org/jboss/nukes/common/format/code/CodeParser.java:15: package org.jboss.nukes.common.parsing does not exist
          [execmodules] import org.jboss.nukes.common.parsing.TextEvent;
          [execmodules] ^
          [execmodules] /tmp/nukes-snapshot/common/src/main/org/jboss/nukes/common/format/code/CodeParser.java:31: cannot resolve symbol
          [execmodules] symbol : class AbstractParser
          [execmodules] location: class org.jboss.nukes.common.format.code.CodeParser
          [execmodules] extends AbstractParser
          [execmodules] ^
          [execmodules] /tmp/nukes-snapshot/common/src/main/org/jboss/nukes/common/format/code/CodeParser.java:66: cannot resolve symbol
          [execmodules] symbol : class TextEvent
          [execmodules] location: class org.jboss.nukes.common.format.code.CodeParser
          [execmodules] private TextEvent textEvent = new TextEvent();
          [execmodules] ^
          [execmodules] /tmp/nukes-snapshot/common/src/main/org/jboss/nukes/common/format/code/CodeParser.java:270: cannot resolve symbol
          [execmodules] symbol : class ParseEvent
          [execmodules] location: class org.jboss.nukes.common.format.code.CodeParser.OpenEvent
          [execmodules] public static class OpenEvent extends CodeKey implements ParseEvent
          [execmodules] ^
          [execmodules] /tmp/nukes-snapshot/common/src/main/org/jboss/nukes/common/format/code/CodeParser.java:278: cannot resolve symbol
          [execmodules] symbol : class ParseEvent
          [execmodules] location: class org.jboss.nukes.common.format.code.CodeParser.CloseEvent
          [execmodules] public static class CloseEvent extends CodeKey implements ParseEvent
          [execmodules] ^
          [execmodules] /tmp/nukes-snapshot/common/src/main/org/jboss/nukes/common/format/html/TagParser.java:13: package org.jboss.nukes.common.parsing does not exist[execmodules] import org.jboss.nukes.common.parsing.ParseEvent;
          [execmodules] ^
          [execmodules] /tmp/nukes-snapshot/common/src/main/org/jboss/nukes/common/format/html/TagParser.java:14: package org.jboss.nukes.common.parsing does not exist[execmodules] import org.jboss.nukes.common.parsing.AbstractParser;
          [execmodules] ^
          [execmodules] /tmp/nukes-snapshot/common/src/main/org/jboss/nukes/common/format/html/TagParser.java:15: package org.jboss.nukes.common.parsing does not exist[execmodules] import org.jboss.nukes.common.parsing.TextEvent;
          [execmodules] ^
          [execmodules] /tmp/nukes-snapshot/common/src/main/org/jboss/nukes/common/format/html/TagParser.java:26: cannot resolve symbol
          [execmodules] symbol : class AbstractParser
          [execmodules] location: class org.jboss.nukes.common.format.html.TagParser
          [execmodules] extends AbstractParser
          [execmodules] ^
          [execmodules] /tmp/nukes-snapshot/common/src/main/org/jboss/nukes/common/format/html/TagParser.java:192: cannot resolve symbol
          [execmodules] symbol : class ParseEvent
          [execmodules] location: class org.jboss.nukes.common.format.html.TagParser.OpenEvent
          [execmodules] public static class OpenEvent extends HTMLKey implements ParseEvent
          [execmodules] ^
          [execmodules] /tmp/nukes-snapshot/common/src/main/org/jboss/nukes/common/format/html/TagParser.java:36: cannot resolve symbol
          [execmodules] symbol : class TextEvent
          [execmodules] location: class org.jboss.nukes.common.format.html.TagParser
          [execmodules] private TextEvent textEvent = new TextEvent();
          [execmodules] ^
          [execmodules] /tmp/nukes-snapshot/common/src/main/org/jboss/nukes/common/format/html/TagParser.java:201: cannot resolve symbol
          [execmodules] symbol : class ParseEvent
          [execmodules] location: class org.jboss.nukes.common.format.html.TagParser.CloseEvent
          [execmodules] public static class CloseEvent extends HTMLKey implements ParseEvent
          [execmodules] ^
          [execmodules] /tmp/nukes-snapshot/common/src/main/org/jboss/nukes/common/format/code/CodeParser.java:66: cannot resolve symbol
          [execmodules] symbol : class TextEvent
          [execmodules] location: class org.jboss.nukes.common.format.code.CodeParser
          [execmodules] private TextEvent textEvent = new TextEvent();
          [execmodules] ^
          [execmodules] /tmp/nukes-snapshot/common/src/main/org/jboss/nukes/common/format/code/CodeParser.java:223: cannot resolve symbol
          [execmodules] symbol : variable handler
          [execmodules] location: class org.jboss.nukes.common.format.code.CodeParser
          [execmodules] handler.handle(textEvent);
          [execmodules] ^
          [execmodules] /tmp/nukes-snapshot/common/src/main/org/jboss/nukes/common/format/code/CodeParser.java:233: cannot resolve symbol
          [execmodules] symbol : variable handler
          [execmodules] location: class org.jboss.nukes.common.format.code.CodeParser
          [execmodules] handler.handle(openEvent);
          [execmodules] ^
          [execmodules] /tmp/nukes-snapshot/common/src/main/org/jboss/nukes/common/format/code/CodeParser.java:245: cannot resolve symbol
          [execmodules] symbol : variable handler
          [execmodules] location: class org.jboss.nukes.common.format.code.CodeParser
          [execmodules] handler.handle((CloseEvent)i.next());
          [execmodules] ^
          [execmodules] /tmp/nukes-snapshot/common/src/main/org/jboss/nukes/common/format/html/TagParser.java:36: cannot resolve symbol
          [execmodules] symbol : class TextEvent
          [execmodules] location: class org.jboss.nukes.common.format.html.TagParser
          [execmodules] private TextEvent textEvent = new TextEvent();
          [execmodules] ^
          [execmodules] /tmp/nukes-snapshot/common/src/main/org/jboss/nukes/common/format/html/TagParser.java:79: cannot resolve symbol
          [execmodules] symbol : variable handler
          [execmodules] location: class org.jboss.nukes.common.format.html.TagParser
          [execmodules] handler.handle(openEvent);
          [execmodules] ^
          [execmodules] /tmp/nukes-snapshot/common/src/main/org/jboss/nukes/common/format/html/TagParser.java:113: cannot resolve symbol
          [execmodules] symbol : variable handler
          [execmodules] location: class org.jboss.nukes.common.format.html.TagParser
          [execmodules] handler.handle(openEvent);
          [execmodules] ^
          [execmodules] /tmp/nukes-snapshot/common/src/main/org/jboss/nukes/common/format/html/TagParser.java:126: cannot resolve symbol
          [execmodules] symbol : variable handler
          [execmodules] location: class org.jboss.nukes.common.format.html.TagParser
          [execmodules] handler.handle((CloseEvent)i.next());
          [execmodules] ^
          [execmodules] /tmp/nukes-snapshot/common/src/main/org/jboss/nukes/common/format/html/TagParser.java:159: cannot resolve symbol
          [execmodules] symbol : variable handler
          [execmodules] location: class org.jboss.nukes.common.format.html.TagParser
          [execmodules] handler.handle((CloseEvent)i.next());
          [execmodules] ^
          [execmodules] /tmp/nukes-snapshot/common/src/main/org/jboss/nukes/common/format/html/TagParser.java:169: cannot resolve symbol
          [execmodules] symbol : variable handler
          [execmodules] location: class org.jboss.nukes.common.format.html.TagParser
          [execmodules] handler.handle(textEvent);
          [execmodules] ^
          [execmodules] 24 errors
          




          • 2. Re: Message layout improved
            Viet Master

            this is because you have to do a fresh CVS checkout, the thirdparty
            jflex has been added as an alias and CVS update does not support it
            at all.

            • 3. Re: Message layout improved
              Daniel Le Berre Newbie

              Will a fresh checkout solve problem 2) too ?

              • 4. Re: Message layout improved
                Viet Master

                yes, you are missing directories which could have been retrieved by

                cvs update -d