Fix bar's ranks

This commit is contained in:
be5invis 2020-10-27 22:41:51 -07:00
parent e719992f2c
commit f0262ba5f8
6 changed files with 18 additions and 17 deletions

View file

@ -4,9 +4,9 @@
<tbody>
<%_ for(const group of ligation.sets) { _%>
<%_ const tagSet = new Set(group.ligSets); _%>
<%_ const featureSettings = group.tag === 'calt' ? `style="font-feature-settings:'${group.tag}' ${group.switch||'on'}"` : `style="font-feature-settings: 'calt' off, '${group.tag}' ${group.switch||'on'}"` _%>
<%_ const featureSettings = group.tag === 'calt' ? `style="font-feature-settings:'${group.tag}' ${group.rank}"` : `style="font-feature-settings: 'calt' off, '${group.tag}' ${group.rank}"` _%>
<tr class="note">
<td><%= group.tagName || group.tag %><%= group.switch ? ' ' + group.switch : ''%></td>
<td><%= group.tagName || group.tag %><%= group.rank === 1 ? '' : group.rank === 0 ? ' off' : ' ' + rank %></td>
<td><%= group.desc %></td>
</tr>
<tr>