This site is supported by donations to The OEIS Foundation.

Template:Circumflex

From OeisWiki
Jump to: navigation, search

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.

Note: This is for XHTML5 future proofing, where named character entities should not be used, except the following four

Named entity Glyph
& &
&lt; <
&gt; >
&quot; "

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

Precomposed characters (HTML)
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

Mathematical symbols (combining characters for HTML)
HTML
code
HTML
result
LaTeX
code
LaTeX
result
{{math|{{hat|{{sym|C}}}}|&}}
ℂ̂
{{math|{{hat|{{sym|C|tex}}|tex}}|$}}

Cyrillic letters

Cyrillic letters
(combining characters for HTML)
Cyrillic letter
(without circumflex)
HTML
code
HTML
result
а {{hat|a}} а̂
е {{hat|е}} е̂
и {{hat|и}} и̂
о {{hat|о}} о̂
у {{hat|у}} у̂

Examples of improper usage

Code Result Code Result
{{hat|B}} {{hat|b}}
{{hat|W}} {{hat|w}} ŵ
{{hat|X}} {{hat|x}}
{{hat|Z}} {{hat|z}}
{{hat|4}} {{hat|7}}
{{hat|?}}  ?̂ {{hat|!}}  !̂

Notes

See also