Commit dffd21f

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