Skip to content

Commit

Permalink
Support ASCII digits in ayah numbers as well
Browse files Browse the repository at this point in the history
  • Loading branch information
khaledhosny committed Jan 3, 2024
1 parent 02181b7 commit ee10625
Show file tree
Hide file tree
Showing 27 changed files with 1,921 additions and 35 deletions.
Binary file modified docs/assets/fonts/Raqq.woff2
Binary file not shown.
Binary file modified fonts/Raqq.ttf
Binary file not shown.
Binary file modified fonts/Raqq.woff2
Binary file not shown.
80 changes: 45 additions & 35 deletions sources/Raqq.glyphspackage/fontinfo.plist
Original file line number Diff line number Diff line change
Expand Up @@ -232,67 +232,77 @@ lookup ccmp_vertical_vowels {
} ccmp_vertical_vowels;
@numbers = [$[category == \"Number\" && subCategory == \"Decimal Digit\"]];
@one = [one one-ar];
@two = [two two-ar];
@three = [three three-ar];
@four = [four four-ar];
@five = [five five-ar];
@six = [six six-ar];
@seven = [seven seven-ar];
@eight = [eight eight-ar];
@nine = [nine nine-ar];
@zero = [zero zero-ar];
lookup ayah_05 {
sub endofayah-ar by endofayah-ar.05;
sub endofayah-ar by endofayah-ar.05;
} ayah_05;
lookup ayah_10 {
sub endofayah-ar by endofayah-ar.10;
sub endofayah-ar by endofayah-ar.10;
} ayah_10;
lookup ayah_numbers_10s {
sub one-ar zero-ar by ayah.010;
sub two-ar zero-ar by ayah.020;
sub three-ar zero-ar by ayah.030;
sub four-ar zero-ar by ayah.040;
sub five-ar zero-ar by ayah.050;
sub six-ar zero-ar by ayah.060;
sub seven-ar zero-ar by ayah.070;
sub eight-ar zero-ar by ayah.080;
sub nine-ar zero-ar by ayah.090;
sub @one @zero by ayah.010;
sub @two @zero by ayah.020;
sub @three @zero by ayah.030;
sub @four @zero by ayah.040;
sub @five @zero by ayah.050;
sub @six @zero by ayah.060;
sub @seven @zero by ayah.070;
sub @eight @zero by ayah.080;
sub @nine @zero by ayah.090;
} ayah_numbers_10s;
lookup ayah_numbers_100s {
sub one-ar zero-ar zero-ar by ayah.100;
sub one-ar one-ar zero-ar by ayah.110;
sub one-ar two-ar zero-ar by ayah.120;
sub one-ar three-ar zero-ar by ayah.130;
sub one-ar four-ar zero-ar by ayah.140;
sub one-ar five-ar zero-ar by ayah.150;
sub one-ar six-ar zero-ar by ayah.160;
sub one-ar seven-ar zero-ar by ayah.170;
sub one-ar eight-ar zero-ar by ayah.180;
sub one-ar nine-ar zero-ar by ayah.190;
sub two-ar zero-ar zero-ar by ayah.200;
sub two-ar one-ar zero-ar by ayah.210;
sub two-ar two-ar zero-ar by ayah.220;
sub two-ar three-ar zero-ar by ayah.230;
sub two-ar four-ar zero-ar by ayah.240;
sub two-ar five-ar zero-ar by ayah.250;
sub two-ar six-ar zero-ar by ayah.260;
sub two-ar seven-ar zero-ar by ayah.270;
sub two-ar eight-ar zero-ar by ayah.280;
sub @one @zero @zero by ayah.100;
sub @one @one @zero by ayah.110;
sub @one @two @zero by ayah.120;
sub @one @three @zero by ayah.130;
sub @one @four @zero by ayah.140;
sub @one @five @zero by ayah.150;
sub @one @six @zero by ayah.160;
sub @one @seven @zero by ayah.170;
sub @one @eight @zero by ayah.180;
sub @one @nine @zero by ayah.190;
sub @two @zero @zero by ayah.200;
sub @two @one @zero by ayah.210;
sub @two @two @zero by ayah.220;
sub @two @three @zero by ayah.230;
sub @two @four @zero by ayah.240;
sub @two @five @zero by ayah.250;
sub @two @six @zero by ayah.260;
sub @two @seven @zero by ayah.270;
sub @two @eight @zero by ayah.280;
} ayah_numbers_100s;
lookup ccmp_ayah_numbers {
sub endofayah-ar' lookup ayah_05
@numbers
@numbers
five-ar
@five
;
ignore
sub endofayah-ar' @numbers five-ar @numbers;
sub endofayah-ar' @numbers @five @numbers;
sub endofayah-ar' lookup ayah_05
@numbers
five-ar
@five
;
ignore
sub endofayah-ar' five-ar @numbers;
sub endofayah-ar' @five @numbers;
sub endofayah-ar' lookup ayah_05
five-ar
@five
;
sub endofayah-ar
Expand Down
1 change: 1 addition & 0 deletions sources/Raqq.glyphspackage/glyphs/eight-ar.glyph
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ layerId = m01;
width = 0;
}
);
metricWidth = "=0";
unicode = 1640;
}
11 changes: 11 additions & 0 deletions sources/Raqq.glyphspackage/glyphs/eight.glyph
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
glyphname = eight;
layers = (
{
layerId = m01;
width = 0;
}
);
metricWidth = "=0";
unicode = 56;
}
1 change: 1 addition & 0 deletions sources/Raqq.glyphspackage/glyphs/five-ar.glyph
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ layerId = m01;
width = 0;
}
);
metricWidth = "=0";
unicode = 1637;
}
11 changes: 11 additions & 0 deletions sources/Raqq.glyphspackage/glyphs/five.glyph
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
glyphname = five;
layers = (
{
layerId = m01;
width = 0;
}
);
metricWidth = "=0";
unicode = 53;
}
1 change: 1 addition & 0 deletions sources/Raqq.glyphspackage/glyphs/four-ar.glyph
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ layerId = m01;
width = 0;
}
);
metricWidth = "=0";
unicode = 1636;
}
11 changes: 11 additions & 0 deletions sources/Raqq.glyphspackage/glyphs/four.glyph
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
glyphname = four;
layers = (
{
layerId = m01;
width = 0;
}
);
metricWidth = "=0";
unicode = 52;
}
1 change: 1 addition & 0 deletions sources/Raqq.glyphspackage/glyphs/nine-ar.glyph
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ layerId = m01;
width = 0;
}
);
metricWidth = "=0";
unicode = 1641;
}
11 changes: 11 additions & 0 deletions sources/Raqq.glyphspackage/glyphs/nine.glyph
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
glyphname = nine;
layers = (
{
layerId = m01;
width = 0;
}
);
metricWidth = "=0";
unicode = 57;
}
1 change: 1 addition & 0 deletions sources/Raqq.glyphspackage/glyphs/one-ar.glyph
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ layerId = m01;
width = 0;
}
);
metricWidth = "=0";
unicode = 1633;
}
11 changes: 11 additions & 0 deletions sources/Raqq.glyphspackage/glyphs/one.glyph
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
glyphname = one;
layers = (
{
layerId = m01;
width = 0;
}
);
metricWidth = "=0";
unicode = 49;
}
1 change: 1 addition & 0 deletions sources/Raqq.glyphspackage/glyphs/seven-ar.glyph
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ layerId = m01;
width = 0;
}
);
metricWidth = "=0";
unicode = 1639;
}
11 changes: 11 additions & 0 deletions sources/Raqq.glyphspackage/glyphs/seven.glyph
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
glyphname = seven;
layers = (
{
layerId = m01;
width = 0;
}
);
metricWidth = "=0";
unicode = 55;
}
1 change: 1 addition & 0 deletions sources/Raqq.glyphspackage/glyphs/six-ar.glyph
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ layerId = m01;
width = 0;
}
);
metricWidth = "=0";
unicode = 1638;
}
11 changes: 11 additions & 0 deletions sources/Raqq.glyphspackage/glyphs/six.glyph
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
glyphname = six;
layers = (
{
layerId = m01;
width = 0;
}
);
metricWidth = "=0";
unicode = 54;
}
1 change: 1 addition & 0 deletions sources/Raqq.glyphspackage/glyphs/three-ar.glyph
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ layerId = m01;
width = 0;
}
);
metricWidth = "=0";
unicode = 1635;
}
11 changes: 11 additions & 0 deletions sources/Raqq.glyphspackage/glyphs/three.glyph
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
glyphname = three;
layers = (
{
layerId = m01;
width = 0;
}
);
metricWidth = "=0";
unicode = 51;
}
1 change: 1 addition & 0 deletions sources/Raqq.glyphspackage/glyphs/two-ar.glyph
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ layerId = m01;
width = 0;
}
);
metricWidth = "=0";
unicode = 1634;
}
11 changes: 11 additions & 0 deletions sources/Raqq.glyphspackage/glyphs/two.glyph
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
glyphname = two;
layers = (
{
layerId = m01;
width = 0;
}
);
metricWidth = "=0";
unicode = 50;
}
1 change: 1 addition & 0 deletions sources/Raqq.glyphspackage/glyphs/zero-ar.glyph
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ layerId = m01;
width = 0;
}
);
metricWidth = "=0";
unicode = 1632;
}
11 changes: 11 additions & 0 deletions sources/Raqq.glyphspackage/glyphs/zero.glyph
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
glyphname = zero;
layers = (
{
layerId = m01;
width = 0;
}
);
metricWidth = "=0";
unicode = 48;
}
10 changes: 10 additions & 0 deletions sources/Raqq.glyphspackage/order.plist
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,16 @@ space,
"fehDotless_alef-ar",
"seen_alefMaksura-ar",
"seen_alefMaksura-ar.fina",
zero,
one,
two,
three,
four,
five,
six,
seven,
eight,
nine,
"zero-ar",
"one-ar",
"two-ar",
Expand Down
Loading

0 comments on commit ee10625

Please sign in to comment.