#10 Error with styles

open
nobody
None
4
2006-08-02
2006-07-24
tyfeur
No

Hello !

It's me again ! :)
I've got a problem with the styles : the parser skip
some styles in some cases. In fact only the "heading"
styles.

I've joined a small document with 3 titles (heading 1,2
and 3) but the "heading 2" is skipped ! In fact there
is no "paragraph-definition" as it should be :

paragraph-definition name="heading 2"

However if i remove the title and retype it, the bug
disappears ! It must be a case the parser missed i
think ... :(

It would really helped me if you find some answer ! :)

Thank you very much for your great work ! ;)

Discussion

  • tyfeur
    tyfeur
    2006-07-24

    document with bad title's style recognition

     
    Attachments
  • tyfeur
    tyfeur
    2006-07-24

    Logged In: YES
    user_id=1538542

    I join my xml output file.

    Some technical informations : the parser is executed under
    XP, the latest version of Python, rtf2xml 1.33 with the
    following command on a cmd shell :

    "C:\Python24\python.exe" -O
    "<path1>\build\scripts-2.4\rtf2xml" --indent 1 --no-lists
    --empty-para --no-group-borders --group-styles
    --no-headings-to-sections "<path2>\title_test.rtf" >
    "<path2>\title_test.xml"

     
  • tyfeur
    tyfeur
    2006-07-24

    pretty printed xml output

     
    Attachments
  • tyfeur
    tyfeur
    2006-08-02

    Logged In: YES
    user_id=1538542

    I've found some kind of answer : if you remove the bookmark
    elements in the given rtf, the problem is solved !

    There are 2 '\*\bkmkend' and 2 '\*\bkmkend' markups to remove.

    Strange ... Have you got any ideas to explain that behaviour
    ? :)

    Thx

     
  • tyfeur
    tyfeur
    2006-08-02

    • priority: 5 --> 4