Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
IndicWiki Sandbox
Search
Search
English
Log in
Personal tools
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Module:Unicode data/doc
(section)
Module
Discussion
English
Read
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Functions overview== * Code points: enter hexadecimal value, for example {{mxt|1={{!}}0x0061}} or {{mxt|1={{!}}61}}; not {{!mxt|1={{!}}U+0061}}. {| class="wikitable sortable" style="font-size:90%; vertical-align:top;" |- ! Topic ! Function ! style="border-right:2px solid grey" | Parameter type<br/><small>(string=by character(s); c.p. by {{mono|0xHex}} value)</small> ! Example ! Returns ! Character <!-- LOOKUP - lookup{{!}} functions ----- ----- ----- ----- ----- ----- ----- ----- --> |- | Unicode character name | {{code|1={{!}}lookup{{!}}name}} | code point | {{ubl |1={{tnull|#invoke:Unicode data |lookup|name|0xA9}} |2={{tnull|#invoke:Unicode data |lookup|name|0x0007}} }} | {{ubl |1={{#invoke:Unicode data |lookup|name|0xA9}} |2={{#invoke:Unicode data |lookup|name|0x0007}} }} | {{ubl |1=© |2=}} |- | [[Script (Unicode)|Scripts]] | {{code|1={{!}}lookup{{!}}script}} | code point | {{tnull|#invoke:Unicode data |lookup|script|A061}} | {{#invoke:Unicode data |lookup|script|A061}} | {{ubl |1=ꁡ |2=}} |- | [[Block (Unicode)|Blocks]] | {{code|1={{!}}lookup{{!}}block}} | code point | {{tnull|#invoke:Unicode data |lookup|block|A061}} | {{#invoke:Unicode data |lookup|block|A061}} | {{ubl |1=ꁡ |2=}} |- | [[Plane (Unicode)|Planes]] | {{code|1={{!}}lookup{{!}}plane}} | code point | {{ubl |1={{tnull|#invoke:Unicode data |lookup|plane|0xA9}} |2={{tnull|#invoke:Unicode data |lookup|plane|0x1F608}} }} | {{ubl |1={{#invoke:Unicode data |lookup|plane|0xA9}} |2={{#invoke:Unicode data |lookup|plane|0x1F608}} }} | {{ubl |1=© |2=😈}} |- | [[Unicode_character_property#General_Category|General Category]] | {{code|1={{!}}lookup{{!}}category}} | code point | {{ubl |1={{tnull|#invoke:Unicode data |lookup|category|0xA9}} |2={{tnull|#invoke:Unicode data |lookup|category|0x002B}} }} | {{ubl |1={{#invoke:Unicode data |lookup|category|0xA9}} |2={{#invoke:Unicode data |lookup|category|0x002B}} }} | {{ubl |1=© |2=+}} |- style="border-bottom:2px solid grey;" | Controls | {{code|1={{!}}is{{!}}control}} | code point | {{ubl |1={{tnull|#invoke:Unicode data |lookup|control|A9}} |2={{tnull|#invoke:Unicode data |lookup|control|FFFF}} }} | {{ubl |1={{#invoke:Unicode data |lookup|control|A9}} |2={{#invoke:Unicode data |lookup|control|FFFF}} }} | {{ubl |1=© |2=}} <!-- ID - is{{!}} functions ----- ----- ----- ----- ----- ----- ----- ----- --> |- | [[Latin script]] |{{code|1={{!}}is{{!}}Latin}} | string | {{ubl |1={{tnull|#invoke:Unicode data |is|Latin|abcŁíā̀}} |2={{tnull|#invoke:Unicode data |is|Latin|abc文xyz}} }} | {{ubl |1={{#invoke:Unicode data |is|Latin|abc}} |2={{#invoke:Unicode data |is|Latin|abc文xyz}} }} | |- | [[Wikipedia:Article titles|WP:Article title]] <small>([[WP:NCTR]])</small> | {{code|1={{!}}is{{!}}valid_pagename}} | string | {{ubli |1={{tnull|#invoke:Unicode data |is|valid_pagename|Main_page}} |2={{tnull|#invoke:Unicode data |is|valid_pagename|# (disambiguation)}} }} | {{ubl |1={{#invoke:Unicode data |is|valid_pagename|Main_page}} |2={{#invoke:Unicode data |is|valid_pagename|# (disambiguation)}} }} | |- | [[Bidirectional text|Bidirectionality]], right-to-left scripts | {{code|1={{!}}is{{!}}rtl}} | string | {{ubl |1={{tnull|#invoke:Unicode data |is|rtl|ش}} |2={{tnull|#invoke:Unicode data |is|rtl|34}} }} | {{ubli |1={{#invoke:Unicode data |is|rtl|ش}} |2={{#invoke:Unicode data |is|rtl|4}} }} | {{ubl |1=ش |2=4}} |- | [[Combining character]] | {{code|1={{!}}is{{!}}combining}} | code point | {{ubl |1={{tnull|#invoke:Unicode data |is|combining|0300}} |2={{tnull|#invoke:Unicode data |is|combining|64}} }} | {{ubl |1={{#invoke:Unicode data |is|combining|0300}} |2={{#invoke:Unicode data |is|combining|64}} }} | {{ubl |1=̀ |2=d}} |- | Character assignation | {{code|1={{!}}is{{!}}assigned}} | code point | {{ubl |1={{tnull|#invoke:Unicode data |is|assigned|A061}} |2={{tnull|#invoke:Unicode data |is|assigned|FFEF}} }} | {{ubl |1={{#invoke:Unicode data |is|assigned|A061}} |2={{#invoke:Unicode data |is|assigned|FFEF}} }} | {{ubl |1=ꁡ |2=;}} |- | Printable<!-- control: assigned or space-separator --> | {{code|1={{!}}is{{!}}printable}} | code point | {{ubl |1={{tnull|#invoke:Unicode data |is|printable|0061}} |2={{tnull|#invoke:Unicode data |is|printable|0007}} |3={{tnull|#invoke:Unicode data |is|printable|FFFF}} }} | {{ubl |1=>{{#invoke:Unicode data |is|printable|0061}}< |2=>{{#invoke:Unicode data |is|printable|0007}}< |3=>{{#invoke:Unicode data |is|printable|FFFF}}< }} | {{ubl |1=>a< |2=>< |3=>< }} |- | {{slink|Whitespace_character|Unicode}} | {{code|1={{!}}is{{!}}whitespace}} | code point | {{ubl |1={{tnull|#invoke:Unicode data |is|whitespace|0x20}} |2={{tnull|#invoke:Unicode data |is|whitespace|0xA0}} |3={{tnull|#invoke:Unicode data |is|whitespace|0x64}} }} | {{ubl |1=>{{#invoke:Unicode data |is|whitespace|0x20}}< |2=>{{#invoke:Unicode data |is|whitespace|0xA0}}< NBSP |3=>{{#invoke:Unicode data |is|whitespace|0x64}}< }} | {{ubl |1=> < |2=> < |3=>d<}}<!-- UNKNOWN -- function application as yet unknown --> <!-- Hangul submodule used by <code>|lookup|name</code> to generate names of characters in the [[Hangul Syllables]] block --> |- | [[Unicode alias names and abbreviations|Alias names]] | {{code|1={{!}}aliases}} | | [application unknown] | | {{ubl |1=&#x; |2=&#x;}} |- | Combining class | {{code|1={{!}}}} | | [application unknown] | | {{ubl |1=&#x; |2=&#x;}} |- | Age | {{code|1={{!}}}} | | [application unknown] | | {{ubl |1= |2=}} |- | get_best_script | {{code|1={{!}}get_best_script}} | | [application unknown] | | {{ubl |1= |2=}} |}
Summary:
Please note that all contributions to IndicWiki Sandbox may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
My wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Toggle limited content width