GithubHelp home page GithubHelp logo

fanhuaji / sublime-fanhuaji Goto Github PK

View Code? Open in Web Editor NEW
67.0 2.0 5.0 1.13 MB

繁化姬的 Sublime Text 插件

Home Page: https://packagecontrol.io/packages/Fanhuaji

License: MIT License

Python 99.35% Makefile 0.65%
sublime-text plugin translation chinese traditional-chinese simplified-chinese zhconvert fanhuaji

sublime-fanhuaji's Introduction

Sublime-Fanhuaji (繁化姬)

Required ST Build GitHub Actions Package Control GitHub tag (latest SemVer) Project license GitHub stars Donate to this project using Paypal

本倉庫為繁化姬Sublime Text 插件。

安裝方式

  • 使用 Package Control : 在 Package Control 中搜尋 Fanhuaji 安裝即可。

轉換模式

  • 简体化:将文字转换为简体。
  • 繁體化:將文字轉換為繁體。
  • **化:将文字转换为简体,并使用**地区的词语修正。
  • 香港化:將文字轉換為繁體,並使用香港地區的詞語修正。
  • 台灣化:將文字轉換為繁體,並使用台灣地區的詞語修正。
  • 拼音化:將文字轉為拼音。
  • 注音化:將文字轉為注音。
  • 火星化:將文字轉換為繁體火星文。
  • 维基简体化:只使用维基百科的词库将文字转换为简体。
  • 維基繁體化:只使用維基百科的詞庫將文字轉換為繁體。

功能範例

screenshot

快捷鍵 (keybindings)

  • 彈出 Quick Panel 選單,按下 Enter 選擇轉換模式後,轉換所選的文字:

    screenshot

    {
        "keys": ["alt+f", "alt+h", "alt+j"],
        "command": "fanhuaji_convert_panel",
    },
  • 使用預先定義的參數,直接轉換所選的文字:

    {
        "keys": ["你想要使用的快捷鍵"],
        "command": "fanhuaji_convert",
        "args": {
            "args": {
                "converter": "Simplified", // 简体化
                // 更多參數...
            },
        },
    },

插件設定

{
    // 除錯模式
    "debug": false,
    // 驗證 API 伺服器的 SSL 證書
    "ssl_cert_verification": true,
    // API 伺服器位址
    "api_server": "https://api.zhconvert.org",
    // API 金鑰(若無請留空)
    "api_key": "",
    // 將在 /convert API 端點使用的參數,請參考繁化姬說明文件 https://docs.zhconvert.org
    "convert_params": {/*
        "modules": {
            // 不要使用 "GanToZuo" 模組
            "GanToZuo": 0,
        },
        "userPostReplace": {
            // 轉換完成後再將 "哦" 轉換為 "喔"
            "哦": "喔",
        },
        "userProtectReplace": [
            // 保護 "內存" 不被轉換
            "內存",
        ],
    */},
}

商業使用

繁化姬的文字轉換服務在一般使用下為免費,但若是商業使用將酌收費用。 詳情請見繁化姬商業使用

錯誤回報

本插件僅使用繁化姬的網路 API ,並不實作文字轉換。 因此,如果您發現有「轉換錯誤」,請回報至以下任一位置。

相關連結

sublime-fanhuaji's People

Contributors

jfcherng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

sublime-fanhuaji's Issues

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.