From e0aa9412575fc39384efd39f90c4390d66bdd18f Mon Sep 17 00:00:00 2001 From: Alexey Ivanov Date: Sat, 2 Apr 2022 22:05:51 -0700 Subject: [PATCH] fix trivial mistypes w/ codespell --- add_emoji_gsub.py | 2 +- check_emoji_sequences.py | 6 +++--- collect_emoji_svg.py | 2 +- gen_version.py | 8 ++++---- scour_svg.sh | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/add_emoji_gsub.py b/add_emoji_gsub.py index 9f1c40366..741bae2ca 100755 --- a/add_emoji_gsub.py +++ b/add_emoji_gsub.py @@ -140,7 +140,7 @@ def create_simple_gsub(lookups, script='DFLT', feature='ccmp'): def reg_indicator(letter): - """Return a regional indicator charater from corresponing capital letter. + """Return a regional indicator character from corresponding capital letter. """ return 0x1F1E6 + ord(letter) - ord('A') diff --git a/check_emoji_sequences.py b/check_emoji_sequences.py index d1f60097e..df003e28e 100755 --- a/check_emoji_sequences.py +++ b/check_emoji_sequences.py @@ -122,7 +122,7 @@ def _check_valid_emoji_cps(sorted_seq_to_filepath, unicode_version): coverage_pass = False if not coverage_pass: - exit("Please fix the problems metioned above or run: make BYPASS_SEQUENCE_CHECK='True'") + exit("Please fix the problems mentioned above or run: make BYPASS_SEQUENCE_CHECK='True'") def _check_zwj(sorted_seq_to_filepath): @@ -144,7 +144,7 @@ def _check_zwj(sorted_seq_to_filepath): pcp = seq[i-1] if pcp != EMOJI_VS and not unicode_data.is_emoji(pcp): print( - f'check zwj: non-emoji {pcp} preceeds ZWJ in {fp}', + f'check zwj: non-emoji {pcp} precedes ZWJ in {fp}', file=sys.stderr) if i < len(seq) - 1: fcp = seq[i+1] @@ -313,7 +313,7 @@ def _check_coverage(seq_to_filepath, unicode_version): coverage_pass = False if not coverage_pass: - exit("Please fix the problems metioned above or run: make BYPASS_SEQUENCE_CHECK='True'") + exit("Please fix the problems mentioned above or run: make BYPASS_SEQUENCE_CHECK='True'") def check_sequence_to_filepath(seq_to_filepath, unicode_version, coverage): diff --git a/collect_emoji_svg.py b/collect_emoji_svg.py index 9d2ba640e..6379369a3 100755 --- a/collect_emoji_svg.py +++ b/collect_emoji_svg.py @@ -98,7 +98,7 @@ def copy_with_rename(src_dir, dst_dir, accept_pred=None, rename=None): def build_svg_dir(dst_dir, clean=False, emoji_dir='', flags_dir=''): """Copies/renames files from emoji_dir and then flags_dir, giving them the standard format and prefix ('emoji_u' followed by codepoints expressed in hex - separated by underscore). If clean, removes the target dir before proceding. + separated by underscore). If clean, removes the target dir before proceeding. If either emoji_dir or flags_dir are empty, skips them.""" dst_dir = tool_utils.ensure_dir_exists(dst_dir, clean=clean) diff --git a/gen_version.py b/gen_version.py index 48581a82d..e1d70c748 100755 --- a/gen_version.py +++ b/gen_version.py @@ -29,15 +29,15 @@ at commit a8a215d2e889 and date 20170220 (since dates are a bit easier to locate in time than commit hashes). For building with external data we don't include the commit id as we -might be using different resoruces. Instead the version string is: +might be using different resources. Instead the version string is: Version 1.39;GOOG;noto-emoji:20170518;BETA Here the date is the current date, and the message after 'BETA ' is provided using the '-b' flag. There's no commit hash. This also bypasses some checks about the state of the repo. -The relase number should have 2 or 3 minor digits. Right now we've been -using 2 but at the next major relase we probably want to use 3. This +The release number should have 2 or 3 minor digits. Right now we've been +using 2 but at the next major release we probably want to use 3. This supports both. It will bump the version number if none is provided, maintaining the minor digit length. """ @@ -153,7 +153,7 @@ def _replace_existing_version(lines, version, version_str): def update_version(srcfile, dstfile, version, beta): """Update version in srcfile and write to dstfile. If version is None, bumps the current version, else version must be greater than the - current verison.""" + current version.""" with open(srcfile, 'r') as f: lines = f.readlines() diff --git a/scour_svg.sh b/scour_svg.sh index 06f803009..d0e29bbcf 100755 --- a/scour_svg.sh +++ b/scour_svg.sh @@ -27,7 +27,7 @@ if [ -z "$SRC_DIR" ]; then fi if [ ! -d "$SRC_DIR" ]; then - echo "source dirctory '$SRC_DIR' does not exist" + echo "source directory '$SRC_DIR' does not exist" exit 1; fi