summaryrefslogtreecommitdiff
path: root/bin/frakture
diff options
context:
space:
mode:
authorDavid Wรผhrer <def@gmx.at>2026-08-10 19:08:31 +0200
committerDavid Wรผhrer <def@gmx.at>2026-08-10 19:08:31 +0200
commitb05ad4ddf15b77a3c61450b69908122c1ad626f7 (patch)
tree4b23bb0d1bc19b40dc3a13b8d743822a22643b2b /bin/frakture
parent89312254e3eb1aa496dff15f2d503e97f3c985f2 (diff)
double-strike enscript frakture monospace sans-serifHEADmaster
Diffstat (limited to 'bin/frakture')
-rwxr-xr-xbin/frakture121
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