bin/fonemas in fonemas-0.2.4 vs bin/fonemas in fonemas-0.2.5
- old
+ new
@@ -30,14 +30,19 @@
for i in words
fonemas = Fonemas.fonemas(i)
count = 0
- for f in fonemas
- if count > 0
- puts "#{i}(#{count})\t#{f}"
- else
- puts "#{i}\t#{f}"
+ begin
+ for f in fonemas
+ if count > 0
+ puts "#{i}(#{count})\t#{f}"
+ else
+ puts "#{i}\t#{f}"
+ end
+ count += 1
end
- count += 1
+ rescue
+ puts "error al procesar fonemas para #{i}"
+ exit
end
end