Coder Social home page Coder Social logo

tjni / cambrinary Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xueyuanl/cambrinary

0.0 1.0 0.0 2.49 MB

A linux terminal online dictionary, based on cambridge dictionary: https://dictionary.cambridge.org

License: GNU General Public License v3.0

Python 100.00%

cambrinary's Introduction

Usage

From PyPI:

pip3 install cambrinary

Look up 'hello' for example:

cambrinary -w hello

word hello

multi-languages support

in chinese(traditional)

cambrinary -w world -t chinese

word world

Supported language list

  • english
  • french
  • german
  • chinese
  • japanese
  • italian
  • russian
  • korean

multi-words support

powered by coroutine, support as many as words you like,

cambrinary -w hello word

word hello-world

or

cambrinary -w hello word -t chinese

even or more

cambrinary -w one two three four five -t french

Support phrase

cambrinary -w kick-off

or

cambrinary -w kick-off -t japanese

Customize your color scheme

Your cambrinary, you design.

Use conf.json to customize the color scheme, for instance, setting pronunciation, definition or example_sentence as you like. They could be in bold format, blue foreground and black background, or any supported format and colors. All supported color please refer to color_const.py.

For develop mode

You can change and test locally by, git clone the repo, cd in the repo folder, run:

python3 -m venv venv
source venv/bin/activate
pip3 install .  (try `curl https://bootstrap.pypa.io/get-pip.py | python3` to update pip3 if any error)
# and then
cambrinary -w world

Once you change the code, re-run pip3 install .

Or simply run the following in the repo folder:

python3 -m cambrinary.cambrinary -w world

Log

logs is written into ~/.local/share/cambrinary/dict.log in the append way.

Road map

more development plan, please refer to Wiki

Help

cambrinary --help

cambrinary's People

Contributors

andydecleyre avatar cookieppp avatar j3soon avatar ronymacfly avatar satotake avatar tjni avatar xueyuanl avatar zaibugemi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.