Jump to content

Template:Tangut/doc

From Wikisource

Usage

[edit]
{{Tangut|<text>}}
{{Tangut|<text>|<tooltip>}}
{{Tangut|<text>|<tooltip>|<size=20>}}

This applies a Unicode Tangut font to the specified Tangut text if such a font is available on the user's system. The fonts applied are, in the following order:

  • Tangut Yinchuan – Unicode Tangut font originally designed by Jing Yongshi (景永时), but extended and modified by Andrew West and Michael Everson to cover all Unicode Tangut ideographs and components (available from [1])
  • Noto Serif Tangut – Unicode Tangut font provided by Google (available from [2])
  • Tangut N4694 – Unicode based Tangut font based on Jing Yongshi (景永时) and Jia Changye (贾常业)'s work (available from [3])
  • New Tangut Std – Unicode based Tangut font based on characters found in Tangut dictionaries as Sea of Characters (文海), Homophones (同音), etc. (available from [4])
  • Tangut TWU – Academia Sinica's Tangut font remapped to Unicode code points (available from [5])

Parameters

[edit]

The first parameter is the Unicode Tangut text to be displayed.

The second parameter is the transliteration or translation of the Tangut text, which will be displayed as the mouseover tooltip. This is optional, and if omitted the tooltip will be blank.

The third parameter is the font size to be used in px units. This is optional, and if omitted the default font size will be used.

Examples

[edit]
  1. {{Tangut|𗴂𗹭𘜶𗴲𗂧}} provides 𗴂𗹭𘜶𗴲𗂧
  2. {{Tangut|𗴂𗹭𘜶𗴲𗂧|Great Xia State of the White and the Lofty}} provides 𗴂𗹭𘜶𗴲𗂧
  3. {{Tangut|𗴂𗹭𘜶𗴲𗂧|Great Xia State of the White and the Lofty|size=24px}} provides 𗴂𗹭𘜶𗴲𗂧