summaryrefslogtreecommitdiff
path: root/src/features/liga.fea
diff options
context:
space:
mode:
authorRasmus Andersson <rasmus@notion.se>2020-01-14 21:13:01 +0300
committerRasmus Andersson <rasmus@notion.se>2020-01-14 21:13:01 +0300
commit06b166889e335a2454c0767734a05b27f6403098 (patch)
treec6e776b5384f99bddd6de85931e103c85590609b /src/features/liga.fea
parent04a0f708bf9b61e5d14298a1b14e8d08b7e3fff6 (diff)
downloadinter-06b166889e335a2454c0767734a05b27f6403098.tar.xz
Moves arrows and NxN substitutions from liga to calt. Closes #222
Diffstat (limited to 'src/features/liga.fea')
-rw-r--r--src/features/liga.fea78
1 files changed, 0 insertions, 78 deletions
diff --git a/src/features/liga.fea b/src/features/liga.fea
deleted file mode 100644
index a387f16e7..000000000
--- a/src/features/liga.fea
+++ /dev/null
@@ -1,78 +0,0 @@
-# Standard ligatures
-# https://docs.microsoft.com/en-us/typography/opentype/spec/features_ko#liga
-
-@DASH = [
- hyphen
- endash
- emdash
-];
-@DASH_CASE = [
- hyphen.case
- endash.case
- emdash.case
-];
-@DASH_ANY = [ @DASH @DASH_CASE ];
-
-# --->
-sub @DASH @DASH @DASH greater by rightLongArrow2;
-sub @DASH_ANY @DASH_ANY @DASH_ANY greater.case by rightLongArrow2.case;
-# -->
-sub @DASH @DASH greater by rightLongArrow;
-sub @DASH_ANY @DASH_ANY greater.case by rightLongArrow.case;
-# [endash emdash]-> (legacy)
-sub [endash emdash] greater by rightLongArrow;
-sub [endash emdash endash.case emdash.case] greater.case by rightLongArrow.case;
-# ->
-sub hyphen greater by rightArrow;
-sub [hyphen hyphen.case] greater.case by rightArrow.case;
-# <---
-sub less @DASH @DASH @DASH by leftLongArrow2;
-sub less.case @DASH_ANY @DASH_ANY @DASH_ANY by leftLongArrow2.case;
-# <--
-sub less @DASH @DASH by leftLongArrow;
-sub less.case @DASH_ANY @DASH_ANY by leftLongArrow.case;
-# <-[endash emdash] (legacy)
-sub less [endash emdash] by leftLongArrow;
-sub less.case [endash emdash endash.case emdash.case] by leftLongArrow.case;
-# ignore e.g. "<-3" ("less than negative")
-ignore sub less' hyphen' @Numeral;
-ignore sub less.case' [hyphen hyphen.case]' @Numeral;
-# <-
-sub less' hyphen' by leftArrow;
-sub less.case' [hyphen hyphen.case]' by leftArrow.case;
-# <->
-sub less rightArrow by leftRightArrow; # <,->
-sub [less less.case] rightArrow.case by leftRightArrow.case;
-sub leftArrow greater by leftRightArrow; # <-,-
-sub leftArrow.case [greater greater.case] by leftRightArrow.case;
-# <-->
-sub less rightLongArrow by leftRightLongArrow; # <,-->
-sub [less less.case] rightLongArrow.case by leftRightLongArrow.case;
-sub leftLongArrow greater by leftRightLongArrow; # <--,>
-sub leftLongArrow.case [greater greater.case] by leftRightLongArrow.case;
-# <=>
-sub less equal greater by leftRightDoubleArrow;
-sub less.case [equal equal.case] [greater greater.case] by leftRightDoubleArrow.case;
-sub less equal equal greater by leftRightLongDoubleArrow;
-sub less.case [equal equal.case] [equal equal.case] [greater greater.case] by leftRightLongDoubleArrow.case;
-# =>
-sub equal equal greater by rightLongDoubleArrow;
-sub [equal equal.case] [equal equal.case] greater.case by rightLongDoubleArrow.case;
-sub equal greater by rightDoubleArrow;
-sub [equal equal.case] greater.case by rightDoubleArrow.case;
-# <==
-sub less equal equal by leftLongDoubleArrow;
-sub less.case [equal equal.case] [equal equal.case] by leftLongDoubleArrow.case;
-# Note: We do NOT (sub less equal by leftDoubleArrow) as that would
-# interfere with "<=" (less than or equal to)
-
-# x surrounded by numbers, e.g. 3x4 -> 3×4
-sub @Numeral x' @Numeral by multiply; # 3x9
-sub @Numeral @Whitespace x' @Numeral by multiply; # 3 x9
-sub @Numeral @Whitespace @Whitespace x' @Numeral by multiply; # 3 x9
-sub @Numeral x' @Whitespace @Numeral by multiply; # 3x 9
-sub @Numeral @Whitespace x' @Whitespace @Numeral by multiply; # 3 x 9
-sub @Numeral @Whitespace @Whitespace x' @Whitespace @Numeral by multiply; # 3 x 9
-sub @Numeral x' @Whitespace @Whitespace @Numeral by multiply; # 3x 9
-sub @Numeral @Whitespace x' @Whitespace @Whitespace @Numeral by multiply; # 3 x 9
-sub @Numeral @Whitespace @Whitespace x' @Whitespace @Whitespace @Numeral by multiply; # 3 x 9