lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Gets rid of PostScript in bar-chords-notation-for-guitar--with-text-span


From: mtsolo
Subject: Gets rid of PostScript in bar-chords-notation-for-guitar--with-text-spanner.ly (issue 5529048)
Date: Sun, 08 Jan 2012 19:54:31 +0000

Reviewers: ,

Message:
This patch compiles clean and allows me to finish a doc build (which is
currently blocking me from doing a couple other things) - I'd like to
push it to staging tomorrow morning w/o a count down unless anyone has
objections.

Description:
Gets rid of PostScript in
bar-chords-notation-for-guitar--with-text-spanner.ly

Please review this at http://codereview.appspot.com/5529048/

Affected files:
M Documentation/snippets/bar-chords-notation-for-guitar--with-text-spanner.ly
  M Documentation/snippets/formatting-lyrics-syllables.ly
  M Documentation/snippets/hymn-template.ly
M Documentation/snippets/new/bar-chords-notation-for-guitar--with-text-spanner.ly
  M Documentation/snippets/partcombine-and-autobeamoff.ly


Index: Documentation/snippets/bar-chords-notation-for-guitar--with-text-spanner.ly diff --git a/Documentation/snippets/bar-chords-notation-for-guitar--with-text-spanner.ly b/Documentation/snippets/bar-chords-notation-for-guitar--with-text-spanner.ly index a34f7fae0834d2d6801de959426bda06b51348c5..a40fbd4ab5172e5c321daef226b37edb30025003 100644 --- a/Documentation/snippets/bar-chords-notation-for-guitar--with-text-spanner.ly +++ b/Documentation/snippets/bar-chords-notation-for-guitar--with-text-spanner.ly
@@ -4,8 +4,8 @@
 % and then run scripts/auxiliar/makelsr.py
 %
 % This file is in the public domain.
-%% Note: this file works from version 2.15.20
-\version "2.15.20"
+%% Note: this file works from version 2.15.24
+\version "2.15.24"

 \header {
   lsrtags = "chords, fretted-strings"
@@ -27,20 +27,9 @@ The syntax is @code{\\bbarre #'fret_number' @{ notes @} }
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %% %%%%%%%  Cut here ----- Start 'bbarred.ly'

-%% PostScript -------------------------------
-pScript= \markup {
-       \with-dimensions #'(0 . 0.8) #'(0 . 2.0)
-       \postscript     #"
-       0.15 setlinewidth
-       /Times-Roman findfont
-       2.0 scalefont
-       setfont
-       (C)show %%change with B if you prefer
-       %(B)show %%change with C if you prefer
-       stroke
-       0.7 -0.5 moveto
-       0.7  1.7 lineto
-       stroke"
+%% C with slash -------------------------------
+cWithSlash = \markup {
+  \combine \roman C \translate #'(0.6 . -0.4) \draw-line #'(0 . 2.0)
 }
 %% Span -----------------------------------
 %% Syntax: \bbarre #"text" { notes } - text = any number of box
@@ -78,7 +67,7 @@ bbarre= #(define-music-function (barre location str music) (string? ly:music?)
                         \once \override TextSpanner #'to-barline = ##f
\once \override TextSpanner #'bound-details = #'((left (Y . 0) (padding . 0.25) (attach-dir . -2)) (right (Y . 0) (padding . 0.25) (attach-dir . 2))) \once \override TextSpanner #'bound-details #'right #'text = \markup { \draw-line #'( 0 . -.5) } - \once \override TextSpanner #'bound-details #'left #'text = \markup { \pScript #str } + \once \override TextSpanner #'bound-details #'left #'text = \markup { \cWithSlash #str }
 %% uncomment this line for make full barred
% \once \override TextSpanner #'bound-details #'left #'text = \markup { "B" #str }
                           #}
Index: Documentation/snippets/formatting-lyrics-syllables.ly
diff --git a/Documentation/snippets/formatting-lyrics-syllables.ly b/Documentation/snippets/formatting-lyrics-syllables.ly index fa99151b8e5b7ee8a1c699a04764d54dcd685c18..f64e9f012a2123236fc906850b62d53a0a0698d8 100644
--- a/Documentation/snippets/formatting-lyrics-syllables.ly
+++ b/Documentation/snippets/formatting-lyrics-syllables.ly
@@ -16,7 +16,6 @@ zu formatieren.

 "
   doctitlede = "Silben im Gesangstext formatieren"
-
 %%  Translation of GIT committish: d9d1da30361a0bcaea1ae058eb1bc8dd3a5b2e4c
   texidocfr = "
Le mode markup permet d'individualiser la mise en forme de certaines syllabes.
Index: Documentation/snippets/hymn-template.ly
diff --git a/Documentation/snippets/hymn-template.ly b/Documentation/snippets/hymn-template.ly index c121eed510bcbc45fdd36e31e04f997abfd6925b..00ddc156383bf609e34d22ddf4ec620f0611e543 100644
--- a/Documentation/snippets/hymn-template.ly
+++ b/Documentation/snippets/hymn-template.ly
@@ -27,7 +27,6 @@ strofe come testo separato sotto la musica.

 "
   doctitleit = "Modello per inno"
-
%% Translation of GIT committish: ab9e3136d78bfaf15cc6d77ed1975d252c3fe506

   texidocde = "
Index: Documentation/snippets/new/bar-chords-notation-for-guitar--with-text-spanner.ly diff --git a/Documentation/snippets/new/bar-chords-notation-for-guitar--with-text-spanner.ly b/Documentation/snippets/new/bar-chords-notation-for-guitar--with-text-spanner.ly index 0c1100af4b0cc404076c992b2021de60ed5f0a83..3775949b0550181135203964f27abd74b3e4ac81 100644 --- a/Documentation/snippets/new/bar-chords-notation-for-guitar--with-text-spanner.ly +++ b/Documentation/snippets/new/bar-chords-notation-for-guitar--with-text-spanner.ly
@@ -1,4 +1,4 @@
-\version "2.15.20"
+\version "2.15.24"

 \header {
   lsrtags = "chords, fretted-strings"
@@ -19,20 +19,9 @@ The syntax is @code{\\bbarre #'fret_number' @{ notes @} }
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %% %%%%%%%  Cut here ----- Start 'bbarred.ly'

-%% PostScript -------------------------------
-pScript= \markup {
-       \with-dimensions #'(0 . 0.8) #'(0 . 2.0)
-       \postscript     #"
-       0.15 setlinewidth
-       /Times-Roman findfont
-       2.0 scalefont
-       setfont
-       (C)show %%change with B if you prefer
-       %(B)show %%change with C if you prefer
-       stroke
-       0.7 -0.5 moveto
-       0.7  1.7 lineto
-       stroke"
+%% C with slash -------------------------------
+cWithSlash = \markup {
+  \combine \roman C \translate #'(0.6 . -0.4) \draw-line #'(0 . 2.0)
 }
 %% Span -----------------------------------
 %% Syntax: \bbarre #"text" { notes } - text = any number of box
@@ -70,7 +59,7 @@ bbarre= #(define-music-function (barre location str music) (string? ly:music?)
                         \once \override TextSpanner #'to-barline = ##f
\once \override TextSpanner #'bound-details = #'((left (Y . 0) (padding . 0.25) (attach-dir . -2)) (right (Y . 0) (padding . 0.25) (attach-dir . 2))) \once \override TextSpanner #'bound-details #'right #'text = \markup { \draw-line #'( 0 . -.5) } - \once \override TextSpanner #'bound-details #'left #'text = \markup { \pScript #str } + \once \override TextSpanner #'bound-details #'left #'text = \markup { \cWithSlash #str }
 %% uncomment this line for make full barred
% \once \override TextSpanner #'bound-details #'left #'text = \markup { "B" #str }
                           #}
Index: Documentation/snippets/partcombine-and-autobeamoff.ly
diff --git a/Documentation/snippets/partcombine-and-autobeamoff.ly b/Documentation/snippets/partcombine-and-autobeamoff.ly index bb6f54ba509c15b66f17f5d79ad99d715646ceac..d5b3340110f01eb482dce8415f4e57613b42bbb7 100644
--- a/Documentation/snippets/partcombine-and-autobeamoff.ly
+++ b/Documentation/snippets/partcombine-and-autobeamoff.ly
@@ -47,7 +47,6 @@ necesario hacer tres llamadas a @code{\\autoBeamOff}.

 "
   doctitlees = "Partcombine y autoBeamOff"
-
%% Translation of GIT committish: ab9e3136d78bfaf15cc6d77ed1975d252c3fe506

   texidocde = "
@@ -79,7 +78,6 @@ wenn man es mit @code{\\partcombine} verwendet, muss @code{\\autoBeamOff}
 "
 doctitlede = "Partcombine und autoBeamOff"

-
 %% Translation of GIT committish: e1a149d0cc60b02e86209387958f4028567dd366
   texidocfr = "
 Le fonction @address@hidden dans le cadre d'un





reply via email to

[Prev in Thread] Current Thread [Next in Thread]