-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Treat U+30A0 & U+30FB in Katakana Block as CJK (#16796)
- Loading branch information
Showing
5 changed files
with
56 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#### Treat U+30A0 & U+30FB in Katakana Block as CJK (#16796 by @tats-u) | ||
|
||
Prettier doesn't treat U+30A0 & U+30FB as Japanese. U+30FB is commonly used in Japanese to represent the delimitation of first and last names of non-Japanese people or “and”. The following “C言語・C++・Go・Rust” means “C language & C++ & Go & Rust” in Japanese. | ||
|
||
<!-- prettier-ignore --> | ||
```md | ||
<!-- Input (--prose-wrap=never) --> | ||
|
||
C言 | ||
語 | ||
・ | ||
C++ | ||
・ | ||
Go | ||
・ | ||
Rust | ||
|
||
<!-- Prettier stable --> | ||
C言語・ C++ ・ Go ・ Rust | ||
|
||
<!-- Prettier main --> | ||
C言語・C++・Go・Rust | ||
``` | ||
|
||
U+30A0 can be used as the replacement of the `-` in non-Japanese names (e.g. “Saint-Saëns” (Charles Camille Saint-Saëns) can be represented as “サン゠サーンス” in Japanese), but substituted by ASCII hyphen (U+002D) or U+FF1D (full width hyphen) in many cases (e.g. “サン=サーンス” or “サン=サーンス”). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -241,6 +241,7 @@ | |
"Rubocop", | ||
"ruleset", | ||
"rulesets", | ||
"Saëns", | ||
"sandhose", | ||
"Sapegin", | ||
"sbdchd", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,3 +57,13 @@ English | |
|
||
[ウ | ||
ィキペディア]: https://ja.wikipedia.org/ | ||
|
||
|
||
C言 | ||
語 | ||
・ | ||
C++ | ||
・ | ||
Go | ||
・ | ||
Rust |