Blender V2.61 - r43446

spell_check_source_config.py

Go to the documentation of this file.
00001 # ##### BEGIN GPL LICENSE BLOCK #####
00002 #
00003 #  This program is free software; you can redistribute it and/or
00004 #  modify it under the terms of the GNU General Public License
00005 #  as published by the Free Software Foundation; either version 2
00006 #  of the License, or (at your option) any later version.
00007 #
00008 #  This program is distributed in the hope that it will be useful,
00009 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
00010 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00011 #  GNU General Public License for more details.
00012 #
00013 #  You should have received a copy of the GNU General Public License
00014 #  along with this program; if not, write to the Free Software Foundation,
00015 #  Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00016 #
00017 # ##### END GPL LICENSE BLOCK #####
00018 
00019 # <pep8 compliant>
00020 
00021 # these must be all lower case for comparisons
00022 
00023 # correct spelling but ignore
00024 dict_custom = {
00025     "iterable",
00026     "prepend",
00027     "subclass", "subclasses", "subclassing",
00028     "merchantability",
00029     "precalculate",
00030     "unregister",
00031     "subdirectory",
00032     "decrement",
00033     "boolean",
00034 
00035     # python types
00036     "str",
00037     "enum", "enums",
00038     "int", "ints",
00039     "tuple", "tuples",
00040     # python funcs
00041     "repr",
00042     "func",
00043 
00044     # accepted abbreviations
00045     "config",
00046     "addon", "addons",
00047     "subdir",
00048     "struct", "structs",
00049     "lookup", "lookups",
00050     "autocomplete",
00051     "namespace",
00052     "multi",
00053     "keyframe", "keyframing",
00054     "coord", "coords",
00055     "dir",
00056 
00057     # general computer terms
00058     "unicode",
00059     "jitter",
00060     "quantized",
00061     "searchable",
00062     "metadata",
00063     "hashable",
00064     "normals",
00065     "stdin",
00066     "opengl",
00067     "boids",
00068     "keymap",
00069     "voxel",
00070     "euler", "eulers",
00071 
00072     # should have apostrophe but ignore for now
00073     # unless we want to get really picky!
00074     "indices",
00075     "vertices",
00076 }
00077 
00078 # incorrect spelling but ignore anyway
00079 dict_ignore = {
00080     "tri",
00081     "quad",
00082     "eg",
00083     "ok",
00084     "ui",
00085     "uv",
00086     "arg", "args",
00087     "vec",
00088     "loc",
00089     "dof",
00090     "bool",
00091     "dupli",
00092     "readonly",
00093     "filepath",
00094     "filepaths",
00095     "filename", "filenames",
00096     "submodule", "submodules",
00097     "dirpath",
00098     "x-axis",
00099     "y-axis",
00100     "z-axis",
00101     "a-z",
00102     "id-block",
00103     "node-trees",
00104 
00105     # acronyms
00106     "gzip",
00107     "ppc",
00108     "gpl",
00109     "rna",
00110     "nla",
00111     "api",
00112     "rhs",
00113     "lhs",
00114     "ik",
00115     "smpte",
00116 
00117     # tags
00118     "fixme",
00119     "todo",
00120 
00121     # sphinx/rst
00122     "rtype",
00123 
00124     # slang
00125     "hrmf",
00126 
00127     # names
00128     "jahka",
00129     "campbell",
00130 }