summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorPeter von Kaehne <refdoc@gmx.net>2010-08-17 21:47:46 +0000
committerPeter von Kaehne <refdoc@gmx.net>2010-08-17 21:47:46 +0000
commit9b5289c2e1bdf548bbf0731a21943064cb0cab11 (patch)
tree82c96713f97deedea3c34eb76aa3e04f032d9bca /modules
parentd462060959e4218c97a48c841cc7f4b733063a38 (diff)
downloadsword-tools-9b5289c2e1bdf548bbf0731a21943064cb0cab11.tar.gz
OSIS completed. USFM completed
git-svn-id: https://www.crosswire.org/svn/sword-tools/trunk@298 07627401-56e2-0310-80f4-f8cd0041bdcd
Diffstat (limited to 'modules')
-rwxr-xr-xmodules/crossreferences/xrefmake.pl14
1 files changed, 11 insertions, 3 deletions
diff --git a/modules/crossreferences/xrefmake.pl b/modules/crossreferences/xrefmake.pl
index 81ed654..3427767 100755
--- a/modules/crossreferences/xrefmake.pl
+++ b/modules/crossreferences/xrefmake.pl
@@ -47,7 +47,15 @@
my $return = `parsekey "$_[0]" "$_[1]"`;
$return =~ s/\n$//;
$return;
- }
+ }
+
+ sub vs2osis {
+
+ my $return = `vs2osisref "$_[0]" "$_[1]" $_[2]`;
+ $return =~ s/\n$//;
+ $return;
+ }
+
my @bookname = ("GEN","EXO","LEV","NUM","DEU",
"JOS","JDG","RUT","1SA","2SA","1KI",
@@ -128,10 +136,10 @@ if (scalar(@ARGV) < 3) {
$ref = "$OSISbook{ $bookname[ $columns[0] -1 ] }.$columns[1].$columns[2]";
$xref = &parsekey( "$OSISbook{ $bookname[ $columns[3] -1 ] }.$columns[4].$columns[5]", $locale );
if ($ref eq $o_ref) {
- print "$xref; "
+ print &vs2osis($xref,$o_ref,$locale);
}
else {
- print "\n".$ref."\t".$xref."; ";
+ print "</note>\n".$ref."\t <note type=\"crossreference\">".&vs2osis($xref,$o_ref,$locale)."; ";
$o_ref = $ref;
}