Skip to main content

edict-to-csv

edict-to-csv is a set of small command-line utilities for converting EDICT dictionaries into delimited text (CSV). As with many Unix commands, these programs simply read from the standard input and writes to the standard output. Two programs are provided:

  • cedict-to-csv(1)

  • edict1-to-csv(1)

edict1-to-csv converts dictionary entries from the original EDICT1 format used by the JMdict/EDICT project. It does not handle the EDICT2 format or subsequent XML-based formats.

cedict-to-csv converts dictionary entries from the CEDICT project, as used by CC-CEDICT. To use this program, you must have “pinyin-dec” software installed. This will reformat Pinyin entries to use proper diacritics.

CSV entries take the following format:

FORM1|FORM2|TRANSLITERATION|DEFINITION

In the case of EDICT, the second field is always empty. For CEDICT, the second field contains the simplified Chinese form.

The programs included are written as Unix-style command-line utilities. The program modules are also completely accessible through Python so all program functions can be easily called by other programs. The programs are written in Python 3 and are being made available under the MIT License.

Example Usage

You can convert the Japanese EDICT dictionary like this:

$ cat edict.utf8 | edict1-to-csv > edict.csv

If it is compressed and in EUC-JP encoding, you may have to convert it:

$ zcat edict.gz | iconv -f EUC-JP -t UTF-8 | edict1-to-csv > edict.csv

You can convert CC-CEDICT like this:

$ cat cedict.txt | cedict-to-csv > cedict.csv

If you try to use this program without pinyin-dec installed, you will see:

$ cat cedict.txt | cedict-to-csv > cedict.csv
cedict-to-csv: pinyin_dec not available!

Installation

You can install this software the old way with setup.py:

# python3 setup.py install

Or if you have pip installed, that is the better way.

Documentation

This software includes Unix manual pages, which are installed with the program files. By typing “man cedict-to-csv” or “man edict1-to-csv”, you can review the documentation for each program included here.

Metadata

Release files for edict-to-csv 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for edict-to-csv 1.0.0
File Size Uploaded Provenance Actions
edict-to-csv-1.0.0.tar.gz 5.6 kB Without provenance Details for edict-to-csv-1.0.0.tar.gz

Release files / edict-to-csv-1.0.0.tar.gz

Download URL edict-to-csv-1.0.0.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
b9c42b06ab11d469dbd861cbd617f2d5f140623a90135e949fc991a974bb10db
BLAKE2b-256 checksum
How to use checksums
070cfa205b003cbdec04932b5c4601c8542918e46a54c33eb001e38df78f2599
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for edict-to-csv 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page