<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-GB link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='mso-fareast-language:EN-US'>Many thanks for your email. I seem to have it working except that since most browsers no longer have the music player plug-in, how do you get the tune to be played?<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'>Regards<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'>Dave Cooke<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><b><span lang=EN-US>From:</span></b><span lang=EN-US> Hans-Jürgen Godau <juergen@godau-witten.de> <br><b>Sent:</b> 19 July 2019 15:34<br><b>To:</b> David Cooke <david@ellendee.co.uk><br><b>Cc:</b> PMWiki <pmwiki-users@pmichaud.com><br><b>Subject:</b> Re: [pmwiki-users] ABC tunebook<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><div><div><div><p class=MsoNormal><span style='font-size:18.0pt;font-family:"Times New Roman",serif'>I use abctunebook. I made some mods to cope with php 7.2 and the latest pmwiki-release.<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:18.0pt;font-family:"Times New Roman",serif'><o:p> </o:p></span></p></div><div><p class=MsoNormal><span style='font-size:18.0pt;font-family:"Times New Roman",serif'>Here are my diffs:<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:18.0pt;font-family:"Times New Roman",serif'><o:p> </o:p></span></p></div><div><p class=MsoNormal><span style='font-size:18.0pt;font-family:"Courier New"'>--- abctunebook/cookbook/abctunebook.php 2016-01-08 15:39:00.000000000 +0100<br>+++ cookbook/abctunebook.php 2018-11-13 12:43:55.756779161 +0100<br>@@ -16,20 +16,23 @@<br> <br> $RecipeInfo['AbcTunebook']['Version'] = '2016-01-08';<br> <br>-SDV($AbcTunebooks['default'], 'Tunebook');<br>+SDV($AbcTunebooks, array('default'=>'Tunebook', 0 => 'Liederbuch'));<br>+<br>+<br> SDV($AddTunePage, 'NewTune');<br> <br> SDVA($Abcjs, array(<br>- 'dir' => $PubDirUrl.'/abcjs',<br>+ 'dir' => $FarmPubDirUrl.'/abcjs',<br>  'base' => 'abcjs_base-min.js',<br>  'editor' => 'abc_editor.js',<br>+ 'editor' => 'abc_editor.js',<br>  'plugin' => 'abc_plugin.js',<br>  'midi_program' => '1',<br>  'midi_qpm' => '160',<br> ));<br> <br> # (:abcjs:) directive will load abcjs plugin scripts even if page is not in a tunebook group.<br>-Markup_e('abcjs', 'directives', '/\\(:abcjs:\\)/is', "AbcjsLoadPlugin(\$pagename)");<br>+Markup('abcjs', 'directives', '/\\(:abcjs:\\)/is', "AbcjsLoadPlugin");<br> <br> # otherwise abcjs will not be loaded and markup rules not be set<br> $name = PageVar($pagename,'$Name');<br>@@ -37,17 +40,21 @@<br> if (!in_array($group, $AbcTunebooks)) return;<br> <br> # load abcjs plugin<br>-if($action=='browse') {<br>+if($action!='edit') {<br>  AbcjsLoadPlugin($pagename);<br>- Markup_e('X:abc', '>[=','/(?<!\\]<a href="file://]/n)(X:/s*/d+/s*/n.*%3f)/n%3c:vspace%3e/s',%22AbcTextMarkup(/$m%5b1%5d)">\\]\n)(X:\\s*\\d+\\s*\n.*?)\n<:vspace>/s',"AbcTextMarkup(\$m[1])</a>");<br>- Markup_e('#abc', '<X:abc',<br>-  '/\\[\\[#(abc\\d*)<a href="file://]//%5d(.*%3f)/%5b/%5b%23/1end/%5d/%5d/is">\\]\\](.*?)\\[\\[#\\1end\\]\\]/is</a>', "AbcTextMarkup(\$m[2],\$m[1])");<br>+ Markup('X:abc', '>[=','/(?<!\\]<a href="file://]/n)(X:/s*/d+/s*/n.*%3f)/n%3c:vspace%3e/s',%22AbcTextMarkup">\\]\n)(X:\\s*\\d+\\s*\n.*?)\n<:vspace>/s',"AbcTextMarkup</a>");<br>+ Markup('#abc', '<X:abc',<br>+  '/\\[\\[#(abc\\d*)<a href="file://]//%5d(.*%3f)/%5b/%5b%23/1end/%5d/%5d/is">\\]\\](.*?)\\[\\[#\\1end\\]\\]/is</a>', "AbcTextMarkup2");<br>+}<br>+<br>+function AbcTextMarkup2($m) {<br>+return AbcTextMarkup($m,$m[1]);<br> }<br> <br> $FmtPV['$MidiTempo'] = '$GLOBALS[Abcjs]["midi_qpm"]';<br> <br>-function AbcjsLoadPlugin($pagename) {<br>- global $Abcjs, $AbcTunebooks, $HTMLFooterFmt, $HTMLHeaderFmt, $HTMLStylesFmt;<br>+function AbcjsLoadPlugin($m) {<br>+ global $Abcjs, $AbcTunebooks, $HTMLFooterFmt, $HTMLHeaderFmt, $HTMLStylesFmt, $pagename;<br>  $speed = PageTextVar($pagename, 'speed');<br>  if (!$speed) $speed = 1;<br>  $rhythm = PageTextVar($pagename, 'R');<br>@@ -73,9 +80,9 @@<br>  ";<br> }<br> <br>-function AbcTextMarkup($text, $section=false) {<br>+function AbcTextMarkup($m, $section=false) {<br>  static $cnt=0; $cnt++;<br>- $text = trim($text);<br>+ $text = trim($m[2]);<br>  $out = '';<br>  if ($section) {<br>  $editlnk = "{[foxedit $section 'edit' form=Site.FoxAbcTemplates#editabc]}";</span><span style='font-size:18.0pt'><o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:18.0pt;font-family:"Times New Roman",serif'>----------------------------------------------------------------------------------<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:18.0pt;font-family:"Times New Roman",serif'>It seems to work for me, at least partially. I have some difficulties with the inline-editor.<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:18.0pt;font-family:"Times New Roman",serif'><o:p> </o:p></span></p></div><div><p class=MsoNormal><span style='font-size:18.0pt;font-family:"Times New Roman",serif'>Hope this helps,<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:18.0pt;font-family:"Times New Roman",serif'><o:p> </o:p></span></p></div><div><p class=MsoNormal><span style='font-size:18.0pt;font-family:"Times New Roman",serif'>jürgen<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:18.0pt;font-family:"Times New Roman",serif'><o:p> </o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><div><div><p class=MsoNormal>Am Di., 16. Juli 2019 um 04:44 Uhr schrieb David Cooke <<a href="mailto:david@ellendee.co.uk">david@ellendee.co.uk</a>>:<o:p></o:p></p></div><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm'><div><p>Is anyone using ABC tunebook and got it working. I used to use this a while ago, I came back last week to rebuild my folk song website only to find that it is now 'broken'. The last update was about 3 years ago with the previous major PHP update. Now when I try to install it,  I'm getting loads of error messages and no music script. <o:p></o:p></p><div><p> Regards<o:p></o:p></p><p><o:p> </o:p></p><p><b>Dave Cooke</b><o:p></o:p></p></div></div><p class=MsoNormal>_______________________________________________<br>pmwiki-users mailing list<br><a href="mailto:pmwiki-users@pmichaud.com" target="_blank">pmwiki-users@pmichaud.com</a><br><a href="http://www.pmichaud.com/mailman/listinfo/pmwiki-users" target="_blank">http://www.pmichaud.com/mailman/listinfo/pmwiki-users</a><o:p></o:p></p></blockquote></div></div></div></body></html>

<br/><DIV>This email has been scanned by BullGuard antivirus protection.</DIV>
<DIV>For more info visit <a href="http://www.bullguard.com/tracking.aspx?affiliate=bullguard&buyaffiliate=smtp&url=/">www.bullguard.com</a></DIV>