1 ;;;; This file is part of LilyPond, the GNU music typesetter.
3 ;;;; Copyright (C) 2000--2010 Han-Wen Nienhuys <hanwen@xs4all.nl>
4 ;;;; Jan Nieuwenhuizen <janneke@gnu.org>
6 ;;;; LilyPond is free software: you can redistribute it and/or modify
7 ;;;; it under the terms of the GNU General Public License as published by
8 ;;;; the Free Software Foundation, either version 3 of the License, or
9 ;;;; (at your option) any later version.
11 ;;;; LilyPond is distributed in the hope that it will be useful,
12 ;;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
13 ;;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 ;;;; GNU General Public License for more details.
16 ;;;; You should have received a copy of the GNU General Public License
17 ;;;; along with LilyPond. If not, see <http://www.gnu.org/licenses/>.
19 ;;; File entry point for generated documentation
20 ;;; Running LilyPond on this file generates the documentation
22 ;;(set-debug-cell-accesses! 5000)
25 ;;;;;;;;;;;;;;;; TODO : make modules of these!
28 ;; todo: naming: grob vs. layout property
30 (map ly:load '("documentation-lib.scm"
32 "document-functions.scm"
33 "document-translation.scm"
35 "document-type-predicates.scm"
36 "document-identifiers.scm"
37 "document-backend.scm"
38 "document-markup.scm"))
40 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
43 (slot-ref (all-scheme-functions-doc) 'text)
44 (open-output-file "scheme-functions.tely"))
47 ;; (markup-doc-string)
48 ;; (open-output-file "markup-commands.tely"))
51 ;; ugly hack to remove the @node... @appendixsec... portion
53 (call-with-output-string
55 (dump-node (markup-doc-node) port 2)))
56 ;; magic number to remove the initial part. 63 comes from:
57 ;; "\nnode Text markup commands\n@appendixsec Text markup commands\n\n\n\n"
58 ;; which is generated by (dump-node...) in documentation-lib.scm
61 (open-output-file "markup-commands.tely"))
64 (markup-list-doc-string)
65 (open-output-file "markup-list-commands.tely"))
68 type-predicates-doc-string
69 (open-output-file "type-predicates.tely"))
72 (identifiers-doc-string)
73 (open-output-file "identifiers.tely"))
77 (backend-properties-doc-string all-user-grob-properties)
78 (open-output-file "layout-properties.tely"))
81 (translation-properties-doc-string all-user-translation-properties)
82 (open-output-file "context-properties.tely"))
84 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
86 (define file-name "internals")
87 (define outname (string-append file-name ".texi"))
89 (define out-port (open-output-file outname))
95 (texi-file-head "LilyPond Internals Reference" file-name
96 "(lilypond-internals.info)")
102 @omftitle LilyPond internals
103 @omfcreator Han-Wen Nienhuys and Jan Nieuwenhuizen
104 @omfdescription Programmer's reference of the LilyPond music engraving system
105 @omftype user's guide
107 @omfcategory Applications|Publishing
118 @subtitle The music typesetter
119 @titlefont{Internals Reference}
120 @author The LilyPond development team
122 @c `Internals Reference' was born 2000-10-21 with git commit 01e371f...
123 Copyright @copyright{} 2000--2010 by the authors
127 For LilyPond version @version{}
137 #:name "GNU LilyPond -- Internals Reference"
139 (string-append "@end ifnottex
143 This document is also available as a
144 @uref{source/Documentation/internals.pdf,PDF} and as
145 @uref{source/Documentation/internals-big-page.html,one big page}.
148 This document is also available as a
149 @uref{source/Documentation/internals.pdf,PDF} and as a
150 @uref{source/Documentation/internals/index.html,HTML indexed multiple pages}.
154 This is the Internals Reference (IR) for version "
156 " of LilyPond, the GNU music typesetter.")
161 (translation-doc-node)
163 (all-scheme-functions-doc)
168 @appendixsec Concept index
172 @appendixsec Function index
178 (dump-node top-node out-port 0)
179 (newline (current-error-port))