Skip to content

Commit

Permalink
fix trivial mistypes w/ codespell
Browse files Browse the repository at this point in the history
  • Loading branch information
SaveTheRbtz committed Apr 3, 2022
1 parent 9a5261d commit e0aa941
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion add_emoji_gsub.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down
6 changes: 3 additions & 3 deletions check_emoji_sequences.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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]
Expand Down Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion collect_emoji_svg.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
8 changes: 4 additions & 4 deletions gen_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@
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 <msg>
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.
"""
Expand Down Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion scour_svg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit e0aa941

Please sign in to comment.