From 601f25011b8ddebe2e917a44aa135caa7d1ccc28 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Wed, 22 Jun 2022 00:59:03 +0530 Subject: Use Plover source instead of the built Plover package. * english-orthography.py: Accept the path to the Plover source as argument and import english_stenotype from that path. --- english-orthography.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'english-orthography.py') diff --git a/english-orthography.py b/english-orthography.py index 914cf39..b7572c3 100644 --- a/english-orthography.py +++ b/english-orthography.py @@ -18,7 +18,15 @@ # You should have received a copy of the GNU General Public License # along with thogai. If not, see . -from plover.system.english_stenotype import ORTHOGRAPHY_RULES +import sys + +if len(sys.argv) != 2: + print(f'Usage: {sys.argv[0]} PATH_TO_PLOVER_SOURCE') + sys.exit(1) + +sys.path.append(sys.argv[1] + '/plover/system') + +from english_stenotype import ORTHOGRAPHY_RULES def make_elisp_safe(pattern): # Remove negative lookbehind assertion not supported by elisp -- cgit v1.2.3