Menu

#5043 Define markup command \with-outline

Verified
Enhancement
2017-02-17
2017-01-24
No

Define markup command \with-outline

Also contains commits:

Use ly:stencil-outline instead of transparent-stencil

Implement ly:stencil-outline separating ink/metrics

http://codereview.appspot.com/319170043

Discussion

  • Anonymous

    Anonymous - 2017-01-25
    • Description has changed:

    Diff:

    
    
    • Needs: -->
    • Patch: new --> review
     
  • Anonymous

    Anonymous - 2017-01-25

    Passes make, make check and a full make doc.

     
  • Knut Petersen

    Knut Petersen - 2017-01-26

    LGTM. It's definitely much cleaner and faster to use something like this than the combination of a transparent box and delayed evaluation that previously was the only solution to get similar results.

    Standing upon trifles:

    Almost all of the stencil functions return void and modify an existing stencil. One returns a new stencil (in_color), and for one functionality there are two functions ('void translate(...)' and 'Stencil translated(...)'). It would be more consistent to either only define a void function or to provide both, a 'void outlined_with(...)' and a 'Stencil with_outline(...)'.

     
    • David Kastrup

      David Kastrup - 2017-01-26

      Frankly: yes. I didn't have the energy to do yet another code reorganization/cleanup. Stencil's are Simple_smob's, conceptually values rather than objects. As such, any functions (member or not) modifying them are problematic. Granted: member functions returning a fresh Stencil make little sense either.

      Beating this into consistency would be some amount of work I did not want to invest in the course of this issue.

       
  • Knut Petersen

    Knut Petersen - 2017-01-26

    Ok.

     
  • Anonymous

    Anonymous - 2017-01-28
    • Patch: review --> countdown
     
  • Anonymous

    Anonymous - 2017-01-28

    Patch on countdown for Jan 30th.

     
  • Anonymous

    Anonymous - 2017-01-30
    • Patch: countdown --> push
     
  • Anonymous

    Anonymous - 2017-01-30

    Patch counted down - please push.

     
  • David Kastrup

    David Kastrup - 2017-01-30
    • labels: --> Fixed_2_19_55
    • status: Started --> Fixed
    • Patch: push -->
     
  • David Kastrup

    David Kastrup - 2017-01-30

    Pushed to staging as
    commit e357ddf4ac442cd6fcd976516cf9f775d559094b
    Author: David Kastrup dak@gnu.org
    Date: Tue Jan 24 21:45:49 2017 +0100

    Issue 5043/3: Define markup command \with-outline
    

    commit bbaca2ed893d929170bca4db03ec90ba26a094e0
    Author: David Kastrup dak@gnu.org
    Date: Tue Jan 24 21:39:15 2017 +0100

    Issue 5043/2: Use ly:stencil-outline instead of transparent-stencil
    

    commit cfbda61ff9743a8c32b2057ede4bc8407172c936
    Author: David Kastrup dak@gnu.org
    Date: Tue Jan 24 21:17:43 2017 +0100

    Issue 5043/1: Implement ly:stencil-outline separating ink/metrics
    

    But frankly: this would warrant at least some regtests. Sigh.

     
  • Federico Bruni

    Federico Bruni - 2017-02-17
    • status: Fixed --> Verified