summaryrefslogtreecommitdiff
path: root/embolden
diff options
context:
space:
mode:
Diffstat (limited to 'embolden')
-rwxr-xr-xembolden129
1 files changed, 127 insertions, 2 deletions
diff --git a/embolden b/embolden
index 4b783e5..75df549 100755
--- a/embolden
+++ b/embolden
@@ -43,6 +43,16 @@
# and ASCII has similar codes which nobody ever uses.
declare -A bold=(
+ [0]=$'\xf0\x9d\x9f\x8e'
+ [1]=$'\xf0\x9d\x9f\x8f'
+ [2]=$'\xf0\x9d\x9f\x90'
+ [3]=$'\xf0\x9d\x9f\x91'
+ [4]=$'\xf0\x9d\x9f\x92'
+ [5]=$'\xf0\x9d\x9f\x93'
+ [6]=$'\xf0\x9d\x9f\x94'
+ [7]=$'\xf0\x9d\x9f\x95'
+ [8]=$'\xf0\x9d\x9f\x96'
+ [9]=$'\xf0\x9d\x9f\x97'
[A]=$'\xf0\x9d\x90\x80'
[B]=$'\xf0\x9d\x90\x81'
[C]=$'\xf0\x9d\x90\x82'
@@ -144,6 +154,68 @@ declare -A bold=(
[Ļ‡]=$'\xf0\x9d\x9b\x98'
[Ļˆ]=$'\xf0\x9d\x9b\x99'
[Ļ‰]=$'\xf0\x9d\x9b\x9a'
+# [š“Ģ±]=
+# [šµĢ±]=
+# [š¶Ģ±]=
+# [š·Ģ±]=
+# [šøĢ±]=
+# [š¹Ģ±]=
+# [šŗĢ±]=
+# [š»Ģ±]=
+# [š¼Ģ±]=
+# [š½Ģ±]=
+# [š¾Ģ±]=
+# [šæĢ±]=
+# [š‘€Ģ±]=
+# [š‘Ģ±]=
+# [š‘‚Ģ±]=
+# [š‘ƒĢ±]=
+# [š‘„Ģ±]=
+# [š‘…Ģ±]=
+# [š‘†Ģ±]=
+# [š‘‡Ģ±]=
+# [š‘ˆĢ±]=
+# [š‘‰Ģ±]=
+# [š‘ŠĢ±]=
+# [š‘‹Ģ±]=
+# [š‘ŒĢ±]=
+# [š‘Ģ±]=
+# [š‘ŽĢ±]=
+# [š‘Ģ±]=
+# [š‘Ģ±]=
+# [š‘‘Ģ±]=
+# [š‘’Ģ±]=
+# [š‘“Ģ±]=
+# [š‘”Ģ±]=
+# [š˜©Ģ±]=
+# [š‘–Ģ±]=
+# [š‘—Ģ±]=
+# [š‘˜Ģ±]=
+# [š‘™Ģ±]=
+# [š‘šĢ±]=
+# [š‘›Ģ±]=
+# [š‘œĢ±]=
+# [š‘Ģ±]=
+# [š‘žĢ±]=
+# [š‘ŸĢ±]=
+# [š‘ Ģ±]=
+# [š‘”Ģ±]=
+# [š‘¢Ģ±]=
+# [š‘£Ģ±]=
+# [š‘¤Ģ±]=
+# [š‘„Ģ±]=
+# [š‘¦Ģ±]=
+# [š‘§]=
+ [šŸ¢]=$'\xf0\x9d\x9f\xac'
+ [šŸ£]=$'\xf0\x9d\x9f\xad'
+ [šŸ¤]=$'\xf0\x9d\x9f\xae'
+ [šŸ„]=$'\xf0\x9d\x9f\xaf'
+ [šŸ¦]=$'\xf0\x9d\x9f\xb0'
+ [šŸ§]=$'\xf0\x9d\x9f\xb1'
+ [šŸØ]=$'\xf0\x9d\x9f\xb2'
+ [šŸ©]=$'\xf0\x9d\x9f\xb3'
+ [šŸŖ]=$'\xf0\x9d\x9f\xb4'
+ [šŸ«]=$'\xf0\x9d\x9f\xb5'
)
declare -A italic=(
@@ -248,15 +320,68 @@ declare -A italic=(
[Ļ‡]=$'\xf0\x9d\x9c\x92'
[Ļˆ]=$'\xf0\x9d\x9c\x93'
[Ļ‰]=$'\xf0\x9d\x9c\x94'
+# [š€Ģ±]=
+# [šĢ±]=
+# [š‚Ģ±]=
+# [šƒĢ±]=
+# [š„Ģ±]=
+# [š…Ģ±]=
+# [š†Ģ±]=
+# [š‡Ģ±]=
+# [šˆĢ±]=
+# [š‰Ģ±]=
+# [šŠĢ±]=
+# [š‹Ģ±]=
+# [šŒĢ±]=
+# [šĢ±]=
+# [šŽĢ±]=
+# [šĢ±]=
+# [šĢ±]=
+# [š‘Ģ±]=
+# [š’Ģ±]=
+# [š“Ģ±]=
+# [š”Ģ±]=
+# [š•Ģ±]=
+# [š–Ģ±]=
+# [š—Ģ±]=
+# [š˜Ģ±]=
+# [š™Ģ±]=
+# [ššĢ±]=
+# [š›Ģ±]=
+# [šœĢ±]=
+# [šĢ±]=
+# [šžĢ±]=
+# [šŸĢ±]=
+# [š Ģ±]=
+# [š”Ģ±]=
+# [š¢Ģ±]=
+# [š£Ģ±]=
+# [š¤Ģ±]=
+# [š„Ģ±]=
+# [š¦Ģ±]=
+# [š§Ģ±]=
+# [šØĢ±]=
+# [š©Ģ±]=
+# [šŖĢ±]=
+# [š«Ģ±]=
+# [š¬Ģ±]=
+# [š­Ģ±]=
+# [š®Ģ±]=
+# [šÆĢ±]=
+# [š°Ģ±]=
+# [š±Ģ±]=
+# [š²Ģ±]=
+# [š³]=
)
-# TODO: bold italics.
+# case $0 in embolden) italicise) script) fracture) double-strike) sans-serif) monospace) stretch) loop) mathise)
while IFS= read -r line
do for i in $(seq 0 $((${#line}-1)))
do
c1=${line:$i:1}
- if [[ $c1 =~ [a-zA-ZĪ±-Ļ‰Ī‘-Ī©] ]]
+ # if [[ ${bold[$c1]} ]]
+ if [[ $c1 =~ [0-9a-zA-ZĪ±-Ļ‰Ī‘-Ī©š“Ģ±-š‘Ģ±š‘ŽĢ±-š‘§] ]]
then replacement+=${bold[$c1]}
else replacement+=$'\u0331'$c1
fi