hs-bibutils-6.2: bibutils/reftypes.h
/*
* reftypes.h
*
* Copyright (c) Chris Putnam 2003-2017
*
* Source code released under the GPL version 2
*
*/
#ifndef REFTYPES_H
#define REFTYPES_H
#define REFTYPE_CHATTY (0)
#define REFTYPE_SILENT (1)
/* Reftypes handled by core code */
#define ALWAYS (0)
#define DEFAULT (1)
#define SKIP (2)
/* Reftypes to be handled by converters */
#define SIMPLE (2)
#define TYPE (3)
#define PERSON (4)
#define DATE (5)
#define PAGES (6)
#define SERIALNO (7)
#define TITLE (8)
#define NOTES (9)
#define DOI (10)
#define HOWPUBLISHED (11)
#define LINKEDFILE (12)
#define KEYWORD (13)
#define URL (14)
#define BT_SENTE (15) /* Bibtex 'Sente' */
#define BT_GENRE (16) /* Bibtex Genre */
#define BT_EPRINT (17) /* Bibtex 'Eprint' */
#define BT_ORG (18) /* Bibtex Organization */
#define BLT_THESIS_TYPE (19) /* Biblatex Thesis Type */
#define BLT_SCHOOL (20) /* Biblatex School */
#define BLT_EDITOR (21) /* Biblatex Editor */
#define BLT_SUBTYPE (22) /* Biblatex entrysubtype */
#define BLT_SKIP (23) /* Biblatex Skip Entry */
#define EPRINT (24)
#define NUM_REFTYPES (25)
typedef struct {
char *oldstr;
char *newstr;
int processingtype;
int level;
} lookups;
typedef struct {
char type[25];
lookups *tags;
int ntags;
} variants;
int get_reftype( char *q, long refnum, char *progname, variants *all, int nall, char *tag, int *is_default, int chattiness );
int process_findoldtag( char *oldtag, int reftype, variants all[], int nall );
int translate_oldtag( char *oldtag, int reftype, variants all[], int nall, int *processingtype, int *level, char **newtag );
#endif