From 2972b8f48222dcccb44178ab010380e09cab1286 Mon Sep 17 00:00:00 2001 From: Benjamin Himes Date: Wed, 16 Jul 2025 18:21:17 +0200 Subject: [PATCH 1/2] Patches broken Brahmi characters with normal characters. --- bittensor_cli/src/commands/subnets/subnets.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/bittensor_cli/src/commands/subnets/subnets.py b/bittensor_cli/src/commands/subnets/subnets.py index e94402953..2af10612d 100644 --- a/bittensor_cli/src/commands/subnets/subnets.py +++ b/bittensor_cli/src/commands/subnets/subnets.py @@ -323,6 +323,18 @@ def _create_table(subnets_, block_number_): for subnet in subnets_: netuid = subnet.netuid + # The symbols for 123 and 124 are visually identical: + # 123: 𑀀 + # 124: 𑀁 + # and the symbol for 125 is basically a colon + # 125: 𑀂 + # however, because they're in Brahmi, which very few fonts support, they don't render properly + # This patches them. + if netuid == 125: + subnet.symbol = ":" + elif netuid in (124, 123): + subnet.symbol = "˙" + symbol = f"{subnet.symbol}\u200e" if netuid == 0: From f51e5135a35f6640a95a51ebdac4664f2bc566dc Mon Sep 17 00:00:00 2001 From: Benjamin Himes Date: Wed, 16 Jul 2025 18:33:01 +0200 Subject: [PATCH 2/2] Use subnet.symbol rather than netuid --- bittensor_cli/src/commands/subnets/subnets.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/bittensor_cli/src/commands/subnets/subnets.py b/bittensor_cli/src/commands/subnets/subnets.py index 2af10612d..62a20b63b 100644 --- a/bittensor_cli/src/commands/subnets/subnets.py +++ b/bittensor_cli/src/commands/subnets/subnets.py @@ -323,17 +323,16 @@ def _create_table(subnets_, block_number_): for subnet in subnets_: netuid = subnet.netuid - # The symbols for 123 and 124 are visually identical: + # The default symbols for 123 and 124 are visually identical: # 123: 𑀀 # 124: 𑀁 # and the symbol for 125 is basically a colon # 125: 𑀂 # however, because they're in Brahmi, which very few fonts support, they don't render properly # This patches them. - if netuid == 125: - subnet.symbol = ":" - elif netuid in (124, 123): - subnet.symbol = "˙" + replacements = {69632: "˙", 69633: "˙", 69634: ":"} + if (sso := ord(subnet.symbol)) in replacements.keys(): + subnet.symbol = replacements[sso] symbol = f"{subnet.symbol}\u200e"