diff --git a/data/scripts/sort_all.py b/data/scripts/sort_all.py index 20d82fd3c..d1ba06c07 100755 --- a/data/scripts/sort_all.py +++ b/data/scripts/sort_all.py @@ -10,8 +10,8 @@ print(("Usage: ", sys.argv[0], "[directory]")) exit(1) -dirtectory = sys.argv[1] -files = glob.glob(dirtectory + "/*") +directory = sys.argv[1] +files = glob.glob(directory + "/*") for filename in files: print(filename) sort_items(filename, filename) diff --git a/doc/opencc.doxy.in b/doc/opencc.doxy.in index a93862d7f..1dcf0c7aa 100644 --- a/doc/opencc.doxy.in +++ b/doc/opencc.doxy.in @@ -909,7 +909,7 @@ HTML_STYLESHEET = # user-defined cascading style sheet that is included after the standard # style sheets created by doxygen. Using this option one can overrule # certain style aspects. This is preferred over using HTML_STYLESHEET -# since it does not replace the standard style sheet and is therefor more +# since it does not replace the standard style sheet and is therefore more # robust against future updates. Doxygen will copy the style sheet file to # the output directory. @@ -1707,7 +1707,7 @@ UML_LOOK = NO # the class node. If there are many fields or methods and many nodes the # graph may become too big to be useful. The UML_LIMIT_NUM_FIELDS # threshold limits the number of items for each type to make the size more -# managable. Set this to 0 for no limit. Note that the threshold may be +# manageable. Set this to 0 for no limit. Note that the threshold may be # exceeded by 50% before the limit is enforced. UML_LIMIT_NUM_FIELDS = 10 diff --git a/src/SimpleConverter.hpp b/src/SimpleConverter.hpp index 206edea74..56932b76c 100644 --- a/src/SimpleConverter.hpp +++ b/src/SimpleConverter.hpp @@ -66,7 +66,7 @@ class OPENCC_EXPORT SimpleConverter { /** * Converts a text and writes to an allocated buffer - * Please make sure the buffer has sufficent space. + * Please make sure the buffer has sufficient space. * @param input A C-Style std::string (terminated by '\0') to be converted. * @param output Buffer to write the converted text. * @return Length of converted text. @@ -75,7 +75,7 @@ class OPENCC_EXPORT SimpleConverter { /** * Converts a text and writes to an allocated buffer - * Please make sure the buffer has sufficent space. + * Please make sure the buffer has sufficient space. * @param input A C-Style std::string limited by a given length to be * converted. * @param length Maximal length in byte of the input std::string. diff --git a/src/UTF8Util.hpp b/src/UTF8Util.hpp index a04a6fccf..9d3e39b8d 100644 --- a/src/UTF8Util.hpp +++ b/src/UTF8Util.hpp @@ -145,7 +145,7 @@ class OPENCC_EXPORT UTF8Util { } /** - * Returns ture if the character is a line ending or end of file. + * Returns true if the character is a line ending or end of file. */ static bool IsLineEndingOrFileEnding(const char ch) { return ch == '\0' || ch == '\n' || ch == '\r';