Skip to content

Commit

Permalink
Fix emoji conversion table
Browse files Browse the repository at this point in the history
  • Loading branch information
ikanago committed Sep 23, 2023
1 parent f896ed7 commit 0641ce7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/convert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ mod tests {
.chars()
.collect::<Vec<_>>();
assert_eq!(
"8‌🇽‌🇾‌🇲‌🇾‌🇧‌🇲‌🇼‌3‌🇳‌🇯‌🇴‌🇻‌🇭‌🇵‌🇴‌🇷‌🇰‌🇱‌🇭‌🇫‌🇺‌🇿‌9‌🇮‌🇸‌🇿‌🇹‌🇩‌6‌7‌5‌🇯‌🇦‌🇨‌🇫‌🇹‌🇧‌🇺‌🇪‌🇬‌🇳‌🇸‌🇬‌🇶‌🇵‌🇪‌🇦‌🇽‌🇮‌🇰‌🇨‌🇷‌0‌🇶‌4‌🇱‌1‌🇼‌2‌🇩‌🇻",
"8‌🇼‌🇾‌🇲‌🇽‌🇧‌🇱‌🇻‌3‌🇳‌🇮‌🇳‌🇺‌🇭‌🇴‌🇴‌🇶‌🇰‌🇰‌🇬‌🇫‌🇺‌🇾‌9‌🇭‌🇸‌🇿‌🇸‌🇨‌6‌7‌5‌🇯‌🇿‌🇧‌🇪‌🇹‌🇦‌🇹‌🇩‌🇫‌🇲‌🇷‌🇬‌🇵‌🇵‌🇪‌🇦‌🇽‌🇮‌🇯‌🇨‌🇷‌0‌🇶‌4‌🇱‌1‌🇼‌2‌🇩‌🇻",
converter.convert(&source, Font::Emoji)
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/font.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ impl Font {
Font::Blackboard => "𝕒𝕓𝕔𝕕𝕖𝕗𝕘𝕙𝕚𝕛𝕜𝕝𝕞𝕟𝕠𝕡𝕢𝕣𝕤𝕥𝕦𝕧𝕨𝕩𝕪𝕫𝔸𝔹ℂ𝔻𝔼𝔽𝔾ℍ𝕀𝕁𝕂𝕃𝕄ℕ𝕆ℙℚℝ𝕊𝕋𝕌𝕍𝕎𝕏𝕐ℤ𝟘𝟙𝟚𝟛𝟜𝟝𝟞𝟟𝟠𝟡",
// Following characters are regional indicator symbols, which is rendered as roman characters surrounded by square in some Websites.
// In some editor such as VSCode, A pair 'Z' and 'A' is rendered as South Africa flag.
Font::Emoji => "🇦🇧🇨🇩🇪🇫🇬🇭🇮🇯🇰🇱🇲🇳🇴🇵🇶🇷🇸🇹🇺🇻🇼🇽🇾🇦🇧🇨🇩🇪🇫🇬🇭🇮🇯🇰🇱🇲🇳🇴🇵🇶🇷🇸🇹🇺🇻🇼🇽🇾🇿🇿0123456789",
Font::Emoji => "🇦🇧🇨🇩🇪🇫🇬🇭🇮🇯🇰🇱🇲🇳🇴🇵🇶🇷🇸🇹🇺🇻🇼🇽🇾🇿🇦🇧🇨🇩🇪🇫🇬🇭🇮🇯🇰🇱🇲🇳🇴🇵🇶🇷🇸🇹🇺🇻🇼🇽🇾🇿0123456789",
};

source.chars().zip(target.chars()).collect()
Expand Down

0 comments on commit 0641ce7

Please sign in to comment.