Template:Punctuation marks in Unicode/doc: Difference between revisions

Content deleted Content added
 
(31 intermediate revisions by 3 users not shown)
Line 1:
* '''[[Punctuation]]'''
 
==General CatagoryCategory P''x'', punctuation==
:Listed are all code points in Genetral Category P:
 
{| class="wikitable"
|-
| colspan=6 data-sort-value="030" style="font-weight:bold" |{{mono|P}}, Punctuation mark
|-
|data-sort-value="031" | {{mono|Pc}} ||Punctuation, connector ||Graphic ||Character || 10 ||Includes "_" [[underscore]]
|-
|data-sort-value="032" | {{mono|Pd}} ||Punctuation, dash ||Graphic ||Character || 25 ||Includes several [[hyphen]] characters
Line 16 ⟶ 13:
|data-sort-value="034" | {{mono|Pe}} ||Punctuation, close ||Graphic ||Character || 77 ||Closing bracket characters
|-
|data-sort-value="035" | {{mono|Pi}} ||Punctuation, initial quote ||Graphic ||Character || 12 ||Opening [[quotation mark]]. Does not include the ASCII "neutral" quotation mark. May behave like Ps or Pe depending on usage
|-
|data-sort-value="036" | {{mono|Pf}} ||Punctuation, final quote ||Graphic ||Character || 10 ||Closing quotation mark. May behave like Ps or Pe depending on usage
|-
|data-sort-value="031" | {{mono|Pc}} ||Punctuation, connector ||Graphic ||Character || 10 ||Includes "_" [[underscore]]
|-
|data-sort-value="037" | {{mono|Po}} ||Punctuation, other ||Graphic ||Character || 593 ||
Line 25 ⟶ 24:
|}
:''todo: check numbers; big table has 798 cp entries''
:''Numbers as of version {{unicode version|version=14.0}}, by {{slink|Andrew_West_(linguist)|BabelMap|nopage=yes}}''
 
===TOC for this table===
:{{tl|Punctuation marks in Unicode/TOC}} -- local, no pagename provided
 
::Use {{tla|Punctuation marks in Unicode/row-pair|../row-pairTOC}}
 
==Parameters==
:* {{tla|Punctuation marks in Unicode/row}}
:* {{tla|Punctuation marks in Unicode/row-pair|Punctuation marks in Unicode/row-pair}} -- for pair {{mono|Ps-Pe}} (brackets); {{mono|Pi-Pf}} (quotes)
 
:{{para|cp = }}{{fsp|8}}code point, hex. Determines Character as shown, Name, anchors. Use normalised "000A" (uppercase) notation.
:{{para|link = }}{{fsp|6}}link to article, will link from (first) name; optional
:{{para|gencat = }}{{fsp|4}}Generic Category, P''x'' by list definition
:{{para|script = Character}}{{fsp|4}}character script propertyU+property
:{{para|style = }}{{fsp|5}}{{code|large}} → double cell height, for example {{slink|Template:Punctuation marks in Unicode|U+104C|nopage=yes}}: {{mono|1=၌}}
:{{para|technote = }}{{fsp|2}}maintenance info: is pair, is unbalanced pair, is vertical pair
::{{para|style, technote}} are shown in {{tla|Punctuation marks in Unicode/testcases|/testcases}}
::For '''pairs''' (Pi-Pf quotes; Ps-Pe brackets)
::Use {{tla|Punctuation marks in Unicode/row-pair|../row-pair}}
:cp2 = second code point
:gencat2 = second generic category (expected: Pf or Pe)
:script2, link2 are not present
 
::For '''pairs''' (Pi-Pf quotes; Ps-Pe brackets); use {{tla|Punctuation marks in Unicode/row-pair|../row-pair}}:
<pre>
:{{para|cp2 = }}{{fsp|7}}second code point
:{{para|gencat2 = }}{{fsp|3}}second generic category (expected: Pf or Pe)
:{{para|<s>script2, link2</s>}} unused, do not exist
:{{para|char}} present for tests, could be removed when stable
 
<syntaxhighlight lang="wikitext">
{{Punctuation marks in Unicode/row
| cp =
| link = <!-- name wikilink -->
| gencat =
| script =
| style =
| style = <!-- =large -- for Javanese etc.: double cell height -->
| technote =<!-- maintenance info -->
| cp2 = <!-- ../row-pair| -->
| gencat2 = <!-- ../row-pair| -->
}}
</syntaxhighlight>
</pre>
 
Note: {{para|char}} is for checks only, might be removed later on.
 
* {{tltla|DiacriticsPunctuation marks in Unicode/TOC}}
:{{para|TOC|yes}} will show table-TOC
 
 
* {{tla|Punctuation marks in Unicode/subheader}}
:{{para|gencat}}
 
==Anchors==
* All marks are anchored twice: {{code|U+00B6}}, {{code|&#x00B6;}} (= as entity value ''and'' as character)
::{{code|1=cp=00B6}} &rarr; {{slink|1=Template:Punctuation marks in Unicode|2=U+00B6|nopage=yes}}, [entity &amp;#x00B6;] {{slink|Template:Punctuation marks in Unicode|&#x00B6;|nopage=yes}}, char [{{angbr|]}}: {{slink|Template:Punctuation marks in Unicode|¶|nopage=yes}}
:::[[Template:Punctuation marks in Unicode#U+00B6]]
 
Line 69 ⟶ 82:
:::[[Template:Punctuation marks in Unicode#U+2996]]
 
:When possible, notation {{code|U+00B6}} is preferred (first code point of a pair). ThisResult resaults inis nicer arrival (top of tablerow)
 
==See also==
* [[Punctuation]]
*{{tl|Diacritics in Unicode}}
 
{{Unicode templates}}
<includeonly>{{sandbox other||
[[:Category:Unicode templates]]
}}
</includeonly>