Skip to content

Commit 4675a84

Browse files
authored
Merge pull request #24 from openlilylib/version-0.5.8
Version 0.5.8
2 parents 545a32a + f47ed7a commit 4675a84

File tree

14 files changed

+99
-113
lines changed

14 files changed

+99
-113
lines changed

Version history.txt

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,33 @@
1-
*********************************************
2-
OOoLilyPond 0.5.7 Release Notes (May 2018)
3-
*********************************************
1+
*******************************************
2+
OOoLilyPond Version History (December 2018)
3+
*******************************************
4+
5+
6+
Changes to OOoLilyPond 0.5.8 since 0.5.7 (December 2018):
7+
==========================================================
8+
9+
* Partial Spanish translation added (Thanks to Fernando Villagran!)
10+
To have the new language file "espanol.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+
* Added option to have PNG graphics with transparent background (instead of opaque white background)
14+
(Issue 23) https://github.com/openlilylib/LO-ly/issues/23
15+
If you are missing the French or German translation for that option,
16+
click the "Restore Language Files" button (see above).
17+
* Fixed an incompatibility with LibreOffice's new GraphicURL handling.
18+
In LO 6.1.0 and 6.1.1 (for Draw/Impress: also 6.1.2, 6.1.3 and 6.1.4), the "Direct" option for "Insert Graphics" is broken.
19+
For those affected LO versions the "Via Clipboard" option should be used.
20+
The new OLy 0.5.8 release will work with all older and newer versions than those mentioned above,
21+
so as of LO 6.1.5, the "Direct" option should work again.
22+
(Issue 22) https://github.com/openlilylib/LO-ly/issues/22
23+
* The automatic toolbar creation during OLy installation has been reverted to the method used in OLy 0.5.6 and before.
24+
It turned out that the method used in 0.5.7 only worked in newer OpenOffice versions (due to a changed behavior
25+
in the OpenOffice history), but is incompatible to LibreOffice.
26+
(Issue 19) https://github.com/openlilylib/LO-ly/issues/19
27+
(There will be a dedicated version for OpenOffice...)
28+
29+
Only for LibreOffice 6.1.3: Some dialog or message windows show "10" at the beginning of a line. This is due to a bug in LO 6.1.3 that has already been fixed for 6.1.4.
30+
So LO 6.1.3 is the only affected version.
431

532

633
Changes to OOoLilyPond 0.5.7 since 0.5.6:

extension/Addons.xcu

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,19 @@
77
<node oor:name="AddonUI">
88
<node oor:name="OfficeToolBar">
99
<node oor:name="OOoLilyPond.OfficeToolBar" oor:op="replace">
10-
<prop oor:name="Title">
11-
<value>OOoLilyPond</value>
12-
</prop>
13-
<node oor:name="ToolBarItems">
14-
<node oor:name="m1" oor:op="replace">
15-
<prop oor:name="Context" oor:type="xs:string">
16-
<value>com.sun.star.text.TextDocument,com.sun.star.drawing.DrawingDocument,com.sun.star.presentation.PresentationDocument</value>
17-
</prop>
18-
<prop oor:name="URL" oor:type="xs:string">
19-
<value>vnd.sun.star.script:OOoLilyPond.OOoLilyPond.OOoLilyPond?language=Basic&amp;location=application</value>
20-
</prop>
21-
<prop oor:name="Title" oor:type="xs:string">
22-
<value>OLy</value>
23-
</prop>
24-
<prop oor:name="Target" oor:type="xs:string">
25-
<value>_self</value>
26-
</prop>
27-
</node>
10+
<node oor:name="m1" oor:op="replace">
11+
<prop oor:name="Context" oor:type="xs:string">
12+
<value>com.sun.star.text.TextDocument,com.sun.star.drawing.DrawingDocument,com.sun.star.presentation.PresentationDocument</value>
13+
</prop>
14+
<prop oor:name="URL" oor:type="xs:string">
15+
<value>vnd.sun.star.script:OOoLilyPond.OOoLilyPond.OOoLilyPond?language=Basic&amp;location=application</value>
16+
</prop>
17+
<prop oor:name="Title" oor:type="xs:string">
18+
<value>OLy</value>
19+
</prop>
20+
<prop oor:name="Target" oor:type="xs:string">
21+
<value>_self</value>
22+
</prop>
2823
</node>
2924
</node>
3025
</node>

extension/Language/deutsch.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,8 @@ LabelGraphicDPIResolution.label=Auflösung (png)
428428
iGraphicDPI.helptext=Auflösung für Noten im PNG-Format.
429429
LabelDPI.label=dpi
430430
LabelFormatInfo.label=eps: Nur mit OpenOffice%10%10svg: Nur mit LibreOffice, Vorlage ohne%10 lilypond-book-preamble.ly verwenden
431+
bTransparentBackground.label=Transparenter Hintergrund für png
432+
bTransparentBackground.helptext=png ohne weißen undurchsichtigen Hintergrund erstellen (svg hat keinen weißen Hintergrund)
431433
432434
RestoreTemplates.label=Vorlagen wiederherstellen
433435
RestoreTemplates.helptext=Mitgelieferte Vorlagen wiederherstellen. Ihre aktuellen Vorlagen werden in einem Unterordner gesichert.

extension/Language/english.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,8 @@ LabelGraphicDPIResolution.label=Resolution (png)
428428
iGraphicDPI.helptext=Resolution for pixel based (png-format) OOoLilyPond objects.
429429
LabelDPI.label=dpi
430430
LabelFormatInfo.label=eps: Only with OpenOffice%10%10svg: Only with LibreOffice, use Template%10 without lilypond-book-preamble.ly
431+
bTransparentBackground.label=Transparent Background for png
432+
bTransparentBackground.helptext=Create png graphics without opaque white background (svg never has a white background)
431433
432434
RestoreTemplates.label=Restore Templates
433435
RestoreTemplates.helptext=Restore the original templates delivered with OLy. Your actual templates will be backed up in a subfolder.

extension/Language/espanol.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,8 @@ LabelGraphicDPIResolution.label=Resolución (png)
429429
iGraphicDPI.helptext=Resolución para objetos Oly basados en píxeles (formato-png).
430430
LabelDPI.label=dpi
431431
LabelFormatInfo.label=eps: Solamente con OpenOffice%10%10svg: Solamente con LibreOffice, usar Plantilla%10 sin lilypond-book-preamble.ly
432+
bTransparentBackground.label=Fondo transparente para png
433+
bTransparentBackground.helptext=Inserta imágenes png sin fondo opaco blanco (el svg no lo tiene)
432434

433435
RestoreTemplates.label=Restaurar plantillas
434436
RestoreTemplates.helptext=Restaurar las plantillas originales entregados con Oly. Sus plantillas actuales serán resguardadas en una subcarpeta.

extension/Language/francais.ini

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
' Fichier de traduction pour OOoLilyPond
1+
' Fichier de traduction pour OOoLilyPond
22
33
' Les lignes introduites par une apostrophe (') sont ignorées et servent de commentaires.
44
' Les lignes vides sont également ignorées.
@@ -428,6 +428,8 @@ LabelGraphicDPIResolution.label=Résolution (png) :
428428
iGraphicDPI.helptext=Résolution pour les objets OOoLilyPond pixelisés (format png).
429429
LabelDPI.label=ppp
430430
LabelFormatInfo.label=eps: Seulement pour OpenOffice%10%10svg: Seulement pour LibreOffice ; utiliser%10 un modèle sans lilypond-book-preamble.ly
431+
bTransparentBackground.label=Fond transparent pour png
432+
bTransparentBackground.helptext=Créer les images png sans fond opaque blanc (il n’y a jamais de fond blanc en svg)
431433
432434
RestoreTemplates.label=Restaurer les modèles
433435
RestoreTemplates.helptext=Restaurer les modèles d’origine fournis avec OLy. Vos propres modèles seront sauvegardés dans un sous-dossier.

extension/OOoLilyPond/Config.xba

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ Sub ConfigDialogUpdate()
5757
oConfigDialog.getControl(&quot;sLilyPondExecutable&quot;).setText(ConvertFromURL(sLilyPondExecutable))
5858
oConfigDialog.getControl(&quot;sFormat&quot;).setText(sFormat)
5959
oConfigDialog.getControl(&quot;iGraphicDPI&quot;).setValue(iGraphicDPI)
60+
oConfigDialog.getControl(&quot;bTransparentBackground&quot;).setState(BoolToCheckBoxState(bTransparentBackground))
6061
oConfigDialog.getControl(&quot;sEditorFontName&quot;).setText(sEditorFontName)
6162
oConfigDialog.getControl(&quot;sEditorFontSize&quot;).setText(sEditorFontSize)
6263
oConfigDialog.getControl(&quot;sExtEditorExecutable&quot;).setText(ConvertFromURL(sExtEditorExecutable))
@@ -272,6 +273,7 @@ Sub ApplyConfig
272273
sLanguagePath = AddSlash(ConvertToURL(oConfigDialog.getControl(&quot;sLanguagePath&quot;).getText()))
273274
sFormat = oConfigDialog.getControl(&quot;sFormat&quot;).getText()
274275
iGraphicDPI = oConfigDialog.getControl(&quot;iGraphicDPI&quot;).getValue()
276+
bTransparentBackground = CheckBoxStateToBool(oConfigDialog.getControl(&quot;bTransparentBackground&quot;).getState())
275277
bIgnoreWarnings = CheckBoxStateToBool(oConfigDialog.getControl(&quot;bIgnoreWarnings&quot;).getState())
276278
sEditorFontName = oConfigDialog.getControl(&quot;sEditorFontName&quot;).getText()
277279
sEditorFontSize = oConfigDialog.getControl(&quot;sEditorFontSize&quot;).getText()
@@ -408,6 +410,7 @@ Sub DefaultConfig()
408410
&apos; General Settings
409411
sFormat = &quot;png&quot;
410412
iGraphicDPI = 300
413+
bTransparentBackground = False
411414
sEditorFontName = &quot;Courier&quot;
412415
sEditorFontSize = &quot;8&quot;
413416

@@ -474,6 +477,8 @@ Sub ReadConfig()
474477
iGraphicDPI = sValue
475478
Case &quot;sFormat&quot;
476479
sFormat = sValue
480+
Case &quot;bTransparentBackground&quot;
481+
bTransparentBackground = StringToBool(sValue)
477482
Case &quot;bIgnoreWarnings&quot;
478483
bIgnoreWarnings = StringToBool(sValue)
479484

@@ -545,6 +550,7 @@ Sub SaveConfig
545550
oTextOutputStream.writeString(&quot;sLanguagePath=&quot; &amp; sLanguagePath &amp; Chr(10) )
546551
oTextOutputStream.writeString(&quot;iGraphicDPI=&quot; &amp; iGraphicDPI &amp; Chr(10))
547552
oTextOutputStream.writeString(&quot;sFormat=&quot; &amp; sFormat &amp; Chr(10))
553+
oTextOutputStream.writeString(&quot;bTransparentBackground=&quot; &amp; BoolToString(bTransparentBackground) &amp; Chr(10))
548554
oTextOutputStream.writeString(&quot;bIgnoreWarnings=&quot; &amp; BoolToString(bIgnoreWarnings) &amp; Chr(10))
549555
oTextOutputStream.writeString(&quot;sEditorFontName=&quot; &amp; sEditorFontName &amp; Chr(10) )
550556
oTextOutputStream.writeString(&quot;sEditorFontSize=&quot; &amp; sEditorFontSize &amp; Chr(10) )

extension/OOoLilyPond/GUI_Config.xdl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!DOCTYPE dlg:window PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "dialog.dtd">
3-
<dlg:window xmlns:dlg="http://openoffice.org/2000/dialog" xmlns:script="http://openoffice.org/2000/script" dlg:id="GUI_Config" dlg:left="29" dlg:top="52" dlg:width="323" dlg:height="333" dlg:closeable="true" dlg:moveable="true" dlg:title="OOoLilyPond Configuration">
3+
<dlg:window xmlns:dlg="http://openoffice.org/2000/dialog" xmlns:script="http://openoffice.org/2000/script" dlg:id="GUI_Config" dlg:left="29" dlg:top="52" dlg:width="324" dlg:height="333" dlg:closeable="true" dlg:moveable="true" dlg:title="OOoLilyPond Configuration">
44
<dlg:bulletinboard>
55
<dlg:radiogroup>
66
<dlg:radio dlg:id="WriterAnchorAsCharacter" dlg:tab-index="8" dlg:left="10" dlg:top="82" dlg:width="60" dlg:height="12" dlg:help-text="The OOoLilyPond object is inserted into the Text like a character." dlg:tabstop="true" dlg:value="As Character" dlg:checked="true"/>
@@ -95,7 +95,7 @@
9595
<script:event script:event-name="on-performaction" script:macro-name="vnd.sun.star.script:OOoLilyPond.Config.RestoreLanguageFilesButton?language=Basic&amp;location=application" script:language="Script"/>
9696
</dlg:button>
9797
<dlg:combobox dlg:id="sLanguageFileName" dlg:tab-index="59" dlg:left="173" dlg:top="20" dlg:width="143" dlg:height="12" dlg:help-text="Specify a file name for the language file that contains OLy&apos;s translation strings" dlg:spin="true" dlg:linecount="24"/>
98-
<dlg:text dlg:id="LabelFormatInfo" dlg:tab-index="50" dlg:left="174" dlg:top="234" dlg:width="148" dlg:height="59" dlg:value="eps: Only with OpenOffice&#x0a;&#x0a;svg: Only with LibreOffice, use Template&#x0a; without &quot;lilypond-book-preamble.ly&quot;" dlg:tabstop="false" dlg:nolabel="true"/>
98+
<dlg:text dlg:id="LabelFormatInfo" dlg:tab-index="50" dlg:left="174" dlg:top="249" dlg:width="148" dlg:height="44" dlg:value="eps: Only with OpenOffice&#x0a;&#x0a;svg: Only with LibreOffice, use Template&#x0a; without &quot;lilypond-book-preamble.ly&quot;" dlg:tabstop="false" dlg:nolabel="true"/>
9999
<dlg:button dlg:id="ExtEditorPickButton" dlg:tab-index="60" dlg:left="282" dlg:top="150" dlg:width="35" dlg:height="12" dlg:help-text="Select an executable file" dlg:value="Select">
100100
<script:event script:event-name="on-performaction" script:macro-name="vnd.sun.star.script:OOoLilyPond.Config.ExtEditorPickButton?language=Basic&amp;location=application" script:language="Script"/>
101101
</dlg:button>
@@ -110,5 +110,6 @@
110110
<dlg:button dlg:id="LanguagePathPickButton" dlg:tab-index="65" dlg:left="282" dlg:top="98" dlg:width="35" dlg:height="12" dlg:help-text="Select a folder" dlg:value="Select">
111111
<script:event script:event-name="on-performaction" script:macro-name="vnd.sun.star.script:OOoLilyPond.Config.LanguagePathPickButton?language=Basic&amp;location=application" script:language="Script"/>
112112
</dlg:button>
113+
<dlg:checkbox dlg:id="bTransparentBackground" dlg:tab-index="66" dlg:left="173" dlg:top="234" dlg:width="143" dlg:height="10" dlg:help-text="Create png graphics without opaque white background (svg never has a white background)" dlg:value="Transparent Background for png" dlg:checked="false"/>
113114
</dlg:bulletinboard>
114115
</dlg:window>

extension/OOoLilyPond/GUI_Editor.xdl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,4 +94,4 @@
9494
<dlg:checkbox dlg:id="bKeepCrop" dlg:tab-index="34" dlg:left="7" dlg:top="261" dlg:width="140" dlg:height="9" dlg:help-text="When editing/replacing an existing object, preserve its current size and crop settings" dlg:value="Keep Size &amp; Crop Settings" dlg:checked="false"/>
9595
<dlg:text dlg:id="TemplateLabel" dlg:tab-index="8" dlg:left="149" dlg:top="214" dlg:width="46" dlg:height="10" dlg:value="Template:" dlg:align="right"/>
9696
</dlg:bulletinboard>
97-
</dlg:window>
97+
</dlg:window>

extension/OOoLilyPond/LilyPond.xba

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@ Function CallLilyPond() As Boolean
2525
sCommand = sCommand &amp; &quot; &quot; &amp; sIncludeStatement
2626
End If
2727
If sFormat=&quot;png&quot; Then
28-
sCommand = sCommand &amp; &quot; -dno-delete-intermediate-files --png &quot; &amp; sBackendOpt &amp; &quot; -dresolution=&quot; &amp; iGraphicDPI &amp; &quot; &quot; &amp; constOLyFileName &amp; &quot;.ly &gt;&quot; &amp; constOLyFileName &amp; &quot;.out 2&gt;&amp;1; &quot;
28+
If bTransparentBackground Then
29+
sCommand = sCommand &amp; &quot; -dno-delete-intermediate-files -dpixmap-format=pngalpha --png &quot; &amp; sBackendOpt &amp; &quot; -dresolution=&quot; &amp; iGraphicDPI &amp; &quot; &quot; &amp; constOLyFileName &amp; &quot;.ly &gt;&quot; &amp; constOLyFileName &amp; &quot;.out 2&gt;&amp;1; &quot;
30+
Else
31+
sCommand = sCommand &amp; &quot; -dno-delete-intermediate-files --png &quot; &amp; sBackendOpt &amp; &quot; -dresolution=&quot; &amp; iGraphicDPI &amp; &quot; &quot; &amp; constOLyFileName &amp; &quot;.ly &gt;&quot; &amp; constOLyFileName &amp; &quot;.out 2&gt;&amp;1; &quot;
32+
End If
2933
ElseIf sFormat=&quot;eps&quot; Then
3034
sCommand = sCommand &amp; &quot; &quot; &amp; sBackendOpt &amp; &quot; -f eps &quot; &amp; constOLyFileName &amp; &quot;.ly &gt;&quot; &amp; constOLyFileName &amp; &quot;.out 2&gt;&amp;1; &quot;
3135
ElseIf sFormat=&quot;svg&quot; Then
@@ -42,7 +46,11 @@ Function CallLilyPond() As Boolean
4246
sCommand = sCommand &amp; &quot; &quot; &amp; sIncludeStatement
4347
End If
4448
If sFormat=&quot;png&quot; Then
45-
sCommand = sCommand &amp; &quot; -dno-delete-intermediate-files --png &quot; &amp; sBackendOpt &amp; &quot; -dresolution=&quot; &amp; iGraphicDPI &amp; &quot; &quot; &amp; constOLyFileName &amp; &quot;.ly &gt;&quot; &amp; constOLyFileName &amp; &quot;.out 2&gt;&amp;1&quot; &amp;Chr(10)
49+
If bTransparentBackground Then
50+
sCommand = sCommand &amp; &quot; -dno-delete-intermediate-files -dpixmap-format=pngalpha --png &quot; &amp; sBackendOpt &amp; &quot; -dresolution=&quot; &amp; iGraphicDPI &amp; &quot; &quot; &amp; constOLyFileName &amp; &quot;.ly &gt;&quot; &amp; constOLyFileName &amp; &quot;.out 2&gt;&amp;1&quot; &amp;Chr(10)
51+
Else
52+
sCommand = sCommand &amp; &quot; -dno-delete-intermediate-files --png &quot; &amp; sBackendOpt &amp; &quot; -dresolution=&quot; &amp; iGraphicDPI &amp; &quot; &quot; &amp; constOLyFileName &amp; &quot;.ly &gt;&quot; &amp; constOLyFileName &amp; &quot;.out 2&gt;&amp;1&quot; &amp;Chr(10)
53+
End If
4654
ElseIf sFormat=&quot;eps&quot; Then
4755
sCommand = sCommand &amp; &quot; &quot; &amp; sBackendOpt &amp; &quot; -f eps &quot; &amp; constOLyFileName &amp; &quot;.ly &gt;&quot; &amp; constOLyFileName &amp; &quot;.out 2&gt;&amp;1&quot; &amp; Chr(10)
4856
ElseIf sFormat=&quot;svg&quot; Then

0 commit comments

Comments
 (0)