]> git.donarmstrong.com Git - lilypond.git/commit - scm/framework-ps.scm
Print out header fields as PDF metadata; Add simple markup->string function
authorReinhold Kainhofer <reinhold@kainhofer.com>
Mon, 27 Dec 2010 14:49:30 +0000 (15:49 +0100)
committerReinhold Kainhofer <reinhold@kainhofer.com>
Mon, 31 Jan 2011 20:38:01 +0000 (21:38 +0100)
commiteab591fe423ef0eeb03d8bbedf7d43185d2fbc74
treeb49b95e17cb63b70d5aca384524e519d01e6ac7e
parent98c7764605cb6b3b814295b17c0ae1959fcf9b07
Print out header fields as PDF metadata; Add simple markup->string function

-) Create DOCINFO pdfmark, with the metadata fields extracted
   from the \header block

-) Add scheme function markup->string that extracts and returns only the
   string part of a markup. As all header fields are possibly markups,
   we need to call this function on the header fields and use only
   the string representation (formatting and possibly some information
   lost!) as metadata.
   This function is very simply (for all known text markup functions,
   it extracts the text and ignores the formatting, all other markup
   functions are entirely ignored), so it might not work perfectly
   for complex markups.

-) Add possibility to override a header field with the same name, but
   a pdf prefix, to force a particular metadata string, which is not
   displayed in the pdf. E.g. if the \header block contains
       pdftitle = "Title for pdf file"
   then that pdftitle header field will be used for the document title
   in the PDF metadata instead of the title header field.
input/regression/pdfmark-metadata.ly [new file with mode: 0644]
lily/book-scheme.cc
lily/paper-book-scheme.cc
scm/framework-ps.scm
scm/markup.scm