Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Plumed AlphaFold
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martin Kurečka
Plumed AlphaFold
Commits
e6b6dfab
There was an error fetching the commit references. Please try again later.
Commit
e6b6dfab
authored
6 years ago
by
Gareth Tribello
Browse files
Options
Downloads
Patches
Plain Diff
Added functionality to check spellings in changelog
parent
9a7bf733
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
user-doc/go-spelling
+13
-14
13 additions, 14 deletions
user-doc/go-spelling
user-doc/spelling_words.dict
+318
-0
318 additions, 0 deletions
user-doc/spelling_words.dict
with
331 additions
and
14 deletions
user-doc/go-spelling
+
13
−
14
View file @
e6b6dfab
...
...
@@ -2,7 +2,6 @@
rm
-rf
spelling
mkdir
spelling
mkdir
spelling/automatic
# Get names of all actions and command line tools
../src/lib/plumed
--no-mpi
manual
--action
=
ABMD
>
/dev/null 2> spelling/keywords
cat
spelling/keywords |
grep
-v
"LIST OF"
|
awk
'{if(NF>0) print $1}'
>
spelling/pkeys
...
...
@@ -19,34 +18,34 @@ echo personal_ws-1.1 en $nsafewords > ./spelling/allwords.dict
cat
spelling/keywords spelling/allkeys spelling_words.dict
>>
spelling/allwords.dict
# This is everything we have done thus far
for
file
in
*
PP.md automatic/
*
.txt
;
do
for
file
in
*
PP.md automatic/
*
.txt
../CHANGES/
*
.md tutorials/
*
.txt tutorials/
*
.site tutorials/others/
*
.txt
;
do
echo
Checking spelling
for
file
$file
splits
=
`
echo
$file
|
sed
-e
's/\// /g'
`
nf
=
`
echo
$splits
|
awk
'{print NF}'
`
fname
=
`
echo
$splits
|
awk
-v
n
=
$nf
'{print $n}'
`
# This is some stuff to get rid of stuff that trips up the spell checker: the equations and the plumed examples
cat
$file
|
sed
-e
's/psi-1//'
|
sed
-e
's/-#//'
|
sed
-e
's/@//'
|
sed
-e
's/&//'
|
sed
-e
's/\vdots//'
|
cat
$file
|
grep
-v
"
\\
image"
|
grep
-v
"anchor"
|
sed
-e
's/psi-1//'
|
sed
-e
's/-#//'
|
sed
-e
's/@//'
|
sed
-e
's/&//'
|
sed
-e
's/\vdots//'
|
awk
'BEGIN{inp=0}{
if($1=="\\endplumedfile" || $1=="\\f]" || $1=="\\f}" || $1=="\\endverbatim"){inp=0;}
else if($1=="\\plumedfile" || $1=="\\f[" || $1=="\\f{eqnarray*}{" || $1=="\\verbatim"){inp=1;}
if($1=="\\endplumedfile" || $1=="\\f]" || $1=="\\f}" || $1=="\\endverbatim"
|| $1=="\\endcode"
){inp=0;}
else if($1=="\\plumedfile" || $1=="\\f[" || $1=="\\f{eqnarray*}{" || $1=="\\verbatim"
|| index($1,"\\code{")!=0
){inp=1;}
else if(inp==0){
skip=0;
for(i=1;i<=NF;++i){
if(skip==1){ skip=0; }
else if($i=="\\cite" || $i=="\\ref" || $i=="\\page" || $i=="subpage" || $i=="\\subpage" || $i=="\\section" || $i=="\\subsection" || $i=="\\link" ){ skip=1; }
else if(index($i, "\\f$")==0 && index($i,"http")==0 ) { printf(" %s",$i); }
else if(
$i=="\\subsubsection" ||
$i=="\\cite" || $i=="\\ref" || $i=="\\page" || $i=="subpage" || $i=="\\subpage" || $i=="\\section" || $i=="\\subsection" || $i=="\\link" ){ skip=1; }
else if(index($i, "\\f$")==0 && index($i,"http")==0
&& index($i,".py")==0
) { printf(" %s",$i); }
}
printf("\n");
}
}'
>
spelling/
$f
il
e
.md
}'
>
spelling/
$f
nam
e
.md
# Check for spelling mistakes
tail
-n
+2 spelling/
$f
il
e
.md |
grep
-v
"*/"
| aspell pipe
-H
--dont-suggest
--personal
=
./spelling/allwords.dict |
grep
-v
'*'
|
grep
-v
"International Ispell"
|
awk
'{if(NF>0) print $0}'
>
spelling/
$f
il
e
.err
nerrors
=
`
wc
-l
spelling/
$f
il
e
.err |
awk
'{print $1}'
`
tail
-n
+2 spelling/
$f
nam
e
.md |
grep
-v
"*/"
| aspell pipe
-H
--dont-suggest
--personal
=
./spelling/allwords.dict |
grep
-v
'*'
|
grep
-v
"International Ispell"
|
awk
'{if(NF>0) print $0}'
>
spelling/
$f
nam
e
.err
nerrors
=
`
wc
-l
spelling/
$f
nam
e
.err |
awk
'{print $1}'
`
# Crash out if there are spelling mistakes
if
[
$nerrors
-gt
0
]
;
then
echo
"Found spelling mistakes in documentation file
$file
"
cat
spelling/
$f
il
e
.err
cat
spelling/
$f
nam
e
.err
exit
1
fi
done
# These are other files we want to check
# ls tutorials/*.txt tutorials/others/*.txt ../CHANGES/*.md
This diff is collapsed.
Click to expand it.
user-doc/spelling_words.dict
+
318
−
0
View file @
e6b6dfab
...
...
@@ -143,6 +143,7 @@ Trp
Valsson
Variationally
variationally
variational
vatom
ves
VES
...
...
@@ -575,3 +576,320 @@ DBUILD
DGMX
mdrun
Ralf
NPT
setMPIFIntercomm
setMPIFIntracomm
cmd
setStopFlag
GPUs
Giorgino
symlink
CMAP
getBias
BiasValue
plumednotmaintained
Hamiltonians
dfc
Abhi
argname
setmintozero
PLMD
CoordinationBase
GPL
BG
gettimeofday
LAMMPS
Swails
CFLAGS
cppcheck
lbz
LIBSUFFIX
bluegene
linux
molinfo
readdir
argnumber
Parrinello
Tiwary
vesselbase
MultiValue
lapack
DESTDIR
num
autotools
cpt
parallelization
UNNORMALIZED
AtomValuePack
CP
Ley
endline
crystallisation
performTask
crystallisation
VectorMultiColvar
ifdef
ActionWithVessel
NaN
IMD
Piaggi
Domanski
mpirun
checkpointing
componentWithDerivatives
setBias
setMDMassUnits
setMDChargeUnits
readInputLine
performCalcNoUpdate
doCheckPoint
const
Doxygen
NaNs
LatticeReduction
Massimiliano
Capitan
Portfiles
ccache
xdr
astyle
exitcode
DYLD
Culpo
plumedcheck
El
ASYNC
conda
symmetrize
Nava
Dama
Pazurikova
gettimeofdate
gettime
chrono
changelog
LDSO
LDSHARED
libplumedWrapper
pkgconfig
makefile
MPIEXEC
installcheck
SIMD
glycine
LDSHARED
PDB
SCEXP
MAXFACTOR
pABF
Marquardt
Hozzova
atan
ptr
cxx
namespace
Bsymbolic
PWD
rdynamic
vmd
solvated
endhidden
trieste
glycosidic
NVT
autocorrelation
monte
carlo
rangle
langle
Alanine
dipeptide
alanine
wdimer
mdp
vacuo
diala
von
Ramachandran
munster
equilibrate
ILDN
ala
binless
demuxed
demuxing
trajout
xvg
ALLBIAS
fulltraj
analine
discretize
cmyc
Cmyc
BRCA
edist
comdist
inhomogeneous
Arieh
Warshel
ActionWithArguments
MSD
rama
commmittor
gplt
SMD
Nucleophillic
HETATM
trjcat
rototranslations
GISMO
vmdrc
grompp
nsteps
plotme
Verlet
Jarzyinsi
integrators
JARZ
equilibrated
thermalization
sigmoid
TOPO
PTMetaD
WTE
configurational
BEMETA
METAGUI
metagui
Microstates
microstate
Gervasio
Laio
Raiteri
Micheletti
Marinelli
et
al
cv
Biarnes
Teq
Ttot
rotameric
microstates
Vendruscolo
Baftizadeh
Piana
Leu
WTBX
Kullback
Lieber
Symmetrized
Cossio
Proc
Acad
Comun
Comput
PLOS
Ile
VIL
zwitterionic
replex
NBIASEDCV
BIASEDCV
PLoS
Commun
gnp
TRP
Ubiquitin
Cavalli
JCTC
Weare
Boomsma
Lindorff
Ferkinghoff
Lectner
FCC
Ceriotti
Cheng
Simul
Trudu
Donadio
Quigley
Lett
judgement
cambridge
Chignolin
MPhil
WTMetaD
sb
di
CINECA
cineca
topolA
topolB
uncompressing
cmap
Topologies
topologies
nstlist
Julich
doxygen
Valgrind
polymorphism
biomolecular
isocommittor
pca
Crumlin
biomolecule
biomolecules
Francesco
NOHILLS
BIASXMD
STEERPLAN
UWALL
LWALL
WATERBRIDGE
RGYR
ELSTPOT
RDF
ADF
Bussi
Cunha
topolAwat
topolBwat
charmm
eef
impl
pbmetad
univocally
deconvolve
EGAAWAASS
jcouplings
ReweightDistance
ReweightBoth
gpi
sed
metad
targetdistribution
plotCoeffs
plotFes
plotTargetDistrib
BiasedDistribution
runRestart
coeff
Kolmogorov
Smirnov
airebo
scipy
statsmodels
AIREBO
newmovie
DynamicBonds
VDW
hyperdynamics
MANYBODY
RW
fullerene
fpt
ECDF
CDF
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment