How to use the pykakasi.k2a.K2a function in pykakasi

To help you get started, we’ve selected a few pykakasi examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github miurahr / pykakasi / pykakasi / k2ah.py View on Github external
# * any later version.
# *
# * This program is distributed in the hope that it will be useful
# * but WITHOUT ANY WARRANTY; without even the implied warranty of
# * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# * GNU General Public License for more details.
# *
# * You should have received a copy of the GNU General Public License
# * along with KAKASI, see the file COPYING.  If not, write to the Free
# * Software Foundation Inc., 59 Temple Place - Suite 330, Boston, MA
# * 02111-1307, USA.
# */

from .k2a import K2a

class K2ah (K2a):

    K2a_table = {
        u"\u30a1":"a", u"\u30a2":"a",
        u"\u30a3":"i", u"\u30a4":"i",
        u"\u30a5":"u", u"\u30a6":"u",
        u"\u30a6\u309b":"vu", u"\u30a6\u309b\u30a1":"va",
        u"\u30a6\u309b\u30a3":"vi", u"\u30a6\u309b\u30a7":"ve",
        u"\u30a6\u309b\u30a9":"vo",
        u"\u30a7":"e", u"\u30a8":"e",
        u"\u30a9":"o", u"\u30aa":"o",

        u"\u30ab":"ka", u"\u30ac":"ga",
        u"\u30ad":"ki", u"\u30ad\u30a1":"kya",
        u"\u30ad\u30a5":"kyu", u"\u30ad\u30a9":"kyo",
        u"\u30ae":"gi", u"\u30b0\u30e3":"gya",
        u"\u30ae\u30a5":"gyu", u"\u30ae\u30e7":"gyo",
github miurahr / pykakasi / pykakasi / k2ar.py View on Github external
# * any later version.
# *
# * This program is distributed in the hope that it will be useful
# * but WITHOUT ANY WARRANTY; without even the implied warranty of
# * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# * GNU General Public License for more details.
# *
# * You should have received a copy of the GNU General Public License
# * along with KAKASI, see the file COPYING.  If not, write to the Free
# * Software Foundation Inc., 59 Temple Place - Suite 330, Boston, MA
# * 02111-1307, USA.
# */

from .k2a import K2a

class K2ar (K2a):

    K2a_table = {
        u"\u30a1":"a", u"\u30a2":"a",
        u"\u30a3":"i", u"\u30a4":"i",
        u"\u30a5":"u", u"\u30a6":"u",
        u"\u30a6\u309b":"vu", u"\u30a6\u309b\u30a1":"va",
        u"\u30a6\u309b\u30a3":"vi", u"\u30a6\u309b\u30a7":"ve",
        u"\u30a6\u309b\u30a9":"vo",
        u"\u30a7":"e", u"\u30a8":"e",
        u"\u30a9":"o", u"\u30aa":"o",

        u"\u30ab":"ka", u"\u30ac":"ga",
        u"\u30ad":"ki", u"\u30ad\u30a1":"kya",
        u"\u30ad\u30a5":"kyu", u"\u30ad\u30a9":"kyo",
        u"\u30ad\u30e3":"kya",
        u"\u30ad\u30e5":"kyu", u"\u30ad\u30e7":"kyo",