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

Commit99d6e46

Browse files
committed
Fix composition table
1 parentb7e343a commit99d6e46

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

‎scripts/unicode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ def gen_composition_table(canon_comp, out):
388388
out.write("pub(crate) fn composition_table_astral(c1: char, c2: char) -> Option<char> {\n")
389389
out.write(" match (c1, c2) {\n")
390390
for (c1,c2),c3insorted(canon_comp.items()):
391-
ifc1>=0x10000andc2>=0x10000:
391+
ifc1>=0x10000orc2>=0x10000:
392392
out.write(" ('\\u{%s}', '\\u{%s}') => Some('\\u{%s}'),\n"% (hexify(c1),hexify(c2),hexify(c3)))
393393

394394
out.write(" _ => None,\n")

‎src/tables.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1217,6 +1217,8 @@ pub(crate) const COMPOSITION_TABLE_KV: &[(u32, char)] = &[
12171217
];
12181218
pub(crate) fn composition_table_astral(c1: char, c2: char) -> Option<char> {
12191219
match (c1, c2) {
1220+
('\u{105D2}', '\u{0307}') => Some('\u{105C9}'),
1221+
('\u{105DA}', '\u{0307}') => Some('\u{105E4}'),
12201222
('\u{11099}', '\u{110BA}') => Some('\u{1109A}'),
12211223
('\u{1109B}', '\u{110BA}') => Some('\u{1109C}'),
12221224
('\u{110A5}', '\u{110BA}') => Some('\u{110AB}'),

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp