Skip to content

Commit 9ba882a

Browse files
authored
Merge pull request #16 from openlilylib/version-0.5.6
Version 0.5.6
2 parents a59a1f6 + 29b6f90 commit 9ba882a

32 files changed

+905
-254
lines changed

Release Notes.txt

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,22 @@
1-
*******************************************
2-
OOoLilyPond 0.5.5 Release Notes (May 2017)
3-
*******************************************
1+
*********************************************
2+
OOoLilyPond 0.5.6 Release Notes (March 2018)
3+
*********************************************
4+
5+
6+
Changes to OOoLilyPond 0.5.6 since 0.5.5:
7+
==========================================
8+
9+
* French translation added (Thanks to Valentin Villenave!)
10+
To have the new language file "francais.ini" available in the config dialog,
11+
please launch OLy, open the config dialog and click the "Restore Language Files" button.
12+
(Your current language files will be backed up in a subfolder. If you like, you can delete that subfolder.
13+
* Bugfix: When no graphics file was created, LY compiler error messages were not shown in OLy Editor window.
14+
* some minor spacing adjustments in dialogs
15+
* documentation URLs inside the templates updated to recent stable LY versions
16+
To have the recent URLs in the comment section at the beginning of the templates,
17+
you can hit the "Restore Templates" button in the config dialog
18+
(Attention, this will move your current templates into a subfolder).
19+
Doing that will not be necessary if you already know where to find the documentation section on the LilyPond website.
420

521

622
Changes to OOoLilyPond 0.5.5 since 0.5.4:

extension/Language/francais.ini

Lines changed: 444 additions & 0 deletions
Large diffs are not rendered by default.

extension/OOoLilyPond/Config.xba

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -341,18 +341,7 @@ Sub DefaultConfig()
341341
sOSType=GetOSType()
342342

343343
' Config file, temporary folder, include statement(s), LilyPond and Ext. Editor executable
344-
If sOSType="Unix" Then
345-
sConfigFile = ConvertToURL(Environ("HOME")) & "/.ooolilypond"
346-
sTmpPath = ConvertToURL(Environ("HOME")) & "/.cache/ooolilypond/tmp/"
347-
If Not oFileAccess.exists(sTmpPath) then oFileAccess.createFolder(sTmpPath)
348-
sTemplatePath = ConvertToURL(Environ("HOME")) & "/OOoLilyPond-Templates/"
349-
sLanguagePath = ConvertToURL(Environ("HOME")) & "/OOoLilyPond-Language/"
350-
' LilyPond Executable (not an URL)
351-
sLilyPondExecutable = "lilypond"
352-
sExtEditorExecutable = "frescobaldi"
353-
sIncludeStatement = "-I" & Chr(34) & ConvertFromURL(Environ("HOME")) & Chr(34)
354-
Else
355-
'Operating System is Windows
344+
If sOSType="Windows" Then
356345
' Create Folder %APPDATA%\OOoLilyPond if it does not exist
357346
If Not oFileAccess.isFolder( Environ("APPDATA") & "\" & constOLyWinConfigFolderName ) Then
358347
If oFileAccess.exists( Environ("APPDATA") & "\" & constOLyWinConfigFolderName ) Then
@@ -376,7 +365,22 @@ Sub DefaultConfig()
376365
While InStr (sIncludeStatement, "\") > 0 ' replace "\" by "/", even in Windows LilyPond expects paths to be written with forward slashes
377366
Mid (sIncludeStatement, InStr (sIncludeStatement, "\"), 1, "/")
378367
Wend
379-
End If
368+
Else ' Unix or Mac
369+
sConfigFile = ConvertToURL(Environ("HOME")) & "/.ooolilypond"
370+
sTmpPath = ConvertToURL(Environ("HOME")) & "/.cache/ooolilypond/tmp/"
371+
If Not oFileAccess.exists(sTmpPath) then oFileAccess.createFolder(sTmpPath)
372+
sTemplatePath = ConvertToURL(Environ("HOME")) & "/OOoLilyPond-Templates/"
373+
sLanguagePath = ConvertToURL(Environ("HOME")) & "/OOoLilyPond-Language/"
374+
' LilyPond Executable (not an URL)
375+
If sOSType="Unix" Then
376+
sLilyPondExecutable = "lilypond"
377+
sExtEditorExecutable = "frescobaldi"
378+
Else ' Mac
379+
sLilyPondExecutable = "lilypond"
380+
sExtEditorExecutable = "frescobaldi"
381+
End If
382+
sIncludeStatement = "-I" & Chr(34) & ConvertFromURL(Environ("HOME")) & Chr(34)
383+
End If
380384

381385

382386
' Writer specific settings
@@ -638,7 +642,7 @@ Function PickExecutableFile (sExeFileName As String) As Boolean
638642
iPos = InStr (sFile, "/")
639643
Wend
640644
If (Not oFileAccess.isFolder (sDirectory)) Or (sDirectory = "file:///") Then
641-
If sOSType = "Unix" Then
645+
If (sOSType = "Unix") Or (sOSType = "Mac") Then
642646
sDirectory = ConvertToURL ("/usr/bin")
643647
Else ' Windows
644648
sDirectory = ConvertToURL (Environ ("ProgramFiles"))
@@ -647,7 +651,7 @@ Function PickExecutableFile (sExeFileName As String) As Boolean
647651
oFileDlg.setDefaultName (sFile)
648652
' oFileDlg.setDisplayDirectory (sDirectory) ' seems to crash LibO 5.3.1.2 (Win7 x64) unless LibO's own open/save dialogs are used, so better comment it out until the problem is found and fixed
649653
oFileDlg.AppendFilter (oMessages.getPropertyValue ("sFilterAllFiles"), "*.*")
650-
If sOSType = "Unix" Then
654+
If (sOSType = "Unix") Or (sOSType = "Mac") Then
651655
oFileDlg.SetCurrentFilter (oMessages.getPropertyValue ("sFilterAllFiles"))
652656
Else ' Windows
653657
oFileDlg.AppendFilter (oMessages.getPropertyValue ("sFilterExecutableFiles"), "*.exe")
@@ -680,7 +684,7 @@ Function PickFolder (sFolderName As String) As Boolean
680684
If sFolder <> "" Then
681685
sFolder = ConvertToURL (sFolder)
682686
Else
683-
If sOSType = "Unix" Then
687+
If (sOSType = "Unix") Or (sOSType = "Mac") Then
684688
sFolder = ConvertToURL (Environ("HOME"))
685689
Else ' Windows
686690
sFolder = ConvertToURL (Environ("ProgramFiles"))

extension/OOoLilyPond/Editor.xba

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,17 @@ Sub EditorDialog()
1818
' DialogLibraries.LoadLibrary (constOLyLibraryName)
1919

2020
' Create the dialog object
21-
' --- too late, now that must happen before ReadLanguageFile()
2221
oEditorDialog = createUnoDialog( DialogLibraries.GetByName(constOLyLibraryName).GetByName("GUI_Editor") )
2322
ReadDialogStringsFromVar (oEditorDialog, sEditorDialogStrings)
24-
23+
24+
2525
' Change the font of the editor pane
2626
oFieldModel = oEditorDialog.getControl("sCode").getModel()
2727
MyFont.Name = sEditorFontName
2828
' MyFont.StyleName = "Fett" ' bad idea...
2929
MyFont.Height = sEditorFontSize
3030
oFieldModel.FontDescriptor = MyFont
31-
31+
3232
' Fill in the values
3333
If bUseDefaultCode Then
3434
sCode=""
@@ -166,6 +166,7 @@ Sub DisplayError()
166166
End If
167167
oEditorDialog.getControl ("sErrMsg").setText (sText)
168168
oEditorDialog.getModel().getByName ("sErrMsg").BackgroundColor = lErrMsgHighlightColor
169+
oEditorDialog.getControl ("sErrMsg").Visible = True
169170
If iErrNum > 1 Then
170171
oEditorDialog.getModel().getByName ("PrevErr").Enabled = True
171172
Else
@@ -181,7 +182,7 @@ End Sub
181182

182183

183184
Sub GotoError(n)
184-
' set Curser to Error
185+
' set Cursor to Error
185186

186187
Dim oSelection As Object
187188
Dim iLilyPondCodePos As Integer ' Error position in sLilyPondCode
@@ -257,7 +258,7 @@ Sub CallExtEditor()
257258
Dim sCommand As String
258259
Dim sParam As String
259260

260-
If sOSType = "Unix" Then
261+
If (sOSType = "Unix") Or (sOSType = "Mac") Then
261262
sCommand="cd " & Chr(34) & ConvertFromURL(sTmpPath) & Chr(34) & "; " _
262263
& Chr(34) & sExtEditorExecutable & Chr(34) & " " & constOLyFileName & "Temp.ly; if [ $? -ge 127 ]; then touch ExtEditor-cannot_execute; fi; if [ $? -ge 126 ]; then touch ExtEditor-cannot_execute; fi" ' not found -> 127, denied ->126
263264
' On Error GoTo ErrorHandler ' doesn't work here, so let's use the cannot_execute-File...

extension/OOoLilyPond/GUI_Config.xdl

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -45,21 +45,21 @@
4545
</dlg:checkbox>
4646
<dlg:textfield dlg:id="sTemplatePath" dlg:tab-index="48" dlg:left="173" dlg:top="124" dlg:width="102" dlg:height="12" dlg:help-text="The path where OOoLiliyPond looks for templates."/>
4747
<dlg:textfield dlg:id="sLilyPondExecutable" dlg:tab-index="49" dlg:left="173" dlg:top="176" dlg:width="102" dlg:height="12" dlg:help-text="The LilyPond executable with or without path."/>
48-
<dlg:numericfield dlg:id="iGraphicDPI" dlg:tab-index="52" dlg:left="208" dlg:top="218" dlg:width="20" dlg:height="12" dlg:help-text="Resolution for pixel based (png-format) OOoLilyPond objects." dlg:decimal-accuracy="0" dlg:value="300" dlg:value-min="75" dlg:value-max="2400" dlg:value-step="0"/>
49-
<dlg:combobox dlg:id="sFormat" dlg:tab-index="51" dlg:left="174" dlg:top="218" dlg:width="25" dlg:height="12" dlg:help-text="The png format looks better on the screen. The eps and svg formats are optimized for printing." dlg:spin="true"/>
48+
<dlg:numericfield dlg:id="iGraphicDPI" dlg:tab-index="52" dlg:left="228" dlg:top="218" dlg:width="30" dlg:height="12" dlg:help-text="Resolution for pixel based (png-format) OOoLilyPond objects." dlg:decimal-accuracy="0" dlg:value="300" dlg:value-min="75" dlg:value-max="2400" dlg:value-step="0"/>
49+
<dlg:combobox dlg:id="sFormat" dlg:tab-index="51" dlg:left="174" dlg:top="218" dlg:width="50" dlg:height="12" dlg:help-text="The png format looks better on the screen. The eps and svg formats are optimized for printing." dlg:spin="true"/>
5050
<dlg:checkbox dlg:id="bIgnoreWarnings" dlg:tab-index="53" dlg:left="173" dlg:top="192" dlg:width="143" dlg:height="10" dlg:help-text="Don&apos;t list warnings along with LilyPond&apos;s error messages" dlg:value="Ignore Warnings" dlg:checked="false"/>
5151
<dlg:textfield dlg:id="sExtEditorExecutable" dlg:tab-index="47" dlg:left="173" dlg:top="150" dlg:width="102" dlg:height="12" dlg:help-text="The external Editor&apos;s executable with or without path."/>
5252
<dlg:textfield dlg:id="sIncludeStatement" dlg:tab-index="46" dlg:left="173" dlg:top="72" dlg:width="143" dlg:height="12" dlg:help-text="The path(s) where LilyPond looks for include files (multiple statements possible)"/>
5353
<dlg:textfield dlg:id="sEditorFontName" dlg:tab-index="42" dlg:left="173" dlg:top="46" dlg:width="102" dlg:height="12" dlg:help-text="Specify the font name for the editor pane"/>
5454
<dlg:textfield dlg:id="sEditorFontSize" dlg:tab-index="43" dlg:left="281" dlg:top="46" dlg:width="35" dlg:height="12" dlg:help-text="Specify the font size for the editor pane"/>
5555
<dlg:radiogroup>
56-
<dlg:radio dlg:id="WriterInsertViaClipboard" dlg:tab-index="16" dlg:left="9" dlg:top="133" dlg:width="145" dlg:height="12" dlg:help-text="Insert Images via Clipboard. Recommended for OpenOffice." dlg:value="Via Clipboard (OpenOffice)"/>
57-
<dlg:radio dlg:id="WriterInsertDirect" dlg:tab-index="17" dlg:left="9" dlg:top="145" dlg:width="145" dlg:height="12" dlg:help-text="Insert Images without Clipboard use. Recommended for LibreOffice." dlg:value="Direct (LibreOffice)"/>
58-
<dlg:radio dlg:id="ImpressInsertViaClipboard" dlg:tab-index="30" dlg:left="9" dlg:top="278" dlg:width="145" dlg:height="12" dlg:help-text="Insert Images via Clipboard. Recommended for OpenOffice." dlg:value="Via Clipboard (OpenOffice)"/>
59-
<dlg:radio dlg:id="ImpressInsertDirect" dlg:tab-index="31" dlg:left="9" dlg:top="290" dlg:width="145" dlg:height="12" dlg:help-text="Insert Images without Clipboard use. Recommended for LibreOffice." dlg:value="Direct (LibreOffice)"/>
56+
<dlg:radio dlg:id="WriterInsertViaClipboard" dlg:tab-index="16" dlg:left="10" dlg:top="133" dlg:width="145" dlg:height="12" dlg:help-text="Insert Images via Clipboard. Recommended for OpenOffice." dlg:value="Via Clipboard (OpenOffice)"/>
57+
<dlg:radio dlg:id="WriterInsertDirect" dlg:tab-index="17" dlg:left="10" dlg:top="145" dlg:width="145" dlg:height="12" dlg:help-text="Insert Images without Clipboard use. Recommended for LibreOffice." dlg:value="Direct (LibreOffice)"/>
58+
<dlg:radio dlg:id="ImpressInsertViaClipboard" dlg:tab-index="30" dlg:left="10" dlg:top="278" dlg:width="145" dlg:height="12" dlg:help-text="Insert Images via Clipboard. Recommended for OpenOffice." dlg:value="Via Clipboard (OpenOffice)"/>
59+
<dlg:radio dlg:id="ImpressInsertDirect" dlg:tab-index="31" dlg:left="10" dlg:top="290" dlg:width="145" dlg:height="12" dlg:help-text="Insert Images without Clipboard use. Recommended for LibreOffice." dlg:value="Direct (LibreOffice)"/>
6060
</dlg:radiogroup>
61-
<dlg:checkbox dlg:id="bWriterKeepCrop" dlg:tab-index="18" dlg:left="9" dlg:top="166" dlg:width="147" dlg:height="9" dlg:help-text="When editing/replacing an existing object in Writer, preserve its current size and crop settings" dlg:value="Keep Size &amp; Crop Settings" dlg:checked="false"/>
62-
<dlg:checkbox dlg:id="bImpressKeepCrop" dlg:tab-index="32" dlg:left="9" dlg:top="311" dlg:width="147" dlg:height="9" dlg:help-text="When editing/replacing an existing object in Impress/Draw, preserve its current size and crop settings" dlg:value="Keep Size &amp; Crop Settings" dlg:checked="false"/>
61+
<dlg:checkbox dlg:id="bWriterKeepCrop" dlg:tab-index="18" dlg:left="10" dlg:top="166" dlg:width="147" dlg:height="9" dlg:help-text="When editing/replacing an existing object in Writer, preserve its current size and crop settings" dlg:value="Keep Size &amp; Crop Settings" dlg:checked="false"/>
62+
<dlg:checkbox dlg:id="bImpressKeepCrop" dlg:tab-index="32" dlg:left="10" dlg:top="311" dlg:width="147" dlg:height="9" dlg:help-text="When editing/replacing an existing object in Impress/Draw, preserve its current size and crop settings" dlg:value="Keep Size &amp; Crop Settings" dlg:checked="false"/>
6363
<dlg:titledbox dlg:id="WriterDefaultsFrame" dlg:tab-index="0" dlg:left="6" dlg:top="7" dlg:width="155" dlg:height="173">
6464
<dlg:title dlg:value="Default Values for Writer"/>
6565
</dlg:titledbox>
@@ -81,9 +81,9 @@
8181
<dlg:text dlg:id="LabelExtEditorExecutable" dlg:tab-index="39" dlg:left="173" dlg:top="139" dlg:width="142" dlg:height="9" dlg:value="External Editor Executable:"/>
8282
<dlg:text dlg:id="LabelTemplatePath" dlg:tab-index="35" dlg:left="173" dlg:top="113" dlg:width="143" dlg:height="9" dlg:value="Template Path:"/>
8383
<dlg:text dlg:id="LabelLilyPondExecutable" dlg:tab-index="36" dlg:left="173" dlg:top="165" dlg:width="143" dlg:height="9" dlg:value="LilyPond Executable:"/>
84-
<dlg:text dlg:id="LabelFormat" dlg:tab-index="37" dlg:left="174" dlg:top="207" dlg:width="31" dlg:height="10" dlg:value="Format:"/>
85-
<dlg:text dlg:id="LabelDPI" dlg:tab-index="19" dlg:left="231" dlg:top="220" dlg:width="66" dlg:height="9" dlg:help-text="dots per inch" dlg:value="dpi"/>
86-
<dlg:text dlg:id="LabelGraphicDPIResolution" dlg:tab-index="38" dlg:left="209" dlg:top="207" dlg:width="89" dlg:height="10" dlg:value="Resolution (png):"/>
84+
<dlg:text dlg:id="LabelFormat" dlg:tab-index="37" dlg:left="174" dlg:top="207" dlg:width="51" dlg:height="10" dlg:value="Format:"/>
85+
<dlg:text dlg:id="LabelDPI" dlg:tab-index="19" dlg:left="260" dlg:top="220" dlg:width="58" dlg:height="9" dlg:help-text="dots per inch" dlg:value="dpi"/>
86+
<dlg:text dlg:id="LabelGraphicDPIResolution" dlg:tab-index="38" dlg:left="229" dlg:top="207" dlg:width="89" dlg:height="10" dlg:value="Resolution (png):"/>
8787
<dlg:text dlg:id="LabelImpressDefaultTemplate" dlg:tab-index="57" dlg:left="9" dlg:top="215" dlg:width="41" dlg:height="10" dlg:value="Template:" dlg:align="right"/>
8888
<dlg:titledbox dlg:id="ImpressDefaultsFrame" dlg:tab-index="20" dlg:left="6" dlg:top="199" dlg:width="155" dlg:height="126">
8989
<dlg:title dlg:value="Default Values for Impress and Draw"/>

0 commit comments

Comments
 (0)