summaryrefslogtreecommitdiff
path: root/rule-shapes
diff options
context:
space:
mode:
Diffstat (limited to 'rule-shapes')
-rwxr-xr-xrule-shapes7
1 files changed, 3 insertions, 4 deletions
diff --git a/rule-shapes b/rule-shapes
index 589a670..91f8092 100755
--- a/rule-shapes
+++ b/rule-shapes
@@ -1,7 +1,7 @@
#!/usr/bin/env ruby
-STDIN.set_encoding 'utf-8'
-STDOUT.set_encoding 'utf-8'
+STDIN.set_encoding "utf-8"
+STDOUT.set_encoding "utf-8"
def shape s
res = []
@@ -24,6 +24,5 @@ end
while line = STDIN.gets
f, e = line.split(/\t/)
f.strip!; e.strip!
- puts shape(f).join('_')+"-"+shape(e).join('_')
+ puts shape(f).join("_")+"-"+shape(e).join("_")
end
-