Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos #699

Merged
merged 1 commit into from
Dec 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions data/scripts/sort_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
4 changes: 2 additions & 2 deletions doc/opencc.doxy.in
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/SimpleConverter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/UTF8Util.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down