Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 

















Template:Chset-ctrl3






Български
Čeština
فارسی

Latviešu


اردو


 

Edit links
 









Template
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 



 

Note

[edit]

This template replaces Template:chset-ctrl. Template:chset-ctrl4 is available to additionally display the code point in octal.

Usage

[edit]

Used with Template:chset-tableformat to indicate a table cell for a control character or non-printing punctuation character.

For example, the first four ASCII control characters (Unicode U+0000 thru U+0003, decimal 0 thru 3) are coded as rows in a character set table like this:

{|
|{{Character set color|ctrl}}|{{chset-ctrl3|0000|[[Null character|NUL]]|0}}
|{{Character set color|ctrl}}|{{chset-ctrl3|0001|[[Start of heading|SOH]]|1}}
|{{Character set color|ctrl}}|{{chset-ctrl3|0002|[[Start of text|STX]]|2}}
|{{Character set color|ctrl}}|{{chset-ctrl3|0003|[[End of text|ETX]]|3}}
|}

Which yields:

NUL
0000
0
SOH
0001
1
STX
0002
2
ETX
0003
3

Another example illustrates the coding for a few of the ISO/IEC non-printing punctuation characters:

{|
|{{Character set color|misc}}|{{chset-ctrl3|0020|[[Space (character)|SP]]|32}}
|{{Character set color|misc}}|{{chset-ctrl3|00A0|[[Non-breaking space|NBSP]]|160}}
|{{Character set color|ctrl}}|{{chset-ctrl3|00AD|[[Soft hyphen|SHY]]|173}}
|}

Which yields:

SP
0020
32
NBSP
00A0
160
SHY
00AD
173

Chset family of templates

[edit]

See PETSCII, and Computer Braille Code for examples of usage.

[edit]

Character row header

[edit]

Character cell colors

[edit]

Note: if adjusting these colors, reference Template:Chset-table-header/family-test-sheet for a reference of how well they work together, and whether base / variant / boxed / legend colors are properly in sync.

Boxed and slightly shaded variants of these exist in order to indicate some kind of additional information (depending on the article) like, for example, a derivation from a base codepage, a variance of definition of the corresponding codepage in different sources (to be explained in the article) or in different revisions of a code page

For generating colors for cells by Unicode category, this script may be helpful.

Please note that the boxed variants must not be used, if a cell, which is not to be marked, is surrounded by four cells, which need to be marked, as this would make the central cell appear marked as well. The shaded variants do not exhibit this problem.

Character cell contents

[edit]

Test table

[edit]

The following colours should be in sync with one another and with the legend.

  Letter  Number  Punctuation  Symbol  Other  Lead byte  Undefined

JIS-Roman with alternative codings of single shifts and with tests for box and var colours
_0 _1 _2 _3 _4 _5 _6 _7 _8 _9 _A _B _C _D _E _F
0_
0
NUL
0000
SOH
0001
STX
0002
ETX
0003
EOT
0004
ENQ
0005
ACK
0006
BEL
0007
BS
0008
HT
0009
LF
000A
VT
000B
FF
000C
CR
000D
SO
 
SI
 
1_
16
DLE
0010
DC1
0011
DC2
0012
DC3
0013
DC4
0014
NAK
0015
SYN
0016
ETB
0017
CAN
0018
EM
0019
SUB
001A
ESC
001B
SS2
 
SS3
 
RS
001E
US
001F
2_
32
SP
0020
!
0021
"
0022
#
0023
$
0024
%
0025
&
0026
'
0027
(
0028
)
0029
*
002A
+
002B
,
002C
-
002D
.
002E
/
002F
3_
48
0
0030
1
0031
2
0032
3
0033
4
0034
5
0035
6
0036
7
0037
8
0038
9
0039
:
003A
;
003B
<
003C
=
003D
>
003E
?
003F
4_
64
@
0040
A
0041
B
0042
C
0043
D
0044
E
0045
F
0046
G
0047
H
0048
I
0049
J
004A
K
004B
L
004C
M
004D
N
004E
O
004F
5_
80
P
0050
Q
0051
R
0052
S
0053
T
0054
U
0055
V
0056
W
0057
X
0058
Y
0059
Z
005A
[
005B
¥
00A5
]
005D
^
005E
_
005F
6_
96
`
0060
a
0061
b
0062
c
0063
d
0064
e
0065
f
0066
g
0067
h
0068
i
0069
j
006A
k
006B
l
006C
m
006D
n
006E
o
006F
7_
112
p
0070
q
0071
r
0072
s
0073
t
0074
u
0075
v
0076
w
0077
x
0078
y
0079
z
007A
{
007B
|
007C
}
007D

203E
DEL
007F

  Letter  Number  Punctuation  Symbol  Other  Lead byte  Undefined


Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Chset-ctrl3&oldid=896188862"

Category: 
Character set table templates
 



This page was last edited on 8 May 2019, at 21:26 (UTC).

Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Mobile view



Wikimedia Foundation
Powered by MediaWiki