From: Mark Polesky Date: Sun, 19 Jul 2009 00:40:20 +0000 (-0700) Subject: Docs: IR 2 Translation: Auto-sort various elements. X-Git-Tag: release/2.13.4-1~309 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=8e0acac5b6e71d193dd75f7b4f254f511a497cdd;p=lilypond.git Docs: IR 2 Translation: Auto-sort various elements. Fix wrongly nested sort/ref-ify calls: (sort (map ref-ify lst)) --> (map ref-ify (sort lst)). Auto-sort various unsorted elements. --- diff --git a/scm/document-translation.scm b/scm/document-translation.scm index 77f2abff2a..390d6b0330 100644 --- a/scm/document-translation.scm +++ b/scm/document-translation.scm @@ -34,18 +34,15 @@ (string-append "Music types accepted:\n\n" (human-listify - (map (lambda (x) - (string-append - "@ref{" - (symbol->string x) - "}")) accepted))) + (map ref-ify (sort (map symbol->string accepted) ly:string-citexi - (map (lambda (x) (property->texi 'translation x '())) propsr) + (map (lambda (x) (property->texi 'translation x '())) + (sort propsr ly:symbol-citexi - (map (lambda (x) (property->texi 'translation x '())) propsw) + (map (lambda (x) (property->texi 'translation x '())) + (sort propsw ly:symbol-ci #:name name @@ -171,17 +169,18 @@ (if (pair? aliases) (string-append "\n\nThis context also accepts commands for the following context(s):\n\n" - (human-listify aliases) + (human-listify (sort aliases ly:string-cistring accepts))) + (human-listify (map ref-ify (sort (map symbol->string accepts) + ly:string-citexi - (map document-engraver-by-name consists) + (map document-engraver-by-name (sort consists ly:symbol-ci