From 0c65dee04506567ee50537ff2fbb83998b8fef0f Mon Sep 17 00:00:00 2001 From: George Halkiadakis Date: Wed, 10 Apr 2024 03:41:05 +0300 Subject: add methods in kb-util module; intoduce match-util module --- pieces/kbutils.js | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 pieces/kbutils.js (limited to 'pieces/kbutils.js') diff --git a/pieces/kbutils.js b/pieces/kbutils.js deleted file mode 100644 index bef37d4..0000000 --- a/pieces/kbutils.js +++ /dev/null @@ -1,29 +0,0 @@ -/** keyboardize - * ------------------------------------------------------------------------- - * translates string to keyboard-latin keys - * (the ones that used whan typing each letter of the word) - * - * @param str (string): original string (utf8 of latin or greek subgroups) - * @return (string): latin/ascii equivalent string - */ - -ORiGiNal = 'ςερτυθιοπασδφγηξκλζχψωβνμΕΡΤΥΘΙΟΠΑΣΔΦΓΗΞΚΛΖΧΨΩΒΝΜάέήίόύώϊΐϋΆΈΉΊΌΎΏΪΫQWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm0123456789- '.split(''); - -kbKeyZed = 'sertyuiopasdfghjklzxcvbnmertyuiopasdfghjklzxcvbnmaehioyviiyaehioyviyqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnm0123456789- '.split(''); - -map = new Map(); -for (var i=0; i