An NoneBot plugin that converts English texts to Katakanas.
Project description
📖 介绍
使用e2k和g2p-en将英文单词或句子转换为日文片假名。
更多功能 WIP
💿 安装
使用 nb-cli 安装
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装nb plugin install nonebot-plugin-just-enough-katakanas --upgrade
使用 pypi 源安装
nb plugin install nonebot-plugin-just-enough-katakanas --upgrade -i "https://pypi.org/simple"
使用清华源安装
nb plugin install nonebot-plugin-just-enough-katakanas --upgrade -i "https://pypi.tuna.tsinghua.edu.cn/simple"
使用包管理器安装
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令uv
uv add nonebot-plugin-just-enough-katakanas
安装仓库 master 分支
uv add git+https://github.com/p0rt39/nonebot-plugin-just-enough-katakanas@master
pdm
pdm add nonebot-plugin-just-enough-katakanas
安装仓库 master 分支
pdm add git+https://github.com/p0rt39/nonebot-plugin-just-enough-katakanas@master
poetry
poetry add nonebot-plugin-just-enough-katakanas
安装仓库 master 分支
poetry add git+https://github.com/p0rt39/nonebot-plugin-just-enough-katakanas@master
打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分追加写入
plugins = ["nonebot_plugin_just_enough_katakanas"]
使用 nbr 安装(使用 uv 管理依赖可用)
nbr 是一个基于 uv 的 nb-cli,可以方便地管理 nonebot2
nbr plugin install nonebot-plugin-just-enough-katakanas
使用 pypi 源安装
nbr plugin install nonebot-plugin-just-enough-katakanas -i "https://pypi.org/simple"
使用清华源安装
nbr plugin install nonebot-plugin-just-enough-katakanas -i "https://pypi.tuna.tsinghua.edu.cn/simple"
⚙️ 配置
本插件暂无可用配置项 - WIP
🎉 使用
指令表
| 指令 | 权限 | 需要@ | 范围 | 说明 |
|---|---|---|---|---|
| ktkn <English_Content> | 群员 | 否 | 群聊 | 将<English_Content>转换为片假名 |
| ktknhelp | 群员 | 否 | 群聊 | 显示帮助菜单 |
| ktknstatus | 群员 | 否 | 群聊 | 显示词典链接情况和插件自检 (WIP) |
License
- 代码部分: Apache-2.0 License.
- 词典部分: 依照 Patchethium/e2k 提供的katakana_dict.jsonl转换数据库,继承 Wiktionary, JMdict/EDICT 的 CC-BY-SA。
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nonebot_plugin_just_enough_katakanas-0.2.3.tar.gz.
File metadata
- Download URL: nonebot_plugin_just_enough_katakanas-0.2.3.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.18 {"installer":{"name":"uv","version":"0.11.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a3558c3a830ab350fcccde901057a985f54b1e0de00013f76635315704d54019
|
|
| MD5 |
2a507e3dfe826126e6c2c47d4f3491fd
|
|
| BLAKE2b-256 |
8577b885224d35f0d5262185071f82e0bf3981fead69e9779342eb7438537aac
|
File details
Details for the file nonebot_plugin_just_enough_katakanas-0.2.3-py3-none-any.whl.
File metadata
- Download URL: nonebot_plugin_just_enough_katakanas-0.2.3-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.18 {"installer":{"name":"uv","version":"0.11.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
93841a291baba44315976cd7db3589084ef4ec8fc261fea0ad4c1ec4d96478f5
|
|
| MD5 |
36d2887d517c39723c123e5e73051f43
|
|
| BLAKE2b-256 |
fef3548ac60e37f61201f2edd63bc0501aba2354780a8f4cf92bb16a7def882c
|