display is now 'email', allowing ::Auth to email after register.
[scpubgit/stemmatology.git] / script / make_svg.pl
CommitLineData
dd3b58b0 1#!/usr/bin/perl
2
3use lib 'lib';
4use strict;
5use warnings;
6use Text::Tradition::Graph;
7
8# First: read the base. Make a graph, but also note which
9# nodes represent line beginnings.
10
11open( GRAPH, $ARGV[0] ) or die "Could not read file $ARGV[0]";
12my @lines = <GRAPH>;
13close GRAPH;
14my $graphml_str = join( '', @lines );
15
16my $collation_graph = Text::Tradition::Graph->new(
17 'GraphML' => $graphml_str,
18 );
19
20print $collation_graph->as_svg();
21print STDERR "DONE\n";