summaryrefslogtreecommitdiffhomepage
path: root/scripts/tr
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/tr')
-rwxr-xr-xscripts/tr6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/tr b/scripts/tr
new file mode 100755
index 0000000..63e600b
--- /dev/null
+++ b/scripts/tr
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+echo "$1" | sed -E '
+ s/((..):([^,]+))/@span lang="\2" .translation {-\3}/g
+ s/,//g
+' \ No newline at end of file