Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#5 Using font-tags shows strange behaviour

closed-fixed
H. von Bargen
None
5
2008-10-26
2007-10-30
Dinu C. Gherman
No

When using font-tags in paragraphs wordaxe produces hyphenated words in the middle of a paragraph. See attached sample.

Discussion

  • sample for font-tags strangeness

     
    Attachments
  • H. von Bargen
    H. von Bargen
    2007-10-30

    • status: open --> pending
     
  • H. von Bargen
    H. von Bargen
    2007-10-30

    Logged In: YES
    user_id=1008979
    Originator: NO

    Looks like a one-off error.
    action plan:
    1) check if this only happens if the paragraph is splitted (overflows into the next frame)
    2) (optional) compare to behaviour of old version
    3) finally identify and fix the bug

     
  • H. von Bargen
    H. von Bargen
    2007-10-30

    • assigned_to: nobody --> hvbargen
    • status: pending --> open-accepted
     
  • H. von Bargen
    H. von Bargen
    2008-05-19

    Logged In: YES
    user_id=1008979
    Originator: NO

    I was able to generate a test case that does not even work without font-tags.
    It seems that the whole split() functionality is broken.
    I tried several hours (again) to fix this, but no luck...

    It seems that the way paragraph splitting is implemented (in the RL standard) does not play nice with hyphenation at all. That's because RL uses a lot of optimization when splitting; the second part is not initialized the normal way, instead it is given a blPara attribute that is the result of _split_blParaSimple or _split_blParaHard (in case of "formatted text"). the blPara structure maintains several other structures, among others a list of lines where each line contains a list of words. But after hyphenation I just don't know how to set up this correctly, because the list of words changed, one "source" word may have been hyphenated, resulting in two parts (or more, if the available width is short and the word is very long). It seems indeed very hard to fix at this time.

     
  • H. von Bargen
    H. von Bargen
    2008-05-19

    • status: open-accepted --> open-later
     
  • H. von Bargen
    H. von Bargen
    2008-05-19

    Logged In: YES
    user_id=1008979
    Originator: NO

    As a workaround, you should avoid splitting paragraphs, for example by wrapping them in a table (a table with just one column; 1 paragraph = 1 table cell).

    The problem only occurs after splitting the paragraph.

    Don't expect this to be fixed soon...
    Dinu is working on a more clean paragraph implementation; perhaps I'll try to add splitting support there.

     
  • H. von Bargen
    H. von Bargen
    2008-09-14

    I hope to get this right with my new paragraph implementation. But it is not yet complete.

     
  • H. von Bargen
    H. von Bargen
    2008-10-26

    • status: open-later --> closed-fixed
     
  • H. von Bargen
    H. von Bargen
    2008-10-26

    Fixed with the NewParagraph implementation in wordaxe-0.3.0