Jump to content

Module:Convert character width/doc

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Mr. Stradivarius (talk | contribs) at 09:23, 3 September 2013 (create). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)


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

Usage

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

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

Support

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.

Data

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