diff options
| author | David WΓΌhrer <def@gmx.at> | 2026-08-10 19:08:31 +0200 |
|---|---|---|
| committer | David WΓΌhrer <def@gmx.at> | 2026-08-10 19:08:31 +0200 |
| commit | b05ad4ddf15b77a3c61450b69908122c1ad626f7 (patch) | |
| tree | 4b23bb0d1bc19b40dc3a13b8d743822a22643b2b /bin/double-strike | |
| parent | 89312254e3eb1aa496dff15f2d503e97f3c985f2 (diff) | |
Diffstat (limited to 'bin/double-strike')
| -rwxr-xr-x | bin/double-strike | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/bin/double-strike b/bin/double-strike new file mode 100755 index 0000000..92e979d --- /dev/null +++ b/bin/double-strike @@ -0,0 +1,81 @@ +#!/bin/bash + +# This style is sometimes known as open-face or blackboard-bold. Double-struck symbols already encoded in the Letterlike Symbols block are omitted here to avoid duplicate encoding. Considerable variation in font style is acceptable, as long as the glyphs retain the visual element of doubled strokes. +declare -A ds=( + [A]=πΈ + [B]=πΉ + [C]=β + [D]=π» + [E]=πΌ + [F]=π½ + [G]=πΎ + [H]=β + [I]=π + [J]=π + [K]=π + [L]=π + [M]=π + [N]=β + [O]=π + [P]=β + [Q]=β + [R]=β + [S]=π + [T]=π + [U]=π + [V]=π + [W]=π + [X]=π + [Y]=π + [Z]=β€ + [a]=π + [b]=π + [c]=π + [d]=π + [e]=π + [f]=π + [g]=π + [h]=π + [i]=π + [j]=π + [k]=π + [l]=π + [m]=π + [n]=π + [o]=π + [p]=π‘ + [q]=π’ + [r]=π£ + [s]=π€ + [t]=π₯ + [u]=π¦ + [v]=π§ + [w]=π¨ + [x]=π© + [y]=πͺ + [z]=π« + [0]=π + [1]=π + [2]=π + [3]=π + [4]=π + [5]=π + [6]=π + [7]=π + [8]=π + [9]=π‘ +) + +while IFS= read -r line +do + replacement="" + for i in $(seq 0 "$((${#line}-1))") + do + c1=${line:$i:1} + if [[ $c1 =~ [0-9a-zA-Z] ]] + then replacement+=${ds[$c1]} + else replacement+=$c1 + fi + done + echo "$replacement" +done |
