A Pinyin converter for Hungarian, French and German.
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.
Tip
The parameters can be added in any order.
The target language
h1
Hungarian (Popular)
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
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
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
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 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.