Skip to content

Commit a7eb440

Browse files
authored
Merge pull request #78 from lonelypeanut/master
Add spellcheck functionality to Martor
2 parents 3c2c308 + 3cb0b6e commit a7eb440

File tree

8 files changed

+63489
-1
lines changed

8 files changed

+63489
-1
lines changed

README.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ Features
3535
* Supports Django Admin
3636
* Toolbar Buttons
3737
* Highlight ``pre``
38+
* Spellchecking (only supports US English at this time)
3839

3940

4041
Preview

martor/settings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
'mention': 'false', # to enable/disable mention
99
'jquery': 'true', # to include/revoke jquery (require for admin default django)
1010
'living': 'false', # to enable/disable live updates in preview
11+
'spellcheck': 'true', # to enable/disable spellcheck in form textareas
1112
}
1213
)
1314

martor/static/dicts/en_US.aff

Lines changed: 201 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,201 @@
1+
SET ISO8859-1
2+
TRY esianrtolcdugmphbyfvkwzESIANRTOLCDUGMPHBYFVKWZ'
3+
NOSUGGEST !
4+
5+
# ordinal numbers
6+
COMPOUNDMIN 1
7+
# only in compounds: 1th, 2th, 3th
8+
ONLYINCOMPOUND c
9+
# compound rules:
10+
# 1. [0-9]*1[0-9]th (10th, 11th, 12th, 56714th, etc.)
11+
# 2. [0-9]*[02-9](1st|2nd|3rd|[4-9]th) (21st, 22nd, 123rd, 1234th, etc.)
12+
COMPOUNDRULE 2
13+
COMPOUNDRULE n*1t
14+
COMPOUNDRULE n*mp
15+
WORDCHARS 0123456789
16+
17+
PFX A Y 1
18+
PFX A 0 re .
19+
20+
PFX I Y 1
21+
PFX I 0 in .
22+
23+
PFX U Y 1
24+
PFX U 0 un .
25+
26+
PFX C Y 1
27+
PFX C 0 de .
28+
29+
PFX E Y 1
30+
PFX E 0 dis .
31+
32+
PFX F Y 1
33+
PFX F 0 con .
34+
35+
PFX K Y 1
36+
PFX K 0 pro .
37+
38+
SFX V N 2
39+
SFX V e ive e
40+
SFX V 0 ive [^e]
41+
42+
SFX N Y 3
43+
SFX N e ion e
44+
SFX N y ication y
45+
SFX N 0 en [^ey]
46+
47+
SFX X Y 3
48+
SFX X e ions e
49+
SFX X y ications y
50+
SFX X 0 ens [^ey]
51+
52+
SFX H N 2
53+
SFX H y ieth y
54+
SFX H 0 th [^y]
55+
56+
SFX Y Y 1
57+
SFX Y 0 ly .
58+
59+
SFX G Y 2
60+
SFX G e ing e
61+
SFX G 0 ing [^e]
62+
63+
SFX J Y 2
64+
SFX J e ings e
65+
SFX J 0 ings [^e]
66+
67+
SFX D Y 4
68+
SFX D 0 d e
69+
SFX D y ied [^aeiou]y
70+
SFX D 0 ed [^ey]
71+
SFX D 0 ed [aeiou]y
72+
73+
SFX T N 4
74+
SFX T 0 st e
75+
SFX T y iest [^aeiou]y
76+
SFX T 0 est [aeiou]y
77+
SFX T 0 est [^ey]
78+
79+
SFX R Y 4
80+
SFX R 0 r e
81+
SFX R y ier [^aeiou]y
82+
SFX R 0 er [aeiou]y
83+
SFX R 0 er [^ey]
84+
85+
SFX Z Y 4
86+
SFX Z 0 rs e
87+
SFX Z y iers [^aeiou]y
88+
SFX Z 0 ers [aeiou]y
89+
SFX Z 0 ers [^ey]
90+
91+
SFX S Y 4
92+
SFX S y ies [^aeiou]y
93+
SFX S 0 s [aeiou]y
94+
SFX S 0 es [sxzh]
95+
SFX S 0 s [^sxzhy]
96+
97+
SFX P Y 3
98+
SFX P y iness [^aeiou]y
99+
SFX P 0 ness [aeiou]y
100+
SFX P 0 ness [^y]
101+
102+
SFX M Y 1
103+
SFX M 0 's .
104+
105+
SFX B Y 3
106+
SFX B 0 able [^aeiou]
107+
SFX B 0 able ee
108+
SFX B e able [^aeiou]e
109+
110+
SFX L Y 1
111+
SFX L 0 ment .
112+
113+
REP 88
114+
REP a ei
115+
REP ei a
116+
REP a ey
117+
REP ey a
118+
REP ai ie
119+
REP ie ai
120+
REP are air
121+
REP are ear
122+
REP are eir
123+
REP air are
124+
REP air ere
125+
REP ere air
126+
REP ere ear
127+
REP ere eir
128+
REP ear are
129+
REP ear air
130+
REP ear ere
131+
REP eir are
132+
REP eir ere
133+
REP ch te
134+
REP te ch
135+
REP ch ti
136+
REP ti ch
137+
REP ch tu
138+
REP tu ch
139+
REP ch s
140+
REP s ch
141+
REP ch k
142+
REP k ch
143+
REP f ph
144+
REP ph f
145+
REP gh f
146+
REP f gh
147+
REP i igh
148+
REP igh i
149+
REP i uy
150+
REP uy i
151+
REP i ee
152+
REP ee i
153+
REP j di
154+
REP di j
155+
REP j gg
156+
REP gg j
157+
REP j ge
158+
REP ge j
159+
REP s ti
160+
REP ti s
161+
REP s ci
162+
REP ci s
163+
REP k cc
164+
REP cc k
165+
REP k qu
166+
REP qu k
167+
REP kw qu
168+
REP o eau
169+
REP eau o
170+
REP o ew
171+
REP ew o
172+
REP oo ew
173+
REP ew oo
174+
REP ew ui
175+
REP ui ew
176+
REP oo ui
177+
REP ui oo
178+
REP ew u
179+
REP u ew
180+
REP oo u
181+
REP u oo
182+
REP u oe
183+
REP oe u
184+
REP u ieu
185+
REP ieu u
186+
REP ue ew
187+
REP ew ue
188+
REP uff ough
189+
REP oo ieu
190+
REP ieu oo
191+
REP ier ear
192+
REP ear ier
193+
REP ear air
194+
REP air ear
195+
REP w qu
196+
REP qu w
197+
REP z ss
198+
REP ss z
199+
REP shun tion
200+
REP shun sion
201+
REP shun cion

0 commit comments

Comments
 (0)