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 c4b4305fa2)
This commit is contained in:
Scott Kostyshak 2017-10-27 02:13:42 -04:00
parent a7f561f571
commit c480b5bdf5

View File

@ -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"