line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# |
2
|
|
|
|
|
|
|
# bibliography package for Perl |
3
|
|
|
|
|
|
|
# |
4
|
|
|
|
|
|
|
# "canon format routines |
5
|
|
|
|
|
|
|
# |
6
|
|
|
|
|
|
|
# Dana Jacobsen (dana@acm.org) |
7
|
|
|
|
|
|
|
# 17 March 1996 |
8
|
|
|
|
|
|
|
# |
9
|
|
|
|
|
|
|
# This is here so that I can easily see all the steps taken in conversion. |
10
|
|
|
|
|
|
|
# |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
package bp_canon; |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
$version = "canon (dj 17 mar 96)"; |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
###### |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
&bib'reg_format( |
19
|
|
|
|
|
|
|
'canon', # name |
20
|
|
|
|
|
|
|
'can', # short name |
21
|
|
|
|
|
|
|
'bp_canon', # package name |
22
|
|
|
|
|
|
|
'canon', # default character set |
23
|
|
|
|
|
|
|
'suffix is can', |
24
|
|
|
|
|
|
|
# our functions |
25
|
|
|
|
|
|
|
'open is standard', |
26
|
|
|
|
|
|
|
'close is standard', |
27
|
|
|
|
|
|
|
'write is standard', |
28
|
|
|
|
|
|
|
'options is standard', |
29
|
|
|
|
|
|
|
'read is standard', |
30
|
|
|
|
|
|
|
'explode is unimplemented', |
31
|
|
|
|
|
|
|
'implode', |
32
|
|
|
|
|
|
|
'tocanon', |
33
|
|
|
|
|
|
|
'fromcanon', |
34
|
|
|
|
|
|
|
'clear is standard', |
35
|
|
|
|
|
|
|
); |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
###### |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
###### |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
###### |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
###### |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
sub explode { |
46
|
0
|
|
|
0
|
|
0
|
local($rec) = @_; |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
} |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
###### |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
sub implode { |
53
|
0
|
|
|
0
|
|
0
|
local(%entry) = @_; |
54
|
0
|
|
|
|
|
0
|
local($key); |
55
|
0
|
|
|
|
|
0
|
local($ent) = ''; |
56
|
|
|
|
|
|
|
|
57
|
0
|
|
|
|
|
0
|
foreach $key (sort keys %entry) { |
58
|
0
|
|
|
|
|
0
|
$ent .= "$key = $entry{$key}\n"; |
59
|
|
|
|
|
|
|
} |
60
|
|
|
|
|
|
|
#$ent =~ s/$bib'cs_sep/\//go; |
61
|
|
|
|
|
|
|
#$ent =~ s/$bib'cs_sep2/,/go; |
62
|
|
|
|
|
|
|
|
63
|
0
|
|
|
|
|
0
|
$ent; |
64
|
|
|
|
|
|
|
} |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
###### |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
sub tocanon { |
69
|
0
|
|
|
0
|
|
0
|
@_; |
70
|
|
|
|
|
|
|
} |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
###### |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
sub fromcanon { |
75
|
132
|
|
|
132
|
|
1378
|
@_; |
76
|
|
|
|
|
|
|
} |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
###### |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
####################### |
82
|
|
|
|
|
|
|
# end of package |
83
|
|
|
|
|
|
|
####################### |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
1; |