Skip to content

Commit 2972b8f

Browse files
committed
Patches broken Brahmi characters with normal characters.
1 parent 2ed340d commit 2972b8f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

bittensor_cli/src/commands/subnets/subnets.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,18 @@ def _create_table(subnets_, block_number_):
323323

324324
for subnet in subnets_:
325325
netuid = subnet.netuid
326+
# The symbols for 123 and 124 are visually identical:
327+
# 123: 𑀀
328+
# 124: 𑀁
329+
# and the symbol for 125 is basically a colon
330+
# 125: 𑀂
331+
# however, because they're in Brahmi, which very few fonts support, they don't render properly
332+
# This patches them.
333+
if netuid == 125:
334+
subnet.symbol = ":"
335+
elif netuid in (124, 123):
336+
subnet.symbol = "˙"
337+
326338
symbol = f"{subnet.symbol}\u200e"
327339

328340
if netuid == 0:

0 commit comments

Comments
 (0)