Skip to content

Repository files navigation

Warning

The library API may change any day of the week. The CLI should be stable enough, but there are no guarantees.

Pangloss

Build status Crates.io

Tool for converting, from and to, different glossary (i.e. dictionary) formats.

Inspired by pyglossary.

The name is a wordplay on pandoc and pyglossary, and the famous character of Voltaire's Candide.

It only targets a subset of the functionality that is relevant to Jitendex and wiktionary-to-yomitan. The objective is mainly to do a better job in that particular subset, and (maybe, if I ever learn how to add some bindings) to allow some glossary creation API in dotnet.

At the moment it supports Yomitan, Stardict and Mdict.

Usage

To install:

$ cargo install pangloss

Then run (.ifo detects Stardict, .zip detects Yomitan):

$ pangloss path/to/stardict.ifo path/to/out.zip

Use pangloss --help to show the help menu.

Readers

Every non-trivial format targets a concrete reader, f.e. goldendict-ng in the case of Mdict. While other readers may be able to import the format, they usually don't support the same range of features. Here is the list of targets:

Format Target Reader
Yomitan yomitan
Stardict koreader
Mdict goldendict-ng

Library

You can use this as a library to make dictionaries, but that is not a priority.

There is no lookup API and there won't be one: we only do conversions.

TODO

  • Make a good stardict from jitendex-yomitan!!
    • Star icon
    • Requires glossary transform
    • Compact mode (?)
      • Can we pass an extra data_file via CLI?

About

Glossary converter

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages