commit
c0040cb09c
|
@ -140,7 +140,7 @@ def create_simple_gsub(lookups, script='DFLT', feature='ccmp'):
|
||||||
|
|
||||||
|
|
||||||
def reg_indicator(letter):
|
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')
|
return 0x1F1E6 + ord(letter) - ord('A')
|
||||||
|
|
||||||
|
|
|
@ -122,7 +122,7 @@ def _check_valid_emoji_cps(sorted_seq_to_filepath, unicode_version):
|
||||||
coverage_pass = False
|
coverage_pass = False
|
||||||
|
|
||||||
if not coverage_pass:
|
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):
|
def _check_zwj(sorted_seq_to_filepath):
|
||||||
|
@ -144,7 +144,7 @@ def _check_zwj(sorted_seq_to_filepath):
|
||||||
pcp = seq[i-1]
|
pcp = seq[i-1]
|
||||||
if pcp != EMOJI_VS and not unicode_data.is_emoji(pcp):
|
if pcp != EMOJI_VS and not unicode_data.is_emoji(pcp):
|
||||||
print(
|
print(
|
||||||
f'check zwj: non-emoji {pcp} preceeds ZWJ in {fp}',
|
f'check zwj: non-emoji {pcp} precedes ZWJ in {fp}',
|
||||||
file=sys.stderr)
|
file=sys.stderr)
|
||||||
if i < len(seq) - 1:
|
if i < len(seq) - 1:
|
||||||
fcp = seq[i+1]
|
fcp = seq[i+1]
|
||||||
|
@ -313,7 +313,7 @@ def _check_coverage(seq_to_filepath, unicode_version):
|
||||||
coverage_pass = False
|
coverage_pass = False
|
||||||
|
|
||||||
if not coverage_pass:
|
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):
|
def check_sequence_to_filepath(seq_to_filepath, unicode_version, coverage):
|
||||||
|
|
|
@ -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=''):
|
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
|
"""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
|
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."""
|
If either emoji_dir or flags_dir are empty, skips them."""
|
||||||
|
|
||||||
dst_dir = tool_utils.ensure_dir_exists(dst_dir, clean=clean)
|
dst_dir = tool_utils.ensure_dir_exists(dst_dir, clean=clean)
|
||||||
|
|
|
@ -29,15 +29,15 @@ at commit a8a215d2e889 and date 20170220 (since dates are a bit easier
|
||||||
to locate in time than commit hashes).
|
to locate in time than commit hashes).
|
||||||
|
|
||||||
For building with external data we don't include the commit id as we
|
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>
|
Version 1.39;GOOG;noto-emoji:20170518;BETA <msg>
|
||||||
|
|
||||||
Here the date is the current date, and the message after 'BETA ' is
|
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
|
provided using the '-b' flag. There's no commit hash. This also
|
||||||
bypasses some checks about the state of the repo.
|
bypasses some checks about the state of the repo.
|
||||||
|
|
||||||
The relase number should have 2 or 3 minor digits. Right now we've been
|
The release 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
|
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,
|
supports both. It will bump the version number if none is provided,
|
||||||
maintaining the minor digit length.
|
maintaining the minor digit length.
|
||||||
"""
|
"""
|
||||||
|
@ -153,7 +153,7 @@ def _replace_existing_version(lines, version, version_str):
|
||||||
def update_version(srcfile, dstfile, version, beta):
|
def update_version(srcfile, dstfile, version, beta):
|
||||||
"""Update version in srcfile and write to dstfile. If version is None,
|
"""Update version in srcfile and write to dstfile. If version is None,
|
||||||
bumps the current version, else version must be greater than the
|
bumps the current version, else version must be greater than the
|
||||||
current verison."""
|
current version."""
|
||||||
|
|
||||||
with open(srcfile, 'r') as f:
|
with open(srcfile, 'r') as f:
|
||||||
lines = f.readlines()
|
lines = f.readlines()
|
||||||
|
|
|
@ -27,7 +27,7 @@ if [ -z "$SRC_DIR" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -d "$SRC_DIR" ]; then
|
if [ ! -d "$SRC_DIR" ]; then
|
||||||
echo "source dirctory '$SRC_DIR' does not exist"
|
echo "source directory '$SRC_DIR' does not exist"
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue