ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.

User:桂月August/Sandbox: Difference between revisions

From ModEnc
Jump to navigation Jump to search
 
(18 intermediate revisions by the same user not shown)
Line 212: Line 212:


== Codes ==
== Codes ==
{|style="text-align:center;"
{|style="text-align:center;background:#f8f9fa;"
!style="background:#ff0000;width:10%;"| FSC
|+'''CSF Format'''
|style="background:#bfbfbf;width:10%;"|Ver
!style="background:#ff0000bf;width:10%;"| FSC
|style="background:#bf00ff;width:10%;"|NumL
|style="background:#bfbfbfbf;width:10%;"|Ver
|style="background:#7f00ff;width:10%;"|NumS
|style="background:#bf00ffbf;width:10%;"|NumL
|style="background:#9f9f9f;width:10%;"|null
|style="background:#7f00ffbf;width:10%;"|NumS
|style="background:#7f7f7f;width:10%;"|Lang
|style="background:#9f9f9fbf;width:10%;"|null
|style="background:#6f6f6fbf;width:10%;"|Lang
|-
|-
!style="background:#ff7f00;width:10%;"| LBL
!style="background:#ff7f00bf;width:10%;"| LBL
|style="background:#0000ff;width:10%;"|NumP
|style="background:#0000ffbf;width:10%;"|NumP
|style="background:#ff00ff;width:10%;"|LenL
|style="background:#ff00ffbf;width:10%;"|LenL
|style="background:#bfbf00;width:10%;"|L
|style="background:#e5e500bf;width:10%;" colspan="2"|L
|-
|-
!style="background:#007fff;width:10%;"| RTS
!style="background:#007fffbf;width:10%;"| RTS
|style="background:#00ffff;width:10%;"|LenS
|style="background:#00efefbf;width:10%;"|LenS
|style="background:#00ef00;width:10%;"|S
|style="background:#00ef00bf;width:10%;" colspan="2"|S
|-
|-
!style="background:#00bfff;width:10%;"|WRTS
!style="background:#00bfffbf;width:10%;"|WRTS
|style="background:#00ffff;width:10%;"|LenS
|style="background:#00efefbf;width:10%;"|LenS
|style="background:#00ef00;width:10%;"|S
|style="background:#00ef00bf;width:10%;" colspan="2"|S
|style="background:#3f00ff;width:10%;"|LenX
|style="background:#5500ffbf;width:10%;"|LenX
|style="background:#7fbf00;width:10%;"|X
|style="background:#99cc00bf;width:10%;" colspan="2"|X
|}
|}


Line 240: Line 241:
|
|
<div>
<div>
  <span style="background:#ff0000bf;">\x20\x46\x53\x43</span><span style="background:#bfbfbfbf;">\x03\x00\x00\x00</span><span style="background:#bf00ffbf;">\x5b\x0f\x00\x00</span><span style="background:#7f00ffbf;">\x5b\x0f\x00\x00</span><span style="background:#9f9f9fbf;">\x00\x00\x00\x00</span><span style="background:#7f7f7fbf;">\x00\x00\x00\x00</span>
  <span style="background:#ff0000bf;">\x20\x46\x53\x43</span><span style="background:#bfbfbfbf;">\x03\x00\x00\x00</span><span style="background:#bf00ffbf;">\x5b\x0f\x00\x00</span><span style="background:#7f00ffbf;">\x5b\x0f\x00\x00</span><span style="background:#9f9f9fbf;">\x00\x00\x00\x00</span><span style="background:#6f6f6fbf;">\x00\x00\x00\x00</span>
  <span style="background:#ff7f00bf;">\x20\x4c\x42\x4c</span><span style="background:#0000ffbf;">\x01\x00\x00\x00</span><span style="background:#ff00ffbf;">\x0c\x00\x00\x00</span><span style="background:#bfbf00bf;">\x4d\x53\x47\x3a\x50\x69\x6e\x67\x49\x6e\x66\x6f</span>
  <span style="background:#ff7f00bf;">\x20\x4c\x42\x4c</span><span style="background:#0000ffbf;">\x01\x00\x00\x00</span><span style="background:#ff00ffbf;">\x0c\x00\x00\x00</span><span style="background:#e5e500bf;">\x4d\x53\x47\x3a\x50\x69\x6e\x67\x49\x6e\x66\x6f</span>
  <span style="background:#007fffbf;">\x20\x52\x54\x53</span><span style="background:#00ffffbf;">\x0b\x00\x00\x00</span><span style="background:#00ef00bf;">\xaf\xff\x96\xff\x91\xff\x98\xff\xdf\xff\xc2\xff\xdf\xff\xda\xff\x9b\xff\x92\xff\x8c\xff</span>
  <span style="background:#007fffbf;">\x20\x52\x54\x53</span><span style="background:#00ffffbf;">\x0b\x00\x00\x00</span><span style="background:#00ef00bf;">\xaf\xff\x96\xff\x91\xff\x98\xff\xdf\xff\xc2\xff\xdf\xff\xda\xff\x9b\xff\x92\xff\x8c\xff</span>
  <span style="background:#ff7f00bf;">\x20\x4c\x42\x4c</span><span style="background:#0000ffbf;">\x01\x00\x00\x00</span><span style="background:#ff00ffbf;">\x0c\x00\x00\x00</span><span style="background:#bfbf00bf;">\x4d\x53\x47\x3a\x43\x72\x69\x74\x69\x63\x61\x6c</span>
  <span style="background:#ff7f00bf;">\x20\x4c\x42\x4c</span><span style="background:#0000ffbf;">\x01\x00\x00\x00</span><span style="background:#ff00ffbf;">\x0c\x00\x00\x00</span><span style="background:#e5e500bf;">\x4d\x53\x47\x3a\x43\x72\x69\x74\x69\x63\x61\x6c</span>
  <span style="background:#007fffbf;">\x20\x52\x54\x53</span><span style="background:#00ffffbf;">\x04\x00\x00\x00</span><span style="background:#00ef00bf;">\x0b\x7e\x82\xab\xac\x9d\x04\xae</span>
  <span style="background:#007fffbf;">\x20\x52\x54\x53</span><span style="background:#00ffffbf;">\x04\x00\x00\x00</span><span style="background:#00ef00bf;">\x0b\x7e\x82\xab\xac\x9d\x04\xae</span>
  …
  …
  <span style="background:#ff7f00bf;">\x20\x4c\x42\x4c</span><span style="background:#0000ffbf;">\x01\x00\x00\x00</span><span style="background:#ff00ffbf;">\x0b\x00\x00\x00</span><span style="background:#bfbf00bf;">\x56\x4f\x58\x3a\x63\x65\x76\x61\x30\x30\x31</span>
  <span style="background:#ff7f00bf;">\x20\x4c\x42\x4c</span><span style="background:#0000ffbf;">\x01\x00\x00\x00</span><span style="background:#ff00ffbf;">\x0b\x00\x00\x00</span><span style="background:#e5e500bf;">\x56\x4f\x58\x3a\x63\x65\x76\x61\x30\x30\x31</span>
  <span style="background:#00bfffbf;">\x57\x52\x54\x53</span><span style="background:#00ffffbf;">\x0c\x00\x00\x00</span><span style="background:#00ef00bf;">\x99\x74\xb5\xab\xe5\x00\x59\xb0\xb4\x92\xcf\xad\xc7\x97\xc6\xa0\x2e\xac\xfb\xa3\x6a\xb1\xfd\xcf</span><span style="background:#3f00ffbf;">\x08\x00\x00\x00</span><span style="background:#7fbf00bf;">\x63\x65\x76\x61\x30\x30\x31\x63</span>
  <span style="background:#00bfffbf;">\x57\x52\x54\x53</span><span style="background:#00ffffbf;">\x0c\x00\x00\x00</span><span style="background:#00ef00bf;">\x99\x74\xb5\xab\xe5\x00\x59\xb0\xb4\x92\xcf\xad\xc7\x97\xc6\xa0\x2e\xac\xfb\xa3\x6a\xb1\xfd\xcf</span><span style="background:#5500ffbf;">\x08\x00\x00\x00</span><span style="background:#99cc00bf;">\x63\x65\x76\x61\x30\x30\x31\x63</span>
  …
  …
  <span style="background:#ff7f00bf;">\x20\x4c\x42\x4c</span><span style="background:#0000ffbf;">\x01\x00\x00\x00</span><span style="background:#ff00ffbf;">\x0e\x00\x00\x00</span><span style="background:#bfbf00bf;">\x4e\x61\x6d\x65\x3a\x53\x6f\x76\x46\x69\x6e\x61\x6c\x65</span>
  <span style="background:#ff7f00bf;">\x20\x4c\x42\x4c</span><span style="background:#0000ffbf;">\x01\x00\x00\x00</span><span style="background:#ff00ffbf;">\x0e\x00\x00\x00</span><span style="background:#e5e500bf;">\x4e\x61\x6d\x65\x3a\x53\x6f\x76\x46\x69\x6e\x61\x6c\x65</span>
  <span style="background:#007fffbf;">\x20\x52\x54\x53</span><span style="background:#00ffffbf;">\x04\x00\x00\x00</span><span style="background:#00ef00bf;">\x30\x7d\xab\x7f\x37\x81\xc5\xa8</span>
  <span style="background:#007fffbf;">\x20\x52\x54\x53</span><span style="background:#00ffffbf;">\x04\x00\x00\x00</span><span style="background:#00ef00bf;">\x30\x7d\xab\x7f\x37\x81\xc5\xa8</span>
</div>
</div>
Line 258: Line 259:
|
|
<div>
<div>
  <span style="background:#ff0000bf;"> FSC</span>[3][3931][3931][0][0]
  <span style="background:#ff0000bf;"> FSC</span><span style="background:#bfbfbfbf;">[3]</span><span style="background:#bf00ffbf;">[3931]</span><span style="background:#7f00ffbf;">[3931]</span><span style="background:#9f9f9fbf;">[0]</span><span style="background:#6f6f6fbf;">[0]</span>
  <span style="background:#ff7f00bf;"> LBL</span>[1][12]<span style="background:#bfbf00bf;">MSG:PingInfo</span>
  <span style="background:#ff7f00bf;"> LBL</span><span style="background:#0000ffbf;">[1]</span><span style="background:#ff00ffbf;">[12]</span><span style="background:#e5e500bf;">MSG:PingInfo</span>
  <span style="background:#007fffbf;"> RTS</span>[11]<span style="background:#00ef00bf;">Ping = %dms</span>
  <span style="background:#007fffbf;"> RTS</span><span style="background:#00ffffbf;">[11]</span><span style="background:#00ef00bf;">Ping = %dms</span>
  <span style="background:#ff7f00bf;"> LBL</span>[1][12]<span style="background:#bfbf00bf;">MSG:Critical</span>
  <span style="background:#ff7f00bf;"> LBL</span><span style="background:#0000ffbf;">[1]</span><span style="background:#ff00ffbf;">[12]</span><span style="background:#e5e500bf;">MSG:Critical</span>
  <span style="background:#007fffbf;"> RTS</span>[4]<span style="background:#00ef00bf;">致命打击</span>
  <span style="background:#007fffbf;"> RTS</span><span style="background:#00ffffbf;">[4]</span><span style="background:#00ef00bf;">致命打击</span>
  …
  …
  <span style="background:#ff7f00bf;"> LBL</span>[1][11]<span style="background:#bfbf00bf;">VOX:ceva001</span>
  <span style="background:#ff7f00bf;"> LBL</span><span style="background:#0000ffbf;">[1]</span><span style="background:#ff00ffbf;">[11]</span><span style="background:#e5e500bf;">VOX:ceva001</span>
  <span style="background:#00bfffbf;">WRTS</span>[12]<span style="background:#00ef00bf;">警告:侦测到核弹发射井。</span>[8]<span style="background:#7fbf00bf;">ceva001c</span>
  <span style="background:#00bfffbf;">WRTS</span><span style="background:#00ffffbf;">[12]</span><span style="background:#00ef00bf;">警告:侦测到核弹发射井。</span><span style="background:#5500ffbf;">[8]</span><span style="background:#99cc00bf;">ceva001c</span>
  …
  …
  <span style="background:#ff7f00bf;"> LBL</span>[1][14]<span style="background:#bfbf00bf;">Name:SovFinale</span>
  <span style="background:#ff7f00bf;"> LBL</span><span style="background:#0000ffbf;">[1]</span><span style="background:#ff00ffbf;">[14]</span><span style="background:#e5e500bf;">Name:SovFinale</span>
  <span style="background:#007fffbf;"> RTS</span>[4]<span style="background:#00ef00bf;">苏联终场</span>
  <span style="background:#007fffbf;"> RTS</span><span style="background:#00ffffbf;">[4]</span><span style="background:#00ef00bf;">苏联终场</span>
</div>
</div>
|}
|}


<pre>
<pre class="prettyprint lang-python">
csf_fp=r"stringtable09.csf"
csf_fp=r"stringtable09.csf"
with open(csf_fp, "rb") as f:
with open(csf_fp, "rb") as f:
Line 348: Line 349:
--></div>
--></div>
</div>
</div>
|}
== Fonts ==
<span style="font-family:Consolas,monospace,Courier,serif;">ABCDEFGHIJKLMNOPQRSTUVWXYZ<br/>abcdefghijklmnopqrstuvwxyz<br/>0123456789<br/>中华人民共和国 臺灣省繁體漢字</span>
{| class="wikitable sortable" style="font-size:1.2em;"
! SeqNum
! Font
! Display
|-
| 0
| Default
| ABCDEFGHIJKLMNOPQRSTUVWXYZ<br/>abcdefghijklmnopqrstuvwxyz<br/>0123456789<br/>中华人民共和国 臺灣省繁體漢字
|-
| 1
| Consolas
| <span style="font-family:Consolas;">ABCDEFGHIJKLMNOPQRSTUVWXYZ<br/>abcdefghijklmnopqrstuvwxyz<br/>0123456789<br/>中华人民共和国 臺灣省繁體漢字</span>
|-
| 2
| monospace
| <span style="font-family:monospace;">ABCDEFGHIJKLMNOPQRSTUVWXYZ<br/>abcdefghijklmnopqrstuvwxyz<br/>0123456789<br/>中华人民共和国 臺灣省繁體漢字</span>
|-
| 3
| Courier
| <span style="font-family:Courier;">ABCDEFGHIJKLMNOPQRSTUVWXYZ<br/>abcdefghijklmnopqrstuvwxyz<br/>0123456789<br/>中华人民共和国 臺灣省繁體漢字</span>
|-
| 4
| sans-serif
| <span style="font-family:sans-serif;">ABCDEFGHIJKLMNOPQRSTUVWXYZ<br/>abcdefghijklmnopqrstuvwxyz<br/>0123456789<br/>中华人民共和国 臺灣省繁體漢字</span>
|-
| 5
| serif
| <span style="font-family:serif;">ABCDEFGHIJKLMNOPQRSTUVWXYZ<br/>abcdefghijklmnopqrstuvwxyz<br/>0123456789<br/>中华人民共和国 臺灣省繁體漢字</span>
|-
| 6
| Microsoft YaHei
| <span style="font-family:Microsoft YaHei;">ABCDEFGHIJKLMNOPQRSTUVWXYZ<br/>abcdefghijklmnopqrstuvwxyz<br/>0123456789<br/>中华人民共和国 臺灣省繁體漢字</span>
|-
|}
|}

Latest revision as of 07:50, 15 February 2024

Misc

ISO 639-1 标准

ISO 639-1 兼容性较好,推荐使用
语言及其变体名称 语言代码
汉语 zh
简体汉语 zh-Hans
繁体汉语 zh-Hant
汉语(中国大陆) zh-CN
汉语(台湾地区) zh-TW
汉语(香港特区) zh-HK
英语 en
壮语 za
藏语 bo
蒙古语 mn
维吾尔语 ug
语言及其变体名称 语言代码
粤语 -
朝鲜语(韩国语) ko
日本语 ja
泰语 th
阿拉伯语 ar
印地语 hi
印度尼西亚语 id
俄罗斯语 ru
西班牙语 es
葡萄牙语 pt
法语 fr
语言及其变体名称 语言代码
德语 de
意大利语 it
波兰语 pl
乌克兰语 uk
土耳其语 tr
塞尔维亚语 sr
丹麦语 da
希腊语 el
梵语 sa
梵语悉昙文 sa-Sidd
古希腊语 -
拉丁语 la

ISO 639-3 标准

ISO 639-3 对部分字体不兼容,请慎用
语言及其变体名称 语言代码
汉语 zho
简体汉语 zho-Hans
繁体汉语 zho-Hant
汉语(中国大陆) zho-CN
汉语(台湾地区) zho-TW
汉语(香港特区) zho-HK
英语 eng
壮语 zha
藏语 bod
蒙古语 mon
维吾尔语 uig
语言及其变体名称 语言代码
粤语 yue
朝鲜语(韩国语) kor
日本语 jpn
泰语 tha
阿拉伯语 ara
印地语 hin
印度尼西亚语 ind
俄罗斯语 rus
西班牙语 spa
葡萄牙语 por
法语 fra
语言及其变体名称 语言代码
德语 deu
意大利语 ita
波兰语 pol
乌克兰语 ukr
土耳其语 tur
塞尔维亚语 srp
丹麦语 dan
希腊语 ell
梵语 san
梵语悉昙文 san-Sidd
古希腊语 grc
拉丁语 lat

Navbox

Codes

CSF Format
 FSC Ver NumL NumS null Lang
 LBL NumP LenL L
 RTS LenS S
WRTS LenS S LenX X
1
2
3
4
5

2874
2875

7862
7863
\x20\x46\x53\x43\x03\x00\x00\x00\x5b\x0f\x00\x00\x5b\x0f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00
\x20\x4c\x42\x4c\x01\x00\x00\x00\x0c\x00\x00\x00\x4d\x53\x47\x3a\x50\x69\x6e\x67\x49\x6e\x66\x6f
\x20\x52\x54\x53\x0b\x00\x00\x00\xaf\xff\x96\xff\x91\xff\x98\xff\xdf\xff\xc2\xff\xdf\xff\xda\xff\x9b\xff\x92\xff\x8c\xff
\x20\x4c\x42\x4c\x01\x00\x00\x00\x0c\x00\x00\x00\x4d\x53\x47\x3a\x43\x72\x69\x74\x69\x63\x61\x6c
\x20\x52\x54\x53\x04\x00\x00\x00\x0b\x7e\x82\xab\xac\x9d\x04\xae\x20\x4c\x42\x4c\x01\x00\x00\x00\x0b\x00\x00\x00\x56\x4f\x58\x3a\x63\x65\x76\x61\x30\x30\x31
\x57\x52\x54\x53\x0c\x00\x00\x00\x99\x74\xb5\xab\xe5\x00\x59\xb0\xb4\x92\xcf\xad\xc7\x97\xc6\xa0\x2e\xac\xfb\xa3\x6a\xb1\xfd\xcf\x08\x00\x00\x00\x63\x65\x76\x61\x30\x30\x31\x63\x20\x4c\x42\x4c\x01\x00\x00\x00\x0e\x00\x00\x00\x4e\x61\x6d\x65\x3a\x53\x6f\x76\x46\x69\x6e\x61\x6c\x65
\x20\x52\x54\x53\x04\x00\x00\x00\x30\x7d\xab\x7f\x37\x81\xc5\xa8
1
2
3
4
5

2874
2875

7862
7863
 FSC[3][3931][3931][0][0]
 LBL[1][12]MSG:PingInfo
 RTS[11]Ping = %dms
 LBL[1][12]MSG:Critical
 RTS[4]致命打击 LBL[1][11]VOX:ceva001
WRTS[12]警告:侦测到核弹发射井。[8]ceva001c LBL[1][14]Name:SovFinale
 RTS[4]苏联终场
csf_fp=r"stringtable09.csf"
with open(csf_fp, "rb") as f:
    csf=f.read()
print(csf[csf.find(bytes(" LBL", "ascii")):csf.find(bytes(" RTS", "ascii"))])
c=b"\x0b\x7e\x82\xab\xac\x9d\x04\xae"
s=bytes([0xff-i for i in c]).decode("utf-16-le")
print(s)

Background Color

#007fff#0000ff#3f00ff#7f00ff#bf00ff#df00ff#ef00ff#ff00ff
#ff3f00#ff7f00#ffbf00#bfbf00#7fbf00#7fdf00#7fef00#7fff00
#1f1f1f#3f3f3f#5f5f5f#7f7f7f#9f9f9f#bfbfbf#dfdfdf#ffffff
#007fff #0000ff #3f00ff #7f00ff #bf00ff #df00ff #ef00ff #ff00ff
#ff3f00 #ff7f00 #ffbf00 #bfbf00 #7fbf00 #7fdf00 #7fef00 #7fff00
#1f1f1f #3f3f3f #5f5f5f #7f7f7f #9f9f9f #bfbfbf #dfdfdf #ffffff

Tabs

1
いち
2
3
さん

|}

Fonts

ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz
0123456789
中华人民共和国 臺灣省繁體漢字

SeqNum Font Display
0 Default ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz
0123456789
中华人民共和国 臺灣省繁體漢字
1 Consolas ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz
0123456789
中华人民共和国 臺灣省繁體漢字
2 monospace ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz
0123456789
中华人民共和国 臺灣省繁體漢字
3 Courier ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz
0123456789
中华人民共和国 臺灣省繁體漢字
4 sans-serif ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz
0123456789
中华人民共和国 臺灣省繁體漢字
5 serif ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz
0123456789
中华人民共和国 臺灣省繁體漢字
6 Microsoft YaHei ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz
0123456789
中华人民共和国 臺灣省繁體漢字