Add notes for Client Implementors.
This commit is contained in:
parent
05a4eae605
commit
a777b13c01
1 changed files with 36 additions and 4 deletions
40
doc/unicode
40
doc/unicode
|
@ -1,10 +1,14 @@
|
||||||
Unicode changes:
|
Unicode changes:
|
||||||
|
|
||||||
1. toggle UTF-8
|
1. login utf-8
|
||||||
|
|
||||||
Add utf8 as a toggle option and store in the nat_flags field in
|
Added a login options. The first option is utf-8 and it sets
|
||||||
nation structure. In the future, this should be a login option
|
the PF_UTF8 player's flags. Default is off.
|
||||||
rather than a country toggle once the login options are added.
|
Syntax
|
||||||
|
options utf-8 -- turns on the utf-8
|
||||||
|
options utf-8=1 -- turns on the utf-8
|
||||||
|
options utf-8=0 -- turns off the utf-8
|
||||||
|
options -- lists current options and their values
|
||||||
|
|
||||||
2. flash and wall
|
2. flash and wall
|
||||||
|
|
||||||
|
@ -100,3 +104,31 @@ Notes:
|
||||||
signed and other default to unsigned char.
|
signed and other default to unsigned char.
|
||||||
|
|
||||||
3. Unicode functions are prefixed with u.
|
3. Unicode functions are prefixed with u.
|
||||||
|
|
||||||
|
Notes for Client Implementors:
|
||||||
|
|
||||||
|
ASCII Mode
|
||||||
|
|
||||||
|
1. If you do not specify a login options, it the server will start the
|
||||||
|
session in ASCII mode.
|
||||||
|
|
||||||
|
2. This is close to the previous mode (<4.2.21) but there is more filtering
|
||||||
|
to remove non-ASCII characters and ASCII control characters.
|
||||||
|
|
||||||
|
3. If another client in UTF8 mode tries to send to this client then the
|
||||||
|
server will replace the non-ASCII characters with question marks.
|
||||||
|
|
||||||
|
4. The standout works the same as before where the 8th bit indicates that
|
||||||
|
the character should be highlighted.
|
||||||
|
|
||||||
|
UTF8 Mode
|
||||||
|
|
||||||
|
1. The login options must be specified before the play command is sent.
|
||||||
|
The syntax is 'options utf-8'.
|
||||||
|
|
||||||
|
2. The server will filter ASCII control characters but will pass any characters
|
||||||
|
with the 8 bit set.
|
||||||
|
|
||||||
|
3. For the standout mode, the server inserts an ASCII SO character at the
|
||||||
|
beginning of standout sequence and the server sends an ASCII SI character at
|
||||||
|
the end of the standout sequence.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue