定义字符替换方案,在 indicator/*.yml 中通过 char-replace 字段引用。
char-replace
# 规则名: # 原始字符: 替换字符串 规则名: "0": "替换字符" "1": "替换字符" # ...
double-struck: "0": "𝟘" "1": "𝟙" "2": "𝟚" "3": "𝟛" "4": "𝟜" "5": "𝟝" "6": "𝟞" "7": "𝟟" "8": "𝟠" "9": "𝟡" ".": "·"
在指示器配置中引用:
default: char-replace: double-struck # 引用上面定义的规则名
效果示例:123.4 → 𝟙𝟚𝟛·𝟜
123.4
𝟙𝟚𝟛·𝟜
替换目标字符(YAML 值)支持嵌入 PAPI 占位符,例如 "0": "%server_name%" 将在加载时自动替换为服务器名称。
"0": "%server_name%"
There was an error while loading. Please reload this page.