Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Humanipedia
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
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
Appearance
move to sidebar
hide
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!
==Parameters and functions== ===code point=== The code point is to be entered as '''hexadecimal value'''. For example, {{unichar|A9|COPYRIGHT SIGN}}: :{{mono|1={{!}}A9<sub>hex</sub>}} :{{mono|1={{!}}0xA9<sub>hex</sub>}} :{{mono|1={{!}}0x00A9<sub>hex</sub>}} :{{mono|1={{!}}0x00a9<sub>hex</sub>}} :<code><nowiki>{{#invoke:Unicode data|lookup|name|0x00A9}}</nowiki></code> → {{#invoke:Unicode data|lookup|name|0x00A9}} Incorrect or unintended results: :{{mono|1=169<sub>dec</sub>}}: <code><nowiki>{{#invoke:Unicode data|lookup|name|169}}</nowiki></code> → {{#invoke:Unicode data|lookup|name|169}} {{nay}} —"U+00A9" {{code|1=©}} expected; but is read as {{mono|1=00A9<sub>hex</sub>}} (that is, {{mono|1={{hex2dec|169}}<sub>dec</sub>}} :{{mono|1=U+00A9}} <code><nowiki>{{#invoke:Unicode data|lookup|name|U+00A9}}</nowiki></code> {{nay}} —do not use "U+" prefix :{{mono|1=غ}} <code><nowiki>{{#invoke:Unicode data|lookup|name|غ}}</nowiki></code> {{nay}} —cannot enter a character as codepoint ==="{{mono|lookup}}" and "{{mono|1=is}}" functions=== ; {{code|lang=lua|lookup, is}}: Template-invokable functions that allow access to the functions starting with <code>lookup</code> and <code>is</code>.For most of the functions, add the code point in hexadecimal base as the next parameter. For <code>is{{!}}Latin</code>, <code>is{{!}}rtl</code>, and <code>is{{!}}valid_pagename</code>, add character string. [[HTML character references]] in the text are decoded by the module into code points. :For example, {{tnull|#invoke:Unicode data|is|Latin|àzàhàr̃iyyā̀}} → {{#invoke:Unicode data|is|Latin|àzàhàr̃iyyā̀}}. :Internally, in modules, these functions are named using underscore: {{code|lang=lua|lookup_name{{!}}code point}} ← {{code|lang=lua|lookup_name}} :For <code>&A9;</code> <big>©</big>: {{tnull|#invoke:Unicode data|lookup|name|A9}} → {{#invoke:Unicode data|lookup|name|A9}}
Summary:
Please note that all contributions to Humanipedia 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
Humanipedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)