nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib/standard/stream: Renamed streams for more explicit denomination
[nit.git]
/
contrib
/
inkscape_tools
/
src
/
svg_to_png_and_nit.nit
diff --git
a/contrib/inkscape_tools/src/svg_to_png_and_nit.nit
b/contrib/inkscape_tools/src/svg_to_png_and_nit.nit
index
2a94089
..
b24cbf5
100644
(file)
--- a/
contrib/inkscape_tools/src/svg_to_png_and_nit.nit
+++ b/
contrib/inkscape_tools/src/svg_to_png_and_nit.nit
@@
-141,7
+141,7
@@
for drawing in drawings do
# Inkscape doesn't give us this information
var page_width = -1
var page_height = -1
# Inkscape doesn't give us this information
var page_width = -1
var page_height = -1
- var svg_file = new IFStream.open(drawing)
+ var svg_file = new FileReader.open(drawing)
while not svg_file.eof do
var line = svg_file.read_line
while not svg_file.eof do
var line = svg_file.read_line
@@
-164,7
+164,7
@@
for drawing in drawings do
# Query Inkscape
var prog = "inkscape"
# Query Inkscape
var prog = "inkscape"
- var proc = new IProcess.from_a(prog, ["--without-gui", "--query-all", drawing])
+ var proc = new ProcessReader.from_a(prog, ["--without-gui", "--query-all", drawing])
var min_x = 1000000
var min_y = 1000000
var min_x = 1000000
var min_y = 1000000
@@
-240,7
+240,7
@@
for drawing in drawings do
end
# Output source file
end
# Output source file
- var src_file = new OFStream.open("{src_path}/{drawing_name}.nit")
+ var src_file = new FileWriter.open("{src_path}/{drawing_name}.nit")
nit_src.write_to(src_file)
src_file.close
nit_src.write_to(src_file)
src_file.close