1
0
Fork 0
mirror of synced 2024-05-17 11:03:33 +12:00

fi, fj, fl, Fl, Tl ligatures (#795)

This commit is contained in:
Nikita Prokopov 2019-09-09 17:02:38 +03:00
parent 458fbf6cd4
commit 6a9cfb866f
3 changed files with 827 additions and 200 deletions

View file

@ -51,7 +51,7 @@ All notable changes to this project will be documented in this file.
- Added Coq logical and ` /\ ` and logical or ` \/ ` ligatures, U+2227 `∧` and U+2228 `` [#191] [#488] [#738] [#810]
- Added SystemVerilog `|->` `|=>` and `<-|` `<=|` for symmetry [#695]
- Added Forces `||-` ligature and U+22A2..U+22AF `⊢ ⊣ ⊥ ⊦ ⊧ ⊨ ⊩ ⊪ ⊫ ⊬ ⊭ ⊮ ⊯` [#709]
- Tuned `fl` and `fi` pairs [#795]
- Added `fi` `fj` `fl` `Fl` `Tl` ligatures [#795]
- Disabled ligatures after regexp lookahead/lookbehinds `(?<=<` `(?<=>` `(?<==>` `(?<=|` `(?<==` `(?=:=` `(?=!=` `(?==` `(?===` `(?==>` `(?=>` `(?=>>` `(?=<<` `(?=/=` `(?!!` `(?!!.` `(?!=` `(?!==` `(?<!!` `(?<!!.` `(?<!=` `(?<!==` `(?<!--` [#578]
- Removed `..=` [#757]
- Alternatives (stylistic sets):

File diff suppressed because one or more lines are too long

View file

@ -195,7 +195,7 @@
:let [name (:glyphname g)]
:when (str/ends-with? name ".liga")
:when (not= "0" (:export g))
:let [[_ liga] (re-matches #"([a-z_]+)\.liga" name)]]
:let [[_ liga] (re-matches #"([A-Za-z_]+)\.liga" name)]]
(str/split liga #"_")) ;; [ ["dash" "greater" "greater"] ... ]
calt (->> ligas (remove manual?) (sort compare-ligas) (map liga->rule) (str/join "\n\n"))
font' (replace-calt font calt)]