-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.def.h
35 lines (32 loc) · 1.12 KB
/
config.def.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
#define LANG_POS 8
#define _PADDING 3
char language[] = "en";
char temp_file[] = "/tmp/__wikidtmp.XXXXXX";
const Service services[] = {
{ "wikipedia", "https://xx.wikipedia.org/w/api.php"
"?format=json"
"&action=query"
"&prop=extracts"
"&exlimit=1"
"&explaintext"
"&redirects"
"&titles="},
{ "wiktionary", "https://xx.wiktionary.org/w/api.php"
"?format=json"
"&action=query"
"&prop=extracts"
"&exlimit=1"
"&explaintext"
"&redirects"
"&titles="},
};
/* cleanup mappings for wikipedia responses
* NOTE: the replacement cannot be greater in size than the entity itself. If
* it is, it'll just be ignored.
*/
const Dictionary cleanup_mappings[] = {
/* entity replacement */
{ "\\n", "\n\n" },
{ "\\t", " " },
{ "\\\"", "\"" },
};