[Pmwiki-users] ExtendedMarkup.php bug
Spam Account Speedxs
spam
Tue Jan 11 07:36:45 CST 2005
I found a quirk in this routine of the ExtendedMarkup.php (Also doesn't
work right in Beta 15):
function TitleParagraph($pagename,$anch) {
global $LinkCleanser, $ParaBadAnchorFmt;
$refpage = ReadPage($pagename); $para = '';
$title = ($anch=='') ?
preg_match("/^(?:!+|:.*?:)\\s*(?:\\[\\[#.*?\\]\\])?([^\\n]+)/",
$refpage['text'],$match) :
preg_match("/\\[\\[#+$anch\\]\\]\\n?([^\\n]+)/",
$refpage['text'],$match);
if ($title) {
$para = preg_replace("/!.*?$/",'',$match[1]);
$para = preg_replace("/(''+|@@)(.*?)\\1/",'$2',$para);
$para = preg_replace("/'([-_^;+\\/])(.*?)\\1'/",'$2',$para);
$para = preg_replace("/\\[([@=]|[-+]+)(.*?)\\1\\]/",'$2',$para);
foreach ($LinkCleanser as $p => $c) $para =
preg_replace($p,$c,$para);
$para = str_replace('"','"',str_replace('`','',$para));
} elseif ($anch!='') $para = str_replace("'''","'",
str_replace('$Anchor',$anch,FmtPageName($ParaBadAnchorFmt,$pagename)));
## $para = $para + "<thisroutine>";
return $para;
}
Don't know exactly where, or what, i've attached the template (and
stylesheet, but it's really the template problem) that seems to be
misunderstood by the routines somehow.
The template had a quirck too, but setting it right didn't make any
difference (or made the layout worse).
I have this page query that is being molested by the above mentioned
routine, if i unmark the $para = $para + "<thisroutine>"; line, the
misinterpretation is gone but this is because the function doesn't work
properly anymore.
This is the input i supply to the page that is processed:
-----
*%target=_blank%[[UC/RecentChanges |List latest contributions in this list]]
*%newbie%'''Newbie area''' (For newbies and maintained by newbies (or
advanced Renoise users))
**[[/UC/RenoiseFaq |FAQ ]]
**[[/UC/RenoiseNewbieExperiences |Experiences ]]
**[[/UC/RenoiseNewbieTips |Tips for newbies ]]
*%tipsntricks%'''Tips'n'Tricks''' (Have some neat trick about Renoise to
share? Place your info here)
** Hardware
***[[/UC/RenoiseTatHardwareAudio |Audio-cards ]]
***[[/UC/RenoiseTatHardwareMidi |MIDI-devices ]]
** Software
*** Renoise
****[[/UC/RenoiseTatSoftwareGeneral |General ]]
****[[/UC/RenoiseTatSoftwareSkins |Skins / Themes ]]
****[[/UC/RenoiseTatSoftwareFile |File / Disk I/O ]]
****[[/UC/RenoiseTatSoftwareEditors |Editors (Pattern, sequencer,
instrument envelopes) ]]
****[[/UC/RenoiseTatSoftwareDsp |Dsp / Vst / Meta ]]
**** Instruments
*****[[/UC/RenoiseTatSoftwareInstrumentsSamples |Samples ]]
*****[[/UC/RenoiseTatSoftwareInstrumentsVst |VSTI ]]
*****[[/UC/RenoiseTatSoftwareInstrumentsMidi |MIDI ]]
*%troubleshooting%'''Trouble-shooting''' (Add your experiences and
solutions here)
***[[/UC/RenoiseTsHardwareAudio |Audio-cards ]]
***[[/UC/RenoiseTsHardwareMidi |MIDI-devices ]]
** Software
*** Renoise
****[[/UC/RenoiseTsSoftwareGeneral |General ]]
****[[/UC/RenoiseTsSoftwareSkins |Skins / Themes ]]
****[[/UC/RenoiseTsSoftwareFile |File / Disk I/O ]]
****[[/UC/RenoiseTsSoftwareEditors |Editors (Pattern, sequencer,
instrument envelopes) ]]
****[[/UC/RenoiseTsSoftwareDsp |Dsp / Vst / Meta ]]
**** Instruments
*****[[/UC/RenoiseTsSoftwareInstrumentsSamples |Samples ]]
*****[[/UC/RenoiseTsSoftwareInstrumentsVst |VSTI ]]
*****[[/UC/RenoiseTsSoftwareInstrumentsMidi |MIDI ]]
*%color=#ff9999%'''Future ideas for Renoise''' (Have any fruitfull ideas
to expand Renoise functionality with?)
**[[/UC/RenoiseIdeas |Contributed concepts and ideas]]
*%linksdownloads%'''Links / Downloads''' (Add your links / downloads to
handy (free) VST / Sound-tools here)
*** Renoise
****[[/UC/RenoiseDownRns |RNS (Renoise songs)]]
****[[/UC/RenoiseDownRni |RNI (Renoise Instruments -> No VSTI!)]]
****[[/UC/RenoiseDownRnt |RNT (Renoise Dsp Chains) ]]
*** Various
****[[/UC/RenoiseDownVst |VST (Effects only) ]]
****[[/UC/RenoiseDownVsti |VSTI]]
****[[/UC/RenoiseDownSamples |Samples / packs / libraries]]
****[[/UC/RenoiseDownTools |Tools / Gadgets ]]
-----
Now at some point the lines fall away and rubbish is inserted what was
not supplied at all.
When inspecting the html source-code i notice that title headers are
inserted at illogical points (why do they end up there in the first place?):
<p class='vspace'></p><ul><li><a target='_blank' class='wikilink' href='index.php?n=UC.RecentChanges'>List latest contributions in this list</a>
<p class='vspace'></p></li><li><span style='color: #0b0080;' ><strong>Newbie area</strong> (For newbies and maintained by newbies (or advanced Renoise users)) </span>
<ul><li><a class='wikilink' href='index.php?n=UC.RenoiseFaq'>FAQ</a>
</li><li><a class='wikilink' href='index.php?n=UC.RenoiseNewbieExperiences'>Experiences</a>
</li><li><a class='wikilink' href='index.php?n=UC.RenoiseNewbieTips'>Tips for newbies</a>
</li></ul><p class='vspace'></p></li><li><span style='color: #13630e;' ><strong>Tips’n’Tricks</strong> (Have some neat trick about Renoise to share? Place your info here) </span>
<ul><li> Hardware
<ul><li><a class='wikilink' href='index.php?n=UC.RenoiseTatHardwareAudio' title="<span style='color: #13630e;' >-_-Tips’n’Tricks -> Hardware -> Audio-cards-_-“>Audio-cards</a></span>
</li><li><a class='wikilink' href='index.php?n=UC.RenoiseTatHardwareMidi'>MIDI-devices</a>
</li></ul></li><li> Software
<ul><li> Renoise
<ul><li><a class='wikilink' href='index.php?n=UC.RenoiseTatSoftwareGeneral' title="><span style='color: #13630e;' >-_-Tips’n’tricks -> Software -> Renoise -> General-_-“>General</a></span>
</li><li><a class='wikilink' href='index.php?n=UC.RenoiseTatSoftwareSkins'>Skins / Themes</a>
</li><li><a class='wikilink' href='index.php?n=UC.RenoiseTatSoftwareFile'>File / Disk I/O</a>
</li><li><a class='wikilink' href='index.php?n=UC.RenoiseTatSoftwareEditors'>Editors (Pattern, sequencer, instrument envelopes)</a>
</li><li><a class='wikilink' href='index.php?n=UC.RenoiseTatSoftwareDsp' title="<span style='color: #13630e;' >-_-Tips’n’tricks->Software->Renoise->Dsp / VST / Meta-_-“>Dsp / Vst / Meta</a></span>
</li><li> Instruments
<ul><li><a class='wikilink' href='index.php?n=UC.RenoiseTatSoftwareInstrumentsSamples'>Samples</a>
Everything goes alright as soon as i somewhat disable the first
mentioned routine in the cookbook extension.
I've been trying to figure out why it does so (and above all what i'm
doing wrong here), but my PHP skills are still below the required level
to fix this problem.
It might be some of the css classes i don't use, are still mandatory for
the scripts, however, couldn't found any info about mandatory template
objects.
btw:It worked like a charm in PmWiki V1.0 (like a lot of other things
worked better in PmWiki 1.0)
Regards,
Vincent.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/pmwiki-users_pmichaud.com/attachments/20050111/70308805/renoise.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: renoise.css
Type: text/css
Size: 5727 bytes
Desc: not available
Url : /pipermail/pmwiki-users_pmichaud.com/attachments/20050111/70308805/renoise.css
More information about the pmwiki-users
mailing list