All Projects → outloudvi → mw2fcitx

outloudvi / mw2fcitx

Licence: Unlicense License
Fcitx 5 pinyin dictionary generator for MediaWiki instances. (Releases for demo dict of zh.moegirl.org.cn)

Programming Languages

python
139335 projects - #7 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to mw2fcitx

archlinuxcn-dotfiles-collection
来自社区小伙伴们的 dotfiles 集锦
Stars: ✭ 73 (-8.75%)
Mutual labels:  rime, fcitx5
WubiBuddy
《码表助手》鼠须管五笔用户词添加工具 (macOS)
Stars: ✭ 16 (-80%)
Mutual labels:  rime
DiscordWikiBot
Discord bot for Wikimedia projects and MediaWiki wiki sites
Stars: ✭ 30 (-62.5%)
Mutual labels:  mediawiki
WikiSearch
A flutter search engine based on MediaWiki with caching.
Stars: ✭ 39 (-51.25%)
Mutual labels:  mediawiki
dotfiles
💎 My vim/neovim, fish, git, and tmux configuration files
Stars: ✭ 49 (-38.75%)
Mutual labels:  rime
rime
rime 输入法配置
Stars: ✭ 26 (-67.5%)
Mutual labels:  rime
wikiapi
JavaScript MediaWiki API for node.js
Stars: ✭ 28 (-65%)
Mutual labels:  mediawiki
Rime
Rime config of squirrel input method.
Stars: ✭ 58 (-27.5%)
Mutual labels:  rime
rime-yahwe zaonhe
吳語協會式上海話輸入法/吴语协会式上海话输入法:以吳語協會式拼音爲基礎的 Rime 上海話輸入方案。
Stars: ✭ 29 (-63.75%)
Mutual labels:  rime
SemanticBreadcrumbLinks
Provides in-page navigation by building breadcrumb links from an attributive property filter.
Stars: ✭ 15 (-81.25%)
Mutual labels:  mediawiki
hanzi-tools
Converts from Chinese characters to pinyin, between simplified and traditional, and does word segmentation.
Stars: ✭ 69 (-13.75%)
Mutual labels:  pinyin
bitnami-docker-mediawiki
Bitnami Docker Image for MediaWiki
Stars: ✭ 89 (+11.25%)
Mutual labels:  mediawiki
SemanticResultFormats
Provides additional visualizations (result formats) for Semantic MediaWiki
Stars: ✭ 40 (-50%)
Mutual labels:  mediawiki
Wikitext-VSCode-Extension
A Visual Studio Code Extension that provides language support for Wikitext.
Stars: ✭ 50 (-37.5%)
Mutual labels:  mediawiki
efi-install-guide-source
The MediaWiki source pages for "Sakaki's EFI Install Guide" (as hosted on the Gentoo wiki)
Stars: ✭ 19 (-76.25%)
Mutual labels:  mediawiki
meza
Setup an enterprise MediaWiki server with simple commands
Stars: ✭ 38 (-52.5%)
Mutual labels:  mediawiki
mediawiki twentyten
The TwentyTen theme for WordPress ported to a MediaWiki skin.
Stars: ✭ 14 (-82.5%)
Mutual labels:  mediawiki
SimpleBatchUpload
Allows for basic, no-frills uploading of multiple files
Stars: ✭ 15 (-81.25%)
Mutual labels:  mediawiki
DiscordNotifications
Integrate Discord with Mediawiki. Sends notifications into your Discord room when certain actions are being performed in your wiki (for example when article is being edited, new article was added...)
Stars: ✭ 36 (-55%)
Mutual labels:  mediawiki
pinyin
javascript实现输入汉字获取汉字拼音或者汉字拼音首字母
Stars: ✭ 27 (-66.25%)
Mutual labels:  pinyin

mw2fcitx

Build fcitx5 libraries from MediaWiki sites.

PyPI PyPI - License CircleCI

pip install mw2fcitx
# or if you want to just install for current user
pip install mw2fcitx --user

For the old fcitx5-pinyin-moegirl, see branch v1.

For the pre-build moegirl dictionary info, see the wiki.

CLI Usage

mw2fcitx -c config_script.py

Configuration Script Format

# By default we assume the configuration is located at a variable
#     called "exports".
# You can change this with `-n any_name` in the CLI.

exports = {
    # Source configurations.
    "source": {
        # MediaWiki api.php path, if to fetch titles from online.
        "api_path": "https://zh.moegirl.org.cn/api.php",
        # Title file path, if to fetch titles from local file. (optional)
        # Can be a path or a list of paths.
        "file_path": ["titles.txt"],
        "kwargs": {
            # Title number limit for fetching. (optional)
            "title_limit": 120,
            # Title number limit for fetching via API. (optional)
            # Overrides title_limit.
            "api_title_limit": 120,
            # Title number limit for each fetch via file. (optional)
            # Overrides title_limit.
            "file_title_limit": 60,
            # Partial session file on exception (optional)
            "partial": "partial.json",
            # Title list export path. (optional)
            "output": "titles.txt"
        }
    },
    # Tweaks configurations as an list.
    # Every tweak function accepts a list of titles and return
    #     a list of title.
    "tweaks":
        tweaks,
    # Converter configurations.
    "converter": {
        # opencc is a built-in converter.
        # For custom converter functions, just give the function itself.
        "use": "opencc",
        "kwargs": {}
    },
    # Generator configurations.
    "generator": [{
        # rime is a built-in generator.
        # For custom generator functions, just give the function itself.
        "use": "rime",
        "kwargs": {
            # Destination dictionary filename. (optional)
            "output": "moegirl.dict.yml"
        }
    }, {
        # pinyin is a built-in generator.
        "use": "pinyin",
        "kwargs": {
            # Destination dictionary filename. (mandatory)
            "output": "moegirl.dict"
        }
    }]
}

A sample config file is here: sample_config.py

License

The Unlicense

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].