From e832adf125944a37e785f903dcd9c214c4cdb5fa Mon Sep 17 00:00:00 2001 From: Jack Cherng Date: Sat, 3 Oct 2020 19:39:43 +0800 Subject: [PATCH] refactor: rename "width_converter" into "char_width_converter" Signed-off-by: Jack Cherng --- ace_jump.py | 4 ++-- libs/{width_converter.py => char_width_converter.py} | 0 2 files changed, 2 insertions(+), 2 deletions(-) rename libs/{width_converter.py => char_width_converter.py} (100%) diff --git a/ace_jump.py b/ace_jump.py index d23bcf2..d2dda58 100644 --- a/ace_jump.py +++ b/ace_jump.py @@ -5,7 +5,7 @@ from typing import Any, Dict, List, Union, cast -from .libs import width_converter +from .libs import char_width_converter from .libs.xpinyin import Pinyin PACKAGE_NAME = __package__.partition(".")[0] @@ -533,7 +533,7 @@ def add_labels(self, edit: sublime.Edit, regions: List[sublime.Region], labels: # if the target char is Chinese, # use full-width label to prevent from content position shifting if CHINESE_REGEX_OBJ.match(self.view.substr(region)): - label = width_converter.h2f(label) + label = char_width_converter.h2f(label) self.view.replace(edit, region, label) elif self.hinting_mode == HINTING_MODE_INLINE_PHANTOM: diff --git a/libs/width_converter.py b/libs/char_width_converter.py similarity index 100% rename from libs/width_converter.py rename to libs/char_width_converter.py