-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #51 from Jim137/toPub
v0.4.1
- Loading branch information
Showing
25 changed files
with
950 additions
and
247 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
# 天鳳牌譜記錄器 | ||
|
||
[![build](https://github.com/Jim137/Tenhou-Paifu-Logger/actions/workflows/publish-to-test-pypi.yml/badge.svg)](https://github.com/Jim137/Tenhou-Paifu-Logger/actions/workflows/publish-to-test-pypi.yml) | ||
[![lint](https://github.com/Jim137/Tenhou-Paifu-Logger/actions/workflows/test.yml/badge.svg)](https://github.com/Jim137/Tenhou-Paifu-Logger/actions/workflows/test.yml) | ||
[<img src="https://img.shields.io/pypi/v/PaifuLogger?style=plastic"> <img src="https://img.shields.io/pypi/wheel/PaifuLogger?style=plastic">](https://pypi.org/project/PaifuLogger/) | ||
[![Downloads](https://static.pepy.tech/badge/Paifulogger)](https://pepy.tech/project/Paifulogger) | ||
[<img src="https://img.shields.io/github/stars/Jim137/Tenhou-Paifu-Logger?style=plastic">](https://github.com/Jim137/Tenhou-Paifu-Logger/) | ||
[<img src="https://img.shields.io/github/downloads/Jim137/Tenhou-Paifu-Logger/total?style=plastic">](https://github.com/Jim137/Tenhou-Paifu-Logger/releases) | ||
![support-version](https://img.shields.io/pypi/pyversions/PaifuLogger?style=plastic) | ||
![platform](https://img.shields.io/badge/platform-Windows%20%7C%20macOS%20%7C%20Linux-lightgray?style=plastic) | ||
![License](https://img.shields.io/github/license/Jim137/Tenhou-Paifu-Logger?style=plastic) | ||
|
||
快速記錄天鳳牌譜的工具。 | ||
|
||
![Generated by DALL·E](https://github.com/Jim137/Tenhou-Paifu-Logger/raw/master/READMEs/image/paifulogger.png) | ||
|
||
如果你喜歡這個專案,請給我一顆star,這將會是我很大的鼓勵。如果你有任何建議,歡迎開issue來討論。 | ||
|
||
[下載](https://github.com/Jim137/Tenhou-Paifu-Logger/releases/latest) | [English](https://github.com/Jim137/Tenhou-Paifu-Logger/blob/master/README.md) | [简体中文](https://github.com/Jim137/Tenhou-Paifu-Logger/blob/master/READMEs/README_zh.md) | [日本語](https://github.com/Jim137/Tenhou-Paifu-Logger/blob/master/READMEs/README_ja.md) | ||
## 使用方法 | ||
|
||
1. Clone此專案或下載[最新版本](https://github.com/Jim137/Tenhou-Paifu-Logger/releases/latest)或使用pip下載。 | ||
|
||
```shell | ||
git clone https://github.com/Jim137/Tenhou-Paifu-Logger.git | ||
``` | ||
```shell | ||
pip install PaifuLogger | ||
``` | ||
|
||
2. 首次使用時,右鍵編輯 `runlog-user.bat` (Linux用戶則 `runlog-user.sh` ),在set LANG= (export LANG=)後加上語言代碼 `zh_tw`,保存後運行此檔案。 | ||
使用pip則運行以下命令。 | ||
|
||
```shell | ||
plog -l zh_tw -o <輸出目錄> <多個牌譜網址> | ||
``` | ||
```shell | ||
paifu plog -l zh_tw -o <輸出目錄> <多個牌譜網址> | ||
``` | ||
|
||
3. 複製天鳳牌譜至剪貼簿。 | ||
4. 在出現![1675260159266](image/README_zh/1675260159266.png)後,貼上天鳳牌譜並按下Enter。\ | ||
注意:在最新版本中,你可以一次輸入多個牌譜網址,用任何你喜歡的符號隔開即可。如果你很懶,你也可以直接貼上,不用加任何符號。 | ||
5. 當出現![1675260331020](image/README_zh/1675260331020.png)後,則表示牌譜已經成功記錄。 | ||
6. 當再次出現![1675260159266](image/README_zh/1675260159266.png),即可輸入下個牌譜。 | ||
|
||
## 功能 | ||
* [x] 支援一次輸入多個牌譜網址。 | ||
* [x] 將牌譜記錄到csv、Excel或html檔案中。 | ||
* [x] 支援一次輸出多個格式。(例:-f csv -f html; -a, --all-formats) | ||
* [x] 區分三麻和四麻,並分別記錄到不同的檔案中。 | ||
* [x] 跳過已記錄過的牌譜。 | ||
* [x] 重製已記錄過的牌譜(-r, --remake)。當我們更新了牌譜記錄的內容時,這個功能將會很有用。 | ||
* [x] 指定輸出目錄(-o, --output) | ||
* [x] 支援mjai牌譜輸出(--mjai)。*首次需要先執行 `git pull --recurse-submodules`*。 | ||
* [x] 本地化支援(-l, --language) | ||
* [x] 英文: en | ||
* [x] 繁體中文: zh_tw | ||
* [x] 簡體中文: zh | ||
* [x] 日文 (ChatGPT): ja | ||
* [x] 支援使用 config 檔案設定。將 `config.json` 放置於相同使用環境下即可實現局域設定。若要實現全局設定,則將 `config.json` 放置於如下位置: | ||
* Windows: `%localappdata%\Jim137\paifulogger\config.json` | ||
* macOS: `/Users/{UserName}/Library/Application Support/paifulogger/config.json` | ||
* Linux: `~/.local/share/paifulogger/config.json` | ||
## 牌譜紀錄訊息 | ||
|
||
* 對局時間 | ||
* 順位 | ||
* 牌譜網址 (方便未來新增新功能時能快速套用過去牌譜) | ||
* 對局前R值 | ||
* R值變化量 | ||
|
||
## 預計新增功能 | ||
|
||
* [ ] 每一本場的對局回放(html) | ||
* [ ] 和銃分析 | ||
* [ ] 雀魂牌譜支援 | ||
* [ ] 圖形使用者介面(GUI) | ||
|
||
## 做出貢獻 | ||
我們歡迎各種貢獻,包括但不限於回報bug、PR、功能要求、文件改進、本地化...等。 | ||
|
||
參見[CONTRIBUTING.md](https://github.com/Jim137/Tenhou-Paifu-Logger/blob/master/CONTRIBUTING.md)取得更多訊息。 | ||
|
||
## 授權 | ||
[MIT](LICENSE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.