Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Typing bracket characters

by John M. Dlugosz (Monsignor)
on Aug 09, 2001 at 06:44 UTC ( [id://103315]=monkdiscuss: print w/replies, xml ) Need Help??

In order to write square brackets, we must use [ for the left bracket. There is no named entity for it, according to the help page.

Why not provide one? &[ would be terrific.

—John

Replies are listed 'Best First'.
Re (tilly) 1: Typing bracket characters
by tilly (Archbishop) on Aug 09, 2001 at 08:51 UTC
    An alternate solution. In Why I like functional programming I discuss a way of handling markup which supports a variety of nice features that PerlMonks does not. There is a followup node for nate that was supposed to be incorporated into Everything. I don't know if it was though, and I don't think that PerlMonks has integrated it into its source.

    If it were, though, it would allow people to just use \(char) to encode characters without remembering the bloody escape codes. (If you didn't want that feature, it could even be made a user configurable option.)

    I would prefer that syntax to having PerlMonks create new HTML-like escapes.

      I like the idea of easily escaping out special chars in a consistant way. How would you do formatting regions like bold and italics? The TEX way, which is also consistant with Perl's concepts, that \ in front of a nonletter removes special meaning, but \ in front of a letter adds special meaning?

      —John

        You can arrange to do it any way you want. You can also make large chunks of it user configurable. But personally I like the idea of winding up with a markup language which is mainly HTML with a few handy shortcuts. So I would suggest sticking with the usual tags.
Re: Typing bracket characters
by grinder (Bishop) on Aug 10, 2001 at 00:36 UTC
    The ISO entity name for [ is [ (Left SQuare Bracket). Unfortunately, I don't think the browser writers have bothered to map it. Mozilla doesn't. Here, [ what do you see? What's your browser?

    In the meantime, I think it would be better to patch the Everthing engine to s/[/[/g than using some syntax that doesn't follow any of the existing rules.

    --
    g r i n d e r
      g r i n d e r ,
      I see the entity name spelled out. It's IE 5.5.

      I remember netscape didn't like mdash or ldquo or bunches of others, a while back. It's stupid though—how hard can it be to update a simple mapping table, especially when the standard lists all the available codes?

      I agree the Monistary itself can deal with it. It can simply know all the real entity names itself, and always send out the number form instead, so the browser see &#xxx; form even though I typed the &name; form.

      —John

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: monkdiscuss [id://103315]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2024-04-25 22:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found