Skip to content

Commit 99d6e46

Browse files
committed
Fix composition table
1 parent b7e343a commit 99d6e46

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), c3 in sorted(canon_comp.items()):
391-
if c1 >= 0x10000 and c2 >= 0x10000:
391+
if c1 >= 0x10000 or c2 >= 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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy