CLI Web client for moedict.tw

Overview

meowdict

CLI Web client for moedict.tw

Usage

Console Mode

$ meowdict
meowdict > 我
英語:I
拼音:(語音)wǒ
注音:(語音)ㄨㄛˇ
代:
1.自稱。
《易經.中孚卦.九二》:「我有好爵,吾與爾靡之。」
《詩經.小雅.采薇》:「昔我往矣,楊柳依依;今我來思,雨雪霏霏。」
2.自稱己方。
《左傳.莊公十年》:「春,齊師伐我。」
《漢書.卷五四.李廣傳》:「我軍雖煩擾,虜亦不得犯我。」
形:
1.表示親切之意的語詞。
《論語.述而》:「述而不作,信而好古,竊比於我老彭。」
漢.曹操〈步出夏門行〉:「經過至我碣石,心惆悵我東海。」
名:
1.私心、私意。
《論語.子罕》:「毋意,毋必,毋固,毋我。」
如:「大公無我」。
2.姓。如戰國時有我子。
拼音:(讀音)ě
注音:(讀音)ㄜˇ
1.(一)之讀音。
meowdict > 我 --translation
Deutsch:
ich (mir, mich) 

(non) Console Mode

$ meowdict 萌
拼音:méng
注音:ㄇㄥˊ
動:
1.發芽。
《楚辭.王逸.九思.傷時》:「明風習習兮龢暖,百草萌兮華榮。」
如:「萌芽」。
2.發生。
《管子.牧民》:「惟有道者,能備患於未形也,故禍不萌 。」
《三國演義.第一回》:「若萌異心,必獲惡報。」
如:「故態復萌」。
名:
1.草木初生的芽。
《說文解字.艸部》:「萌,艸芽也。」
唐.韓愈、劉師服、侯喜、軒轅彌明 〈石鼎聯句〉:「秋瓜未落蒂,凍芋強抽萌。」
2.事物發生的開端或徵兆。
《韓非子.說林上》:「聖人見微以知萌,見端以知末。」
漢.蔡邕〈對詔問灾異八事〉:「以杜漸防萌,則其救也。」
3.人民。
如:「萌黎」、「萌隸」。
通「氓」。
4.姓。如五代時蜀有萌慮。

$ meowdict 萌 --translation
Deutsch:
Leute, Menschen  (S)
Meng  (Eig, Fam)
keimen, sprießen, knospen, ausschlagen 
English:
to sprout
to bud
to have a strong affection for (slang)
adorable (loanword from Japanese `萌~え moe, slang describing affection for a cute character)
francais:
germer
bourgeonner
mignon
adorable

Simplified Chinese <-> Traditional Chinese

meowdict currently supports converting the input Simplified Chinese to Traditional Chinese for searching, to avoid the problem that the search does not include Simplified Chinese words in the MoeDict.

e.g:

$ ./meowdict 老师
Error: Could not find keyword: 老师
$ ./meowdict 老师 --input-s2t
英語:teacher
拼音:lǎo shī
注音:ㄌㄠˇ ㄕ
1.對傳授道業、學問或技藝者的尊稱。
2.學生對先生的尊稱。
3.科舉時代門生對座主的稱呼。

Similarly, meowdict also supports converting the search results into simplified Chinese:

$ ./meowdict 老師
英語:teacher
拼音:lǎo shī
注音:ㄌㄠˇ ㄕ
1.對傳授道業、學問或技藝者的尊稱。
2.學生對先生的尊稱。
3.科舉時代門生對座主的稱呼。
$ ./meowdict 老師 --result-t2s
英语:teacher
拼音:lǎo shī
注音:ㄌㄠˇ ㄕ
1.对传授道业、学问或技艺者的尊称。
2.学生对先生的尊称。
3.科举时代门生对座主的称呼。

Can be used simultaneously:

$ ./meowdict 老师 --input-s2t --result-t2s
英语:teacher
拼音:lǎo shī
注音:ㄌㄠˇ ㄕ
1.对传授道业、学问或技艺者的尊称。
2.学生对先生的尊称。
3.科举时代门生对座主的称呼。

Similarly, the same parameters can be passed into the console:

$ ./meowdict
meowdict > 老师
Could not find keyword: 老师
meowdict > 老师 --input-s2t
英語:teacher
拼音:lǎo shī
注音:ㄌㄠˇ ㄕ
1.對傳授道業、學問或技藝者的尊稱。
2.學生對先生的尊稱。
3.科舉時代門生對座主的稱呼。

If you are using console mode, you can also pass in parameters like this during startup:

$ ./meowdict --input-s2t-mode
meowdict > 老师
英語:teacher
拼音:lǎo shī
注音:ㄌㄠˇ ㄕ
1.對傳授道業、學問或技藝者的尊稱。
2.學生對先生的尊稱。
3.科舉時代門生對座主的稱呼。

You can use --help to see the modes that can be set:

$ ./meowdict --help
meowdict 0.5.3
Mag Mell
Check chinese keyword from moedict.tw

USAGE:
    meowdict [FLAGS] [INPUT]...

FLAGS:
    -h, --help               Prints help information
    -i, --input-s2t          Convert input to traditional Chinese and search
        --input-s2t-mode     Open console with input-s2t mode
    -r, --result-t2s         Convert result to Simplified Chinese to display
        --result-t2s-mode    Open console with result-t2s mode
    -t, --translation        Get all translation
    -V, --version            Prints version information

ARGS:
    ...    Input the keyword to use

Similarly, it is possible to set the console:

meowdict > 老师
Could not find keyword: 老师
meowdict > --set-mode-input-s2t
Setting input mode as s2t...
meowdict > 老师
英語:teacher
拼音:lǎo shī
注音:ㄌㄠˇ ㄕ
1.對傳授道業、學問或技藝者的尊稱。
2.學生對先生的尊稱。
3.科舉時代門生對座主的稱呼。
meowdict > --set-mode-result-t2s
Setting result mode as t2s...
meowdict > 老师
英语:teacher
拼音:lǎo shī
注音:ㄌㄠˇ ㄕ
1.对传授道业、学问或技艺者的尊称。
2.学生对先生的尊称。
3.科举时代门生对座主的称呼。
meowdict > --unset-mode-input-s2t
Unsetting input mode...
meowdict > --unset-mode-all
Unsetting input mode...
Unsetting result mode...
meowdict > 老师
Could not find keyword: 老师

Installation

$ cargo build --release
# install -vm755 target/release/meowdict /usr/local/bin/meowdict

Dependencies

Building:

  • Rust w/ Cargo
  • C compiler
  • make (when GCC LTO is used, not needed for Clang)

Runtime:

  • Glibc
  • OpenSSL
  • OpenCC (>= 1.1.0)
You might also like...
Rust implementation of world of warcraft client v3.3.5a (smart CLI)

idewave-cli This is Rust implementation of World of Warcraft client v3.3.5a. Smart CLI. You can use the CLI to debug TCP packets from/to World of Warc

API bindings, CLI client and FUSE filesystem for Wiki.js written in Rust.

wikijs-rs API bindings, CLI client and FUSE filesystem for Wiki.js written in Rust. What's inside? Library: Rust bindings to Wiki.js's entire GraphQL

A CLI tool to get help with CLI tools 🐙
A CLI tool to get help with CLI tools 🐙

A CLI tool to get help with CLI tools 🐙 halp aims to help find the correct arguments for command-line tools by checking the predefined list of common

This is a simple lnd poller and web front-end to see and read boosts and boostagrams.

Helipad This package will poll a Lightning LND node for invoices related to Podcasting 2.0 and display them in a web interface. It's intended for use

Upkeep your websites and web applications with ease from the comfort of the command line.
Upkeep your websites and web applications with ease from the comfort of the command line.

Upkeep Upkeep your websites and web applications with ease from the comfort of the command line. Explore the docs » View Demo · Report Bug · Request F

Deploy dioxus-web to Vercel.

Dioxus demo This demo shows how to use Dioxus to build a static web application and deploy it to Vercel. Local development To run the demo locally, yo

Tool to create web interfaces to command-line tools

webgate This command line utility allows you to: serve files and directories listed in a config file remotely run shell commands listed in a config fi

Build light & secure cross-platform applications with a web-based UI
Build light & secure cross-platform applications with a web-based UI

Millennium Icon by XFaon. *Stats are from Tauri and may not be fully accurate. Millennium is a cross-platform webview framework written in Rust. With

A git sub-command to view your git repository in the web browser
A git sub-command to view your git repository in the web browser

git-view A git sub-command to view your git repository in the web browser! About Are you also frustrated from moving your hands away from the keyboard

Releases(v0.10.3)
Owner
Mag Mell
现不充。不死宅。
Mag Mell
Experimental integration of `fedimint-client` with the Leptos web frontend framework

CAUTION: highly experimental, the Database implementation is likely horribly broken Fedimint Client built with Leptos This repo contains a proof-of-co

null 3 Aug 27, 2023
Provides a mock Ambi client that emulates real sensor hardware such as an Edge client

ambi_mock_client Provides a mock Ambi client that emulates real sensor hardware such as an Edge client. Usage You must have Rust installed to build am

Rust Never Sleeps 2 Apr 1, 2022
A Rust CLI tool that helps you enforce Git policies through Git hooks both server and client side

GitPolicyEnforcer This is a command line utility written in Rust, that helps you utilize Git hooks, to enforce various policies. It currently supports

Vagelis Prokopiou 4 Aug 14, 2022
CLI client for the Jagiellonian University's BaCa online judge

baca-cli CLI client for the Jagiellonian University's BaCa online judge Installation The latest release can be downloaded here. Windows users can use

Hubert Jaremko 20 Nov 14, 2022
Emulates an Edge hardware-based room sensor client purely as a CLI application

ambi_mock_client Usage You must have Rust installed to build ambi_mock_client. You can find documentation on installing Rust here. Using cargo run > c

Jim Hodapp 1 Jan 22, 2022
Nostr CLI client built with Rust

Nostr CLI client built with Rust Encrypted chat inside Nostr leaks metadata of who talks to who. This small CLI app implements a "public inbox," which

Vincent Liao 10 Dec 19, 2022
🧑‍💻 CLI client for zer0bin

??‍?? CLI client for zer0bin

zer0bin 4 Dec 1, 2022
Simple but convenient CLI-based Matrix client app for sending and receiving (in Rust)

matrix-commander-rs simple but convenient CLI-based Matrix client app for sending and receiving Help create this Rust program! This project is current

null 19 Dec 30, 2022
simple but convenient CLI-based Nostr client app for following users and sending DMs

nostr-commander-rs TLDR: simple but convenient CLI-based Nostr client app for publishing, sending DMs, as well as following users and channels nostr-c

null 18 Dec 30, 2022
A simple CLI DDNS Client updater.

DDNS Client A simple DDNS client updater. Supported DDNS Servers Duck DNS How to use it ddns_client ~/.config/ddns_client/config.yaml -t 600 Config sa

Lablack Mourad 2 Dec 6, 2022