Unicode 标准定义了世界书写系统的代码点和字母名称。Ubuntu (Linux) 上是否有命令行程序可以根据字母的(模糊)名称打印字母?
以下是我对此类程序的期望(名为pucc
:打印 Unicode 字符——根据其名称或正则表达式打印 Unicode 字符):
$> pucc sigma
ͻ = 037B (greek small reversed lunate *sigma* symbol)
ͼ = 037C (greek small dotted lunate *sigma* symbol)
ͽ = 037D (greek small reversed dotted lunate *sigma* symbol)
Σ = 03A3 (greek capital letter *sigma*)
ς = 03C2 (greek small letter final *sigma*)
σ = 03C3 (greek small letter *sigma*)
...
$> pucc root
؆ = 0606 (arabic-indic cube *root*)
؇ = 0607 (arabic-indic fourth *root*)
√ = 221A (square root)
∛ = 221B (cube *root*)
∜ = 221C (fourth *root*)
...
我理解这只是对 Unicode 联盟维护的Unicode 文本文件curl/grep
的 ping ,并且输出取决于系统上 Unicode 字体的可用性,但我只是想知道这是否已经可以作为命令使用或者可以使用过滤魔法来实现。