Menu

#5033 LyricHyphen whiteout

Verified
Enhancement
2017-04-03
2017-01-16
No

http://codereview.appspot.com/312530043 (Rietveld for attached patch)

Whiteout for LyricHyphen grobs is seldom used - obviously the hyphen must not whiteout parts of the lyric syllables. But it is a vital feature if mensuration lines are used (old music, Distler, ...)

A proper outline whiteout would be ideal, but it is not implemented ... the current code fails because you need a relatively large whiteout area for a small object. A brute force fix is to increase the number of iterations, but the result would be a pdf with a high percentage of whiteout code.

And there is the case where a long melisma produces a single hyphen event that generates a lot of hyphens that cross a number of mensuration lines. Rectangular or roundedbox whiteout will produce gaps in all mensuration lines crossed, even if there is no collision. That's not acceptable.

Attached is a patch that solves the problem. It passes a full make, and make check does not identify any problem.

WhiteoutOrig.jpg: Current code

WhiteoutImproved.jpg: Brute-force-fix - more than 90% whiteout code in the pdf

WhiteoutEvenBetter-X.jpg: Proposed behaviour as implemented in the attached patch

5 Attachments

Discussion

  • Anonymous

    Anonymous - 2017-03-04

    LyricHyphen whiteout

    Issue 5033

    A proper outline whiteout
    would be ideal, but it is
    not currently implemented.
    The current code fails
    because you need a relatively
    large whiteout area for a
    small object.

    A brute force fix is to increase
    the number of iterations, but
    the result would be a pdf with
    a high percentage of whiteout code.

    There is the case where a long
    melisma produces a single hyphen
    event that generates a lot of
    hyphens that cross a number of
    mensuration lines.

    Rectangular or roundedbox whiteout
    will produce gaps in all
    mensuration lines crossed, even
    if there is no collision.

    That's not acceptable.

    http://codereview.appspot.com/312530043

     
  • Anonymous

    Anonymous - 2017-03-04
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,3 +1,5 @@
    +http://codereview.appspot.com/312530043 (Rietveld for attached patch)
    +
     Whiteout for LyricHyphen grobs is seldom used - obviously the hyphen must not whiteout parts of the lyric syllables. But it is a vital feature if mensuration lines are used (old music, Distler, ...)
    
     A proper outline whiteout would be ideal, but it is not implemented ... the current code fails because you need a relatively large whiteout area for a small object.  A brute force fix is to increase the number of iterations, but the result would be a pdf with a high percentage of whiteout code.
    
    • status: Started --> New
    • Needs: -->
    • Patch: new -->
    • Type: --> Patch
     
  • Anonymous

    Anonymous - 2017-03-04
    • status: New --> Started
    • Patch: --> review
    • Type: Patch --> Enhancement
     
  • Anonymous

    Anonymous - 2017-03-04

    Passes make, make check and a full make doc.

     
  • Anonymous

    Anonymous - 2017-03-07
    • Patch: review --> countdown
     
  • Anonymous

    Anonymous - 2017-03-07

    Patch on countdown for March 10th.

     
  • Anonymous

    Anonymous - 2017-03-10

    Patch counted down - Please phsh.

    I'll push this for Knut,

     
  • Anonymous

    Anonymous - 2017-03-10
    • Patch: countdown --> push
     
  • Anonymous

    Anonymous - 2017-03-10
    • labels: --> Fixed_2_19_57
    • status: Started --> Fixed
    • Patch: push -->
     
  • Anonymous

    Anonymous - 2017-03-10

    author Knut Petersen knut_petersen@t-online.de
    Sat, 4 Mar 2017 18:10:19 +0000 (18:10 +0000)
    committer James Lowe pkx166h@gmail.com
    Fri, 10 Mar 2017 18:32:08 +0000 (18:32 +0000)
    commit 2dc76513c4edb8e18e6170069677eb0dd9b54209

     
  • Graham Percival

    Graham Percival - 2017-04-03
    • status: Fixed --> Verified