Dear LilyPond developers,

I hope it's not too late to suggest the patch attached to this
e-mail...  If at all possible, I would like to see the following
added to the header block (ie, additional fields for titles):

  number       - The score number, if part of a book, to be printed
                 to the left of the title.
  translator   - Self-explanatory, I hope!
  harmoniser   - Self-explanatory

For example:

  \header {
      number     = "62"
      title      = "Когда в нашей жизни, бывает"
      poet       = "В. П. Зайцева"
      composer   = "В. П. Зайцева"
      harmoniser = "П. Косицын"
      style      = "Hymn"
  }

The patch also rearranges the titles slightly in the case that one
or more of the header fields are not present.  For example, many of
the hymns I am entering (in Russian) have a poet and an arranger
only.  Currently, these appear on two separate lines.  The patch
would rearrange them to appear on one line only.  Of course, if
fields are present, the current arrangements will hold:

  "                 dedication                 "
  "number             title                    "
  "                  subtitle                  "
  "                subsubtitle                 "
  "poet             instrument         composer"
  "translator                          arranger"
  "meter                             harmoniser"

If, for example, translator, composer and harmoniser are not
present, the arrangement would be:

  "                 dedication                 "
  "number             title                    "
  "                  subtitle                  "
  "                subsubtitle                 "
  "poet             instrument         arranger"
  "meter                                       "

I have successfully used a variant of this patch in my own
stylesheet, for LilyPond 2.10.33.

If this patch is accepted, I don't mind trying to create the
appropriate one for the documentation!

Yours truly,

John Zaitseff

-- 
John Zaitseff                    ,--_|\    The ZAP Group
Phone:  +61 2 9643 7737         /      \   Sydney, Australia
E-mail: [EMAIL PROTECTED]   \_,--._*   http://www.zap.org.au/
                                      v
From 44762641edefbf783d9680270c1a4e6f8829c77f Mon Sep 17 00:00:00 2001
From: John Zaitseff <[EMAIL PROTECTED]>
Date: Thu, 9 Oct 2008 09:29:24 +1100
Subject: [PATCH] Added the following header fields: number, translator, harmoniser.  Also
 rearranged poet/translator/meter and composer/arranger/harmoniser to be a
 little neater when one or more fields are not present.

---
 ly/titling-init.ly |   18 ++++++++++++------
 1 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/ly/titling-init.ly b/ly/titling-init.ly
index 17b7789..d2e3034 100644
--- a/ly/titling-init.ly
+++ b/ly/titling-init.ly
@@ -37,7 +37,9 @@ bookTitleMarkup = \markup {
     \column {
       \huge \bigger \bold
       \fill-line {
+        \bigger \fromproperty #'header:number
         \bigger \fromproperty #'header:title
+        ""
       }
       \fill-line {
         \large \smaller \bold
@@ -48,13 +50,17 @@ bookTitleMarkup = \markup {
         \fromproperty #'header:subsubtitle
       }
       \fill-line {
-        \fromproperty #'header:poet
+        \column {
+          \left-align \fromproperty #'header:poet
+          \left-align \fromproperty #'header:translator
+          \left-align \fromproperty #'header:meter
+        }
         { \large \bold \fromproperty #'header:instrument }
-        \fromproperty #'header:composer
-      }
-      \fill-line {
-        \fromproperty #'header:meter
-        \fromproperty #'header:arranger
+        \column {
+          \right-align \fromproperty #'header:composer
+          \right-align \fromproperty #'header:arranger
+          \right-align \fromproperty #'header:harmoniser
+        }
       }
     }
   }
-- 
1.5.4.3

_______________________________________________
lilypond-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to