Difference between revisions of "Template:GB18030/main"
Jump to navigation
Jump to search
imported>HarJIT |
imported>HarJIT |
||
Line 23: | Line 23: | ||
|40890={{#ifeq:{{{edition|}}}|newucs|FE 90|82 35 91 33}} | |40890={{#ifeq:{{{edition|}}}|newucs|FE 90|82 35 91 33}} | ||
|40891={{#ifeq:{{{edition|}}}|newucs|FE A0|82 35 91 34}} | |40891={{#ifeq:{{{edition|}}}|newucs|FE A0|82 35 91 34}} | ||
− | |59277={{#ifeq:{{{edition|}}}| | + | |59277={{#ifeq:{{{edition|}}}|newucs||A6 D9}} |
− | |59278={{#ifeq:{{{edition|}}}| | + | |59278={{#ifeq:{{{edition|}}}|newucs||A6 DA}} |
− | |59279={{#ifeq:{{{edition|}}}| | + | |59279={{#ifeq:{{{edition|}}}|newucs||A6 DB}} |
− | |59280={{#ifeq:{{{edition|}}}| | + | |59280={{#ifeq:{{{edition|}}}|newucs||A6 DC}} |
− | |59281={{#ifeq:{{{edition|}}}| | + | |59281={{#ifeq:{{{edition|}}}|newucs||A6 DD}} |
− | |59282={{#ifeq:{{{edition|}}}| | + | |59282={{#ifeq:{{{edition|}}}|newucs||A6 DE}} |
− | |59283={{#ifeq:{{{edition|}}}| | + | |59283={{#ifeq:{{{edition|}}}|newucs||A6 DF}} |
− | |59284={{#ifeq:{{{edition|}}}| | + | |59284={{#ifeq:{{{edition|}}}|newucs||A6 EC}} |
− | |59285={{#ifeq:{{{edition|}}}| | + | |59285={{#ifeq:{{{edition|}}}|newucs||A6 ED}} |
− | |59286={{#ifeq:{{{edition|}}}| | + | |59286={{#ifeq:{{{edition|}}}|newucs||A6 F3}} |
− | |59414={{#ifeq:{{{edition|}}}| | + | |59414={{#ifeq:{{{edition|}}}|newucs||FE 51}} |
− | |59415={{#ifeq:{{{edition|}}}| | + | |59415={{#ifeq:{{{edition|}}}|newucs||FE 52}} |
− | |59416={{#ifeq:{{{edition|}}}| | + | |59416={{#ifeq:{{{edition|}}}|newucs||FE 53}} |
− | |59422={{#ifeq:{{{edition|}}}| | + | |59422={{#ifeq:{{{edition|}}}|newucs||FE 59}} |
− | |59430={{#ifeq:{{{edition|}}}| | + | |59430={{#ifeq:{{{edition|}}}|newucs||FE 61}} |
− | |59435={{#ifeq:{{{edition|}}}| | + | |59435={{#ifeq:{{{edition|}}}|newucs||FE 66}} |
− | |59436={{#ifeq:{{{edition|}}}| | + | |59436={{#ifeq:{{{edition|}}}|newucs||FE 67}} |
− | |59441={{#ifeq:{{{edition|}}}| | + | |59441={{#ifeq:{{{edition|}}}|newucs||FE 6C}} |
− | |59442={{#ifeq:{{{edition|}}}| | + | |59442={{#ifeq:{{{edition|}}}|newucs||FE 6D}} |
− | |59451={{#ifeq:{{{edition|}}}| | + | |59451={{#ifeq:{{{edition|}}}|newucs||FE 76}} |
− | |59459={{#ifeq:{{{edition|}}}| | + | |59459={{#ifeq:{{{edition|}}}|newucs||FE 7E}} |
− | |59476={{#ifeq:{{{edition|}}}| | + | |59476={{#ifeq:{{{edition|}}}|newucs||FE 90}} |
− | |59477={{#ifeq:{{{edition|}}}| | + | |59477={{#ifeq:{{{edition|}}}|newucs||FE 91}} |
− | |59492={{#ifeq:{{{edition|}}}| | + | |59492={{#ifeq:{{{edition|}}}|newucs||FE A0}} |
|65040={{#ifeq:{{{edition|}}}|newucs|A6 D9|84 31 82 36}} | |65040={{#ifeq:{{{edition|}}}|newucs|A6 D9|84 31 82 36}} | ||
|65041={{#ifeq:{{{edition|}}}|newucs|A6 DB|84 31 82 37}} | |65041={{#ifeq:{{{edition|}}}|newucs|A6 DB|84 31 82 37}} |
Revision as of 18:49, 17 August 2020
94 39 DA 33
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
).
The above documentation is transcluded from Template:GB18030/main/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |