mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-09 12:17:13 +00:00
refactor(meta): label categories with one hieroglyph
A deploy job name repeats the category path on every row of the matrix. One Egyptian hieroglyph costs four UTF-8 bytes where the two Chinese characters it replaces cost six. Unicode names each sign by its Gardiner code, so the opaque value stays identifiable without a comment per entry. A label has to stay one codepoint: a sign written with a variation selector costs seven bytes and is worse than what it replaced. tests/integration/meta/categories/test_glyph.py enforces that. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
c64c0628ae
commit
fbd4b3a18d
12 files changed
+83
-70
No files matched your search
@@ -35,7 +35,7 @@ class TestCoreMessages(unittest.TestCase):
|
||||
roles:
|
||||
web:
|
||||
title: Web
|
||||
hanzi: 网络
|
||||
glyph: 𓏴
|
||||
app:
|
||||
title: Applications
|
||||
description: Apps for users
|
||||
|
||||
@@ -28,9 +28,7 @@ class TestRoleDisplayName(unittest.TestCase):
|
||||
),
|
||||
self.codec.encode(long_heading),
|
||||
)
|
||||
self.assertEqual(
|
||||
"系统控制告警·compose", self.codec.encode("sys-ctl-alm-compose")
|
||||
)
|
||||
self.assertEqual("𓉐𓌀𓌉·compose", self.codec.encode("sys-ctl-alm-compose"))
|
||||
|
||||
def test_the_id_section_drops_what_the_categories_already_say(self):
|
||||
self.assertEqual("nextcloud", self.codec.id_fragment(APP))
|
||||
|
||||
Reference in new issue
Block a user