Menu

#4678 SVG <tspan> with leading/trailing spaces should use non-break spaces

Duplicate
None
review
Ugly
2017-08-18
2015-11-29
No

http://codereview.appspot.com/323420043

On Mon, Nov 2, 2015 at 7:27 PM, Ophir Lifshitz hangfromthefloor@gmail.com
wrote:

Hello all,

Here is the MWE:

$ echo '\version "2.18.2" { \tempo "Foo" 4 = 20 b }' | lilypond
-dbackend=svg -o foo -

It seems the easiest way to fix this is to render elements with
leading or trailing spaces converted to non-break spaces:

Incorrect: = 20
Correct:  = 20

See attached screenshots.

Thanks,
Ophir

1 Attachments

Related

Issues: #5174

Discussion

  • Phil Holmes

    Phil Holmes - 2015-12-04
    • status: New --> Accepted
     
  • Étienne Beaulé

    The problem here seems to be that the "=20" is not in the same <text tag as the closing parenthesis. Annoying thing. This isn't really related to the <tspan tags though. The metronome mark's first parenthesis is not even in the same tag as the tempo indication (when it exists).

     
  • Étienne Beaulé

    Implemented your solution (and it had precedent in LY). I'll submit a patch very soon. Could someone set the correct flags on this issue? Thanks!

     

    Last edit: Étienne Beaulé 2017-08-10
  • Étienne Beaulé

    Issue 4678: Fix spaces in metronome mark

    This change specifies the types of spaces used in the metronome
    markings as comments. It also changes the type of space to non-breaking
    around the equals sign. The change also improves readability by
    combining chars into strings.

    http://codereview.appspot.com/323420043

     
  • Étienne Beaulé

    • Needs: -->
    • Patch: new --> review
    • Type: -->
     
  • Étienne Beaulé

    Exclusively Scheme code, so make is un-necessary.

     
  • Phil Holmes

    Phil Holmes - 2017-08-10
    • Patch: review --> new
     
  • Phil Holmes

    Phil Holmes - 2017-08-10

    Patch testing also includes make doc and make test (checking for changes in regtests) so bypassing this stage is not recommended.

     
  • Étienne Beaulé

    • assigned_to: Étienne Beaulé
    • Type: --> Ugly
     
  • Anonymous

    Anonymous - 2017-08-11
    • Patch: new --> review
     
  • Anonymous

    Anonymous - 2017-08-11

    Passes make, make check and a full make doc.

     
  • Anonymous

    Anonymous - 2017-08-14
    • Patch: review --> countdown
     
  • Anonymous

    Anonymous - 2017-08-14

    Patch on countdown for August 17th.

     
  • Anonymous

    Anonymous - 2017-08-17

    There's a comment by David K on Rietveld, so I am going to leave this on Review for now.

     
  • Anonymous

    Anonymous - 2017-08-17
    • Patch: countdown --> review
     
  • Étienne Beaulé

    • status: Started --> Duplicate
     
  • Étienne Beaulé

    Duplicate of [#1434].

     

    Related

    Issues: #1434


    Last edit: Étienne Beaulé 2017-08-31
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.