Skip to content

MammutReal/pinyin_converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pinyin converter

A Pinyin converter for Hungarian, French and German.

Command line

Command line version usage:
python.exe pinyin_converter.py [parameters]

The settings can be adjusted as command line parameters or by editing the config.json file.

Command line parameters

Tip

The parameters can be added in any order.

The target language
h1   Hungarian (Popular)   ${\text{\color{red}default}}$
h2   Hungarian (Academic)
en   English (Wade-Giles)
fr   French (E.F.E.O)
de   German (Lessing-Othmer)

Clipboard
copy   Copies the result to the clipboard.   "copy": true${\text{\color{red}default}}$
nocopy   Does not copy the result to the clipboard.   "copy": false

Hyphen options
hyphen   Uses hyphen between syllables of a first name.   "use_hyphen": true${\text{\color{red}default}}$
nohyphen   Does not use hyphen.   "use_hyphen": false
oneword   Uses hyphen even if the name is only one word.   "one_word": true
lastword   Uses hyphen only if the name has more than one word.   "one_word": false${\text{\color{red}default}}$

save   Saves the command line parameters to the config.json file.

new_syllable_data_filename.json   New data file containing syllables. (By default, the program works with syllables.json)

GUI

GUI version usage:
python.exe widget.py

Tip

The GUI version uses Qt6, so Pyside6 is required.
The best if we create and activate a virtual environment for that:

python.exe -m venv venv
venv/Scripts/activate.bat

After that we can install it:

pip install Pyside6



Note

The program uses this table for the conversion.

About

A Pinyin converter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages