1
0
Fork 0
mirror of synced 2024-06-20 19:40:39 +12:00

Removed /** **/ and disabled ligatures for /*/ */* sequences (closes #219, closes #238)

This commit is contained in:
Nikita Prokopov 2016-08-30 16:31:28 +07:00
parent 8cecc3c1f2
commit 9704650782
3 changed files with 95 additions and 73 deletions

File diff suppressed because one or more lines are too long

View file

@ -135,6 +135,7 @@ Other monospaced fonts with ligatures:
#### 1.201 (August 30, 2016)
- Removed `[]` (#92) `{-` `-}` (#248)
- Removed `/**` `**/` and disabled ligatures for `/*/` `*/*` sequences (#219 #238)
#### 1.200 (July 18, 2016)

View file

@ -30,6 +30,27 @@
; ["asterisk" "asterisk"]
; ["asterisk" "asterisk" "asterisk"]])
(def ignores
{ ["slash" "asterisk"]
(str
" ignore sub slash' asterisk slash;\n"
" ignore sub asterisk slash' asterisk;\n")
["asterisk" "slash"]
(str
" ignore sub slash asterisk' slash;\n"
" ignore sub asterisk' slash asterisk;\n")
["asterisk" "asterisk"]
(str
" ignore sub slash asterisk' asterisk;\n"
" ignore sub asterisk' asterisk slash;\n")
["asterisk" "asterisk" "asterisk"]
(str
" ignore sub slash asterisk' asterisk asterisk;\n"
" ignore sub asterisk' asterisk asterisk slash;\n")
})
(defn liga->rule
"[f f i] => { [CR CR i] f_f_i.liga
@ -42,6 +63,7 @@
(str " lookup 1_2 {\n"
" ignore sub 1 1' 2;\n"
" ignore sub 1' 2 2;\n"
(get ignores liga)
" sub CR 2' by 1_2.liga;\n"
" sub 1' 2 by CR;\n"
" } 1_2;")
@ -51,6 +73,7 @@
(str " lookup 1_2_3 {\n"
" ignore sub 1 1' 2 3;\n"
" ignore sub 1' 2 3 3;\n"
(get ignores liga)
" sub CR CR 3' by 1_2_3.liga;\n"
" sub CR 2' 3 by CR;\n"
" sub 1' 2 3 by CR;\n"
@ -61,6 +84,7 @@
(str " lookup 1_2_3_4 {\n"
" ignore sub 1 1' 2 3 4;\n"
" ignore sub 1' 2 3 4 4;\n"
(get ignores liga)
" sub CR CR CR 4' by 1_2_3_4.liga;\n"
" sub CR CR 3' 4 by CR;\n"
" sub CR 2' 3 4 by CR;\n"