https://wiki.tinymux.org/index.php?title=Accent()&feed=atom&action=historyAccent() - Revision history2024-03-29T07:27:21ZRevision history for this page on the wikiMediaWiki 1.41.0https://wiki.tinymux.org/index.php?title=Accent()&diff=4403&oldid=prevLocke: /* Description */2011-05-24T07:22:33Z<p><span dir="auto"><span class="autocomment">Description</span></span></p>
<p><b>New page</b></p><div>[[Category:Functions]]<br />
== Description ==<br />
<br />
FUNCTION: {{function|accent}}(<string>,<template>)<br />
<br />
The accent() function will return <string>, with characters in it possibly changed to accented ones according to <template>. Both arguments must be the same number of characters.<br />
<br />
Whether or not the resulting string is actually displayed correctly is client-dependent.<br />
<br />
For each character in <string>, the corresponding character of <template> is checked according to the table below, and a replacement done. If either the current <string> or <template> characters aren't in the table, the <string> character is passed through unchanged.<br />
<br />
Accent Template String<br />
Name Description Character Character<br />
-----------------------------------------------------------------<br />
double acute Two foward slants " O,U,o,u<br />
acute Forward slant ' A,C,E,I,L,N,O,R,S,T,U,Y,Z,a,c,<br />
above letter e,i,l,n,o,r,s,u,y,z<br />
cedilla Small tail below , A,C,E,G,I,K,L,N,R,S,T,U,a,c,e,<br />
letter g,i,k,l,n,r,s,t,u<br />
macron dash above letter - A,D,E,I,O,U,a,e,i,o,u<br />
dot dot above letter . C,E,G,I,Z,c,e,g,i,z<br />
stroke diagonal or / D,H,L,O,d,h,l,o<br />
horizonal through<br />
letter<br />
umlaut Two dots above : A,E,I,O,U,Ya,e,i,o,u,y<br />
diaeresis letter<br />
circumflex carat above ^ A,C,E,G,H,I,J,O,S,U,W,Y,a,c,e,<br />
letter g,h,i,j,o,s,u,w,y<br />
grave Backward slant ` A,E,I,O,U,a,e,i,o,u<br />
above letter<br />
ring Small circle above o A,U,a,u<br />
letter<br />
breve rounded half-circle u A,E,G,I,O,U,a,e,g,i,o,u<br />
above letter<br />
caron inverted circumflex v C,D,E,L,N,R,S,T,Z,c,e,l,n,r,t,z<br />
tilde Wavy line above ~ A,I,N,O,U,a,i,n,o,u<br />
letter<br />
<br />
These are non-accent special characters, mostly punctuation and non-roman letters.<br />
<br />
Template String<br />
Description Character Character<br />
--------------------------------------------------------------<br />
Upside-down ? u ?<br />
Upside-down ! u !<br />
<< quote mark " <<br />
>> quote mark " ><br />
German sharp s B s<br />
Capital thorn | P<br />
Lower-case thorn | p<br />
Capital eth - D<br />
Lower-case eth & o<br />
Eng or engma G N<br />
Eng or engma g n<br />
Kra q K<br />
<br />
<br />
These are ligatures.<br />
<br />
Template String<br />
Description Character Character<br />
--------------------------------------------------------------<br />
Ligature AE E A<br />
Ligature IJ J I<br />
Ligature OE E O<br />
Ligature ae e a<br />
Ligature ij j i<br />
Ligature oe e o<br />
<br />
== Example ==<br />
<br />
> think accent(Aule, ---:)<br />
Āūlë<br />
<br />
> think accent(The Nina was a ship, The Ni~a was a ship)<br />
The Niña was a ship<br />
<br />
> think accent(Khazad ai-menu!, Khaz^d ai-m^nu!)<br />
Khazâd ai-mênŭ!<br />
<br />
== Related Topics ==<br />
<br />
[[Softcode functions]], [[chr()]], [[ord()]], [[stripaccents()]]</div>Locke