Specialsample M4

“Sample” .m4 file for my specials.

This is my special file for character codes that I wanted to keep as a reference. Although other sites are probably better at it. I just wrote a program to keep generating characters, and picked out the ones that a) actually rendered, usually in Firefox but not IE, and b) I liked.

Doesn't get updated too often. The actual generated code is linked at the end of this page.

In this case, every line has four fields.

The first line is for m4, defining curcolumn to be a variable, assigned to 2. My program never sees that line. dnl makes sure that the linefeed isn't produced. So no worries there.

If the first field is a *, that indicates the start of a section (which I really only create one section per file, but it SHOULD work if you do use it!)
The 2nd field is what you want in the header of the table (Yes, it's a damn table, get over it!). Notice that I can even embed HTML in it if I chose.
The 3rd field is the number of columns wide you want the table. I probably don't need to use m4 on this setup, because I never use curcolumn again, but in other .m4 files, I do use it pretty extensively, and I will show you some of those.
The 4th field is ignored.

If the first field is a +, that indicates that the next item needs to start a new row, so I check to see if I am, and if not, I put out a blank   in the next cell until I'm done.
The other fields are ignored.

If the first field is blank/null, that indicates that it's a data item.
The 2nd field is ignored (this follows the original .m4 spec…)
The 3rd field is the character that I am generating (I show the name and the actual value in the table, so it's

& - &

as the first cell.
The 4th field is an optional comment.

These fields are also like BASIC fields. You do NOT need to surround each field with double quotes, but you will have to on any field that you wish to have a , embedded in it. Doesn't happen here, really, but it will on the other .m4 input files that you may be creating.

define(`curcolumn',`2')dnl
*,Notepad<BR>This WAS going to be a reference for another site,curcolumn,
,,amp,
,,nbsp,Nonbreakable space
,,gt,
,,lt,
,,reg,
,,copy,
,,apos,Not IE! (pre 9?)
,,quot,
,,trade,
,,para,
,,THORN,
,,thorn,
,,euro,
,,plusmn,
,,pound,
,,sect,
,,curren,
,,yen,
,,deg,
,,micro,
,,middot,
,,szlig,
,,frac14,
,,frac12,
,,frac34,
,,sup1,
,,sup2,
,,sup3,
,,ordf,
,,ordm,
,,times,
,,divide,
,,uml,
,,macr,
,,mdash,
,,ndash,
,,raquo,
,,laquo,
,,ldquo,
,,rdquo,
,,lsquo,
,,rsquo,
,,prime,
,,Prime,
,,numero,
,,lowast,
,,radic,
,,there4,
,,sim,
,,cong,
,,minus,
,,asymp,
,,ne,
,,equiv,
,,le,
,,ge,
,,not,
,,and,
,,ang,
,,alefsym,
,,cap,
,,empty,
,,exist,
,,fnof,
,,forall,
,,infin,
,,int,
,,isin,
,,lang,
,,lfloor,
,,nabla,
,,ni,
,,notin,
,,nsub,
,,perp,
,,prod,
,,prop,
,,rang,
,,rceil,
,,rfloor,
,,sdot,
+,,,
,,Alpha,
,,alpha,
,,Beta,
,,beta,
,,Chi,
,,chi,
,,Delta,
,,delta,
,,Epsilon,
,,epsilon,
,,Eta,
,,eta,
,,Gamma,
,,gamma,
,,Iota,
,,iota,
,,Kappa,
,,kappa,
,,Lambda,
,,lambda,
,,Mu,
,,mu,
,,Nu,
,,nu,
,,Omega,
,,omega,
,,Omicron,
,,omicron,
,,Phi,
,,phi,
,,Pi,
,,pi,
,,piv,
+,,,
,,Psi,
,,psi,
,,Rho,
,,rho,
,,Sigma,
,,sigma,
,,sigmaf,
+,,,
,,Tau,
,,tau,
,,Theta,
,,theta,
,,thetasym,
+,,,
,,Upsilon,
,,upsilon,
,,upsih,
+,,,
,,Xi,
,,xi,
,,Zeta,
,,zeta,
+,,,
,,iquest,
,,iexcl,
,,#8253,Interrobang ?! !?
,,#11800,iInterrobang
,,#11822,Irony
,,#37,
,,permil,
,,#8241,permyriad
,,real,
,,image,
,,#9774,
,,#9775,
,,loz,
,,#8471,
,,#9791,Mercury
,,#9792,Female-Venus
,,#9793,Earth
,,#9794,Male-Mars
,,#9795,Jupiter
,,#9796,Saturn
,,#9797,Uranus
,,#9798,Neptune
,,#9799,Pluto
,,hellip,
,,#9800,Aries
,,#9801,Taurus
,,#9802,Gemini
,,#9803,Cancer
,,#9804,Leo
,,#9805,Virgo
,,#9806,Libra
,,#9807,Scorpius
,,#9808,Sagittarius
,,#9809,Capricorn
,,#9810,Aquarius
,,#9811,Pisces
,,#664,
,,#1758,
,,#2676,
,,#8251,
+,,,
,,larr,
,,#8592,
,,uarr,
,,#8593,
,,rarr,
,,#8594,
,,darr,
,,#8595,
,,harr,
,,#8596,
,,#8597,
,,#8598,
,,#8599,
,,#8600,
,,#8601,
,,#8602,
,,#8603,
,,#8604,
,,#8605,
,,#8606,
,,#8607,
,,#8608,
,,#8609,
,,#8610,
,,#8611,
,,#8612,
,,#8613,
,,#8614,
,,#8615,
,,#8616,
,,#8617,
,,#8618,
,,#8619,
,,#8620,
,,#8621,
,,#8622,
,,#8623,
,,#8624,
,,#8625,
,,#8626,
,,#8627,
,,#8628,
+,,,,
,,crarr,
,,#8629,
,,#8630,
,,#8631,
,,#8632,
,,#8633,
,,#8634,
,,#8635,
,,#8636,
,,#8637,
,,#8638,
,,#8639,
,,#8640,
,,#8641,
,,#8642,
,,#8643,
,,#8644,
,,#8645,
,,#8646,
,,#8647,
,,#8648,
,,#8649,
,,#8650,
,,#8651,
,,#8652,
,,#8653,
,,#8654,
,,#8655,
+,,,
,,lArr,
,,#8656,
,,uArr,
,,#8657,
,,rArr,
,,#8658,
,,dArr,
,,#8659,
,,hArr,
,,#8660,
,,#8661,
,,#8662,
,,#8663,
,,#8664,
,,#8665,
,,#8666,
,,#8667,
,,#8668,
,,#8669,
,,#8670,
,,#8671,
,,#8672,
,,#8673,
,,#8674,
,,#8675,
,,#8676,
,,#8677,
,,#8678,
,,#8679,
,,#8680,
,,#8681,
,,#8682,
,,#13029,
,,#8853,
,,#8854,
,,#8855,
,,#8856,
,,#8857,
,,#8858,
,,#8859,
,,#8860,
,,#8861,
,,#8862,
,,#8863,
,,#8864,
,,#8865,
,,#8866,
,,#8983,
,,#8984,
,,#8986,
,,#8987,
,,#9728,
,,#9729,
,,#9730,
,,#9731,
,,#9732,
,,#9733,
,,#9734,
,,#9735,
,,#9742,
,,#9743,
,,#9744,
,,#9745,
,,#9746,
,,#9747,
,,#9754,
,,#9755,
,,#9756,
,,#9757,
,,#9758,
,,#9759,
,,#9760,
,,#9761,
,,#9762,
,,#9763,
,,#9764,
,,#9765,
,,#9784,
,,#9785,
,,#9786,
,,#9787,
,,#9788,
,,#9789,
,,#9790,
,,#9812,
,,#9813,
,,#9814,
,,#9815,
,,#9816,
,,#9817,
,,#9818,
,,#9819,
,,#9820,
,,#9821,
,,#9822,
,,#9823,
+,,,,
,,#9824,
,,#9828,
,,#9829,
,,#9825,
,,#9830,
,,#9826,
,,#9827,
,,#9831,
,,spades,
,,hearts,
,,diams,
,,clubs,
,,#9832,
,,#9833,
,,#9834,
,,#9835,
,,#9836,
,,#9837,
,,#9838,
,,#9839,
,,#9840,
,,#9841,
,,#9985,
,,#9986,
,,#9987,
,,#9988,
,,#9989,
,,#9990,
,,#9991,
,,#9992,
,,#9993,
,,#9996,
,,#9997,
,,#9998,
,,#9999,
,,#10000,
,,#10001,
,,#10002,
,,#10003,
,,#10004,
,,#10005,
,,#10006,
,,#10007,
,,#10008,
,,#10009,
,,#10010,
,,#10011,
,,#10012,
,,#10013,
,,#10014,
,,#10015,
,,#10016,
,,#10017,
,,#10018,
,,#10019,
,,#10020,
,,#10021,
,,#10022,
,,#10023,
,,#10025,
,,#10026,
,,#12320,
,,#13019,
,,#13022,
,,#13025,
+,,,
,,#91,
,,#93,

link page generator
Generated output

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License