diff --git a/.ci/tags.html b/.ci/tags.html index 12fcec9aae..f0b97f41ca 100644 --- a/.ci/tags.html +++ b/.ci/tags.html @@ -81,7 +81,22 @@ +
+
+
+ Copy tags from a family +
+
+ + + + + +
+
+
@@ -154,6 +169,8 @@ newTag: "", newFamily: '', newWeight: '', + fromFamily: "", + toFamily: "", CurrentCategory: "/Expressive/Calm", Categories: new Set(), Families: [], @@ -317,6 +334,19 @@ this.history.push(`+ ${newFamily.Family},${newFamily["Group/Tag"]},${newFamily.Weight}`); }, + copyFamily() { + this.isEdited = true; + let fromTags = this.Families.filter(family => family.Family === this.fromFamily); + if (fromTags.length === 0) { + alert(`No tags found for Family "${this.toFamily}"`); + return; + } + fromTags.forEach((tag) => { + let newTag = {Family: this.toFamily, "Group/Tag": tag["Group/Tag"], Weight: tag.Weight}; + this.Families.push(newTag); + this.history.push(`+ ${newTag.Family},${newTag["Group/Tag"]},${newTag.Weight}`); + }) + }, AddPlaceHolderTags() { this.isEdited = true; const existingTags = this.sortedFamilies diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index f35d48971f..c4c032f61c 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -12,7 +12,7 @@ jobs: strategy: matrix: python-version: ['3.10'] - os: [windows-latest, macos-13, ubuntu-latest] + os: [windows-latest, macos-13, ubuntu-22.04] steps: - name: Cancel previous uses: styfle/cancel-workflow-action@0.11.0 @@ -68,7 +68,7 @@ jobs: diffenator: name: Diffenate fonts - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 continue-on-error: true steps: