Module talk:Unicode data
About RTL
I am researching RTL scripts. I met this:
- A
- 0xa9 -- LATIN CAPITAL LETTER A
- Latn
- is_rtl: false
- ث
- 0x062B -- ARABIC LETTER THEH [1]
- Arab
- is_rtl: false
- ש
- 0x05E9 -- HEBREW LETTER SHIN [2]
- Hebr
- is_rtl: false
- ߖ
- 0x07D6 -- NKO LETTER JA [3]
- Nkoo
- is_rtl: false
I'd expect the Arab, Hebr, Nkoo characters to be rtl=true. Am I misunderstanding something? @Erutuon: -DePiep (talk) 20:58, 9 January 2021 (UTC)
- @DePiep: The invocation
{{#invoke:Unicode data|is|rtl|05E9}}
checks whether the literal characters05E9
are right-to-left. To check the right-to-leftness of the Hebrew character, put in the literal character or a HTML character reference:{{#invoke:Unicode data|is|rtl|ש}}
or{{#invoke:Unicode data|is|rtl|ש}}
.#invoke:Unicode data|is|rtl
as well as#invoke:Unicode data|is|valid_pagename
and#invoke:Unicode data|is|Latin
interpret their arguments as strings rather than code points in hexadecimal because the corresponding functions in the module take strings. (They could take hexadecimal arguments if someone edited the module to add another parameter to tell them to interpret their argument this way.) — Eru·tuon 01:02, 10 January 2021 (UTC)
- @Erutuon: Thanks, will work for me. Great module! (Second code example is
{{#invoke:Unicode data|is|rtl|ש}}
). -DePiep (talk) 17:28, 10 January 2021 (UTC)
- @Erutuon: Thanks, will work for me. Great module! (Second code example is
- The four characters, is_rtl:
- using &#x...; false
- using &#x...; true
- using &#x...; true
- using &#x...; true
is_pagename
Resolved
In the function is_pagename
, does "pagename" stand for "blockname"? Or wider? -DePiep (talk) 05:17, 27 March 2022 (UTC)
- Resolved: refers to "valid WP pagename", related to WP:NCTR invalid title characters like "#". -DePiep (talk) 11:34, 27 March 2022 (UTC)
Missing documentation: Hangul, Aliases
I am developing the documentation, especially in Module:Unicode data § List of functions. To completify, can someone point out how or where the data /aliases and /Hangul can be retrieved (implementation)? DePiep (talk) 11:39, 27 March 2022 (UTC)
is_RTL check?
About U+0634 ش ARABIC LETTER SHEEN [4]:
- {{#invoke:Unicode data |is|rtl|0x0634}} → false
I expect true (is_rtl), right? -DePiep (talk) 23:00, 28 March 2022 (UTC)
- Solved: enter the character <ش >, not the U+hex:
- {{#invoke:Unicode data |is|rtl|ش }} → true
- DePiep (talk) 05:26, 1 June 2022 (UTC)
Edit request 20 November 2023
![]() | It is requested that an edit be made to the template-protected module at Module:Unicode data. (edit · history · last · links · sandbox · edit sandbox · sandbox history · sandbox last edit · sandbox diff · test cases · transclusion count · protection log) This template must be followed by a complete and specific description of the request, so that an editor unfamiliar with the subject matter could complete the requested edit immediately.
Edit requests to template-protected pages should only be used for edits that are either uncontroversial or supported by consensus. If the proposed edit might be controversial, discuss it on the protected page's talk page before using this template. Consider making changes first to the module's sandbox and test them thoroughly here before submitting an edit request. To request that a page be protected or unprotected, make a protection request. When the request has been completed or denied, please add the |
Description of suggested change: the module code says "-- No image data modules on Wikipedia yet."
We have them now. Can this be enabled? — Alexis Jazz (talk or ping me) 05:37, 20 November 2023 (UTC)
- Can you sandbox the code? — Martin (MSGJ · talk) 12:46, 20 November 2023 (UTC)