Difference between revisions of "Template:GB18030/main"

From blackwiki
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|}}}|24notpua||A6 D9}}
+
|59277={{#ifeq:{{{edition|}}}|newucs||A6 D9}}
|59278={{#ifeq:{{{edition|}}}|24notpua||A6 DA}}
+
|59278={{#ifeq:{{{edition|}}}|newucs||A6 DA}}
|59279={{#ifeq:{{{edition|}}}|24notpua||A6 DB}}
+
|59279={{#ifeq:{{{edition|}}}|newucs||A6 DB}}
|59280={{#ifeq:{{{edition|}}}|24notpua||A6 DC}}
+
|59280={{#ifeq:{{{edition|}}}|newucs||A6 DC}}
|59281={{#ifeq:{{{edition|}}}|24notpua||A6 DD}}
+
|59281={{#ifeq:{{{edition|}}}|newucs||A6 DD}}
|59282={{#ifeq:{{{edition|}}}|24notpua||A6 DE}}
+
|59282={{#ifeq:{{{edition|}}}|newucs||A6 DE}}
|59283={{#ifeq:{{{edition|}}}|24notpua||A6 DF}}
+
|59283={{#ifeq:{{{edition|}}}|newucs||A6 DF}}
|59284={{#ifeq:{{{edition|}}}|24notpua||A6 EC}}
+
|59284={{#ifeq:{{{edition|}}}|newucs||A6 EC}}
|59285={{#ifeq:{{{edition|}}}|24notpua||A6 ED}}
+
|59285={{#ifeq:{{{edition|}}}|newucs||A6 ED}}
|59286={{#ifeq:{{{edition|}}}|24notpua||A6 F3}}
+
|59286={{#ifeq:{{{edition|}}}|newucs||A6 F3}}
|59414={{#ifeq:{{{edition|}}}|24notpua||FE 51}}
+
|59414={{#ifeq:{{{edition|}}}|newucs||FE 51}}
|59415={{#ifeq:{{{edition|}}}|24notpua||FE 52}}
+
|59415={{#ifeq:{{{edition|}}}|newucs||FE 52}}
|59416={{#ifeq:{{{edition|}}}|24notpua||FE 53}}
+
|59416={{#ifeq:{{{edition|}}}|newucs||FE 53}}
|59422={{#ifeq:{{{edition|}}}|24notpua||FE 59}}
+
|59422={{#ifeq:{{{edition|}}}|newucs||FE 59}}
|59430={{#ifeq:{{{edition|}}}|24notpua||FE 61}}
+
|59430={{#ifeq:{{{edition|}}}|newucs||FE 61}}
|59435={{#ifeq:{{{edition|}}}|24notpua||FE 66}}
+
|59435={{#ifeq:{{{edition|}}}|newucs||FE 66}}
|59436={{#ifeq:{{{edition|}}}|24notpua||FE 67}}
+
|59436={{#ifeq:{{{edition|}}}|newucs||FE 67}}
|59441={{#ifeq:{{{edition|}}}|24notpua||FE 6C}}
+
|59441={{#ifeq:{{{edition|}}}|newucs||FE 6C}}
|59442={{#ifeq:{{{edition|}}}|24notpua||FE 6D}}
+
|59442={{#ifeq:{{{edition|}}}|newucs||FE 6D}}
|59451={{#ifeq:{{{edition|}}}|24notpua||FE 76}}
+
|59451={{#ifeq:{{{edition|}}}|newucs||FE 76}}
|59459={{#ifeq:{{{edition|}}}|24notpua||FE 7E}}
+
|59459={{#ifeq:{{{edition|}}}|newucs||FE 7E}}
|59476={{#ifeq:{{{edition|}}}|24notpua||FE 90}}
+
|59476={{#ifeq:{{{edition|}}}|newucs||FE 90}}
|59477={{#ifeq:{{{edition|}}}|24notpua||FE 91}}
+
|59477={{#ifeq:{{{edition|}}}|newucs||FE 91}}
|59492={{#ifeq:{{{edition|}}}|24notpua||FE A0}}
+
|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

Template documentation[view] [edit] [history] [purge]

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).