Difference between revisions of "Template:GB18030/main/doc"
< Template:GB18030 | main
Jump to navigation
Jump to search
imported>HarJIT m (HarJIT moved page Template:Charmap/GB18030/main/doc to Template:GB18030/main/doc) |
imported>HarJIT |
||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> | <!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> | ||
| − | Contains the overriding logic of | + | Contains the overriding logic of {{tlx|GB18030}}. Defines mappings for problem codes (those which differ between editions, or between implementations, or four-byte codes out of order resulting from this) itself. Handles ASCII characters itself. For other characters, invokes [[Template:GB18030/BMP]] or [[Template:GB18030/astral]]. |
== Usage == | == Usage == | ||
Takes one positional parameter: a Unicode code point in decimal. Outputs a GB 18030 byte sequence in hexadecimal, with bytes delimited by spaces. | Takes one positional parameter: a Unicode code point in decimal. Outputs a GB 18030 byte sequence in hexadecimal, with bytes delimited by spaces. | ||
Latest revision as of 08:07, 18 August 2020
| 40px | This is a documentation subpage for Template:GB18030/main. It contains usage information, categories and other content that is not part of the original template page. |
Contains the overriding logic of {{GB18030}}. Defines mappings for problem codes (those which differ between editions, or between implementations, or four-byte codes out of order resulting from this) itself. Handles ASCII characters itself. For other characters, invokes Template:GB18030/BMP or Template:GB18030/astral.
Usage
Takes one positional parameter: a Unicode code point in decimal. Outputs a GB 18030 byte sequence in hexadecimal, with bytes delimited by spaces.
Optional named parameters include gb1988 (a boolean controlling if ¥ is mapped to 0x24—if in doubt, leave this off) and edition (2000, 2005, web or newucs—defaulting to 2005).