diff options
| author | Patrick Simianer <patrick@lilt.com> | 2026-02-26 10:05:59 +0000 |
|---|---|---|
| committer | Patrick Simianer <patrick@lilt.com> | 2026-02-26 10:05:59 +0000 |
| commit | b31ace79ea5f6b3f279c544cd3a443d6fbf2a24d (patch) | |
| tree | 31f2b599fa5f6996aeb134390d58deb63eefe04a /rule-shapes | |
| parent | 8805e95ae94d798c6441f7e1b72c90e049563f17 (diff) | |
Diffstat (limited to 'rule-shapes')
| -rwxr-xr-x | rule-shapes | 7 |
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 - |
