From c480b5bdf5f90b9bf13461574839a44fc28136de Mon Sep 17 00:00:00 2001 From: Scott Kostyshak Date: Fri, 27 Oct 2017 02:13:42 -0400 Subject: [PATCH] configure.py: add LilyPond editor, Frescobaldi Generic text editors are used as fallbacks, in case Frescobaldi is not available. The list of text editors is the same as elsewhere in configure.py. We might consider centralizing the list of text editors in a variable. Patch from Helge Hafting on ML at:. https://www.mail-archive.com/search?l=mid&q=f167276f-4f59-7bab-a832-cff56dddd670%40ntnu.no (cherry picked from commit c4b4305fa2e7238b8d92859c286807cb2cb99ab6) --- lib/configure.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/configure.py b/lib/configure.py index ac51770568..8cc1a0c84e 100644 --- a/lib/configure.py +++ b/lib/configure.py @@ -651,7 +651,6 @@ def checkFormatEntries(dtl_tools): \Format r R "R/S code" "" "" "%%" "document,menu=export" "" \Format knitr Rnw "Rnw (knitr)" "" "" "%%" "document,menu=export" "" \Format knitr-ja Rnw "Rnw (knitr, Japanese)" "" "" "%%" "document,menu=export" "" -\Format lilypond ly "LilyPond music" "" "" "%%" "vector" "text/x-lilypond" \Format lilypond-book lytex "LilyPond book (LaTeX)" "" "" "%%" "document,menu=export" "" \Format lilypond-book-ja lytex "LilyPond book (pLaTeX)" "" "" "%%" "document,menu=export" "" \Format latex tex "LaTeX (plain)" L "" "%%" "document,menu=export" "text/x-tex" @@ -665,6 +664,11 @@ def checkFormatEntries(dtl_tools): \Format text4 txt "Plain text (catdvi)" "" "" "%%" "document" "" \Format textparagraph txt "Plain Text, Join Lines" "" "" "%%" "document" "" \Format beamer.info pdf.info "Info (Beamer)" "" "" "%%" "document,menu=export" ""''' ]) + #Lilypond files have special editors, but fall back to plain text editors + checkViewerEditor('a lilypond editor', + ['frescobaldi', 'xemacs', 'gvim', 'kedit', 'kwrite', 'kate', + 'nedit', 'gedit', 'geany', 'leafpad', 'mousepad', 'xed', 'notepad'], + rc_entry = [r'''\Format lilypond ly "LilyPond music" "" "" "%%" "vector" "text/x-lilypond"''' ]) #Spreadsheets using ssconvert from gnumeric checkViewer('gnumeric spreadsheet software', ['gnumeric'], rc_entry = [r'''\Format gnumeric gnumeric "Gnumeric spreadsheet" "" "" "%%" "document" "application/x-gnumeric"