Delta Between Two Patch Sets: Documentation/included/special-characters.ly
Issue 4553056 :
New alist to replace special characters. (Closed)
Left Patch Set: 'replacement-string-max-length' removed, alist's use and definition changed.
Right Patch Set: Partially reverting one of Neil's changes.
Use n/p to move between diff chunks;
N/P to move between comments.
Please Sign in to add in-line comments.
Jump to:
Documentation/changes.tely
Documentation/included/special-characters.ly
Documentation/notation/input.itely
Documentation/notation/notation-appendices.itely
Documentation/notation/vocal.itely
input/regression/markup-special-characters.ly
lily/lexer.ll
lily/text-interface.cc
ly/paper-defaults-init.ly
ly/text-replacements.ly
scm/define-grob-properties.scm
scm/define-markup-commands.scm
scm/lily.scm
scm/text.scm
LEFT RIGHT
(no file at all) 1 \version "2.15.13"
2
3 #(set-default-paper-size "a4")
4 \paper {
5 #(include-special-characters)
6 }
7
8 #(define-markup-list-command (show-special-characters layout props) ()
9 (let ((defs (ly:output-def-lookup layout 'text-font-defaults)))
10 (interpret-markup-list layout props
11 (map (lambda (pair)
12 (markup #:override '(line-width . 18)
13 #:fill-line
14 (#:override '(replacement-alist . ()) (car pair)
15 #:override '(thickness . 0.1) #:box (cdr pair))))
16 (list-tail (assoc-get 'replacement-alist defs) 3)))))
17
18 \markuplines \justified-lines \show-special-characters
LEFT RIGHT