PYGLOSSARY(1)
β¨ NAME β¨
PyGlossary β a tool for converting dictionary files π
π DESCRIPTION π
Okay so bestie, listen: PyGlossary is a tool for working with dictionary databases (glossaries). That's the whole vibe. It's giving "I hold your word lists and I convert them, no cap." π
π Basic Usage π
π«Ά PyGI (Gtk3) Interface:
To open the PyGI window:
pyglossary
PyGI is the default interface, so you literally never need to use --ui=gtk. And if PyGI wasn't found (not installed), then PyGlossary will fallback to the Tkinter interface. Iconic behaviour honestly. β¨
π¦ Tkinter Interface:
To open the PyGlossary window:
pyglossary --ui=tk
Usually good for Windows and Mac OS X π
π§ Command Line Interface:
To show this help:
pyglossary --help
To show program version:
pyglossary --version
To Convert:
pyglossary INPUT_FILE OUTPUT_FILE
To Reverse:
pyglossary INPUT_FILE OUTPUT_FILE.txt --reverse
Input and output file formats will be detected from the extensions. Except when you explicitly specify the input or output format β for example:
pyglossary mydic.utf8 mydic.ifo --read-format=tabfile
pyglossary mydic.utf8 mydic.ifo --read-format tabfile
pyglossary mydic.ifo mydic.utf8 --write-format=tabfile
pyglossary mydic.ifo mydic.utf8 --write-format tabfile
π General Options π
πΈ Verbosity:
-v0or--verbosity 0β critical errors only π¨-v1or--verbosity 1β errors only-v2or--verbosity 2β errors and warnings-v3or--verbosity 3β errors, warnings and info-v4or--verbosity 4β debug mode π (main character energy, it tells you everything)
β Appearance:
--no-progress-barand--no-colorβ useful for Windows (non-Unix) command line πͺ
π₯ Full Convert Usage π₯
pyglossary INPUT_FILE OUTPUT_FILE [-vN] [--read-format=FORMAT]
[--write-format=FORMAT]
[--sort|--no-sort] [--direct|--indirect] [--sort-cache-size=2000]
[--utf8-check|--no-utf8-check] [--lower|--no-lower]
[--read-options=READ_OPTIONS] [--write-options=WRITE_OPTIONS]
Command line arguments and options (and arguments for options) are parsed with the GNU getopt method. iykyk π
You can also just type the extension of the output file instead of the full path, if you want to create it with the same input file name but another extension. For example:
pyglossary mydic.ifo txt
instead of:
pyglossary mydic.ifo mydic.txt
Compressing with gz, bz2 and zip is supported β just append these extensions to the file name, for example:
pyglossary mydic.ifo mydic.txt.gz
or
pyglossary mydic.ifo txt.gz
And if the input file has these extensions (gz, bz2, zip), it will be extracted before loading. Unzip and slay π
π Supported input formats π
BabylonBglβ Babylon (bgl) β extensions:.bglCC-CEDICTβ CC-CEDICT β extensions:.u8Csvβ CSV β extensions:.csvDicformidsβ DictionaryForMIDs β extensions:.midsDictOrgβ DICT.org file format (.index) β extensions:.indexABBYYLingvoDSLβ ABBYY Lingvo DSL (dsl) β extensions:.dslEdlinβ Editable Linked List of Entries β extensions:.edlinGettextPoβ Gettext Source (po) β extensions:.poLingoesLDFβ Lingoes Source (LDF) β extensions:.ldfOctopusMdictβ Octopus MDict β extensions:.mdxOctopusMdictSourceβ Octopus MDict Source β extensions:.mtxtSdictβ Sdictionary Binary(dct) β extensions:.dctStardictβ StarDict (ifo) β extensions:.ifoTabfileβ Tabfile (txt, dic) β extensions:.txt.tab.dicWikipediaDumpβ Wikipedia Dump(Static HTML) β extensions:.wikiXdxfβ XDXF β extensions:.xdxf.xml
π¦ Supported output formats π¦
AppleDictβ AppleDict Source (xml) β extensions:.xmlBabylonSourceβ Babylon Source (gls) β extensions:.gls.babylonCsvβ CSV β extensions:.csvDicformidsβ DictionaryForMIDs β extensions:.midsDictOrgβ DICT.org file format (.index) β extensions:.indexEdlinβ Editable Linked List of Entries β extensions:.edlinFreedictβ FreeDict (tei) β extensions:.teiGettextPoβ Gettext Source (po) β extensions:.poLingoesLDFβ Lingoes Source (LDF) β extensions:.ldfOctopusMdictSourceβ Octopus MDict Source β extensions:.mtxtOmnidicβ Omnidic β extensions:.omni.omnidicSdictSourceβ Sdictionary Source (sdct) β extensions:.sdctSqlβ SQL β extensions:.sqlStardictβ StarDict (ifo) β extensions:.ifoTabfileβ Tabfile (txt, dic) β extensions:.txt.tab.dicTreedictβ TreeDict β extensions:.tree.treedict
That's the whole page bestie, go convert something and be iconic π
And that's a wrap on PyGlossary 3.2.1, dated December 2019 β literally vintage, still eating πβ¨π¦
π¦ where this page comes from
- debian bookworm: python3-pyglossary 4.5.0-3 Β· GPL-3.0-or-later
- debian trixie: python3-pyglossary 5.0.9-1 Β· GPL-3.0-or-later
- ubuntu jammy: python3-pyglossary 3.2.1-1.1 Β· GPL-3.0-or-later
- ubuntu noble: python3-pyglossary 4.5.0-3 Β· GPL-3.0-or-later
- ubuntu resolute: python3-pyglossary 5.0.9-1 Β· GPL-3.0-or-later
- ubuntu stonking: python3-pyglossary 5.0.9-1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms