repo.or.cz
/
light-and-matter.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
take .png files generated from .svg out of version control
[light-and-matter.git]
/
process_geom_file.pl
blob
daf2fd4a1e58e260c262f8c616b8c55d716caebb
1
#!/usr/bin/perl
2
3
use
strict
;
4
5
while
(
my
$line
=<>) {
6
chomp
$line
;
7
8
while
(
$line
=~
m/([\d\.\-\+]+)pt/g
) {
9
my
$value
=
$1
;
10
$value
=
$value
*
25.4
/
72.27
;
11
print
(
sprintf
"
%7
.2f"
,
$value
).
' '
;
12
}
13
14
print
"
\n
"
;
15
}
16
17