Re: Center-align text getting cut-off

2016-08-17 Thread Pierre Perol-Schneider
Hi Philip,

v2.12 and v2.14 stay both so I gess you're using v2.14 (anyway I do not
have v2.12 anymore...)
So how about :

\version "2.14.2"

\include "english.ly"
\include "gregorian.ly"

\layout {
  \context{
%\Score \override SpacingSpanner #'packed-spacing = ##f
  }
  \context{
\Lyrics \override LyricHyphen #'minimum-distance = #2.2
\override LyricSpace #'minimum-distance = #0.8
  }
}

%% To be adjusted:
\paper {
  left-margin = 25
  right-margin = 20
  indent = 30
  %% short-indent = -10
}

\header {
  title = "Menaion ~ 08 September"
  subtitle = "Toparion for the Nativity of the All-holy Theotokos and
Ever-Virgin Mary"
  poet = "Tone 4"
  composer =  "Abbreviated ''Greek'' Chant"
  footer = ""
}

global = {
  \key g \major
  \override Staff.NoteHead #'style = #'altdefault
  \override Staff.TimeSignature #'stencil = ##f
  %\override Staff.BarLine #'stencil = ##f
  \set Score.defaultBarType = "empty"
  \bar "|."
}

move = { \bar "" \break }

soprano = \relative c'' {
  \global
  % Music follows here.
  g4 g g g g g b2(a) g \bar "'"
  g4 g g a a a g a2. a4 g1 \bar "|"
}

alto = \relative c' {
  \global
  % Music follows here.
  d4 d d d d d d1 e2 \bar "'"
  e4 e e e e e e fs2. fs4 d1 \bar "|"
}

tenor = \relative c' {
  \global
  % Music follows here.
  b4 b b b b b d1 b2 \bar "'"
  b4 b b c c c b c2. c4 b1 \bar "|"
}

bass = \relative c' {
  \global
  % Music follows here.
  g4 g g g g g g2(fs) e \bar "'"
  e4 e e a a a e d2. d4 g1 \bar "|"
}

verse = \lyricmode {
  % Lyrics follow here.
  Thy na -- tiv -- i -- ty, O Vir -- gin,
  hath pro -- claimed joy to the whole un -- i -- verse!
}

\score {
  \new ChoirStaff <<
\new Staff \with {
  midiInstrument = "string ensemble 1"
  %% How about:
  instrumentName = \markup \right-column { "Soprano " "Alto " }
  %% and also:
  shortInstrumentName = \markup \column { "S " "A " }
} <<
  \new Voice = "soprano" { \voiceOne \soprano }
  \new Voice = "alto" { \voiceTwo \alto }
>>
\new Lyrics \lyricsto "soprano" \verse
\new Staff \with {
  midiInstrument = "string ensemble 1"
  instrumentName = \markup \right-column { "Trenor " "Bass " }
  shortInstrumentName = \markup \column { "T " "B " }
} <<
  \clef bass
  \new Voice = "tenor" { \voiceOne \tenor }
  \new Voice = "bass" { \voiceTwo \bass }
>>
  >>
  \layout {
ragged-last=##t
#(layout-set-staff-size 22)
  }
  \midi {
\context {
  \Score
  tempoWholesPerMinute = #(ly:make-moment 120 4)
}
  }
}

Cheers,
Pierre

PS. Why not go for v2.19 intsead ??

2016-08-17 20:02 GMT+02:00 tisimst <tisimst.lilyp...@gmail.com>:

> Philip,
>
> On Wed, Aug 17, 2016 at 11:45 AM, thedoctor818 [via Lilypond] <[hidden
> email] <http:///user/SendEmail.jtp?type=node=193773=0>> wrote:
>
>> I am working on the following score. However, when I change “S” and “A”
>> in the score attributes to “Soprano” and “Alto” the words get cut-off. How
>> can I avoid this? I had tried:
>>
>>
>>
>>
>>
>>   instrumentName = \markup \center-column\left-align { "S" "A" }
>>
>>
>>
>> but that did not work.
>>
>
> Play around with values for the paper variables "indent" and
> "short-indent":
>
> http://lilypond.org/doc/v2.19/Documentation/notation/
> horizontal-spacing-paper-variables#paper-variables-for-shifts-and-indents
>
> Those control the fixed space before systems (i.e., they will stay the
> same size regardless of the text length of instrumentName and
> shortInstrumentName), so increasing their value may be necessary if you are
> using a longer text strings.
>
> HTH,
> Abraham
>
> --
> View this message in context: Re: Center-align text getting cut-off
> <http://lilypond.1069038.n5.nabble.com/Center-align-text-getting-cut-off-tp193772p193773.html>
> Sent from the User mailing list archive
> <http://lilypond.1069038.n5.nabble.com/User-f3.html> at Nabble.com.
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Center-align text getting cut-off

2016-08-17 Thread tisimst
Philip,

On Wed, Aug 17, 2016 at 11:45 AM, thedoctor818 [via Lilypond] <
ml-node+s1069038n193772...@n5.nabble.com> wrote:

> I am working on the following score. However, when I change “S” and “A” in
> the score attributes to “Soprano” and “Alto” the words get cut-off. How can
> I avoid this? I had tried:
>
>
>
>
>
>   instrumentName = \markup \center-column\left-align { "S" "A" }
>
>
>
> but that did not work.
>

Play around with values for the paper variables "indent" and
"short-indent":

http://lilypond.org/doc/v2.19/Documentation/notation/horizontal-spacing-paper-variables#paper-variables-for-shifts-and-indents

Those control the fixed space before systems (i.e., they will stay the same
size regardless of the text length of instrumentName and
shortInstrumentName), so increasing their value may be necessary if you are
using a longer text strings.

HTH,
Abraham




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Center-align-text-getting-cut-off-tp193772p193773.html
Sent from the User mailing list archive at Nabble.com.___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Center-align text getting cut-off

2016-08-17 Thread Dykes, Philip R.
I am working on the following score. However, when I change "S" and "A" in
the score attributes to "Soprano" and "Alto" the words get cut-off. How can
I avoid this? I had tried:

 

 

  instrumentName = \markup \center-column\left-align { "S" "A" }

 

but that did not work.

 

Thanks,

 

-MD

 

\version "2.12.3"

\include "english.ly"

\include "gregorian.ly"

\layout {

  \context{

\Score \override SpacingSpanner #'packed-spacing = ##f \version "2.14.2"

  }

  \context{

\Lyrics \override LyricHyphen #'minimum-distance = #2.2

\override LyricSpace #'minimum-distance = #0.8

  }

}

 

\header {

  title = "Menaion ~ 08 September"

  subtitle = "Toparion for the Nativity of the All-holy Theotokos and
Ever-Virgin Mary"

  poet = "Tone 4"

  composer =  "Abbreviated ''Greek'' Chant"

 footer = ""

}

 

global = {

  \key g \major

  \override Staff.NoteHead #'style = #'altdefault

  \override Staff.TimeSignature #'stencil = ##f

  %\override Staff.BarLine #'stencil = ##f

  \set Score.defaultBarType = "empty"

  \bar "|."

}

move = { \bar "" \break }

 

soprano = \relative c'' {

  \global

  % Music follows here.

  g4 g g g g g b2(a) g \bar "'"

  g4 g g a a a g a2. a4 g1 \bar "|"

}

 

alto = \relative c' {

  \global

  % Music follows here.

  d4 d d d d d d1 e2 \bar "'"

  e4 e e e e e e fs2. fs4 d1 \bar "|"

}

 

tenor = \relative c' {

  \global

  % Music follows here.

  b4 b b b b b d1 b2 \bar "'"

  b4 b b c c c b c2. c4 b1 \bar "|"

}

 

bass = \relative c' {

  \global

  % Music follows here.

  g4 g g g g g g2(fs) e \bar "'"

  e4 e e a a a e d2. d4 g1 \bar "|"

}

 

verse = \lyricmode {

  % Lyrics follow here.

  Thy na -- tiv -- i -- ty, O Vir -- gin,

  hath pro -- claimed joy to the whole un -- i -- verse!

  }

 

\score {

  \new ChoirStaff <<

\new Staff \with {

  midiInstrument = " string ensemble 1 "

  instrumentName = \markup \center-column { "S" "A" }

} <<

  \new Voice = "soprano" { \voiceOne \soprano }

  \new Voice = "alto" { \voiceTwo \alto }

>>

\new Lyrics \lyricsto "soprano" \verse

\new Staff \with {

  midiInstrument = " string ensemble 1 "

  instrumentName = \markup \center-column { "T" "B" }

} <<

  \clef bass

  \new Voice = "tenor" { \voiceOne \tenor }

  \new Voice = "bass" { \voiceTwo \bass }

>>

  >>

  \layout { ragged-last=##t 

   #(layout-set-staff-size 22)

  }

  \midi {

\context {

  \Score

  tempoWholesPerMinute = #(ly:make-moment 120 4)  

  }

}

  }

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user