This site is supported by donations to The OEIS Foundation.
Template:Circumflex
[⧼Purge⧽ Template:Circumflex]
The {{circumflex}} ({{circ}} or {{hat}}) (circumflex accent) diacritics template returns the UTF-16 HTML [hexadecimal] numeric character entity for a precomposed character with a circumflex accent diacritic. (As a fallback, it returns a combining character for any Latin or Cyrillic character.)
With the tex option, the template returns the LaTeX code for the circumflex accent character.
Contents
Note: This is for XHTML5 future proofing, where named character entities should not be used, except the following four
Named entity Glyph & & < < > > " "
Numeric character entities or glyphs (except the four above glyphs, which have a special meaning in HTML) should be used instead.[1]
Usage
HTML
- {{hat|alphabetic character}}
or
- {{hat|alphabetic character|htm}}
where character
is either from
- {A, E, I, O, U, a, e, i, o, u, w, y}: to get a precomposed character;
- any other character from the Latin alphabet: to get a combining character (where an almost perfect accented character is created);
- or any character from the Cyrillic alphabet: to get a combining character (where an almost perfect accented character is created).
LaTeX
- {{hat|any Latin or Cyrillic character|tex}}
Examples
The code
- {{hat}}
yields
- ̂
The code
-
{{math|{{hat||tex}}|$}}
yields
Precomposed characters
HTML code |
HTML result |
LaTeX code |
LaTeX result |
---|---|---|---|
{{hat|A}}, ''{{hat|A}}'' |
Â, Â | {{math|{{hat|A|tex}}|$}} |
|
{{hat|a}}, ''{{hat|a}}'' |
â, â | {{math|{{hat|a|tex}}|$}} |
|
{{hat|E}}, ''{{hat|E}}'' |
Ê, Ê | {{math|{{hat|E|tex}}|$}} |
|
{{hat|e}}, ''{{hat|e}}'' |
ê, ê | {{math|{{hat|e|tex}}|$}} |
|
{{hat|I}}, ''{{hat|I}}'' |
Î, Î | {{math|{{hat|I|tex}}|$}} |
|
{{hat|i}}, ''{{hat|i}}'' |
î, î | {{math|{{hat|i|tex}}|$}} |
|
{{hat|O}}, ''{{hat|O}}'' |
Ô, Ô | {{math|{{hat|O|tex}}|$}} |
|
{{hat|o}}, ''{{hat|o}}'' |
ô, ô | {{math|{{hat|o|tex}}|$}} |
|
{{hat|U}}, ''{{hat|U}}'' |
Û, Û | {{math|{{hat|U|tex}}|$}} |
|
{{hat|u}}, ''{{hat|u}}'' |
û, û | {{math|{{hat|u|tex}}|$}} |
|
{{hat|w}}, ''{{hat|w}}'' |
ŵ, ŵ | {{math|{{hat|w|tex}}|$}} |
|
{{hat|y}}, ''{{hat|y}}'' |
ŷ, ŷ | {{math|{{hat|y|tex}}|$}} |
Combining characters
Mathematical symbols
HTML code |
HTML result |
LaTeX code |
LaTeX result | |
---|---|---|---|---|
{{math|{{hat|{{sym|C}}}}|&}} |
|
{{math|{{hat|{{sym|C|tex}}|tex}}|$}} |
Cyrillic letters
Cyrillic letter (without circumflex) |
HTML code |
HTML result |
---|---|---|
а | {{hat|a}} | а̂ |
е | {{hat|е}} | е̂ |
и | {{hat|и}} | и̂ |
о | {{hat|о}} | о̂ |
у | {{hat|у}} | у̂ |
Examples of improper usage
Code | Result | Code | Result |
---|---|---|---|
{{hat|B}} | B̂ | {{hat|b}} | b̂ |
{{hat|W}} | Ŵ | {{hat|w}} | ŵ |
{{hat|X}} | X̂ | {{hat|x}} | x̂ |
{{hat|Z}} | Ẑ | {{hat|z}} | ẑ |
{{hat|4}} | 4̂ | {{hat|7}} | 7̂ |
{{hat|?}} | ?̂ | {{hat|!}} | !̂ |
Notes
See also