-
Notifications
You must be signed in to change notification settings - Fork 1
/
format.h
45 lines (39 loc) · 790 Bytes
/
format.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#include "index.h"
typedef enum {
BOLD,
ITALIC,
UNDERLINE,
FULL_MODE,
MARGIN,
TRANSLATION,
EXAMPLE,
COMMENT,
URL,
NO_INDEX,
LABEL,
STRESS,
LANG,
REF,
SUB,
SUP,
COLOR,
MEDIA,
N_TAG
} TAG;
struct format_
{
struct tag
{
TAG type;
size_t pos;
int open;
char *properties;
} *tag;
int N;
char *string;
};
extern void render_cli(struct dictionary D,struct format_ *format,int color);
extern int unzip_resources(struct format_ *format, char *path_name, const char *zipfilename);
extern void show_dictionaries(struct root_ D);
extern void strip_tags(char *src,struct format_ *format);
extern void free_format(struct format_ *format);