Like many monks who dont do a lot of HTML I can rarely remember entity names, and its even rarer that I can remember numeric entities. So while bitching about not being able to remember what the entities are for [ and ] I mentioned that its too bad there wasnt an easier way to do it: Something like [ and ] would be easier to remember for an addled mind than the numbers. Unfortunately tye was watching the CB at the time, and of course he knows im a member of PmDev so his response was "quit bitching and make a patch" or something to that effect anyway.

So after pestering tye and ar0n a bit I finally figured out what to patch and wrote a patch for it. (not so hard really)

But then the debate arises. There is no recognized name for [ and ]. Most likely because the symbols arent used that much in HTML (outside of our funky taging system here in the Monastery (and other Everything sites)). So the question then becomes what to use? I initially though "sql" and "sqr" but those both have other meanings. Then I reversed it and added a "b" to get "lsqb" and "rsqb". In the meanwhile tye did some research and decided that the name that made the most sense from the Unicode specs would be "lsb" and "rsb" but of course "lsb" suggests "least signifigant bit(s)".

So the question is my fellow monks, which one to use?
Left [Right ]
&sql;&sqr;
&lsq;&rsq;
[]
&lsb;&rsb;
&ob;&cb;

11:53: DamnDirtyApe: Whats the escape sequence for [ and ]? 11:55: ar0n: [ and ] 11:56: demerphq: its too bad the parser doesnt convert &sqbl; and &sqb +r; to those. (or whatnot) 11:56: jeffa: perl -le "print ord for qw([ ])" ;) 11:56: DamnDirtyApe: Thanks. :-) 11:57: tye: another patch oportunity, [demerphq] 11:57: demerphq decides _not_ to suggest anything else ever again. :-) 14:11: ar0n: [Foo Bar] 14:12: aufrank: didn't work in IE 6 [ar0n] 14:13: tye: there are no HTML non-numeric entities for those 14:17: ar0n: I know. I just wonder if you'd applied the patch (too la +zy to log in and check) 14:18: tye: no. I don't want to establish a new "standard" name for t +hose w/o proper reflection. (:
So reflect monks, reflect...

BTWm apologies for quoting the CB w/o permission. If it bothers anyone I'll remove it...

Yves / DeMerphq
---
Writing a good benchmark isnt as easy as it might look.

Edit by tye to change PRE tags to CODE tags


In reply to RFC: Entity names for square brackets. by demerphq

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.