Commit dffd21f
xxwhirlpool
·
2026-09-29 19:29:18 -0400 EDT
parent 6081175
add mojibake fix script
1 files changed,
+17,
-0
+17,
-0
1@@ -0,0 +1,17 @@
2+#!/usr/bin/env -S uv run --script
3+# /// script
4+# requires-python = ">=3.14"
5+# dependencies = [
6+# "ftfy>=6.3.1",
7+# ]
8+# ///
9+
10+import ftfy
11+
12+print("paste fucked up text:")
13+
14+text2fix = input()
15+
16+fixed = ftfy.fix_text(text2fix)
17+
18+print(fixed)