]> git.donarmstrong.com Git - lilypond.git/commitdiff
Issue 3995: Rename 'thin-kern to 'segno-kern.
authorMark Polesky <markpolesky@yahoo.com>
Fri, 11 Jul 2014 09:16:03 +0000 (02:16 -0700)
committerMark Polesky <markpolesky@yahoo.com>
Fri, 18 Jul 2014 18:31:04 +0000 (11:31 -0700)
Documentation/changes.tely
python/convertrules.py
scm/bar-line.scm
scm/define-grob-interfaces.scm
scm/define-grob-properties.scm
scm/define-grobs.scm

index 3ab405c0b21d0585daeaf56a1bc318fe7799e820..37df7f9f75450e8fc62f7f2ab5837fad4ceb5857 100644 (file)
@@ -60,6 +60,10 @@ which scares away people.
 * only show user-visible changes.
 
 @end ignore
+@item
+The @code{thin-kern} property of the @code{BarLine} grob has been
+renamed to @code{segno-kern}.
+
 @item
 @code{KeyCancellation} grobs now ignore cue clefs (like
 @code{KeySignature} grobs do).
index a87fbb023a0b2209f2eb01d9d6358d4d7f49f6c5..c506bc15428d37e88832358748d50e7600d72797 100644 (file)
@@ -3450,7 +3450,7 @@ def conv (str):
         if m.group (1):
             return m.group (0)
         x = m.group (2) + m.group (4)
-        
+
         if m.group (3):
             x = x + re.sub (r"(\s*)(" + symbol_list + ")", fn_path_replace,
                             m.group (3))
@@ -3718,6 +3718,11 @@ def conv(str):
     str = re.sub (r'\blocalKeySignature\b', 'localAlterations', str)
     return str
 
+@rule ((2, 19, 11), "thin-kern -> segno-kern")
+def conv(str):
+    str = re.sub (r'\bthin-kern\b', 'segno-kern', str)
+    return str
+
 # Guidelines to write rules (please keep this at the end of this file)
 #
 # - keep at most one rule per version; if several conversions should be done,
index ff2d3f29b4a35d30cee581fa8f31ac096b06acb5..e3e295075de7d7cdf909acd39b66b210eaaf7da3 100644 (file)
@@ -440,14 +440,14 @@ is not used within the routine."
 the segno sign is drawn over the double bar line; otherwise, it
 draws the span bar variant, i.e. without the segno sign."
   (let* ((line-thickness (layout-line-thickness grob))
-         (thinkern (* (ly:grob-property grob 'thin-kern 1) line-thickness))
+         (segno-kern (* (ly:grob-property grob 'segno-kern 1) line-thickness))
          (thin-stil (make-simple-bar-line grob extent))
          (double-line-stil (ly:stencil-combine-at-edge
                             thin-stil
                             X
                             LEFT
                             thin-stil
-                            thinkern))
+                            segno-kern))
          (segno (ly:font-get-glyph (ly:grob-default-font grob)
                                    "scripts.varsegno"))
          (stencil (ly:stencil-add
@@ -459,7 +459,7 @@ draws the span bar variant, i.e. without the segno sign."
                         (cons 0 0)))
                    (ly:stencil-translate-axis
                     double-line-stil
-                    (* 1/2 thinkern)
+                    (* 1/2 segno-kern)
                     X))))
 
     stencil))
index 4ffd761607c788feef67edba4b1b1e5522bf78fb..2c3290a4c88573a25a90b2c6cd688105b1430e0f 100644 (file)
@@ -59,7 +59,7 @@ found in @file{scm/bar-line.scm}.
    has-span-bar
    kern
    rounded
-   thin-kern
+   segno-kern
    thick-thickness))
 
 (ly:add-interface
index 05e6921784021082f4f48de0de6d68b92db42add..8f7b29c10de748615c9b5c072cad435a62546f80 100644 (file)
@@ -533,10 +533,11 @@ slur quants to this position, and print the respective scores.")
 ;;;
      (keep-inside-line ,boolean? "If set, this column cannot have
 objects sticking into the margin.")
-     (kern ,ly:dimension? "The space between bar lines in any type
-of double bar, expressed as a multiple of the default staff-line
-thickness (i.e. the visual output is @emph{not} influenced by
-changes to @code{@var{Staff}.StaffSymbol.thickness}).")
+     (kern ,ly:dimension? "The space between individual elements
+in any compound bar line, expressed as a multiple of the default
+staff-line thickness (i.e. the visual output is @emph{not}
+influenced by changes to
+@code{@var{Staff}.StaffSymbol.thickness}).")
      (knee ,boolean? "Is this beam kneed?")
      (knee-spacing-correction ,number? "Factor for the optical
 correction amount for kneed beams.  Set between @code{0} for no
@@ -799,6 +800,11 @@ stem distance.")
 scripts in a stack, by being added to the position of the script in
 the user input, the sum being the overall priority.  Smaller means
 closer to the head.")
+     (segno-kern ,number? "The space between the two thin lines
+of the segno bar line symbol, expressed as a multiple of the
+default staff-line thickness (i.e. the visual output is @emph{not}
+influenced by changes to
+@code{@var{Staff}.StaffSymbol.thickness}).")
      (self-alignment-X ,number? "Specify alignment of an object.  The
 value @w{@code{-1}} means left aligned, @code{0}@tie{}centered, and
 @code{1}@tie{}right-aligned in X@tie{}direction.  Other numerical
@@ -984,7 +990,6 @@ not counting the diameter of the virtual @qq{pen} that draws the
 arcs.  This property is expressed as a multiple of the current
 staff-line thickness (i.e. the visual output is influenced by
 changes to @code{@var{Staff}.StaffSymbol.thickness}).")
-     (thin-kern ,number? "The space after a hair-line in a bar line.")
      (tie-configuration ,list? "List of @code{(@var{position} .
 @var{dir})} pairs, indicating the desired tie configuration, where
 @var{position} is the offset from the center of the staff in staff
index 572f80f660da0c5edf008246b24ed1c0aa66dedc..14805f8eb98ffa397288114871a05ac8be439ef4 100644 (file)
         ;; TODO:
         ;; kern should scale with line-thickness too.
         (kern . 3.0)
-        (thin-kern . 3.0)
+        (segno-kern . 3.0)
         (hair-thickness . 1.9)
         (thick-thickness . 6.0)