mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
Update spellcheck script.
- Fix wrong argument list for screenshot macro - Add some more macros to the ignore list. - Ignore tex files in platforms/ - Add a user wordlist with common Rockbox terms. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30276 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
55f4bf9dfd
commit
35c1df9cd5
2 changed files with 32 additions and 3 deletions
|
@ -13,18 +13,21 @@
|
|||
# This will invoke aspell interactively.
|
||||
|
||||
MANDIR=$(dirname $0)
|
||||
PERSONALDICT=$MANDIR/spelldict.pws
|
||||
if [ $# -gt 0 ]; then
|
||||
TEX_FILES="$1"
|
||||
else
|
||||
TEX_FILES=$(find "$MANDIR" -name "*.tex" | sed -e "s/\S*preamble.tex//")
|
||||
TEX_FILES=$(find "$MANDIR" -name "*.tex" | sed -e "s/\S*preamble.tex//;/platform\//d;")
|
||||
fi
|
||||
|
||||
for file in $TEX_FILES; do
|
||||
aspell -t -l en_UK-ise --add-tex-command="opt pp" \
|
||||
--add-tex-command="nopt pp" --add-tex-command="screenshot ppo" \
|
||||
--add-tex-command="nopt pp" --add-tex-command="screenshot ppp" \
|
||||
--add-tex-command="reference p" --add-tex-command="fname p" \
|
||||
--add-tex-command="wikilink p" --add-tex-command="IfFileExists p" \
|
||||
--add-tex-command="newcommand pp" --add-tex-command="renewcommand pp" \
|
||||
--add-tex-command="download p" \
|
||||
--add-tex-command="download p" --add-tex-command="begin ppp" \
|
||||
--add-tex-command="config p" \
|
||||
--personal=$PERSONALDICT \
|
||||
-c $file
|
||||
done
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue