bibtex-ruby 2.0.0pre1 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of bibtex-ruby might be problematic. Click here for more details.
- data/Gemfile +1 -1
- data/Gemfile.lock +1 -1
- data/History.txt +14 -1
- data/Rakefile.compiled.rbc +351 -260
- data/features/step_definitions/bibtex_steps.rbc +31 -16
- data/features/step_definitions/name_steps.rbc +1 -1
- data/features/support/env.rbc +1 -1
- data/lib/bibtex.rbc +58 -42
- data/lib/bibtex/bibliography.rb +3 -1
- data/lib/bibtex/bibliography.rbc +1623 -693
- data/lib/bibtex/compatibility.rbc +1 -1
- data/lib/bibtex/elements.rb +1 -1
- data/lib/bibtex/elements.rbc +855 -413
- data/lib/bibtex/entry.rbc +6115 -3111
- data/lib/bibtex/error.rb +2 -1
- data/lib/bibtex/error.rbc +258 -43
- data/lib/bibtex/extensions.rbc +1 -1
- data/lib/bibtex/filters.rbc +1 -1
- data/lib/bibtex/filters/latex.rbc +1 -1
- data/lib/bibtex/lexer.rbc +396 -449
- data/lib/bibtex/name_parser.rbc +152 -509
- data/lib/bibtex/names.rbc +979 -425
- data/lib/bibtex/parser.rbc +3 -3
- data/lib/bibtex/replaceable.rbc +1 -1
- data/lib/bibtex/utilities.rbc +1 -1
- data/lib/bibtex/value.rb +1 -1
- data/lib/bibtex/value.rbc +267 -299
- data/lib/bibtex/version.rb +1 -1
- data/lib/bibtex/version.rbc +2 -2
- data/test/bibtex/test_bibliography.rbc +1055 -184
- data/test/bibtex/test_elements.rbc +696 -66
- data/test/bibtex/test_entry.rbc +9118 -3743
- data/test/bibtex/test_filters.rbc +17 -17
- data/test/bibtex/test_lexer.rbc +5 -5
- data/test/bibtex/test_name_parser.rbc +11 -11
- data/test/bibtex/test_names.rbc +13 -13
- data/test/bibtex/test_parser.rbc +72 -87
- data/test/bibtex/test_string.rbc +15 -15
- data/test/bibtex/test_utilities.rbc +1 -1
- data/test/bibtex/test_value.rbc +67 -67
- data/test/helper.rbc +20 -36
- data/test/test_bibtex.rbc +96 -186
- data/test/test_export.rbc +44 -57
- metadata +14 -14
data/lib/bibtex/name_parser.rbc
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
!RBIX
|
2
|
-
|
2
|
+
16846133056282117387
|
3
3
|
x
|
4
4
|
M
|
5
5
|
1
|
@@ -162,7 +162,7 @@ x
|
|
162
162
|
10
|
163
163
|
NameParser
|
164
164
|
i
|
165
|
-
|
165
|
+
1153
|
166
166
|
5
|
167
167
|
66
|
168
168
|
5
|
@@ -173,7 +173,7 @@ i
|
|
173
173
|
1
|
174
174
|
64
|
175
175
|
4
|
176
|
-
|
176
|
+
94
|
177
177
|
47
|
178
178
|
49
|
179
179
|
2
|
@@ -773,94 +773,94 @@ i
|
|
773
773
|
4
|
774
774
|
14
|
775
775
|
7
|
776
|
-
|
776
|
+
34
|
777
777
|
80
|
778
778
|
4
|
779
779
|
14
|
780
780
|
7
|
781
|
-
|
781
|
+
44
|
782
782
|
4
|
783
783
|
3
|
784
784
|
4
|
785
785
|
14
|
786
786
|
7
|
787
|
-
|
787
|
+
45
|
788
788
|
79
|
789
789
|
4
|
790
790
|
15
|
791
791
|
7
|
792
|
-
|
792
|
+
34
|
793
793
|
79
|
794
794
|
4
|
795
795
|
15
|
796
796
|
7
|
797
|
-
|
797
|
+
34
|
798
798
|
79
|
799
799
|
4
|
800
800
|
16
|
801
801
|
7
|
802
|
-
|
802
|
+
46
|
803
803
|
4
|
804
804
|
3
|
805
805
|
4
|
806
806
|
16
|
807
807
|
7
|
808
|
-
|
808
|
+
47
|
809
809
|
79
|
810
810
|
4
|
811
811
|
13
|
812
812
|
7
|
813
|
-
|
813
|
+
34
|
814
814
|
80
|
815
815
|
4
|
816
816
|
13
|
817
817
|
7
|
818
|
-
|
818
|
+
48
|
819
819
|
79
|
820
820
|
4
|
821
821
|
18
|
822
822
|
7
|
823
|
-
|
823
|
+
34
|
824
824
|
79
|
825
825
|
4
|
826
826
|
18
|
827
827
|
7
|
828
|
-
|
828
|
+
34
|
829
829
|
79
|
830
830
|
4
|
831
831
|
19
|
832
832
|
7
|
833
|
-
|
833
|
+
34
|
834
834
|
80
|
835
835
|
4
|
836
836
|
19
|
837
837
|
7
|
838
|
-
|
838
|
+
49
|
839
839
|
78
|
840
840
|
4
|
841
841
|
17
|
842
842
|
7
|
843
|
-
|
843
|
+
34
|
844
844
|
79
|
845
845
|
4
|
846
846
|
17
|
847
847
|
7
|
848
|
-
|
848
|
+
34
|
849
849
|
79
|
850
850
|
4
|
851
851
|
12
|
852
852
|
7
|
853
|
-
|
853
|
+
34
|
854
854
|
79
|
855
855
|
4
|
856
856
|
12
|
857
857
|
7
|
858
|
-
|
858
|
+
34
|
859
859
|
79
|
860
860
|
4
|
861
861
|
12
|
862
862
|
7
|
863
|
-
|
863
|
+
34
|
864
864
|
35
|
865
865
|
90
|
866
866
|
19
|
@@ -878,78 +878,78 @@ i
|
|
878
878
|
15
|
879
879
|
44
|
880
880
|
43
|
881
|
-
|
881
|
+
50
|
882
882
|
4
|
883
883
|
8
|
884
884
|
49
|
885
|
-
|
885
|
+
51
|
886
886
|
1
|
887
887
|
13
|
888
888
|
3
|
889
889
|
78
|
890
890
|
49
|
891
|
-
|
891
|
+
52
|
892
892
|
2
|
893
893
|
15
|
894
894
|
13
|
895
895
|
7
|
896
|
-
|
896
|
+
53
|
897
897
|
79
|
898
898
|
49
|
899
|
-
|
899
|
+
52
|
900
900
|
2
|
901
901
|
15
|
902
902
|
13
|
903
903
|
7
|
904
|
-
|
904
|
+
54
|
905
905
|
80
|
906
906
|
49
|
907
|
-
|
907
|
+
52
|
908
908
|
2
|
909
909
|
15
|
910
910
|
13
|
911
911
|
7
|
912
|
-
|
912
|
+
55
|
913
913
|
4
|
914
914
|
3
|
915
915
|
49
|
916
|
-
|
916
|
+
52
|
917
917
|
2
|
918
918
|
15
|
919
919
|
13
|
920
920
|
7
|
921
|
-
|
921
|
+
56
|
922
922
|
4
|
923
923
|
4
|
924
924
|
49
|
925
|
-
|
925
|
+
52
|
926
926
|
2
|
927
927
|
15
|
928
928
|
13
|
929
929
|
7
|
930
|
-
|
930
|
+
57
|
931
931
|
4
|
932
932
|
5
|
933
933
|
49
|
934
|
-
|
934
|
+
52
|
935
935
|
2
|
936
936
|
15
|
937
937
|
13
|
938
938
|
7
|
939
|
-
|
939
|
+
58
|
940
940
|
4
|
941
941
|
6
|
942
942
|
49
|
943
|
-
|
943
|
+
52
|
944
944
|
2
|
945
945
|
15
|
946
946
|
13
|
947
947
|
7
|
948
|
-
|
948
|
+
59
|
949
949
|
4
|
950
950
|
7
|
951
951
|
49
|
952
|
-
|
952
|
+
52
|
953
953
|
2
|
954
954
|
15
|
955
955
|
19
|
@@ -966,7 +966,7 @@ i
|
|
966
966
|
15
|
967
967
|
65
|
968
968
|
7
|
969
|
-
|
969
|
+
60
|
970
970
|
20
|
971
971
|
0
|
972
972
|
20
|
@@ -998,89 +998,89 @@ i
|
|
998
998
|
35
|
999
999
|
14
|
1000
1000
|
49
|
1001
|
-
|
1001
|
+
61
|
1002
1002
|
2
|
1003
1003
|
15
|
1004
1004
|
65
|
1005
1005
|
7
|
1006
|
-
|
1006
|
+
62
|
1007
1007
|
7
|
1008
|
-
|
1008
|
+
63
|
1009
1009
|
64
|
1010
1010
|
7
|
1011
|
-
|
1011
|
+
64
|
1012
1012
|
64
|
1013
1013
|
7
|
1014
|
-
|
1014
|
+
65
|
1015
1015
|
64
|
1016
1016
|
7
|
1017
|
-
|
1017
|
+
66
|
1018
1018
|
64
|
1019
1019
|
7
|
1020
|
-
|
1020
|
+
67
|
1021
1021
|
64
|
1022
1022
|
7
|
1023
|
-
|
1023
|
+
68
|
1024
1024
|
64
|
1025
1025
|
7
|
1026
|
-
|
1026
|
+
69
|
1027
1027
|
64
|
1028
1028
|
7
|
1029
|
-
|
1029
|
+
70
|
1030
1030
|
64
|
1031
1031
|
7
|
1032
|
-
|
1032
|
+
71
|
1033
1033
|
64
|
1034
1034
|
7
|
1035
|
-
|
1035
|
+
72
|
1036
1036
|
64
|
1037
1037
|
7
|
1038
|
-
|
1038
|
+
73
|
1039
1039
|
64
|
1040
1040
|
7
|
1041
|
-
|
1041
|
+
74
|
1042
1042
|
64
|
1043
1043
|
7
|
1044
|
-
|
1044
|
+
75
|
1045
1045
|
64
|
1046
1046
|
7
|
1047
|
-
|
1047
|
+
76
|
1048
1048
|
64
|
1049
1049
|
7
|
1050
|
-
|
1050
|
+
77
|
1051
1051
|
64
|
1052
1052
|
7
|
1053
|
-
|
1053
|
+
78
|
1054
1054
|
64
|
1055
1055
|
7
|
1056
|
-
|
1056
|
+
79
|
1057
1057
|
64
|
1058
1058
|
7
|
1059
|
-
|
1059
|
+
80
|
1060
1060
|
64
|
1061
1061
|
7
|
1062
|
-
|
1062
|
+
81
|
1063
1063
|
64
|
1064
1064
|
7
|
1065
|
-
|
1065
|
+
82
|
1066
1066
|
64
|
1067
1067
|
35
|
1068
1068
|
20
|
1069
1069
|
49
|
1070
|
-
|
1070
|
+
61
|
1071
1071
|
2
|
1072
1072
|
15
|
1073
1073
|
65
|
1074
1074
|
7
|
1075
|
-
|
1075
|
+
83
|
1076
1076
|
3
|
1077
1077
|
49
|
1078
|
-
|
1078
|
+
61
|
1079
1079
|
2
|
1080
1080
|
15
|
1081
1081
|
5
|
1082
1082
|
7
|
1083
|
-
|
1083
|
+
84
|
1084
1084
|
64
|
1085
1085
|
7
|
1086
1086
|
1
|
@@ -1094,13 +1094,13 @@ i
|
|
1094
1094
|
15
|
1095
1095
|
5
|
1096
1096
|
7
|
1097
|
-
|
1097
|
+
85
|
1098
1098
|
64
|
1099
1099
|
7
|
1100
1100
|
1
|
1101
1101
|
64
|
1102
1102
|
4
|
1103
|
-
|
1103
|
+
33
|
1104
1104
|
47
|
1105
1105
|
49
|
1106
1106
|
2
|
@@ -1108,7 +1108,7 @@ i
|
|
1108
1108
|
15
|
1109
1109
|
5
|
1110
1110
|
7
|
1111
|
-
|
1111
|
+
86
|
1112
1112
|
64
|
1113
1113
|
7
|
1114
1114
|
1
|
@@ -1122,35 +1122,7 @@ i
|
|
1122
1122
|
15
|
1123
1123
|
5
|
1124
1124
|
7
|
1125
|
-
|
1126
|
-
64
|
1127
|
-
7
|
1128
|
-
1
|
1129
|
-
64
|
1130
|
-
4
|
1131
|
-
35
|
1132
|
-
47
|
1133
|
-
49
|
1134
|
-
2
|
1135
|
-
3
|
1136
|
-
15
|
1137
|
-
5
|
1138
|
-
7
|
1139
|
-
100
|
1140
|
-
64
|
1141
|
-
7
|
1142
|
-
1
|
1143
|
-
64
|
1144
|
-
4
|
1145
|
-
37
|
1146
|
-
47
|
1147
|
-
49
|
1148
|
-
2
|
1149
|
-
3
|
1150
|
-
15
|
1151
|
-
5
|
1152
|
-
7
|
1153
|
-
101
|
1125
|
+
87
|
1154
1126
|
64
|
1155
1127
|
7
|
1156
1128
|
1
|
@@ -1164,49 +1136,7 @@ i
|
|
1164
1136
|
15
|
1165
1137
|
5
|
1166
1138
|
7
|
1167
|
-
|
1168
|
-
64
|
1169
|
-
7
|
1170
|
-
1
|
1171
|
-
64
|
1172
|
-
4
|
1173
|
-
39
|
1174
|
-
47
|
1175
|
-
49
|
1176
|
-
2
|
1177
|
-
3
|
1178
|
-
15
|
1179
|
-
5
|
1180
|
-
7
|
1181
|
-
103
|
1182
|
-
64
|
1183
|
-
7
|
1184
|
-
1
|
1185
|
-
64
|
1186
|
-
4
|
1187
|
-
40
|
1188
|
-
47
|
1189
|
-
49
|
1190
|
-
2
|
1191
|
-
3
|
1192
|
-
15
|
1193
|
-
5
|
1194
|
-
7
|
1195
|
-
104
|
1196
|
-
64
|
1197
|
-
7
|
1198
|
-
1
|
1199
|
-
64
|
1200
|
-
4
|
1201
|
-
41
|
1202
|
-
47
|
1203
|
-
49
|
1204
|
-
2
|
1205
|
-
3
|
1206
|
-
15
|
1207
|
-
5
|
1208
|
-
7
|
1209
|
-
105
|
1139
|
+
88
|
1210
1140
|
64
|
1211
1141
|
7
|
1212
1142
|
1
|
@@ -1220,35 +1150,7 @@ i
|
|
1220
1150
|
15
|
1221
1151
|
5
|
1222
1152
|
7
|
1223
|
-
|
1224
|
-
64
|
1225
|
-
7
|
1226
|
-
1
|
1227
|
-
64
|
1228
|
-
4
|
1229
|
-
43
|
1230
|
-
47
|
1231
|
-
49
|
1232
|
-
2
|
1233
|
-
3
|
1234
|
-
15
|
1235
|
-
5
|
1236
|
-
7
|
1237
|
-
107
|
1238
|
-
64
|
1239
|
-
7
|
1240
|
-
1
|
1241
|
-
64
|
1242
|
-
4
|
1243
|
-
45
|
1244
|
-
47
|
1245
|
-
49
|
1246
|
-
2
|
1247
|
-
3
|
1248
|
-
15
|
1249
|
-
5
|
1250
|
-
7
|
1251
|
-
108
|
1153
|
+
89
|
1252
1154
|
64
|
1253
1155
|
7
|
1254
1156
|
1
|
@@ -1262,35 +1164,7 @@ i
|
|
1262
1164
|
15
|
1263
1165
|
5
|
1264
1166
|
7
|
1265
|
-
|
1266
|
-
64
|
1267
|
-
7
|
1268
|
-
1
|
1269
|
-
64
|
1270
|
-
4
|
1271
|
-
47
|
1272
|
-
47
|
1273
|
-
49
|
1274
|
-
2
|
1275
|
-
3
|
1276
|
-
15
|
1277
|
-
5
|
1278
|
-
7
|
1279
|
-
110
|
1280
|
-
64
|
1281
|
-
7
|
1282
|
-
1
|
1283
|
-
64
|
1284
|
-
4
|
1285
|
-
49
|
1286
|
-
47
|
1287
|
-
49
|
1288
|
-
2
|
1289
|
-
3
|
1290
|
-
15
|
1291
|
-
5
|
1292
|
-
7
|
1293
|
-
111
|
1167
|
+
90
|
1294
1168
|
64
|
1295
1169
|
7
|
1296
1170
|
1
|
@@ -1304,55 +1178,13 @@ i
|
|
1304
1178
|
15
|
1305
1179
|
5
|
1306
1180
|
7
|
1307
|
-
|
1308
|
-
64
|
1309
|
-
7
|
1310
|
-
1
|
1311
|
-
64
|
1312
|
-
4
|
1313
|
-
52
|
1314
|
-
47
|
1315
|
-
49
|
1316
|
-
2
|
1317
|
-
3
|
1318
|
-
15
|
1319
|
-
5
|
1320
|
-
7
|
1321
|
-
113
|
1322
|
-
64
|
1323
|
-
7
|
1324
|
-
1
|
1325
|
-
64
|
1326
|
-
4
|
1327
|
-
53
|
1328
|
-
47
|
1329
|
-
49
|
1330
|
-
2
|
1331
|
-
3
|
1332
|
-
15
|
1333
|
-
5
|
1334
|
-
7
|
1335
|
-
114
|
1336
|
-
64
|
1337
|
-
7
|
1338
|
-
1
|
1339
|
-
64
|
1340
|
-
4
|
1341
|
-
55
|
1342
|
-
47
|
1343
|
-
49
|
1344
|
-
2
|
1345
|
-
3
|
1346
|
-
15
|
1347
|
-
5
|
1348
|
-
7
|
1349
|
-
115
|
1181
|
+
91
|
1350
1182
|
64
|
1351
1183
|
7
|
1352
1184
|
1
|
1353
1185
|
64
|
1354
1186
|
4
|
1355
|
-
|
1187
|
+
54
|
1356
1188
|
47
|
1357
1189
|
49
|
1358
1190
|
2
|
@@ -1360,7 +1192,7 @@ i
|
|
1360
1192
|
15
|
1361
1193
|
5
|
1362
1194
|
7
|
1363
|
-
|
1195
|
+
92
|
1364
1196
|
64
|
1365
1197
|
7
|
1366
1198
|
1
|
@@ -1374,27 +1206,13 @@ i
|
|
1374
1206
|
15
|
1375
1207
|
5
|
1376
1208
|
7
|
1377
|
-
|
1378
|
-
64
|
1379
|
-
7
|
1380
|
-
1
|
1381
|
-
64
|
1382
|
-
4
|
1383
|
-
59
|
1384
|
-
47
|
1385
|
-
49
|
1386
|
-
2
|
1387
|
-
3
|
1388
|
-
15
|
1389
|
-
5
|
1390
|
-
7
|
1391
|
-
118
|
1209
|
+
93
|
1392
1210
|
64
|
1393
1211
|
7
|
1394
1212
|
1
|
1395
1213
|
64
|
1396
1214
|
4
|
1397
|
-
|
1215
|
+
62
|
1398
1216
|
47
|
1399
1217
|
49
|
1400
1218
|
2
|
@@ -1402,13 +1220,13 @@ i
|
|
1402
1220
|
15
|
1403
1221
|
5
|
1404
1222
|
7
|
1405
|
-
|
1223
|
+
94
|
1406
1224
|
64
|
1407
1225
|
7
|
1408
1226
|
1
|
1409
1227
|
64
|
1410
1228
|
4
|
1411
|
-
|
1229
|
+
67
|
1412
1230
|
47
|
1413
1231
|
49
|
1414
1232
|
2
|
@@ -1416,13 +1234,13 @@ i
|
|
1416
1234
|
15
|
1417
1235
|
5
|
1418
1236
|
7
|
1419
|
-
|
1237
|
+
95
|
1420
1238
|
64
|
1421
1239
|
7
|
1422
1240
|
1
|
1423
1241
|
64
|
1424
1242
|
4
|
1425
|
-
|
1243
|
+
68
|
1426
1244
|
47
|
1427
1245
|
49
|
1428
1246
|
2
|
@@ -1430,13 +1248,13 @@ i
|
|
1430
1248
|
15
|
1431
1249
|
5
|
1432
1250
|
7
|
1433
|
-
|
1251
|
+
96
|
1434
1252
|
64
|
1435
1253
|
7
|
1436
1254
|
1
|
1437
1255
|
64
|
1438
1256
|
4
|
1439
|
-
|
1257
|
+
72
|
1440
1258
|
47
|
1441
1259
|
49
|
1442
1260
|
2
|
@@ -1444,13 +1262,13 @@ i
|
|
1444
1262
|
15
|
1445
1263
|
5
|
1446
1264
|
7
|
1447
|
-
|
1265
|
+
97
|
1448
1266
|
64
|
1449
1267
|
7
|
1450
1268
|
1
|
1451
1269
|
64
|
1452
1270
|
4
|
1453
|
-
|
1271
|
+
73
|
1454
1272
|
47
|
1455
1273
|
49
|
1456
1274
|
2
|
@@ -1458,13 +1276,13 @@ i
|
|
1458
1276
|
15
|
1459
1277
|
5
|
1460
1278
|
7
|
1461
|
-
|
1279
|
+
98
|
1462
1280
|
64
|
1463
1281
|
7
|
1464
1282
|
1
|
1465
1283
|
64
|
1466
1284
|
4
|
1467
|
-
|
1285
|
+
76
|
1468
1286
|
47
|
1469
1287
|
49
|
1470
1288
|
2
|
@@ -1472,13 +1290,13 @@ i
|
|
1472
1290
|
15
|
1473
1291
|
5
|
1474
1292
|
7
|
1475
|
-
|
1293
|
+
99
|
1476
1294
|
64
|
1477
1295
|
7
|
1478
1296
|
1
|
1479
1297
|
64
|
1480
1298
|
4
|
1481
|
-
|
1299
|
+
81
|
1482
1300
|
47
|
1483
1301
|
49
|
1484
1302
|
2
|
@@ -1486,16 +1304,16 @@ i
|
|
1486
1304
|
15
|
1487
1305
|
99
|
1488
1306
|
7
|
1489
|
-
|
1307
|
+
34
|
1490
1308
|
7
|
1491
|
-
|
1309
|
+
100
|
1492
1310
|
65
|
1493
1311
|
67
|
1494
1312
|
49
|
1495
|
-
|
1313
|
+
101
|
1496
1314
|
0
|
1497
1315
|
49
|
1498
|
-
|
1316
|
+
102
|
1499
1317
|
4
|
1500
1318
|
11
|
1501
1319
|
I
|
@@ -1508,9 +1326,9 @@ I
|
|
1508
1326
|
0
|
1509
1327
|
n
|
1510
1328
|
p
|
1511
|
-
|
1329
|
+
103
|
1512
1330
|
s
|
1513
|
-
|
1331
|
+
2421
|
1514
1332
|
|
1515
1333
|
def initialize(options = {})
|
1516
1334
|
self.options.merge!(options)
|
@@ -1603,18 +1421,18 @@ s
|
|
1603
1421
|
def scan_literal
|
1604
1422
|
@brace_level = 1
|
1605
1423
|
|
1606
|
-
|
1607
|
-
|
1424
|
+
while @brace_level > 0
|
1425
|
+
@word[1] << @src.scan_until(/[\{\}]/o).to_s
|
1608
1426
|
|
1609
|
-
|
1610
|
-
|
1611
|
-
|
1612
|
-
|
1613
|
-
|
1614
|
-
|
1615
|
-
|
1616
|
-
|
1617
|
-
|
1427
|
+
case @src.matched
|
1428
|
+
when '{'
|
1429
|
+
@brace_level += 1
|
1430
|
+
when '}'
|
1431
|
+
@brace_level -= 1
|
1432
|
+
else
|
1433
|
+
@brace_level = 0
|
1434
|
+
error_unbalanced
|
1435
|
+
end
|
1618
1436
|
end
|
1619
1437
|
end
|
1620
1438
|
|
@@ -1701,8 +1519,8 @@ x
|
|
1701
1519
|
9
|
1702
1520
|
_reduce_1
|
1703
1521
|
x
|
1704
|
-
|
1705
|
-
|
1522
|
+
12
|
1523
|
+
_reduce_none
|
1706
1524
|
x
|
1707
1525
|
9
|
1708
1526
|
_reduce_3
|
@@ -1732,59 +1550,23 @@ x
|
|
1732
1550
|
_reduce_11
|
1733
1551
|
x
|
1734
1552
|
10
|
1735
|
-
_reduce_12
|
1736
|
-
x
|
1737
|
-
10
|
1738
1553
|
_reduce_13
|
1739
1554
|
x
|
1740
1555
|
10
|
1741
1556
|
_reduce_14
|
1742
1557
|
x
|
1743
1558
|
10
|
1744
|
-
_reduce_15
|
1745
|
-
x
|
1746
|
-
10
|
1747
|
-
_reduce_16
|
1748
|
-
x
|
1749
|
-
10
|
1750
1559
|
_reduce_17
|
1751
1560
|
x
|
1752
1561
|
10
|
1753
1562
|
_reduce_18
|
1754
1563
|
x
|
1755
1564
|
10
|
1756
|
-
_reduce_19
|
1757
|
-
x
|
1758
|
-
10
|
1759
1565
|
_reduce_20
|
1760
1566
|
x
|
1761
1567
|
10
|
1762
|
-
_reduce_21
|
1763
|
-
x
|
1764
|
-
10
|
1765
|
-
_reduce_22
|
1766
|
-
x
|
1767
|
-
10
|
1768
|
-
_reduce_23
|
1769
|
-
x
|
1770
|
-
10
|
1771
1568
|
_reduce_24
|
1772
1569
|
x
|
1773
|
-
10
|
1774
|
-
_reduce_25
|
1775
|
-
x
|
1776
|
-
10
|
1777
|
-
_reduce_26
|
1778
|
-
x
|
1779
|
-
10
|
1780
|
-
_reduce_27
|
1781
|
-
x
|
1782
|
-
10
|
1783
|
-
_reduce_28
|
1784
|
-
x
|
1785
|
-
10
|
1786
|
-
_reduce_29
|
1787
|
-
x
|
1788
1570
|
4
|
1789
1571
|
Hash
|
1790
1572
|
x
|
@@ -1893,13 +1675,6 @@ s
|
|
1893
1675
|
result
|
1894
1676
|
end
|
1895
1677
|
|
1896
|
-
s
|
1897
|
-
77
|
1898
|
-
def _reduce_2(val, _values, result)
|
1899
|
-
result = val[0]
|
1900
|
-
result
|
1901
|
-
end
|
1902
|
-
|
1903
1678
|
s
|
1904
1679
|
79
|
1905
1680
|
def _reduce_3(val, _values, result)
|
@@ -1915,58 +1690,58 @@ s
|
|
1915
1690
|
end
|
1916
1691
|
|
1917
1692
|
s
|
1918
|
-
|
1693
|
+
111
|
1919
1694
|
def _reduce_5(val, _values, result)
|
1920
|
-
|
1695
|
+
result = Name.new(:last => val[0])
|
1696
|
+
|
1921
1697
|
result
|
1922
1698
|
end
|
1923
1699
|
|
1924
1700
|
s
|
1925
|
-
|
1701
|
+
129
|
1926
1702
|
def _reduce_6(val, _values, result)
|
1927
|
-
|
1703
|
+
result = Name.new(:first => val[0], :last => val[1])
|
1704
|
+
|
1928
1705
|
result
|
1929
1706
|
end
|
1930
1707
|
|
1931
1708
|
s
|
1932
|
-
|
1709
|
+
145
|
1933
1710
|
def _reduce_7(val, _values, result)
|
1934
|
-
|
1711
|
+
result = Name.new(:first => val[0], :von => val[1], :last => val[2])
|
1712
|
+
|
1935
1713
|
result
|
1936
1714
|
end
|
1937
1715
|
|
1938
1716
|
s
|
1939
|
-
|
1717
|
+
127
|
1940
1718
|
def _reduce_8(val, _values, result)
|
1941
|
-
|
1719
|
+
result = Name.new(:von => val[0], :last => val[1])
|
1720
|
+
|
1942
1721
|
result
|
1943
1722
|
end
|
1944
1723
|
|
1945
1724
|
s
|
1946
|
-
|
1725
|
+
150
|
1947
1726
|
def _reduce_9(val, _values, result)
|
1948
|
-
|
1727
|
+
result = Name.new(:last => val[0], :jr => val[2][0], :first => val[2][1])
|
1728
|
+
|
1949
1729
|
result
|
1950
1730
|
end
|
1951
1731
|
|
1952
1732
|
s
|
1953
|
-
|
1733
|
+
167
|
1954
1734
|
def _reduce_10(val, _values, result)
|
1955
|
-
|
1735
|
+
result = Name.new(:von => val[0], :last => val[1], :jr => val[3][0], :first => val[3][1])
|
1736
|
+
|
1956
1737
|
result
|
1957
1738
|
end
|
1958
1739
|
|
1959
1740
|
s
|
1960
|
-
|
1741
|
+
179
|
1961
1742
|
def _reduce_11(val, _values, result)
|
1962
|
-
|
1963
|
-
|
1964
|
-
end
|
1965
|
-
|
1966
|
-
s
|
1967
|
-
78
|
1968
|
-
def _reduce_12(val, _values, result)
|
1969
|
-
result = val[0]
|
1743
|
+
result = Name.new(:von => val[0,2].join(' '), :last => val[2], :jr => val[4][0], :first => val[4][1])
|
1744
|
+
|
1970
1745
|
result
|
1971
1746
|
end
|
1972
1747
|
|
@@ -1984,20 +1759,6 @@ s
|
|
1984
1759
|
result
|
1985
1760
|
end
|
1986
1761
|
|
1987
|
-
s
|
1988
|
-
78
|
1989
|
-
def _reduce_15(val, _values, result)
|
1990
|
-
result = val[0]
|
1991
|
-
result
|
1992
|
-
end
|
1993
|
-
|
1994
|
-
s
|
1995
|
-
78
|
1996
|
-
def _reduce_16(val, _values, result)
|
1997
|
-
result = val[0]
|
1998
|
-
result
|
1999
|
-
end
|
2000
|
-
|
2001
1762
|
s
|
2002
1763
|
84
|
2003
1764
|
def _reduce_17(val, _values, result)
|
@@ -2013,85 +1774,19 @@ s
|
|
2013
1774
|
end
|
2014
1775
|
|
2015
1776
|
s
|
2016
|
-
|
2017
|
-
def _reduce_19(val, _values, result)
|
2018
|
-
result = val[0]
|
2019
|
-
result
|
2020
|
-
end
|
2021
|
-
|
2022
|
-
s
|
2023
|
-
90
|
1777
|
+
85
|
2024
1778
|
def _reduce_20(val, _values, result)
|
2025
|
-
result = val
|
2026
|
-
result
|
2027
|
-
end
|
2028
|
-
|
2029
|
-
s
|
2030
|
-
78
|
2031
|
-
def _reduce_21(val, _values, result)
|
2032
|
-
result = val[0]
|
2033
|
-
result
|
2034
|
-
end
|
2035
|
-
|
2036
|
-
s
|
2037
|
-
78
|
2038
|
-
def _reduce_22(val, _values, result)
|
2039
|
-
result = val[0]
|
2040
|
-
result
|
2041
|
-
end
|
2042
|
-
|
2043
|
-
s
|
2044
|
-
78
|
2045
|
-
def _reduce_23(val, _values, result)
|
2046
|
-
result = val[0]
|
1779
|
+
result = val.join(' ')
|
2047
1780
|
result
|
2048
1781
|
end
|
2049
1782
|
|
2050
1783
|
s
|
2051
|
-
|
1784
|
+
85
|
2052
1785
|
def _reduce_24(val, _values, result)
|
2053
|
-
result = val
|
2054
|
-
result
|
2055
|
-
end
|
2056
|
-
|
2057
|
-
s
|
2058
|
-
75
|
2059
|
-
def _reduce_25(val, _values, result)
|
2060
|
-
result = nil
|
2061
|
-
result
|
2062
|
-
end
|
2063
|
-
|
2064
|
-
s
|
2065
|
-
78
|
2066
|
-
def _reduce_26(val, _values, result)
|
2067
|
-
result = val[0]
|
2068
|
-
result
|
2069
|
-
end
|
2070
|
-
|
2071
|
-
s
|
2072
|
-
78
|
2073
|
-
def _reduce_27(val, _values, result)
|
2074
|
-
result = val[0]
|
2075
|
-
result
|
2076
|
-
end
|
2077
|
-
|
2078
|
-
s
|
2079
|
-
78
|
2080
|
-
def _reduce_28(val, _values, result)
|
2081
|
-
result = val[0]
|
2082
|
-
result
|
2083
|
-
end
|
2084
|
-
|
2085
|
-
s
|
2086
|
-
78
|
2087
|
-
def _reduce_29(val, _values, result)
|
2088
|
-
result = val[0]
|
1786
|
+
result = val.join(' ')
|
2089
1787
|
result
|
2090
1788
|
end
|
2091
1789
|
|
2092
|
-
x
|
2093
|
-
12
|
2094
|
-
_reduce_none
|
2095
1790
|
M
|
2096
1791
|
1
|
2097
1792
|
n
|
@@ -2127,11 +1822,11 @@ p
|
|
2127
1822
|
I
|
2128
1823
|
-1
|
2129
1824
|
I
|
2130
|
-
|
1825
|
+
1a9
|
2131
1826
|
I
|
2132
1827
|
0
|
2133
1828
|
I
|
2134
|
-
|
1829
|
+
1aa
|
2135
1830
|
I
|
2136
1831
|
7
|
2137
1832
|
x
|
@@ -2155,7 +1850,7 @@ x
|
|
2155
1850
|
15
|
2156
1851
|
add_defn_method
|
2157
1852
|
p
|
2158
|
-
|
1853
|
+
285
|
2159
1854
|
I
|
2160
1855
|
2
|
2161
1856
|
I
|
@@ -2663,121 +2358,69 @@ I
|
|
2663
2358
|
I
|
2664
2359
|
3a1
|
2665
2360
|
I
|
2666
|
-
|
2361
|
+
121
|
2667
2362
|
I
|
2668
2363
|
3af
|
2669
2364
|
I
|
2670
|
-
|
2365
|
+
128
|
2671
2366
|
I
|
2672
2367
|
3bd
|
2673
2368
|
I
|
2674
|
-
|
2369
|
+
12f
|
2675
2370
|
I
|
2676
2371
|
3cb
|
2677
2372
|
I
|
2678
|
-
|
2373
|
+
137
|
2679
2374
|
I
|
2680
2375
|
3d9
|
2681
2376
|
I
|
2682
|
-
|
2377
|
+
13f
|
2683
2378
|
I
|
2684
2379
|
3e7
|
2685
2380
|
I
|
2686
|
-
|
2381
|
+
147
|
2687
2382
|
I
|
2688
2383
|
3f5
|
2689
2384
|
I
|
2690
|
-
|
2385
|
+
14f
|
2691
2386
|
I
|
2692
2387
|
403
|
2693
2388
|
I
|
2694
|
-
|
2389
|
+
157
|
2695
2390
|
I
|
2696
2391
|
411
|
2697
2392
|
I
|
2698
|
-
|
2393
|
+
15f
|
2699
2394
|
I
|
2700
2395
|
41f
|
2701
2396
|
I
|
2702
|
-
|
2397
|
+
169
|
2703
2398
|
I
|
2704
2399
|
42d
|
2705
2400
|
I
|
2706
|
-
|
2401
|
+
170
|
2707
2402
|
I
|
2708
2403
|
43b
|
2709
2404
|
I
|
2710
|
-
|
2405
|
+
17b
|
2711
2406
|
I
|
2712
2407
|
449
|
2713
2408
|
I
|
2714
|
-
|
2409
|
+
182
|
2715
2410
|
I
|
2716
2411
|
457
|
2717
2412
|
I
|
2718
|
-
|
2413
|
+
18b
|
2719
2414
|
I
|
2720
2415
|
465
|
2721
2416
|
I
|
2722
|
-
|
2417
|
+
198
|
2723
2418
|
I
|
2724
2419
|
473
|
2725
2420
|
I
|
2726
|
-
|
2421
|
+
1a9
|
2727
2422
|
I
|
2728
2423
|
481
|
2729
|
-
I
|
2730
|
-
18f
|
2731
|
-
I
|
2732
|
-
48f
|
2733
|
-
I
|
2734
|
-
196
|
2735
|
-
I
|
2736
|
-
49d
|
2737
|
-
I
|
2738
|
-
19d
|
2739
|
-
I
|
2740
|
-
4ab
|
2741
|
-
I
|
2742
|
-
1a4
|
2743
|
-
I
|
2744
|
-
4b9
|
2745
|
-
I
|
2746
|
-
1ab
|
2747
|
-
I
|
2748
|
-
4c7
|
2749
|
-
I
|
2750
|
-
1b2
|
2751
|
-
I
|
2752
|
-
4d5
|
2753
|
-
I
|
2754
|
-
1b9
|
2755
|
-
I
|
2756
|
-
4e3
|
2757
|
-
I
|
2758
|
-
1c0
|
2759
|
-
I
|
2760
|
-
4f1
|
2761
|
-
I
|
2762
|
-
1c7
|
2763
|
-
I
|
2764
|
-
4ff
|
2765
|
-
I
|
2766
|
-
1ce
|
2767
|
-
I
|
2768
|
-
50d
|
2769
|
-
I
|
2770
|
-
1d5
|
2771
|
-
I
|
2772
|
-
51b
|
2773
|
-
I
|
2774
|
-
1dc
|
2775
|
-
I
|
2776
|
-
529
|
2777
|
-
I
|
2778
|
-
1e3
|
2779
|
-
I
|
2780
|
-
537
|
2781
2424
|
x
|
2782
2425
|
59
|
2783
2426
|
/Users/sylvester/Work/bibtex-ruby/lib/bibtex/name_parser.rb
|