[Pmwiki-users] Minor change suggestion: backtick
Jonathan Scott Duff
duff at pobox.com
Thu Apr 24 08:57:37 CDT 2003
On Wed, Apr 23, 2003 at 04:59:13PM -0500, Patrick R. Michaud wrote:
> On 24 Apr 2003, John Rankin wrote:
>
> > Why not let an author use a backtick as an escape character, so one could write:
> > [[#Named`Reference]]
> > &A`Elig;
> > CE`Os
> ...
> > It's also a one line change to look for `[A-Z] and remove the `. The only
> > side effect I can think of is what would happen to ThisPage:#TopOfPage for example.
>
> My biggest concern would be with people cutting/pasting text containing
> typographic quotes. I.e., some packages and programs would quote
> things as ``Hello World'' and this change would cause that to break.
>
> It might be workable as a local customization by adding
> the line:
>
> $InlineReplacements =
> array_merge(array("/`([A-Z])/" => "\$1"),$InlineReplacements);
Change that pattern to something like "/([a-z])`([A-Z)/" => "\$1\$2" and I
bet it would be just fine. I don't know of any cases where someone
would *want* a single backtick surrounded by word chars.
-Scott
--
Jonathan Scott Duff
duff at cbi.tamucc.edu
More information about the pmwiki-users
mailing list