1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16\writestatus { loading }{ ConTeXt Language Macros Checking }
17
18\registerctxluafile { lang wrd }{}
19
20\unprotect
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37\installcorenamespace { spell }
38
39\installdirectcommandhandler \??spell { spellchecking }
40
41\appendtoks
42 \doifelse { \directspellcheckingparameter \c!state } \v!start
43 { \clf_enablespellchecking
44 method { \directspellcheckingparameter \c!method }
45 list { \directspellcheckingparameter \c!list }
46 \relax }
47 { \clf_disablespellchecking }
48\to \everysetupspellchecking
49
50\unexpanded \def \loadspellchecklist
51 { \dodoubleempty \lang_spellchecking_load_list }
52
53\def \lang_spellchecking_load_list [# 1 ][# 2 ]
54 { \clf_loadspellchecklist { # 1 }{ # 2 }}
55
56\setupspellchecking
57 [ \c!state = \v!stop ,
58 \c!method = 1 ,
59 \c!list =]
60
61\definecolor [ word : yes ] [ g = . 7 5 ]
62\definecolor [ word : no ] [ r = . 7 5 ]
63
64
65\definecolor [ word : en ] [ b = . 7 5 ]
66\definecolor [ word : de ] [ r = . 7 5 ]
67\definecolor [ word : nl ] [ g = . 7 5 ]
68\definecolor [ word : unknown ][ r = . 7 5 , g = . 7 5 ]
69
70\protect \endinput
71 |