Skip to content

Commit

Permalink
Fix link to arabic table
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurenzV committed Jun 17, 2024
1 parent 64b9e9a commit 05978c9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
2 changes: 1 addition & 1 deletion scripts/gen-arabic-table.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

for dep in DEPENDENCIES:
if not os.path.exists(dep):
urllib.request.urlretrieve("https://unicode.org/Public/16.0.0/ucd/" + dep, dep)
urllib.request.urlretrieve("https://unicode.org/Public/15.0.0/ucd/" + dep, dep)

files = [open(x, encoding="utf-8") for x in DEPENDENCIES]

Expand Down
14 changes: 3 additions & 11 deletions src/hb/ot_shaper_arabic_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,6 @@ pub const JOINING_TABLE: &[hb_arabic_joining_type_t] = &[
/* 10D00 */ L,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,
/* 10D20 */ D,D,R,D,

/* Arabic Extended-C */

/* 10EC0 */ R,D,D,

/* Sogdian */

/* 10F20 */ D,D,D,R,D,D,D,D,D,D,D,D,D,D,D,D,
Expand Down Expand Up @@ -139,10 +135,9 @@ const JOINING_OFFSET_0XA840: usize = 998;
const JOINING_OFFSET_0X10AC0: usize = 1050;
const JOINING_OFFSET_0X10B80: usize = 1098;
const JOINING_OFFSET_0X10D00: usize = 1146;
const JOINING_OFFSET_0X10EC2: usize = 1182;
const JOINING_OFFSET_0X10F30: usize = 1185;
const JOINING_OFFSET_0X110BD: usize = 1341;
const JOINING_OFFSET_0X1E900: usize = 1358;
const JOINING_OFFSET_0X10F30: usize = 1182;
const JOINING_OFFSET_0X110BD: usize = 1338;
const JOINING_OFFSET_0X1E900: usize = 1355;

pub fn joining_type(u: char) -> hb_arabic_joining_type_t {
let u = u as u32;
Expand Down Expand Up @@ -177,9 +172,6 @@ pub fn joining_type(u: char) -> hb_arabic_joining_type_t {
if (0x10D00..=0x10D23).contains(&u) {
return JOINING_TABLE[u as usize - 0x10D00 + JOINING_OFFSET_0X10D00];
}
if (0x10EC2..=0x10EC4).contains(&u) {
return JOINING_TABLE[u as usize - 0x10EC2 + JOINING_OFFSET_0X10EC2];
}
if (0x10F30..=0x10FCB).contains(&u) {
return JOINING_TABLE[u as usize - 0x10F30 + JOINING_OFFSET_0X10F30];
}
Expand Down

0 comments on commit 05978c9

Please sign in to comment.