summaryrefslogtreecommitdiff
path: root/embolden
diff options
context:
space:
mode:
authorDavid Wührer <def@gmx.at>2023-05-13 17:15:33 +0200
committerDavid Wührer <def@gmx.at>2023-05-13 17:15:33 +0200
commit9bd7b1078f0d23bd452110451d1762f118e99fbf (patch)
tree91791ba13253d28039564cd555a37d0628fd4ea6 /embolden
parentdc3b063ef6b370d1b3594ed785c682ea2db09b41 (diff)
improvements
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