How can i add the ability to email to a page on <a href="http://pmwiki.com">pmwiki.com</a>.&nbsp; Is there a hack for that.<br><br><br><br><div><span class="gmail_quote">On 9/12/05, <b class="gmail_sendername"><a href="mailto:pmwiki-users-request@pmichaud.com">
pmwiki-users-request@pmichaud.com</a></b> &lt;<a href="mailto:pmwiki-users-request@pmichaud.com">pmwiki-users-request@pmichaud.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Send pmwiki-users mailing list submissions to<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="mailto:pmwiki-users@pmichaud.com">pmwiki-users@pmichaud.com</a><br><br>To subscribe or unsubscribe via the World Wide Web, visit<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://host.pmichaud.com/mailman/listinfo/pmwiki-users">
http://host.pmichaud.com/mailman/listinfo/pmwiki-users</a><br>or, via email, send a message with subject or body 'help' to<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="mailto:pmwiki-users-request@pmichaud.com">pmwiki-users-request@pmichaud.com</a>
<br><br>You can reach the person managing the list at<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="mailto:pmwiki-users-owner@pmichaud.com">pmwiki-users-owner@pmichaud.com</a><br><br>When replying, please edit your Subject line so it is more specific
<br>than &quot;Re: Contents of pmwiki-users digest...&quot;<br><br><br>Today's Topics:<br><br>&nbsp;&nbsp; 1. Re: farmconfig.php (Patrick R. Michaud)<br>&nbsp;&nbsp; 2. Re: missing translateable strings (Patrick R. Michaud)<br>&nbsp;&nbsp; 3. Re: Converting WikiStyle shortcuts to CSS classes
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(Patrick R. Michaud)<br>&nbsp;&nbsp; 4. Re: Re: Pmwiki emacs mode (<a href="mailto:chr@home.se">chr@home.se</a>)<br>&nbsp;&nbsp; 5. pmwiki-mode and browser (was: Pmwiki emacs mode) (<a href="mailto:chr@home.se">chr@home.se</a>)<br>
&nbsp;&nbsp; 6. Faster searches and categories (Martin Fick)<br>&nbsp;&nbsp; 7. Re: Converting WikiStyle shortcuts to CSS classes (Russell Bailey)<br>&nbsp;&nbsp; 8. Re: Faster searches and categories (Patrick R. Michaud)<br>&nbsp;&nbsp; 9. Re: Converting WikiStyle shortcuts to CSS classes (Russell Bailey)
<br>&nbsp;&nbsp;10. Re: Faster searches and categories (Martin Fick)<br>&nbsp;&nbsp;11. Re: WikiStyles request (Dominique Faure)<br><br><br>----------------------------------------------------------------------<br><br>Message: 1<br>Date: Mon, 12 Sep 2005 10:21:28 -0500
<br>From: &quot;Patrick R. Michaud&quot; &lt;<a href="mailto:pmichaud@pobox.com">pmichaud@pobox.com</a>&gt;<br>Subject: Re: [pmwiki-users] farmconfig.php<br>To: Pierre-Marie Carette &lt;<a href="mailto:carette.pierre-marie@wanadoo.fr">
carette.pierre-marie@wanadoo.fr</a>&gt;<br>Cc: <a href="mailto:pmwiki-users@pmichaud.com">pmwiki-users@pmichaud.com</a><br>Message-ID: &lt;<a href="mailto:20050912152128.GE10976@host.pmichaud.com">20050912152128.GE10976@host.pmichaud.com
</a>&gt;<br>Content-Type: text/plain; charset=us-ascii<br><br>On Mon, Sep 12, 2005 at 04:40:16PM +0200, Pierre-Marie Carette wrote:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;in the page PmWiki/WikiFarms you can read :<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&quot;....A minimal farmconfig.php
 file might look like this:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;?php<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$FarmPubDirUrl = '<a href="http://www.example.com/pmwiki/pub">http://www.example.com/pmwiki/pub</a>';<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;?&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;...&quot;<br><br>Fixed, thanks.
<br><br>Pm<br><br><br><br>------------------------------<br><br>Message: 2<br>Date: Mon, 12 Sep 2005 10:23:22 -0500<br>From: &quot;Patrick R. Michaud&quot; &lt;<a href="mailto:pmichaud@pobox.com">pmichaud@pobox.com</a>&gt;
<br>Subject: Re: [pmwiki-users] missing translateable strings<br>To: Karl Loncarek &lt;<a href="mailto:dh2mll@web.de">dh2mll@web.de</a>&gt;<br>Cc: <a href="mailto:pmwiki-users@pmichaud.com">pmwiki-users@pmichaud.com</a><br>
Message-ID: &lt;<a href="mailto:20050912152322.GF10976@host.pmichaud.com">20050912152322.GF10976@host.pmichaud.com</a>&gt;<br>Content-Type: text/plain; charset=us-ascii<br><br>On Mon, Sep 12, 2005 at 02:53:19PM +0000, Karl Loncarek wrote:
<br>&gt; - for Markup (:varindex:) &quot;Variable&quot; and &quot;Documented in&quot;<br><br>Now fixed for the next release.<br><br>&gt; Also for (:varindex:) the titles of the pages should be displayed instead<br>&gt; of the links (or additionally)
<br><br>I'll have to think on this one -- feel free to enter it in PITS.<br><br>Pm<br><br><br><br>------------------------------<br><br>Message: 3<br>Date: Mon, 12 Sep 2005 10:42:27 -0500<br>From: &quot;Patrick R. Michaud&quot; &lt;
<a href="mailto:pmichaud@pobox.com">pmichaud@pobox.com</a>&gt;<br>Subject: Re: [pmwiki-users] Converting WikiStyle shortcuts to CSS<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;classes<br>To: Russell Bailey &lt;<a href="mailto:russell-pmwiki@saberpunk.net">
russell-pmwiki@saberpunk.net</a>&gt;<br>Cc: <a href="mailto:pmwiki-users@pmichaud.com">pmwiki-users@pmichaud.com</a><br>Message-ID: &lt;<a href="mailto:20050912154227.GI10976@host.pmichaud.com">20050912154227.GI10976@host.pmichaud.com
</a>&gt;<br>Content-Type: text/plain; charset=us-ascii<br><br>On Mon, Sep 12, 2005 at 12:54:35AM -0400, Russell Bailey wrote:<br>&gt; In others,&nbsp;&nbsp;however,<br>&gt; like WikiStyles,&nbsp;&nbsp;I'd really like to be able to show what the style
<br>&gt; looks like,&nbsp;&nbsp;but also be able to convert it back to wiki markup by name<br>&gt; rather than by properties.<br><br>What if we just stored the wikistyle source in a comment upon output?<br><br>&nbsp;&nbsp;&nbsp;&nbsp;%red% This is red text %% normal text
<br><br>becomes<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&lt;!--%red%--&gt;&lt;span style='color:red'&gt;This is red text &lt;!--%%--&gt;&lt;/span&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;normal text<br><br>Then it'd be pretty easy to recover the wikistyle specification<br>that was entered at that point, while still allowing the HTML editing.
<br><br>Pm<br><br><br><br>------------------------------<br><br>Message: 4<br>Date: Mon, 12 Sep 2005 17:41:18 +0200<br>From: <a href="mailto:chr@home.se">chr@home.se</a><br>Subject: [pmwiki-users] Re: Re: Pmwiki emacs mode
<br>To: <a href="mailto:pmwiki-users@pmichaud.com">pmwiki-users@pmichaud.com</a><br>Message-ID: &lt;<a href="mailto:Pine.LNX.4.44.0509121734520.25602-100000@ludde.md.kth.se">Pine.LNX.4.44.0509121734520.25602-100000@ludde.md.kth.se
</a>&gt;<br>Content-Type: TEXT/PLAIN; charset=ISO-8859-1<br><br>On Mon, 12 Sep 2005, Milan Lukic wrote:<br><br>&gt; &gt; (if you aren't using the CVS version, let me know and I'll place a bigger<br>&gt; &gt; note about it on the donwload page)
<br>&gt; &gt;<br>&gt;<br>&gt; I don't know if it is CVS or not, but I think not. I followed the<br>&gt; links from the Cookbook page and I believe that I finally clicked on<br>&gt; &quot;download&quot; rather than CVS. In any case, my 
tar.gz file is<br>&gt; pmwiki-mode-1.4-pre2.tar.gz.<br><br>Would you mind looking at the download section in cookbook page again?<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.pmwiki.org/wiki/Cookbook/EmacsPmWikiMode">http://www.pmwiki.org/wiki/Cookbook/EmacsPmWikiMode
</a><br><br>Is the text about using the CVS-version clear enough now? And is the link<br>for the CVS-version visible enough? I think you'll run into problems if<br>you use 1.4... with PmWiki 2.<br><br>&gt; The /Main/HomePage was the key. I tried first 
Main.HomePage (that is<br>&gt; suggested in Emacs' minibuffer, and I tried to copy the address line<br>&gt; from the browser ... I am pretty sure that I tried /Main/WikiSandbox,<br>&gt; but I was probably missing pmwiki.php
 in that case ...<br><br>If you're missing pmwiki.php, you can fix it so that it works. Requires a<br>minor setting in your .emacs though. Here's an excerpt from the changelog<br>&quot;documenting&quot; this feature...<br>
<br>Modified automatic handling of password protected pages.<br>Removed old variables and introduced a more generic transformation of the<br>URI. The new variable is called pmwiki-uri-transforms and is a list, where<br>each element represents a transformation. These transformations are
<br>applied in sequence.<br>Example of transformations<br><br><br>(set 'pmwiki-uri-transforms<br>&nbsp;&nbsp;&nbsp;&nbsp; (list<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'(&quot;<a href="http://some.site.se\\(/[A-Z]\\|\\?\\)">http://some.site.se\\(/[A-Z]\\|\\?\\)</a>&quot;<br>
&quot;<a href="http://some.site.se">http://some.site.se</a>&quot;<br>&quot;<a href="http://some.site.se/wiki/pmwiki.php">http://some.site.se/wiki/pmwiki.php</a>&quot;)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'(&quot;<a href="http://some.site.se/">http://some.site.se/
</a>&quot;<br>&quot;<a href="http://some.site.se/">http://some.site.se/</a>&quot;<br>&quot;<a href="http://user:password@some.site.se/&quot;)))">http://user:password@some.site.se/&quot;)))</a><br><br>The first transformation allows you to use a site where pages are
<br>automatically redirected from <a href="http://some.site.se/Group/Page">http://some.site.se/Group/Page</a> to<br><a href="http://some.site.se/wiki/pmwiki.php/Group/Page">http://some.site.se/wiki/pmwiki.php/Group/Page</a>
.<br>The second transformation inserts user:password into the URI when the URI<br>starts with <a href="http://some.site.se">http://some.site.se</a>. This implies that you use the samme<br>username/password for all wikis on that site.
<br><br>/Christian<br><br>--<br>Christian Ridderström, +46-8-768 39 44&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://www.md.kth.se/~chr">http://www.md.kth.se/~chr</a><br><br><br><br><br><br>------------------------------<br><br>Message: 5
<br>Date: Mon, 12 Sep 2005 17:42:48 +0200<br>From: <a href="mailto:chr@home.se">chr@home.se</a><br>Subject: [pmwiki-users] pmwiki-mode and browser (was: Pmwiki emacs<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mode)<br>To: <a href="mailto:pmwiki-users@pmichaud.com">
pmwiki-users@pmichaud.com</a><br>Message-ID: &lt;<a href="mailto:Pine.LNX.4.44.0509121741200.25602-100000@ludde.md.kth.se">Pine.LNX.4.44.0509121741200.25602-100000@ludde.md.kth.se</a>&gt;<br>Content-Type: TEXT/PLAIN; charset=ISO-8859-1
<br><br>On Mon, 12 Sep 2005, Milan Lukic wrote:<br><br>&gt; If I may ask another question. I see that &quot;C-C C-B&quot; starts Netscape, is<br>&gt; there a way to play with other browsers as well (I have about 4 of them
<br>&gt; on that computer)?<br><br>Sure, but it's an Emacs setting. Look at the Emacs help for `browse-url' -<br>all pmwiki-mode does is call that function.<br><br>/Christian<br><br>--<br>Christian Ridderström, +46-8-768 39 44&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
<a href="http://www.md.kth.se/~chr">http://www.md.kth.se/~chr</a><br><br><br><br><br><br>------------------------------<br><br>Message: 6<br>Date: Mon, 12 Sep 2005 12:07:50 -0400<br>From: Martin Fick &lt;<a href="mailto:fick@fgm.com">
fick@fgm.com</a>&gt;<br>Subject: [pmwiki-users] Faster searches and categories<br>To: PmWiki &lt;<a href="mailto:pmwiki-users@pmichaud.com">pmwiki-users@pmichaud.com</a>&gt;<br>Message-ID: &lt;<a href="mailto:20050912160750.GF13612@carrera.fgm.com">
20050912160750.GF13612@carrera.fgm.com</a>&gt;<br>Content-Type: text/plain; charset=us-ascii<br><br>I have added a recipe for faster searches and categories:<br><a href="http://www.pmwiki.org/wiki/Cookbook/FastSearch">http://www.pmwiki.org/wiki/Cookbook/FastSearch
</a><br><br>This recipe uses find and grep and so may not be very<br>portable (to windows).<br><br>I know that pm and a few others are working on an indexed<br>mechanism to speed up backlinks (categories), but my<br>solution is so simple and fast, that I thought I had to
<br>share it.&nbsp;&nbsp;Without it categories and searching is unusable<br>on my site.&nbsp;&nbsp;I have an old Pentium 200 and over 1000 files.<br>A typical search will go from around 30 seconds to about 3<br>seconds now.<br><br>In the past I have offered similar solutions to the list to
<br>speed up categories, but this one is even simpler and also<br>speeds up searches.<br><br>Feedback welcome,<br><br>-Martin<br><br><br><br><br><br>------------------------------<br><br>Message: 7<br>Date: Mon, 12 Sep 2005 12:09:13 -0400
<br>From: Russell Bailey &lt;<a href="mailto:russell-pmwiki@saberpunk.net">russell-pmwiki@saberpunk.net</a>&gt;<br>Subject: [pmwiki-users] Re: Converting WikiStyle shortcuts to CSS<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;classes<br>To: &quot;Patrick R. Michaud&quot; &lt;
<a href="mailto:pmichaud@pobox.com">pmichaud@pobox.com</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="mailto:pmwiki-users@pmichaud.com">pmwiki-users@pmichaud.com</a><br>Message-ID: &lt;<a href="mailto:4325A829.4010800@saberpunk.net">4325A829.4010800@saberpunk.net
</a>&gt;<br>Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br><br>Patrick R. Michaud wrote:<br><br>&gt;What you probably want to be doing is changing %right red% into<br>&gt;something like %class='right red'%, which loads in both CSS classes
<br>&gt;in a single element.&nbsp;&nbsp;But I think this may still run into a few issues...<br>&gt;<br>Sorry,&nbsp;&nbsp;I was being dense.&nbsp;&nbsp;;)&nbsp;&nbsp;So far,&nbsp;&nbsp;inheriting from multiple<br>classes works fine.&nbsp;&nbsp;I'll have to do a&nbsp;&nbsp;more detailed test later today.
<br><br><br><br>------------------------------<br><br>Message: 8<br>Date: Mon, 12 Sep 2005 11:18:34 -0500<br>From: &quot;Patrick R. Michaud&quot; &lt;<a href="mailto:pmichaud@pobox.com">pmichaud@pobox.com</a>&gt;<br>Subject: Re: [pmwiki-users] Faster searches and categories
<br>To: Martin Fick &lt;<a href="mailto:fick@fgm.com">fick@fgm.com</a>&gt;<br>Cc: PmWiki &lt;<a href="mailto:pmwiki-users@pmichaud.com">pmwiki-users@pmichaud.com</a>&gt;<br>Message-ID: &lt;<a href="mailto:20050912161834.GL10976@host.pmichaud.com">
20050912161834.GL10976@host.pmichaud.com</a>&gt;<br>Content-Type: text/plain; charset=us-ascii<br><br>On Mon, Sep 12, 2005 at 12:07:50PM -0400, Martin Fick wrote:<br>&gt; I know that pm and a few others are working on an indexed
<br>&gt; mechanism to speed up backlinks (categories), but my<br>&gt; solution is so simple and fast, that I thought I had to<br>&gt; share it.<br><br>Just for completeness: fast category and backlink indexes<br>are enabled by default in 
2.0.5.<br><br>Arbitrary searches are still slow, but we might be able to<br>merge in some of the grep-based search ideas for this as well.<br><br>Pm<br><br><br><br>------------------------------<br><br>Message: 9<br>Date: Mon, 12 Sep 2005 12:39:32 -0400
<br>From: Russell Bailey &lt;<a href="mailto:russell-pmwiki@saberpunk.net">russell-pmwiki@saberpunk.net</a>&gt;<br>Subject: Re: [pmwiki-users] Converting WikiStyle shortcuts to CSS<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;classes<br>To: &quot;Patrick R. Michaud&quot; &lt;
<a href="mailto:pmichaud@pobox.com">pmichaud@pobox.com</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="mailto:pmwiki-users@pmichaud.com">pmwiki-users@pmichaud.com</a><br>Message-ID: &lt;<a href="mailto:4325AF44.8020905@saberpunk.net">4325AF44.8020905@saberpunk.net
</a>&gt;<br>Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br><br>Patrick R. Michaud wrote:<br><br>&gt;On Mon, Sep 12, 2005 at 12:54:35AM -0400, Russell Bailey wrote:<br>&gt;<br>&gt;<br>&gt;&gt;In others,&nbsp;&nbsp;however,
<br>&gt;&gt;like WikiStyles,&nbsp;&nbsp;I'd really like to be able to show what the style<br>&gt;&gt;looks like,&nbsp;&nbsp;but also be able to convert it back to wiki markup by name<br>&gt;&gt;rather than by properties.<br>&gt;&gt;<br>&gt;&gt;
<br>&gt;<br>&gt;What if we just stored the wikistyle source in a comment upon output?<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;%red% This is red text %% normal text<br>&gt;<br>&gt;becomes<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&lt;!--%red%--&gt;&lt;span style='color:red'&gt;This is red text &lt;!--%%--&gt;&lt;/span&gt;
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;normal text<br>&gt;<br>&gt;Then it'd be pretty easy to recover the wikistyle specification<br>&gt;that was entered at that point, while still allowing the HTML editing.<br>&gt;<br>&gt;<br>That would work.&nbsp;&nbsp;However,&nbsp;&nbsp;if I can practically implement it,&nbsp;&nbsp;I think
<br>I'd prefer to go with two-way conversion between WikiStyle shortcuts and<br>classes.&nbsp;&nbsp;Personally,&nbsp;&nbsp;I like the idea of retaining as much of the<br>semantics of the original document in the HTML as possible.&nbsp;&nbsp;In<br>practice,&nbsp;&nbsp;we're not just going to be dealing with effects like %red%-
<br>custom wikistyles are often things like %audience%,&nbsp;&nbsp;which may have<br>meaning to a user or program looking at the page.<br><br>Russell<br><br><br><br>------------------------------<br><br>Message: 10<br>Date: Mon, 12 Sep 2005 12:31:12 -0400
<br>From: Martin Fick &lt;<a href="mailto:fick@fgm.com">fick@fgm.com</a>&gt;<br>Subject: Re: [pmwiki-users] Faster searches and categories<br>To: &quot;Patrick R. Michaud&quot; &lt;<a href="mailto:pmichaud@pobox.com">pmichaud@pobox.com
</a>&gt;<br>Message-ID: &lt;<a href="mailto:20050912163112.GG13612@carrera.fgm.com">20050912163112.GG13612@carrera.fgm.com</a>&gt;<br>Content-Type: text/plain; charset=us-ascii<br><br>On Mon, Sep 12, 2005 at 11:18:34AM -0500, Patrick R. Michaud wrote:
<br>&gt; On Mon, Sep 12, 2005 at 12:07:50PM -0400, Martin Fick wrote:<br>&gt; &gt; I know that pm and a few others are working on an indexed<br>&gt; &gt; mechanism to speed up backlinks (categories), but my<br>&gt; &gt; solution is so simple and fast, that I thought I had to
<br>&gt; &gt; share it.<br>&gt;<br>&gt; Just for completeness: fast category and backlink indexes<br>&gt; are enabled by default in 2.0.5.<br><br>I have not tried this yet so I am just guessing, but here<br>are some thoughts:&nbsp;&nbsp;the indexes will speed up sebsequent
<br>uses of the indexes, but it still seems like creating the<br>indexes may take an extreme amount of time at some point.<br>On larger sites with slower machines even a single index<br>creation could timeout the apache session (I think the
<br>default is 30 seconds on debian).&nbsp;&nbsp;I could be wrong, but I<br>don't see anyway around this using indexes.<br><br><br><br>&gt; Arbitrary searches are still slow, but we might be able to<br>&gt; merge in some of the grep-based search ideas for this as well.
<br><br><br>As you have mentioned in that past, it would probably be<br>best&nbsp;&nbsp;to add a search mechanism directly to the pagestore.<br>This could even be done with the current pagelist search<br>mechanism.<br><br><br>-Martin
<br><br><br><br>------------------------------<br><br>Message: 11<br>Date: Mon, 12 Sep 2005 18:52:14 +0200<br>From: &quot;Dominique Faure&quot; &lt;<a href="mailto:dominique.faure.1@free.fr">dominique.faure.1@free.fr</a>&gt;
<br>Subject: Re: [pmwiki-users] WikiStyles request<br>To: &quot;Patrick R. Michaud&quot; &lt;<a href="mailto:pmichaud@pobox.com">pmichaud@pobox.com</a>&gt;<br>Cc: <a href="mailto:Pmwiki-users@pmichaud.com">Pmwiki-users@pmichaud.com
</a><br>Message-ID: &lt;003a01c5b7ba$5433fb20$2a00a8c0@dombox&gt;<br>Content-Type: text/plain; format=flowed; charset=&quot;iso-8859-1&quot;;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;reply-type=original<br><br>At Sunday, September 11, 2005 3:02 PM [GMT+1=CET], Patrick R. Michaud wrote:
<br><br>&gt; On Sun, Sep 11, 2005 at 11:50:34AM +0200, Dominique Faure wrote:<br>&gt;&gt; A previous mailing-list topic about two-column definition lists lead to<br>&gt;&gt; the following style definition:<br>&gt;&gt;<br>
&gt;&gt; $HTMLStylesFmt['columnlist'] = &quot;<br>&gt;&gt; dl.dlcol dt { float:left; padding-right:0.5em;}<br>&gt;&gt; dl.dlcol dd { margin-left:13em; }\n&quot;;<br>&gt;&gt;<br>&gt;&gt; $WikiStyle['dlcol']['apply'] = 'list';
<br>&gt;&gt; $WikiStyle['dlcol']['class'] = 'dlcol';<br>&gt;&gt;<br>&gt;<br>&gt; That would be either<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;%define=dw dlcol margin-left:-8em%<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;:05/06/01:%dw% Initial release.<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;:05/06/03:Handling of forgotten @@?action=print@@ and minor tweaks.
<br>&gt;<br>&gt; or<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;%define=dw margin-left:-8em%<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;:05/06/01:%dlcol dw% Initial release.<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;:05/06/03:Handling of forgotten @@?action=print@@ and minor tweaks.<br>&gt;<br>&gt;&gt; I was wondering how I could have a kind of parametrized style definition
<br>&gt;&gt; which could provide help in such cases. Something like:<br>&gt;&gt; ...<br>&gt;&gt; which could be used as:<br>&gt;&gt;<br>&gt;&gt;&gt; 05/06/01:%dlcol param['margin']:5em% Initial release.<br>&gt;&gt;&gt; 05/06/03: Handling of forgotten @@?action=print@@ and minor tweaks.
<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;:05/06/01:%dlcol margin-left:5em% Initial release.<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;:05/06/03: Handling of forgotten @@?action=print@@ and minor tweaks.<br>&gt;<br>&gt; Pm<br><br>Sorry but this doesn't work as expected:<br>
<br>&nbsp;&nbsp;:term: %dlcol% ...<br>&nbsp;&nbsp;&lt;dl class='dlcol' &gt;&lt;dt&gt;term&lt;/dt&gt;&lt;dd&gt; ...<br><br>&nbsp;&nbsp;:term: %dlcol margin-left:5em%<br>&nbsp;&nbsp;&lt;dl class='dlcol' style='margin-left: 5em;' &gt;&lt;dt&gt;term&lt;/dt&gt;&lt;dd&gt; ...
<br><br>&nbsp;&nbsp;:term: %dlcol%%margin-left:5em% ...<br>&nbsp;&nbsp;&lt;dl class='dlcol' &gt;&lt;dt&gt;term&lt;/dt&gt;&lt;dd&gt; &lt;span style='margin-left: 5em;' &gt;<br>...&lt;/span&gt;<br><br>I've found a working solution adding the new style application range:
<br><br>&nbsp;&nbsp;$WikiStyleApply['descr'] = 'dd';<br>&nbsp;&nbsp;$WikiStyle['descr']['apply'] = 'descr';<br><br>&nbsp;&nbsp;:term: %dlcol%%descr margin-left:5em% ...<br>&nbsp;&nbsp;&lt;dl class='dlcol' &gt;&lt;dt&gt;term&lt;/dt&gt;&lt;dd style='margin-left: 5em;' &gt;&nbsp;&nbsp;...
<br><br>Could we have something equivalent defined on <a href="http://www.pmwiki.org">www.pmwiki.org</a>?<br>(even, if I would have enjoyed syntaxic sugars like<br>%dlcol(margin-left:4em)%...)<br><br><br>BTW, following&nbsp;&nbsp;shouldn't '
wikistyles.php' code loop below:<br><br>&nbsp;&nbsp;## apply ranges<br>&nbsp;&nbsp;SDVA($WikiStyleApply,array(<br>&nbsp;&nbsp;&nbsp;&nbsp;'item' =&gt; 'li|dt',<br>&nbsp;&nbsp;&nbsp;&nbsp;'list' =&gt; 'ul|ol|dl',<br>&nbsp;&nbsp;&nbsp;&nbsp;'div' =&gt; 'div',<br>&nbsp;&nbsp;&nbsp;&nbsp;'img' =&gt; 'img',<br>&nbsp;&nbsp;&nbsp;&nbsp;'block' =&gt; 'p(?!\\sclass=)|div|ul|ol|dl|li|dt|pre|h[1-6]',
<br>&nbsp;&nbsp;&nbsp;&nbsp;'p' =&gt; 'p(?!\\sclass=)'));<br>&nbsp;&nbsp;foreach(array('item', 'list', 'block', 'p', 'div') as $c)<br>&nbsp;&nbsp;&nbsp;&nbsp;SDV($WikiStyle[$c],array('apply'=&gt;$c));<br><br>be more something like below?<br><br>&nbsp;&nbsp;...<br>&nbsp;&nbsp;foreach(array_keys($WikiStyleApply) as $c)
<br>&nbsp;&nbsp;&nbsp;&nbsp;SDV($WikiStyle[$c],array('apply'=&gt;$c));<br><br>One last (sorry to bother), couldn't the wiki styles implementation be<br>improved using the ParseArg function?<br><br>Regards,<br>Dom<br><br><br><br><br>------------------------------
<br><br>_______________________________________________<br>pmwiki-users mailing list<br><a href="mailto:pmwiki-users@pmichaud.com">pmwiki-users@pmichaud.com</a><br><a href="http://host.pmichaud.com/mailman/listinfo/pmwiki-users">
http://host.pmichaud.com/mailman/listinfo/pmwiki-users</a><br><br><br>End of pmwiki-users Digest, Vol 3, Issue 50<br>*******************************************<br></blockquote></div><br>