summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRasmus Andersson <rasmus@notion.se>2020-04-06 20:04:21 +0300
committerRasmus Andersson <rasmus@notion.se>2020-04-06 20:04:21 +0300
commit68b2a66211d13de34a7dfde3d8411bf0b3ed0d1a (patch)
tree26e9c8f48da3b996fedaffbfd51a19f790fff7f0
parent8f4c3534f7cec5f3e625f425e7db973babe1f92c (diff)
downloadinter-68b2a66211d13de34a7dfde3d8411bf0b3ed0d1a.tar.xz
Adds ss04 "Disambiguation without slashed zero" as an alternative to ss02 aimed at applications that do not offer cvXX feature acceess, like Microsoft Word. Closes #252
-rwxr-xr-xsrc/Inter.glyphs4
-rw-r--r--src/InterDisplay.glyphs4
-rw-r--r--src/features/_disambiguation.fea53
-rw-r--r--src/features/ss02-disambiguation.fea47
-rw-r--r--src/features/ss04-disambiguation.fea2
5 files changed, 64 insertions, 46 deletions
diff --git a/src/Inter.glyphs b/src/Inter.glyphs
index 46aadf3f6..af6573f93 100755
--- a/src/Inter.glyphs
+++ b/src/Inter.glyphs
@@ -2189,6 +2189,10 @@ code = "include(features/ss03-r-curve.fea);";
name = ss03;
},
{
+code = "include(features/ss04-disambiguation.fea);\012";
+name = ss04;
+},
+{
code = "include(features/cv01-one.fea);";
name = cv01;
},
diff --git a/src/InterDisplay.glyphs b/src/InterDisplay.glyphs
index 15a48e4e6..b22a22795 100644
--- a/src/InterDisplay.glyphs
+++ b/src/InterDisplay.glyphs
@@ -2193,6 +2193,10 @@ code = "include(features/ss03-r-curve.fea);";
name = ss03;
},
{
+code = "include(features/ss04-disambiguation.fea);\012";
+name = ss04;
+},
+{
code = "include(features/cv01-one.fea);";
name = cv01;
},
diff --git a/src/features/_disambiguation.fea b/src/features/_disambiguation.fea
new file mode 100644
index 000000000..19fce6951
--- /dev/null
+++ b/src/features/_disambiguation.fea
@@ -0,0 +1,53 @@
+# Included by other files. Not used directly.
+
+# l
+sub l by l.ss02;
+sub lslash by lslash.ss02;
+sub lbar by lbar.ss02;
+sub lmidtilde by lmidtilde.ss02;
+sub lbelt by lbelt.ss02;
+sub ldot by ldot.ss02;
+sub lacute by lacute.ss02;
+sub lcommaaccent by lcommaaccent.ss02;
+sub lcaron by lcaron.ss02;
+sub ldotbelow by ldotbelow.ss02;
+sub ldotbelowmacron by ldotbelowmacron.ss02;
+sub llinebelow by llinebelow.ss02;
+sub lcircumflexbelow by lcircumflexbelow.ss02;
+
+# germandbls
+sub germandbls by germandbls.1;
+
+# I
+sub I by I.1;
+sub Idieresis by Idieresis.1;
+sub Idieresisacute by Idieresisacute.1;
+sub Istroke by Istroke.1;
+sub Itildebelow by Itildebelow.1;
+sub Igrave by Igrave.1;
+sub Iacute by Iacute.1;
+sub Icircumflex by Icircumflex.1;
+sub Itilde by Itilde.1;
+sub Imacron by Imacron.1;
+sub Ibreve by Ibreve.1;
+sub Iogonek by Iogonek.1;
+sub Idotaccent by Idotaccent.1;
+sub Icaron by Icaron.1;
+sub Idblgrave by Idblgrave.1;
+sub Iinvertedbreve by Iinvertedbreve.1;
+sub Ihookabove by Ihookabove.1;
+sub Idotbelow by Idotbelow.1;
+sub uni1F38 by uni1F38.1;
+sub uni1F39 by uni1F39.1;
+sub uni1F3A by uni1F3A.1;
+sub uni1F3B by uni1F3B.1;
+sub uni1F3C by uni1F3C.1;
+sub uni1F3D by uni1F3D.1;
+sub uni1F3E by uni1F3E.1;
+sub uni1F3F by uni1F3F.1;
+sub uni1FD8 by uni1FD8.1;
+sub uni1FD9 by uni1FD9.1;
+sub uni1FDA by uni1FDA.1;
+sub uni1FDB by uni1FDB.1;
+sub afii10055 by afii10055.1;
+sub afii10056 by afii10056.1;
diff --git a/src/features/ss02-disambiguation.fea b/src/features/ss02-disambiguation.fea
index 86a554807..1f5e8abbe 100644
--- a/src/features/ss02-disambiguation.fea
+++ b/src/features/ss02-disambiguation.fea
@@ -1,51 +1,6 @@
featureNames { name "Disambiguation"; };
-sub l by l.ss02;
-sub lslash by lslash.ss02;
-sub lbar by lbar.ss02;
-sub lmidtilde by lmidtilde.ss02;
-sub lbelt by lbelt.ss02;
-sub ldot by ldot.ss02;
-sub lacute by lacute.ss02;
-sub lcommaaccent by lcommaaccent.ss02;
-sub lcaron by lcaron.ss02;
-sub ldotbelow by ldotbelow.ss02;
-sub ldotbelowmacron by ldotbelowmacron.ss02;
-sub llinebelow by llinebelow.ss02;
-sub lcircumflexbelow by lcircumflexbelow.ss02;
+include(features/_disambiguation.fea);
sub zero by zero.slash;
sub zero.tf by zero.tf.slash;
sub zero.squared by zero.slash.squared;
sub zero.circled by zero.slash.circled;
-sub germandbls by germandbls.1;
-sub I by I.1;
-sub Idieresis by Idieresis.1;
-sub Idieresisacute by Idieresisacute.1;
-sub Istroke by Istroke.1;
-sub Itildebelow by Itildebelow.1;
-sub Igrave by Igrave.1;
-sub Iacute by Iacute.1;
-sub Icircumflex by Icircumflex.1;
-sub Itilde by Itilde.1;
-sub Imacron by Imacron.1;
-sub Ibreve by Ibreve.1;
-sub Iogonek by Iogonek.1;
-sub Idotaccent by Idotaccent.1;
-sub Icaron by Icaron.1;
-sub Idblgrave by Idblgrave.1;
-sub Iinvertedbreve by Iinvertedbreve.1;
-sub Ihookabove by Ihookabove.1;
-sub Idotbelow by Idotbelow.1;
-sub uni1F38 by uni1F38.1;
-sub uni1F39 by uni1F39.1;
-sub uni1F3A by uni1F3A.1;
-sub uni1F3B by uni1F3B.1;
-sub uni1F3C by uni1F3C.1;
-sub uni1F3D by uni1F3D.1;
-sub uni1F3E by uni1F3E.1;
-sub uni1F3F by uni1F3F.1;
-sub uni1FD8 by uni1FD8.1;
-sub uni1FD9 by uni1FD9.1;
-sub uni1FDA by uni1FDA.1;
-sub uni1FDB by uni1FDB.1;
-sub afii10055 by afii10055.1;
-sub afii10056 by afii10056.1;
diff --git a/src/features/ss04-disambiguation.fea b/src/features/ss04-disambiguation.fea
new file mode 100644
index 000000000..577dd7791
--- /dev/null
+++ b/src/features/ss04-disambiguation.fea
@@ -0,0 +1,2 @@
+featureNames { name "Disambiguation without slashed zero"; };
+include(features/_disambiguation.fea);