Jump to content

Module:Convert character width/doc

From Wikipedia, the free encyclopedia
This is the current revision of this page, as edited by 2600:1700:a2a0:fb50:dc18:ca2:30a6:770c (talk) at 07:24, 10 November 2023. The present address (URL) is a permanent link to this version.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

This module converts a limited set of characters between halfwidth and fullwidth forms.

Usage

[edit]
From half-width to full-width
{{#invoke:convert character width|full|text to convert}}
From full-width to half-width
{{#invoke:convert character width|half|text to convert}}

Examples

[edit]
  • {{#invoke:convert character width|full|some text 0123456789}} → some text 0123456789
  • {{#invoke:convert character width|half|some text 0123456789}} → some text 0123456789

Support

[edit]

Care should be taken when using this module with Hangul and katakana; as of September 2013 there is only limited support for katakana and no support for Hangul. Some of the more obscure punctuation characters are also not yet supported.

Data

[edit]

The character data used by the module is located at Module:Convert character width/data. Fixes and updates to the data set are welcomed enthusiastically.