a2pcej, "convert Alphabet to Phonetic Code in English and Japanease."
Project description
a2pcej, convert Alphabet to Phonetic Code in English and Japanease.
This module convert each alphabet letters to phonetic code, and also convert each alphabet letterts to katakana.
Functions
conv_al(letters, delimiter=’-’, upper_sign=’(CAPS)’, num=False)
letters is string.
def conv_al(letters, delimiter='-', sign='(CAPS)', num=False):
return <unicode>
conv_ak(letters, delimiter=’・’, upper_sign=’(大文字)’, num=False)
letters is string.
def conv_ak(letters, delimiter='・', sign='(大文字)', num=False):
return <unicode>
Simple example of usage as below… (on Python3.5)
First of all, import module.
Import module.
>>> from a2pcej import *
Convert ‘exsamples’ to Ponetic code in English.
>>> conv_al('examples')
'Echo-Xray-Alfa-Mike-Papa-Lima-Echo-Sierra'
Convert ‘exsamples’ to Ponetic code in Japanese Katakana.
>>> conv_ak('examples')
'イー・エクス・エイ・エム・ピー・エル・イー・エス'
>>> conv_al('Examples002')
'Echo(CAPS)-Xray-Alfa-Mike-Papa-Lima-Echo-Sierra-0-0-2'
>>> conv_ak('Examples002')
'イー(大文字)・エクス・エイ・エム・ピー・エル・イー・エス・0・0・2'
You can change delimiter and Upper case letters sign.
>>> conv_al('Examples003', delimiter=', ', sign='(CAPITAL)')
'Echo(CAPITAL), Xray, Alfa, Mike, Papa, Lima, Echo, Sierra, 0, 0, 3,'
>>> conv_ak('Examples003', delimiter='/', sign='(大)')
'イー(大)/エクス/エイ/エム/ピー/エル/イー/エス/0/0/3'
If you would like to convert numbers to phonetic code, set num=True.
>>> conv_al('Examples004', num=True)
'Echo(CAPS)-Xray-Alfa-Mike-Papa-Lima-Echo-Sierra-zero-zero-four'
>>> conv_ak('Examples004', num=True)
'イー(大文字)・エクス・エイ・エム・ピー・エル・イー・エス・ゼロ・ゼロ・ヨン'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file a2pcej-0.2.2a3.tar.gz.
File metadata
- Download URL: a2pcej-0.2.2a3.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fbe14a219088f2f9a08bbd050cfeca3c2c334056b532d71e13bddf7660d8d980
|
|
| MD5 |
7016817cb43e4289f771afc41ecb13c8
|
|
| BLAKE2b-256 |
08b3a3a9ea081493de09b28d8707c23b2ae195c3063654b89725d404dc0b4e35
|
File details
Details for the file a2pcej-0.2.2a3-py2.py3-none-any.whl.
File metadata
- Download URL: a2pcej-0.2.2a3-py2.py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
09e4e1b398a48f87178ac8d11b1d9ab38e208118e15cc291f788d7325b9ac198
|
|
| MD5 |
7fd89cbce71c089da656a03b3bc6f68c
|
|
| BLAKE2b-256 |
14f2f8b0ff4c1e9777f044fc22f682802f13fe1a99454b68bc48caad4bc2be10
|