I'm  not really familiar with the <abbr> or <acronym> tags, but if
they are just simple html tags, I think you might be able to do this
in a config file:

$BOLTattrs['html'] =
'i,b,u,s,h1,h2,h3,h4,h5,h6,ul,ol,li,dl,dt,dd,sub,sup,big,small,strike,strong,em,comment,br,nobr,wbr,fieldset,legend,abbr,acronym';

Cheers,
Dan

On Tue, Aug 19, 2008 at 8:00 PM, alinome.net <[EMAIL PROTECTED]> wrote:
>
> In my web pages I often use the XHTML <abbr> and <acronym> tags, for
> usability, so I tried to implement them in BoltWire. First I tried
> <abbr> this way:
>
> MarkUp('block', 'abbr', '/([\\n]?)(&lt;|<)([\/])?abbr(.*?)>/e',
> 'BOLTMstyles("$4", "abbr", "$1", "$3")');
>
> But I realized that BOLTMstyles filters out the non-registered
> parameters. Instead of exploring that issue deeper to allow the
> parameters I need, I decided I could trust myself :-) and removed the
> check:
>
> MarkUp('block', 'abbr', '/(&lt;|<)([\/])?abbr(.*?)>/', '<$2abbr$3>');
> MarkUp('block', 'acronym', '/(&lt;|<)([\/])?acronym(.*?)>/', '<
> $2acronym$3>');
>
> That way I can use all I need in those tags: title, class, id, lang...
>
> The obvious next step was this:
>
> MarkUp('block', 'abbrs', '/(&lt;|<)([\/])?(abbr|acronym)(.*?)>/', '<
> $2$3$4>');
>
> Hope this can be useful to others.
>
> Cheers,
> Marcos
>
> PS:
>
> A crazy idea I had: one pseudo-inteligent wiki markup to create both
> tags, something like this:
>
> ((EU | European Union| other optional XHTML parameters))
>
> The markup would create an <acronym> if the word is all uppercase and
> <abbr> otherwise, though sometimes that raw rule doesn't work. I think
> this idea isn't worth the effort anyway.
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to