Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit323e8df

Browse files
authored
Merge pull request#23 from nicoburns/unknown-Zzzz
Map `Script::Unknown` to `Zzzz` short name
2 parentsa5f747b +ff7b824 commit323e8df

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

‎scripts/unicode.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ def generate_script_impl(f):
297297
#[inline]
298298
pub(crate) fn inner_short_name(self) -> &'static str {
299299
match self {
300-
Script::Unknown => "",
300+
Script::Unknown => "Zzzz",
301301
Script::Common => "Zyyy",
302302
Script::Inherited => "Zinh",
303303
""")
@@ -312,6 +312,7 @@ def generate_script_impl(f):
312312
#[inline]
313313
pub(crate) fn inner_from_short_name(input: &str) -> Option<Self> {
314314
match input {
315+
"Zzzz" => Some(Script::Unknown),
315316
"Zyyy" => Some(Script::Common),
316317
"Zinh" => Some(Script::Inherited),
317318
""")

‎src/tables.rs‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1598,7 +1598,7 @@ impl Script {
15981598
#[inline]
15991599
pub(crate)fninner_short_name(self) ->&'staticstr{
16001600
matchself{
1601-
Script::Unknown =>"",
1601+
Script::Unknown =>"Zzzz",
16021602
Script::Common =>"Zyyy",
16031603
Script::Inherited =>"Zinh",
16041604
Script::Adlam =>"Adlm",
@@ -1775,6 +1775,7 @@ impl Script {
17751775
#[inline]
17761776
pub(crate)fninner_from_short_name(input:&str) ->Option<Self>{
17771777
match input{
1778+
"Zzzz" =>Some(Script::Unknown),
17781779
"Zyyy" =>Some(Script::Common),
17791780
"Zinh" =>Some(Script::Inherited),
17801781
"Adlm" =>Some(Script::Adlam),

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp