Debian Codegraph @

lib/keep_biblatex.rsc

raw
1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2 %%
3 %% This file is part of BibTool.
4 %% It is distributed under the GNU General Public License.
5 %% See the file COPYING for details.
6 %%
7 %% (c) 2017-2019 Gerd Neugebauer
8 %%
9 %% Net: [email protected]
10 %%
11 %% This program is free software; you can redistribute it and/or modify
12 %% it under the terms of the GNU General Public License as published by
13 %% the Free Software Foundation; either version 2, or (at your option)
14 %% any later version.
15 %%
16 %% This program is distributed in the hope that it will be useful,
17 %% but WITHOUT ANY WARRANTY; without even the implied warranty of
18 %% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 %% GNU General Public License for more details.
20 %%
21 %% You should have received a copy of the GNU General Public License
22 %% along with this program; if not, write to the Free Software
23 %% Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24 %%
25 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
26 %
27 % Keep only fields in the standard BibLaTeX styles
28 %
29 keep.field{{entryset
30 crossref}
31 if $type = set}
32
33 keep.field{{author
34 journaltitle
35 title
36 day
37 endday
38 endmonth
39 endyear
40 month
41 year
42 addendum
43 annotator
44 commentator
45 doi
46 editor
47 editora
48 editorb
49 editorc
50 editortype
51 editoratype
52 editorbtype
53 editorctype
54 eid
55 eprint
56 eprintclass
57 eprinttype
58 issn
59 issue
60 issuetitle
61 issuesubtitle
62 journalsubtitle
63 language
64 note
65 number
66 origlanguage
67 pages
68 pubstate
69 series
70 subtitle
71 titleaddon
72 translator
73 url
74 urlday
75 urlendday
76 urlendmonth
77 urlendyear
78 urlmonth
79 urlyear
80 version
81 volume}
82 if $type = article}
83
84 keep.field{{note}
85 if $type = bibnote}
86
87 keep.field{{author
88 title
89 day
90 endday
91 endmonth
92 endyear
93 month
94 year
95 addendum
96 afterword
97 annotator
98 chapter
99 commentator
100 doi
101 edition
102 editor
103 editora
104 editorb
105 editorc
106 editortype
107 editoratype
108 editorbtype
109 editorctype
110 eprint
111 eprintclass
112 eprinttype
113 foreword
114 introduction
115 isbn
116 language
117 location
118 maintitle
119 maintitleaddon
120 mainsubtitle
121 note
122 number
123 origlanguage
124 pages
125 pagetotal
126 part
127 publisher
128 pubstate
129 series
130 subtitle
131 titleaddon
132 translator
133 url
134 urlday
135 urlendday
136 urlendmonth
137 urlendyear
138 urlmonth
139 urlyear
140 volume
141 volumes}
142 if $type = book}
143
144 keep.field{{author
145 title
146 day
147 endday
148 endmonth
149 endyear
150 month
151 year
152 addendum
153 afterword
154 annotator
155 commentator
156 doi
157 edition
158 editor
159 editora
160 editorb
161 editorc
162 editortype
163 editoratype
164 editorbtype
165 editorctype
166 eprint
167 eprintclass
168 eprinttype
169 foreword
170 introduction
171 isbn
172 language
173 location
174 note
175 number
176 origlanguage
177 pagetotal
178 publisher
179 pubstate
180 series
181 subtitle
182 titleaddon
183 translator
184 url
185 urlday
186 urlendday
187 urlendmonth
188 urlendyear
189 urlmonth
190 urlyear
191 volume
192 volumes}
193 if $type = mvbook}
194
195 keep.field{{author
196 title
197 booktitle
198 day
199 endday
200 endmonth
201 endyear
202 month
203 year
204 addendum
205 afterword
206 annotator
207 bookauthor
208 booksubtitle
209 booktitleaddon
210 chapter
211 commentator
212 doi
213 edition
214 editor
215 editora
216 editorb
217 editorc
218 editortype
219 editoratype
220 editorbtype
221 editorctype
222 eprint
223 eprintclass
224 eprinttype
225 foreword
226 introduction
227 isbn
228 language
229 location
230 mainsubtitle
231 maintitle
232 maintitleaddon
233 note
234 number
235 origlanguage
236 part
237 publisher
238 pages
239 pubstate
240 series
241 subtitle
242 titleaddon
243 translator
244 url
245 urlday
246 urlendday
247 urlendmonth
248 urlendyear
249 urlmonth
250 urlyear
251 volume
252 volumes}
253 if $type = inbookbook}
254
255 keep.field{{author
256 title
257 booktitle
258 day
259 endday
260 endmonth
261 endyear
262 month
263 year
264 addendum
265 afterword
266 annotator
267 bookauthor
268 booksubtitle
269 booktitleaddon
270 chapter
271 commentator
272 doi
273 edition
274 editor
275 editora
276 editorb
277 editorc
278 editortype
279 editoratype
280 editorbtype
281 editorctype
282 eprint
283 eprintclass
284 eprinttype
285 foreword
286 introduction
287 isbn
288 language
289 location
290 mainsubtitle
291 maintitle
292 maintitleaddon
293 note
294 number
295 origlanguage
296 part
297 publisher
298 pages
299 pubstate
300 series
301 subtitle
302 titleaddon
303 translator
304 url
305 urlday
306 urlendday
307 urlendmonth
308 urlendyear
309 urlmonth
310 urlyear
311 volume
312 volumes}
313 if $type = inbook}
314
315 keep.field{{author
316 title
317 booktitle
318 day
319 endday
320 endmonth
321 endyear
322 month
323 year
324 addendum
325 afterword
326 annotator
327 bookauthor
328 booksubtitle
329 booktitleaddon
330 chapter
331 commentator
332 doi
333 edition
334 editor
335 editora
336 editorb
337 editorc
338 editortype
339 editoratype
340 editorbtype
341 editorctype
342 eprint
343 eprintclass
344 eprinttype
345 foreword
346 introduction
347 isbn
348 language
349 location
350 mainsubtitle
351 maintitle
352 maintitleaddon
353 note
354 number
355 origlanguage
356 part
357 publisher
358 pages
359 pubstate
360 series
361 subtitle
362 titleaddon
363 translator
364 url
365 urlday
366 urlendday
367 urlendmonth
368 urlendyear
369 urlmonth
370 urlyear
371 volume
372 volumes}
373 if $type = suppbook}
374
375 keep.field{{author
376 editor
377 editortype
378 title
379 day
380 endday
381 endmonth
382 endyear
383 month
384 year
385 addendum
386 chapter
387 doi
388 eprint
389 eprintclass
390 eprinttype
391 howpublished
392 language
393 location
394 note
395 pages
396 pagetotal
397 pubstate
398 subtitle
399 titleaddon
400 type
401 url
402 urlday
403 urlendday
404 urlendmonth
405 urlendyear
406 urlmonth
407 urlyear}
408 if $type = booklet}
409
410 keep.field{{editor
411 title
412 day
413 endday
414 endmonth
415 endyear
416 month
417 year
418 addendum
419 afterword
420 annotator
421 chapter
422 commentator
423 doi
424 edition
425 editora
426 editorb
427 editorc
428 editortype
429 editoratype
430 editorbtype
431 editorctype
432 eprint
433 eprintclass
434 eprinttype
435 foreword
436 introduction
437 isbn
438 language
439 location
440 mainsubtitle
441 maintitle
442 maintitleaddon
443 note
444 number
445 origlanguage
446 pages
447 pagetotal
448 part
449 publisher
450 pubstate
451 series
452 subtitle
453 titleaddon
454 translator
455 url
456 urlday
457 urlendday
458 urlendmonth
459 urlendyear
460 urlmonth
461 urlyear
462 volume
463 volumes}
464 if $type = collection}
465
466 keep.field{{editor
467 title
468 day
469 endday
470 endmonth
471 endyear
472 month
473 year
474 addendum
475 afterword
476 annotator
477 chapter
478 commentator
479 doi
480 edition
481 editora
482 editorb
483 editorc
484 editortype
485 editoratype
486 editorbtype
487 editorctype
488 eprint
489 eprintclass
490 eprinttype
491 foreword
492 introduction
493 isbn
494 language
495 location
496 mainsubtitle
497 maintitle
498 maintitleaddon
499 note
500 number
501 origlanguage
502 pages
503 pagetotal
504 part
505 publisher
506 pubstate
507 series
508 subtitle
509 titleaddon
510 translator
511 url
512 urlday
513 urlendday
514 urlendmonth
515 urlendyear
516 urlmonth
517 urlyear
518 volume
519 volumes}
520 if $type = reference}
521
522 keep.field{{author
523 title
524 day
525 endday
526 endmonth
527 endyear
528 month
529 year
530 addendum
531 afterword
532 annotator
533 commentator
534 doi
535 edition
536 editor
537 editora
538 editorb
539 editorc
540 editortype
541 editoratype
542 editorbtype
543 editorctype
544 eprint
545 eprintclass
546 eprinttype
547 foreword
548 introduction
549 isbn
550 language
551 location
552 note
553 number
554 origlanguage
555 publisher
556 pubstate
557 subtitle
558 titleaddon
559 translator
560 url
561 urlday
562 urlendday
563 urlendmonth
564 urlendyear
565 urlmonth
566 urlyear
567 volume
568 volumes}
569 if $type = mvreference}
570
571 keep.field{{author
572 title
573 day
574 endday
575 endmonth
576 endyear
577 month
578 year
579 addendum
580 afterword
581 annotator
582 commentator
583 doi
584 edition
585 editor
586 editora
587 editorb
588 editorc
589 editortype
590 editoratype
591 editorbtype
592 editorctype
593 eprint
594 eprintclass
595 eprinttype
596 foreword
597 introduction
598 isbn
599 language
600 location
601 note
602 number
603 origlanguage
604 publisher
605 pubstate
606 subtitle
607 titleaddon
608 translator
609 url
610 urlday
611 urlendday
612 urlendmonth
613 urlendyear
614 urlmonth
615 urlyear
616 volume
617 volumes}
618 if $type = mvcollection}
619 keep.field{{author
620 editor
621 title
622 booktitle
623 day
624 endday
625 endmonth
626 endyear
627 month
628 year
629 addendum
630 afterword
631 annotator
632 booksubtitle
633 booktitleaddon
634 chapter
635 commentator
636 doi
637 edition
638 editora
639 editorb
640 editorc
641 editortype
642 editoratype
643 editorbtype
644 editorctype
645 eprint
646 eprintclass
647 eprinttype
648 foreword
649 introduction
650 isbn
651 language
652 location
653 mainsubtitle
654 maintitle
655 maintitleaddon
656 note
657 number
658 origlanguage
659 pages
660 part
661 publisher
662 pubstate
663 series
664 subtitle
665 titleaddon
666 translator
667 url
668 urlday
669 urlendday
670 urlendmonth
671 urlendyear
672 urlmonth
673 urlyear
674 volume
675 volumes}
676 if $type = incollection}
677
678 keep.field{{author
679 editor
680 title
681 booktitle
682 day
683 endday
684 endmonth
685 endyear
686 month
687 year
688 addendum
689 afterword
690 annotator
691 booksubtitle
692 booktitleaddon
693 chapter
694 commentator
695 doi
696 edition
697 editora
698 editorb
699 editorc
700 editortype
701 editoratype
702 editorbtype
703 editorctype
704 eprint
705 eprintclass
706 eprinttype
707 foreword
708 introduction
709 isbn
710 language
711 location
712 mainsubtitle
713 maintitle
714 maintitleaddon
715 note
716 number
717 origlanguage
718 pages
719 part
720 publisher
721 pubstate
722 series
723 subtitle
724 titleaddon
725 translator
726 url
727 urlday
728 urlendday
729 urlendmonth
730 urlendyear
731 urlmonth
732 urlyear
733 volume
734 volumes}
735 if $type = suppcollection}
736
737 keep.field{{author
738 editor
739 title
740 booktitle
741 day
742 endday
743 endmonth
744 endyear
745 month
746 year
747 addendum
748 afterword
749 annotator
750 booksubtitle
751 booktitleaddon
752 chapter
753 commentator
754 doi
755 edition
756 editora
757 editorb
758 editorc
759 editortype
760 editoratype
761 editorbtype
762 editorctype
763 eprint
764 eprintclass
765 eprinttype
766 foreword
767 introduction
768 isbn
769 language
770 location
771 mainsubtitle
772 maintitle
773 maintitleaddon
774 note
775 number
776 origlanguage
777 pages
778 part
779 publisher
780 pubstate
781 series
782 subtitle
783 titleaddon
784 translator
785 url
786 urlday
787 urlendday
788 urlendmonth
789 urlendyear
790 urlmonth
791 urlyear
792 volume
793 volumes}
794 if $type = inreference}
795
796 keep.field{{title
797 day
798 endday
799 endmonth
800 endyear
801 month
802 year
803 addendum
804 author
805 chapter
806 doi
807 edition
808 editor
809 editortype
810 eprint
811 eprintclass
812 eprinttype
813 isbn
814 language
815 location
816 note
817 number
818 organization
819 pages
820 pagetotal
821 publisher
822 pubstate
823 series
824 subtitle
825 titleaddon
826 type
827 url
828 urlday
829 urlendday
830 urlendmonth
831 urlendyear
832 urlmonth
833 urlyear
834 version}
835 if $type = manual}
836
837 keep.field{{title
838 day
839 endday
840 endmonth
841 endyear
842 day
843 endday
844 endmonth
845 endyear
846 month
847 year
848 addendum
849 author
850 doi
851 editor
852 editortype
853 eprint
854 eprintclass
855 eprinttype
856 howpublished
857 language
858 location
859 note
860 organization
861 pubstate
862 subtitle
863 titleaddon
864 type
865 url
866 urlday
867 urlendday
868 urlendmonth
869 urlendyear
870 urlmonth
871 urlyear
872 version}
873 if $type = misc}
874
875 keep.field{{title
876 url
877 addendum
878 author
879 editor
880 editortype
881 language
882 month
883 note
884 organization
885 pubstate
886 subtitle
887 titleaddon
888 urlday
889 urlendday
890 urlendmonth
891 urlendyear
892 urlmonth
893 urlyear
894 version
895 year}
896 if $type = online}
897
898 keep.field{{author
899 title
900 number
901 day
902 endday
903 endmonth
904 endyear
905 month
906 year
907 addendum
908 doi
909 eprint
910 eprintclass
911 eprinttype
912 holder
913 location
914 note
915 pubstate
916 subtitle
917 titleaddon
918 type
919 url
920 urlday
921 urlendday
922 urlendmonth
923 urlendyear
924 urlmonth
925 urlyear
926 version}
927 if $type = patent}
928
929 keep.field{{editor
930 title
931 day
932 endday
933 endmonth
934 endyear
935 month
936 year
937 addendum
938 doi
939 editora
940 editorb
941 editorc
942 editortype
943 editoratype
944 editorbtype
945 editorctype
946 eprint
947 eprintclass
948 eprinttype
949 issn
950 issue
951 issuesubtitle
952 issuetitle
953 language
954 note
955 number
956 pubstate
957 series
958 subtitle
959 url
960 urlday
961 urlendday
962 urlendmonth
963 urlendyear
964 urlmonth
965 urlyear
966 volume}
967 if $type = periodical}
968
969 keep.field{{editor
970 editortype
971 title
972 day
973 endday
974 endmonth
975 endyear
976 month
977 year
978 addendum
979 doi
980 eprint
981 eprintclass
982 eprinttype
983 eventday
984 eventendday
985 eventendmonth
986 eventendyear
987 eventmonth
988 eventyear
989 eventtitle
990 eventtitleaddon
991 isbn
992 language
993 location
994 note
995 number
996 organization
997 pagetotal
998 publisher
999 pubstate
1000 series
1001 subtitle
1002 titleaddon
1003 url
1004 urlday
1005 urlendday
1006 urlendmonth
1007 urlendyear
1008 urlmonth
1009 urlyear
1010 venue
1011 volumes}
1012 if $type = mvproceedings}
1013
1014 keep.field{{editor
1015 editortype
1016 title
1017 day
1018 endday
1019 endmonth
1020 endyear
1021 month
1022 year
1023 addendum
1024 chapter
1025 doi
1026 eprint
1027 eprintclass
1028 eprinttype
1029 eventday
1030 eventendday
1031 eventendmonth
1032 eventendyear
1033 eventmonth
1034 eventyear
1035 eventtitle
1036 eventtitleaddon
1037 isbn
1038 language
1039 location
1040 mainsubtitle
1041 maintitle
1042 maintitleaddon
1043 note
1044 number
1045 organization
1046 pages
1047 pagetotal
1048 part
1049 publisher
1050 pubstate
1051 series
1052 subtitle
1053 titleaddon
1054 url
1055 urlday
1056 urlendday
1057 urlendmonth
1058 urlendyear
1059 urlmonth
1060 urlyear
1061 venue
1062 volume
1063 volumes}
1064 if $type = proceedings}
1065
1066 keep.field{{author
1067 editor
1068 editortype
1069 title
1070 booktitle
1071 day
1072 endday
1073 endmonth
1074 endyear
1075 month
1076 year
1077 addendum
1078 booksubtitle
1079 booktitleaddon
1080 chapter
1081 doi
1082 eprint
1083 eprintclass
1084 eprinttype
1085 eventday
1086 eventendday
1087 eventendmonth
1088 eventendyear
1089 eventmonth
1090 eventyear
1091 eventtitle
1092 eventtitleaddon
1093 isbn
1094 language
1095 location
1096 mainsubtitle
1097 maintitle
1098 maintitleaddon
1099 note
1100 number
1101 organization
1102 pages
1103 part
1104 publisher
1105 pubstate
1106 series
1107 subtitle
1108 titleaddon
1109 url
1110 urlday
1111 urlendday
1112 urlendmonth
1113 urlendyear
1114 urlmonth
1115 urlyear
1116 venue
1117 volume
1118 volumes}
1119 if $type = inproceedings}
1120
1121 keep.field{{author
1122 title
1123 type
1124 institution
1125 day
1126 endday
1127 endmonth
1128 endyear
1129 month
1130 year
1131 addendum
1132 chapter
1133 doi
1134 eprint
1135 eprintclass
1136 eprinttype
1137 isrn
1138 language
1139 location
1140 note
1141 number
1142 pages
1143 pagetotal
1144 pubstate
1145 subtitle
1146 titleaddon
1147 url
1148 urlday
1149 urlendday
1150 urlendmonth
1151 urlendyear
1152 urlmonth
1153 urlyear
1154 version}
1155 if $type = report}
1156
1157 keep.field{{author
1158 title
1159 type
1160 institution
1161 day
1162 endday
1163 endmonth
1164 endyear
1165 month
1166 year
1167 addendum
1168 chapter
1169 doi
1170 eprint
1171 eprintclass
1172 eprinttype
1173 language
1174 location
1175 note
1176 pages
1177 pagetotal
1178 pubstate
1179 subtitle
1180 titleaddon
1181 url
1182 urlday
1183 urlendday
1184 urlendmonth
1185 urlendyear
1186 urlmonth
1187 urlyear}
1188 if $type = thesis}
1189
1190 keep.field{{author
1191 title
1192 day
1193 endday
1194 endmonth
1195 endyear
1196 month
1197 year
1198 addendum
1199 howpublished
1200 language
1201 location
1202 note
1203 pubstate
1204 subtitle
1205 titleaddon
1206 url
1207 urlday
1208 urlendday
1209 urlendmonth
1210 urlendyear
1211 urlmonth
1212 urlyear}
1213 if $type = unpublished}