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/frakture | |
| parent | 89312254e3eb1aa496dff15f2d503e97f3c985f2 (diff) | |
Diffstat (limited to 'bin/frakture')
| -rwxr-xr-x | bin/frakture | 121 |
1 files changed, 121 insertions, 0 deletions
diff --git a/bin/frakture b/bin/frakture new file mode 100755 index 0000000..5b4ad69 --- /dev/null +++ b/bin/frakture @@ -0,0 +1,121 @@ +#!/bin/bash + +# This style is sometimes known as black-letter. +declare -A f=( + [A]=๐ + [B]=๐
+ [C]=โญ # black-letter capital C + [D]=๐ + [E]=๐ + [F]=๐ + [G]=๐ + [H]=โ # black-letter capital H + [I]=โ # black-letter capital I + [J]=๐ + [K]=๐ + [L]=๐ + [M]=๐ # New Testament majority text + [N]=๐ + [O]=๐ + [P]=๐ + [Q]=๐ + [R]=โ # black-letter capital R + [S]=๐ # Septuagint, Greek Old Testament + [T]=๐ + [U]=๐ + [V]=๐ + [W]=๐ + [X]=๐ + [Y]=๐ + [Z]=โจ # black-letter capital 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]=๐ท +#Bold Fraktur symbols + [๐ฬฑ]=๐ฌ + [๐ฬฑ]=๐ญ + [๐ฬฑ]=๐ฎ + [๐ฬฑ]=๐ฏ + [๐ฬฑ]=๐ฐ + [๐
ฬฑ]=๐ฑ + [๐ฬฑ]=๐ฒ + [๐ฬฑ]=๐ณ + [๐ฬฑ]=๐ด + [๐ฬฑ]=๐ต + [๐ฬฑ]=๐ถ + [๐ฬฑ]=๐ท + [๐ฬฑ]=๐ธ + [๐ฬฑ]=๐น + [๐ฬฑ]=๐บ + [๐ฬฑ]=๐ป + [๐ฬฑ]=๐ผ + [๐ฬฑ]=๐ฝ + [๐ฬฑ]=๐พ + [๐ฬฑ]=๐ฟ + [๐ฬฑ]=๐ + [๐ฬฑ]=๐ + [๐ฬฑ]=๐ + [๐ฬฑ]=๐ + [๐ฬฑ]=๐ + [๐]=๐
+ [๐ฬฑ]=๐ + [๐ฬฑ]=๐ + [๐ฬฑ]=๐ + [๐ฬฑ]=๐ + [๐ฬฑ]=๐ + [๐ฬฑ]=๐ + [๐ ฬฑ]=๐ + [๐กฬฑ]=๐ + [๐ขฬฑ]=๐ + [๐ฃฬฑ]=๐ + [๐คฬฑ]=๐ + [๐ฅฬฑ]=๐ + [๐ฆฬฑ]=๐ + [๐งฬฑ]=๐ + [๐จฬฑ]=๐ + [๐ฉฬฑ]=๐ + [๐ชฬฑ]=๐ + [๐ซฬฑ]=๐ + [๐ฌฬฑ]=๐ + [๐ญฬฑ]=๐ + [๐ฎฬฑ]=๐ + [๐ฏฬฑ]=๐ + [๐ฐฬฑ]=๐ + [๐ฑฬฑ]=๐ + [๐ฒฬฑ]=๐ + [๐ณ]=๐ +) + +while IFS= read -r line +do + replacement="" + for i in $(seq 0 "$((${#line}-1))") + do + c=${line:$i:1} + replacement+=${f[$c]:-$c} + done + echo "$replacement" +done |
