Adds contextual alternates

This commit is contained in:
Rasmus Andersson 2017-08-25 02:36:02 -07:00
parent 0945b58f8f
commit a0b30f7bac
151 changed files with 2315 additions and 1455 deletions

View file

@ -233,7 +233,6 @@
, ["dzeabkhasiancyrillic", 1249, "CYRILLIC SMALL LETTER ABKHASIAN DZE"]
, ["izhitsacyrillic", 1141, "CYRILLIC SMALL LETTER IZHITSA"]
, ["dz", 675, "LATIN SMALL LETTER DZ DIGRAPH", "<derived>"]
, ["Dzcaron", 453, "LATIN CAPITAL LETTER D WITH SMALL LETTER Z WITH CARON"]
, ["dzcaron", 454, "LATIN SMALL LETTER DZ WITH CARON"]
, ["germandbls", 223, "LATIN SMALL LETTER SHARP S"]
, ["dotlessi", 305, "LATIN SMALL LETTER DOTLESS I"]
@ -275,6 +274,13 @@
, ["seven", 55, "DIGIT SEVEN", "#e2f4ea"]
, ["eight", 56, "DIGIT EIGHT", "#e2f4ea"]
, ["nine", 57, "DIGIT NINE", "#e2f4ea"]
, ["zero.tnum", null, null, "#ebf6c8"]
, ["one.tnum", null, null, "#ebf6c8"]
, ["two.tnum", null, null, "#ebf6c8"]
, ["three.tnum", null, null, "#ebf6c8"]
, ["five.tnum", null, null, "#ebf6c8"]
, ["six.tnum", null, null, "#ebf6c8"]
, ["seven.tnum", null, null, "#ebf6c8"]
, ["ampersand", 38, "AMPERSAND", "#efefef"]
, ["exclam", 33, "EXCLAMATION MARK", "#efefef"]
, ["exclamdown", 161, "INVERTED EXCLAMATION MARK", "#efefef"]
@ -2173,7 +2179,6 @@
, ["uniE002", 57346, "[private use E002]"]
, ["uniE003", 57347, "[private use E003]"]
, [".notdef", null, null, "#dddddd"]
, ["DZcaron", 453, "LATIN CAPITAL LETTER D WITH SMALL LETTER Z WITH CARON"]
, ["Eth", 208, "LATIN CAPITAL LETTER ETH", "<derived>"]
, ["hbar", 295, "LATIN SMALL LETTER H WITH STROKE", "<derived>"]
, ["Tbar", 358, "LATIN CAPITAL LETTER T WITH STROKE", "<derived>"]

View file

@ -109,9 +109,18 @@ f0 f1 f2 f3 f4 f5 f6 f7 f8 f9 fA fB fC fD fE fF fa fb fc fd fe ff
`)
samples.set('Contextual alternates', `
(m) (M) (6)
[m] [M] [6]
{m} {M} {6}
(m) (M) (6) [m] [M] [6] {m} {M} {6}
m@n M@N
3x5 x5 8x 3×5 ×5 8×
3-5 -5 8- 3+5 +5 8+
3÷5 ÷5 8÷
3=5 =5 8= 3≠5 ≠5 8≠
B-O BO BO B—O M•N
b-o bo bo b—o m•n
X→Y X←Y X↑Y X↓Y
x→y x←y x↑y x↓y
A → B ← C ↑ D ↓ E
a → b ← c ↑ d ↓ e
`)
// From http://justanotherfoundry.com/generator
@ -1089,7 +1098,7 @@ document.head.appendChild(fontCSS)
<!-- <label><input type="checkbox" class="featopt" name="feat:pnum"> Enable pnum</label> -->
<label><input type="checkbox" class="featopt" name="feat:tnum"> Enable tnum *</label>
<!-- <label><input type="checkbox" class="featopt" name="feat:lnum"> Enable lnum</label> -->
<label><input type="checkbox" class="featopt" name="feat:kern"> Enable kern</label>
<!-- <label><input type="checkbox" class="featopt" name="feat:kern"> Enable kern</label> -->
<label><input type="checkbox" class="featopt" name="feat:case"> Enable case</label>
<label><input type="checkbox" class="featopt" name="feat:calt=0"> <em>Disable</em> calt *</label>
<label><input type="checkbox" class="featopt" name="feat:zero"> Enable (slashed) zero *</label>