1 .TH glilypond @MAN1EXT@ "@MDATE@" "Groff Version @VERSION@"
3 glilypond \(em integrate lilypond parts into groff
5 .\" This .SH was moved to this place in order to appease `apropos'.
7 .\" glilypond - integrate `lilypond' parts into `groff' files
8 .\" Source file position: <groff_source_top>/contrib/glilypond.man
9 .\" Installed position: <prefix>/share/man/man1/glilypond.1
12 .\" --------------------------------------------------------------------
14 .\" --------------------------------------------------------------------
17 Copyright \[co] 2013-2014 Free Software Foundation, Inc.
19 This file is part of glilypond, which is part of GNU groff, a free
22 You can redistribute it and/or modify it under the terms of the GNU
23 General Public License version 2 (GPL2) as published by the Free
26 The license text is available in the internet at
27 .UR http://\%www.gnu.org/\%licenses/\%gpl-2.0.html
32 This document was written by
33 .MT groff\-bernd.warken\-72@web.de
38 .\" --------------------------------------------------------------------
40 .\" --------------------------------------------------------------------
43 .ie t .ds EL \fS\N'188'\fP
44 .el .ds EL \&.\|.\|.\&\
50 .\" --------------------------------------------------------------------
52 .\" --------------------------------------------------------------------
58 .OP \& "\%filespec \*(EL"
62 .\" --------------------------------------------------------------------
64 .\" --------------------------------------------------------------------
67 transforms sheet music written in the
75 can transform it into a format that can be displayed directly.
83 can be provided as arguments.
86 .\" --------------------------------------------------------------------
88 .\" --------------------------------------------------------------------
90 .\" --------------------------------------------------------------------
91 .SS "Breaking Options"
92 .\" --------------------------------------------------------------------
97 .BR \-? | \-h | \-\-help | \-\-usage
98 Print help or usage information, then leave the program.
102 Print version information.
105 .BR \-l | \-\-license
106 Print license information.
111 .\" --------------------------------------------------------------------
112 .SS "Options for building EPS Files"
113 .\" --------------------------------------------------------------------
143 .\" --------------------------------------------------------------------
144 .SS "Directories and Files"
145 .\" --------------------------------------------------------------------
148 .BR \-e | \-\-eps_dir "\fI directory_name\fP"
151 files are sent to the temporary directory.
153 With this option, you can generate your own directory, in which all useful
157 So at last, the temporary directory can be removed.
161 .BR -p | --prefix "\fI begin_of_name\fP"
162 Normally all temporary files get names that start with the
166 With this option, you can freely change this prefix.
171 Normally all temporary files without the
175 With this option, all generated files either by the
177 program or other format transposers are kept.
181 .BR -t | --temp_dir "\fI dir\fP"
182 With this option, you call a directory that is the base for the
185 This directory name is used as is without any extensions.
187 If this directory does not exist it is be created.
189 The temporary directory is created by Perl's security operations
190 directly under this directory.
192 In this temporary directory, the temporary files are stored.
195 .\" --------------------------------------------------------------------
197 .\" --------------------------------------------------------------------
200 .BR -o | --output "\fI file_name\fP"
203 output of this program is sent to
206 With this option, that can be changed, such that the output is stored
207 into a file named in the option argument
212 .BR -v | -V | --verbose
213 A lot more of information is sent to STDERR.
216 .\" --------------------------------------------------------------------
217 .SS "Short Option Collections"
218 .\" --------------------------------------------------------------------
220 The argument handling of options
225 are arguments that start with a single dash
228 Such an argument can consist of arbitrary many options without option
229 argument, composed as a collection of option characters following the
234 Such a collection can be terminated by an option character that
235 expects an option argument.
237 If this option character is not the last character of the argument,
238 the following final part of the argument is the option argument.
240 If it is the last character of the argument, the next argument is
241 taken as the option argument.
245 This is the standard for
256 .BI \-kVe " some_dir"
257 is a collection of the short options
261 without option argument, followed by the short option
263 with option argument that is the following part of the argument
266 So this argument could also be written as several arguments
271 .\" --------------------------------------------------------------------
272 .SS "Handling of Long Options"
273 .\" --------------------------------------------------------------------
275 Arguments that start with a double dash
278 .I "long options" R .
280 Each double dash argument can only have a single long option.
285 have or have not an option argument.
287 An option argument can be the next argument or can be appended with an
290 to the same argument as the long option.
295 is a long option without an option argument.
298 .BI \-\-eps_dir " some_dir"
300 .BI \-\-eps_dir= some_dir
303 with the option argument
308 Moreover the program allows abbreviations of long options, as much as
316 can be abbreviated from
320 because the program does not have another
322 whose name starts with the character
327 On the other hand, the option
329 cannot be abbreviated further than
331 because there is also the
334 that can be abbreviated up to
339 An option argument can also be appended to an abbreviation.
349 Moreover the program allows an arbitrary usage of upper and lower case
361 can as well be written as
363 or even as an abbreviation like
367 .\" --------------------------------------------------------------------
368 .SH FILESPEC ARGUMENTS
369 .\" --------------------------------------------------------------------
371 An argument that is not an option or an option argument is called a
387 argument must either be the name of a readable file or a dash
390 .IR "standard input" .
392 Each input must be written in the
396 language and can include
402 Normally arguments starting with a dash
404 are interpreted as an option.
406 But if you use an argument that consists only of a doubled dash
408 all following arguments are taken as
410 argument, even if such an argument starts with a dash.
412 This is handled according to the
417 .\" --------------------------------------------------------------------
418 .SH "THE LILYPOND PARTS IN ROFF INPUT"
419 .\" --------------------------------------------------------------------
421 .\" --------------------------------------------------------------------
422 .SS "Integrated Lilypond Codes"
423 .\" --------------------------------------------------------------------
427 part within a structure written in the
429 language is the whole part between the marks
446 input can have several of these
452 When processing such a
461 .IR "lilypond mode" .
467 parts are sent into temporary
469 files with the file name extension
472 These files are transformed later on into
477 .\" --------------------------------------------------------------------
478 .SS "Inclusion of ly-Files"
479 .\" --------------------------------------------------------------------
481 An additional command line for file inclusion of
485 .BI ".lilypond include" " file_name"
495 code can be included into the
499 Arbitrarily many of these commands can be included in the
505 These include commands can only be used outside the
510 .IR "lilypond mode" ,
511 this inclusion is not possible.
514 .B ".lilypond include"
516 .IR "lilypond mode" ,
520 .BR ".lilypond end" .
525 are also transformed into
530 .\" --------------------------------------------------------------------
531 .SH "GENERATED FILES"
532 .\" --------------------------------------------------------------------
534 By the transformation process of
538 files, there are many files generated.
540 By default, these files are regarded as temporary files and as such
541 stored in a temporary directory.
545 This process can be changed by command line options.
548 .\" --------------------------------------------------------------------
549 .SS "Command Line Options for Directories"
550 .\" --------------------------------------------------------------------
552 The temporary directory for this program is either created
553 automatically or can be named by the option
561 files that are later on referred by
565 output can be stored in a different directory that can be set by the
570 With this option, the temporary directory can be removed completely at
571 the end of the program.
575 The beginning of the names of the temporary files can be set by the
582 All of the temporary files except the
584 files are deleted finally.
586 This can be changed by setting the command line option
587 .OP -k | --keep_files .
589 With this, all temporary files and directories are kept, not deleted.
595 files are stored in a temporary or
599 But they cannot be deleted by the transformation process because they
600 are needed for the display which can take a long time.
603 .\" --------------------------------------------------------------------
604 .SH "TRANSFORMATION PROCESSES FOR GENERATING EPS FILES"
605 .\" --------------------------------------------------------------------
607 .\" --------------------------------------------------------------------
609 .\" --------------------------------------------------------------------
611 This mode is the default.
613 It can also be chosen by the option
620 files are transformed by the
622 program into many files of different formats, including
627 .BI "$ lilypond \-\-ps \-dbackend=eps \-dgs\-load\-fonts \-\-output=" file\-name
636 must be provided without an extension, its directory is temporary.
644 One having the complete transformed
647 .IB file\-name .eps \fR.\fP
653 files for each page, named
654 .IB file\-name \- digit .eps \fR.\fP
658 The last step to be done is replacing all
660 parts by the collection of the corresponding
668 .BI ".PSPIC " file-name \- digit .eps
672 .\" --------------------------------------------------------------------
674 .\" --------------------------------------------------------------------
676 This mode can be chosen by the option
683 files are transformed by the
690 .BI "lilypond \-\-pdf \-\-output=" file-name
699 must be provided without the extension
702 By this process, a file
708 The next step is to transform these
719 \fR$ \fP \fBpdf2ps\fP \fIfile-name\fP \fB.pdf\fP \fIfile-name\fP \fB.ps\fP
724 The next step creates an
735 .RB "$ " "ps2eps " \fIfile-name\fP ".ps"
747 file or standard input.
751 The last step to be done is replacing all
758 .BI ".PSPIC " file-name .eps
763 .\" --------------------------------------------------------------------
764 .SH "THE GENERATED NEW ROFF STRUCTURE"
765 .\" --------------------------------------------------------------------
768 .BR groff (@MAN7EXT@)
769 structure generated by
775 sent to standard output and can there be saved into a file or piped into
776 .BR groff (@MAN1EXT@)
778 .BR groffer (@MAN1EXT@)
783 stored into a file by given the option
784 .BR \-o\ \~| \~\-\-output
788 .\" --------------------------------------------------------------------
790 .\" --------------------------------------------------------------------
793 .BR groff (@MAN1EXT@)
794 the usage of the groff program and pointers to the documentation and
799 The main source of information for the
808 .BR groff (@MAN7EXT@)
815 .BR groff_tmac (@MAN5EXT@)
816 contains documentation of the
823 The documentation of the
827 The main source of information for the
853 .\" --------------------------------------------------------------------
855 .\" --------------------------------------------------------------------
857 .\" --------------------------------------------------------------------
859 .\" --------------------------------------------------------------------
863 .\" --------------------------------------------------------------------
865 .\" --------------------------------------------------------------------