From e031e7206a07a7818e40c0ef533b30ac0bbb0a8e Mon Sep 17 00:00:00 2001
From: StageGuard <1355416608@qq.com>
Date: Fri, 29 Jan 2021 14:02:05 +0800
Subject: [PATCH] Separate English and Chinese in README.md
---
README-en.md | 232 +++++++++++++++++++++++++++++++++++++++++++++++++++
README.md | 148 +++++++++++---------------------
2 files changed, 283 insertions(+), 97 deletions(-)
create mode 100644 README-en.md
diff --git a/README-en.md b/README-en.md
new file mode 100644
index 0000000..c0349d1
--- /dev/null
+++ b/README-en.md
@@ -0,0 +1,232 @@
+# SkyAutoPlayerScript
+
+A script to play Sheets generated by [SkyStudio](https://play.google.com/store/apps/details?id=com.Maple.SkyStudio) automatically in game Sky with accessibility services using Auto.js
+
+## Feature
+
+There are many features in SkyAutoPlayerScript compared to other auto player scripts.
+
+* Friendly GUI, no code edit, fluent ui animation.
+* Multi-functional player control panel with **pause**, **progress control** and **speed control**.
+* Set key coordinates by yourself with guidence, avoiding key offset when playing.
+* There are many excellent online [shared sheets](https://github.com/StageGuard/SkyAutoPlayerScript/tree/master/shared_sheets).
+* Automatically update script.
+* [Multi-language support](#translation).
+* ...
+
+## Usage
+
+1. Download release `4.1.1 Alpha2 (461) -> armeabi-v7a` in [`Ericwyn/Auto.js/releases@V4.1.1.Alpha2`](https://github.com/Ericwyn/Auto.js/releases/tag/V4.1.1.Alpha2)
+
+2. Turn on **Accessibility service** and allow **Display pop-up window** permission for Auto.js
+
+3. Create a new script file in Auto.js. Copy the code below and run!
+
+```javascript
+"ui";
+"use strict";
+var emitter = events.emitter(threads.currentThread());
+threads.start(function() {
+ emitter.emit("evaluate", (function(){
+ var resp = http.get("https://gitee.com/stageguard/SkyAutoPlayerScript/raw/master/source/SkyAutoplayer.js");
+ if(resp.statusCode >= 200 && resp.statusCode < 300) {
+ return resp.body.string();
+ } else {
+ resp = http.get("https://cdn.jsdelivr.net/gh/StageGuard/SkyAutoPlayerScript@" + http.get("https://gitee.com/stageguard/SkyAutoPlayerScript/raw/master/gitVersion").body.string() + "/source/SkyAutoplayer.js");
+ if(resp.statusCode >= 200 && resp.statusCode < 300) {
+ return resp.body.string();
+ } else {
+ return "console.show();console.log(\"Failed to load script\")";
+ }
+ }
+ }()));
+});
+emitter.on('evaluate', function(s){
+ eval(s);
+});
+```
+## Clear data
+
+`SkyAutoPlayerScript` will store data while running, if you want to delete all data, please run the code below in Auto.js
+
+```
+storages.remove("StageGuard:SkyAutoPlayer:Config");
+files.removeDir("/storage/emulated/0/Documents/SkyAutoPlayer/");
+```
+
+# Upload sheets
+
+SkyAutoplayerScript will load online shared sheets from the file `shared_sheets.json` in this repository and it is convenient to download and play.
+
+If you want to let sheets that transcribed by yourself or permitted to reprint shown on the list, you can do one of the following ways:
+
+### 1. Pull Request
+
+You can clone this repository, put your sheet file into `shared_sheets` folder and add a new item in `shared_sheets.json` :
+
+```javascript
+{
+ //sheet name
+ "name": "Vicetone - Nevada",
+ //sheet file name in shared_sheets folder
+ "file": "Nevada.txt",
+ //transcriber
+ "author": "StageGuard",
+ //short description about this sheet
+ "desc": "Nevada SkyStudio钢琴版。\n内包含比较复杂的和弦,不适合手弹(笑\n你可以在SkyStudio的练习模式试试[狗头]",
+ //BPM in sheet file
+ "bpm": 497,
+ //key count(a 15 key sheet or 8 key sheet)
+ "keyCount": 15,
+ //pitch level in sheet file
+ "pitchLevel": 3,
+ //note count
+ //length of array songNotes in sheet file
+ "noteCount": 1308,
+ //your social link
+ //you can add many links if you want
+ "social": [
+ {
+ //platform code name, currently support github, twitter, douyin(tiktok) and coolapk
+ "platform": "github",
+ //social platform name
+ "name": "GitHub",
+ //social link
+ "link": "https://github.com/StageGuard/"
+ }
+ ]
+},
+```
+
+After finishing, you need to create a new `pull request` and wait it to be merged.
+
+> Attention: Before creating a new `pull request` , make sure your local repository is up-to-date!
+
+### 2. If you are not familiar with Github...
+
+Just mail your sheet file to [beamiscool@qq.com](mailto:beamiscool@qq.com) and don't forget the sheet description !
+
+# Attention!
+
+### Before using this script, you must read the following notes!
+
+1. SkyAutoplayerScript is not fully tested, if you meet a bug, please PM CoolApk@StageGuard or create a new issue.
+
+2. **SkyAutoplayerScript is a free and open source project. If you want to use it for commercial purposes, please add the link refers to this repository.**
+
+3. **Shared sheets is not under the protection of LGPL-2.1, if you want to reprint shared sheets to other platforms, please contact sheet transcriber by yourself!**
+
+4. The script is just for entertainment and it is not suitable to use it in formal occasion.
+
+5. Script just gives you a short-time sense of satisfaction and do not make you progress.
+
+6. This script is just a "player" and no built-in sheets, you must download [SkyStudio](https://play.google.com/store/apps/details?id=com.Maple.SkyStudio) to make sheets.
+
+7. The script will not support decrypt sheet, including **SkyStudio encryped sheet** or **encrypted js** etc...
And the repository will also not accept encrypted sheet.
+
+
+ Issues
+
+# Use it to make profits: [#1](https://github.com/StageGuard/SkyAutoPlayerScript/issues/1)
+
+# Embezzle shared sheets:
+
+Gitee user [嗨游圈(@vipssp)](https://gitee.com/vipssp) upload all shared sheets in [/shared_sheets](https://github.com/StageGuard/SkyAutoPlayerScript/tree/master/shared_sheets) **without permission** to his [Gitee repository](https://gitee.com/vipssp/SkyAutoPlayerScript/)
+
+He also doesn't delete these sheets from his repository after [notification](https://gitee.com/vipssp/SkyAutoPlayerScript/commit/197925a71ff9cc6248be682a55406fc5814b12d7#note_3637784).
+
+I decide to pin him in README.md after comminucating with some sheet sharer.
+
+
+
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+
+
+# Contribution
+
+Welcome everyone to contribute this project, including pull request, issue, new feature request or translation.
+
+## Contributor
+
+### SkyAutoPlayerScript
+
+[@tiaod](https://github.com/tiaod)
+
+### Shared sheets
+
+CoolApk [@Aex技术总监](http://www.coolapk.com/u/1286879)
+CoolApk [@夏卡卡卡](http://www.coolapk.com/u/2313452)
+CoolApk [@深空失忆か](http://www.coolapk.com/u/3005974)
+Douyin [@子哲啊🌈(zizhe1880689503)](https://v.douyin.com/J9gUaVE/)
+CoolApk [@你们很有趣呢](http://www.coolapk.com/u/2416229)
+CoolApk [@情如风雪无常](http://www.coolapk.com/u/643670)
+CoolApk [@慕疵](http://www.coolapk.com/u/3286967)
+CoolApk [@社区最弱萌新](http://www.coolapk.com/u/3291313)
+CoolApk [@九方辰](http://www.coolapk.com/u/634078)
+CoolApk [@北极马可罗尼](http://www.coolapk.com/u/463478)
+Bilibili [@UTF16](https://space.bilibili.com/623364258)
+CoolApk [@Syngenex](http://www.coolapk.com/u/1093421)
+Twitter [Phoebe@huunhut1217](https://mobile.twitter.com/huunhut1217)
+CoolApk [@终究是错付了](http://www.coolapk.com/u/2293899)
+CoolApk [@DesperatU](http://www.coolapk.com/u/1075889)
+CoolApk [@明明酱](http://www.coolapk.com/u/1706128)
+CoolApk [@cxk的篮球](http://www.coolapk.com/u/1090769)
+CoolApk [@头条乀](http://www.coolapk.com/u/1192320)
+CoolApk [@Alusias](http://www.coolapk.com/u/808787)
+[chikin](mailto:2869826936@qq.com)
+CoolApk [@温茶予君](http://www.coolapk.com/u/1212499)
+CoolApk [@落红难相聚](http://www.coolapk.com/u/2082465)
+
+## Translation
+
+SkyAutoplayerScript version 21 has supported multi-language and can also fetch online language list, follow [contribute-translation.md](contribute-translation.md) (English) guide to contribute translation.
+
+### Contributor
+
+None
+
+# Icon from:
+
+[Iconfont-阿里巴巴矢量图标库](https://www.iconfont.cn/)
+
+# Thanks to:
+
+[projectXero](https://gitee.com/projectXero) (Provide `ListAdapter` used in Rhino)
+
+# LICENSE
+
+```
+ SkyAutoPlayer (Auto.js script)
+ Copyright © 2020-2021 StageGuard
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this library; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
+ USA
+```
diff --git a/README.md b/README.md
index 5ac16d7..52e22cc 100644
--- a/README.md
+++ b/README.md
@@ -1,40 +1,28 @@
# SkyAutoPlayerScript
-使用Auto.js提供的无障碍权限实现在Sky光遇中自动弹奏[SkyStudio](https://play.google.com/store/apps/details?id=com.Maple.SkyStudio)导出的曲谱
+English: [README-en.md](README-en.md)
-A script to play Sheets generated by SkyStudio automatically in game Sky with accessibility services using Auto.js
+使用Auto.js提供的无障碍权限实现在Sky光遇中自动弹奏 [SkyStudio](https://play.google.com/store/apps/details?id=com.Maple.SkyStudio) 导出的曲谱
-## 特性 / Feature
+## 特性
-相比于其他脚本,SkyAutoPlayerScript拥有以下优势
+相比于其他脚本,SkyAutoPlayerScript 拥有以下优势
-There are many features in SkyAutoPlayerScript compared to other auto player scripts.
-
-* 全GUI操作,无需编辑任何代码,流畅的UI动画。
Friendly GUI, no code edit, fluent ui animation.
-* 多功能的弹奏控制面板,支持**暂停**, **进度控制**, **倍速控制**等
Multi-functional player control panel with **pause**, **progress control** and **speed control**.
-* 通过引导自设定键位坐标,避免按压琴键的偏移问题
Set key coordinates by yourself with guidence, avoiding key offset when playing.
-* 在线[共享乐谱](https://github.com/StageGuard/SkyAutoPlayerScript/tree/master/shared_sheets),有许多优质乐谱。~~(甚至有的乐谱复杂到根本无法手弹)~~
There are many excellent online [shared sheets](https://github.com/StageGuard/SkyAutoPlayerScript/tree/master/shared_sheets).
-* 自动更新,及时修复BUG,无需担心版本过时问题。
Automatically update script.
-* [多语言支持](#翻译--translation)
[Multi-language support](#翻译--translation).
+* 全GUI操作,无需编辑任何代码,流畅的UI动画。
+* 多功能的弹奏控制面板,支持**暂停**, **进度控制**, **倍速控制**等。
+* 通过引导自设定键位坐标,避免按压琴键的偏移问题。
+* 在线[共享乐谱](https://github.com/StageGuard/SkyAutoPlayerScript/tree/master/shared_sheets),有许多优质乐谱。
+* 自动更新,及时修复BUG,无需担心版本过时问题。
+* [多语言支持](#翻译)。
* ...
-## 使用 / Usage
+## 使用
-①Auto.js `4.1.1 Alpha2 (461)` 版本下载: [`Ericwyn/Auto.js/releases@V4.1.1.Alpha2`](https://github.com/Ericwyn/Auto.js/releases/tag/V4.1.1.Alpha2)
+1. Auto.js `4.1.1 Alpha2 (461) -> armeabi-v7a` 版本下载: [`Ericwyn/Auto.js/releases@V4.1.1.Alpha2`](https://github.com/Ericwyn/Auto.js/releases/tag/V4.1.1.Alpha2)
-Download `Auto.js`[`Ericwyn/Auto.js/releases@V4.1.1.Alpha2`](https://github.com/Ericwyn/Auto.js/releases/tag/V4.1.1.Alpha2)
+2. 为Auto.js开启**无障碍服务**和**悬浮窗权限**。
-手机请下载 `autoJs-V4.1.1.Alpha2-common-armeabi-v7a-debug.apk`
-
-Please download `autoJs-V4.1.1.Alpha2-common-armeabi-v7a-debug.apk`
-
-②为Auto.js开启**无障碍服务**和**悬浮窗权限**。
-
-Turn on **Accessibility service** and allow **Display pop-up window** permission for Auto.js
-
-③在Auto.js中新建一个脚本并粘贴以下代码并运行:
-
-Create a new script file in Auto.js. Copy the code below and run!
+3. 在Auto.js中新建一个脚本并粘贴以下代码并运行:
```javascript
"ui";
@@ -60,66 +48,56 @@ emitter.on('evaluate', function(s){
});
```
-在Auto.js版本 `4.1.1 Alpha2 (461)` 中测试通过,不保证其他版本的兼容性(取决于其他版本相对于此版本的API是否有`breaking changes`)
+在Auto.js版本 `4.1.1 Alpha2 (461)` 中测试通过,**不保证其他版本的兼容性**(取决于其他版本相对于此版本的API是否有`breaking changes`)
-## 清除数据 / Clear data
+## 清除数据
`SkyAutoPlayerScript` 在使用过程中会产生本地数据存储,若想全部删除,请使用Auto.js执行以下代码
-`SkyAutoPlayerScript` will store data while running, if you want to delete all data, please run the code below in Auto.js
-
```
storages.remove("StageGuard:SkyAutoPlayer:Config");
files.removeDir("/storage/emulated/0/Documents/SkyAutoPlayer/");
```
-# 上传乐谱 / Upload sheets
+# 上传乐谱
SkyAutoplayerScript 可以从这个仓库中的 `shared_sheets.json` 读取在线共享乐谱列表并可以方便地下载和弹奏。
-SkyAutoplayerScript will load online shared sheets from the file `shared_sheets.json` in this repository and it is convenient to download and play.
-
你可以通过以下两种方式的任意一种方式来让你自制或经过原作者授权转载的乐谱在这个列表显示:
-If you want to let sheets that transcribed by yourself or permitted to reprint shown on the list, you can do one of the following ways:
-
### 1. Pull Request
你可以克隆这个仓库,将你的乐谱添加到 `shared_sheets` 文件夹中,并按照以下要求在 `shared_sheets.json` 中添加新的项目:
-You can clone this repository, put your sheet file into `shared_sheets` folder and add a new item in `shared_sheets.json` :
-
```javascript
{
- //乐谱名称 / sheet name
+ //乐谱名称
"name": "Vicetone - Nevada",
- //文件名 / sheet file name in shared_sheets folder
+ //文件名
"file": "Nevada.txt",
- //乐谱作者 / transcriber
+ //乐谱作者
"author": "StageGuard",
- //乐谱简介 / short description about this sheet
+ //乐谱简介
"desc": "Nevada SkyStudio钢琴版。\n内包含比较复杂的和弦,不适合手弹(笑\n你可以在SkyStudio的练习模式试试[狗头]",
- //乐谱文件中的BPM / BPM in sheet file
+ //乐谱文件中的BPM
"bpm": 497,
//乐谱的键位数目(它是一个 15 键位乐谱还是 8 键位乐谱)
- //key count(a 15 key sheet or 8 key sheet)
"keyCount": 15,
- //乐谱文件中的音高 / pitch level in sheet file
+ //乐谱文件中的音高
"pitchLevel": 3,
- //键的数目 / note count
- //乐谱文件中数组 songNotes 的长度 / length of array songNotes in sheet file
+ //键的数目
+ //乐谱文件中数组 songNotes 的长度
"noteCount": 1308,
- //你的社交链接 / your social link
- //你可以添加多个 / you can add many links if you want
+ //你的社交链接
+ //你可以添加多个
"social": [
{
//社交平台名称代号,现在支持 github, twitter, douyin(tiktok) and coolapk
- //platform code name, currently support github, twitter, douyin(tiktok) and coolapk
- "platform": "coolapk",
- //社交平台名称 / social platform name
- "name": "酷安",
- //社交连接 / social link
- "link": "http://www.coolapk.com/u/808787"
+ "platform": "github",
+ //社交平台名称
+ "name": "GitHub",
+ //社交连接
+ "link": "https://github.com/StageGuard/"
}
]
},
@@ -127,49 +105,29 @@ You can clone this repository, put your sheet file into `shared_sheets` folder a
修改完成后,申请 `Pull Request` ,等待 merge 即可。
-After finishing, you need to create a new `pull request` and wait it to be merged.
-
> 请注意:在申请`Pull Request`之前请确保你本地的 仓库已同步至最新,以免出现意外问题!
->
-> Attention: Before creating a new `pull request` , make sure your local repository is up-to-date!
-### 2. 如果你不是很懂 Github...
If you are not familiar with Github...
+### 2. 如果你不是很懂 Github...
只需要把乐谱发送到邮箱 [beamiscool@qq.com](mailto:beamiscool@qq.com) 来交给我就行啦!别忘了附带乐谱简介!
-Just mail your sheet file to [beamiscool@qq.com](mailto:beamiscool@qq.com) and don't forget the sheet description !
+# 注意!
-# 注意! / Attention!
+### 请仔细阅读以下使用须知!
-### 请仔细阅读以下使用须知!
Before using this script, you must read the following notes!
+1. 未充分测试,若遇到BUG,请酷安私信@StageGuard或新建Issue来反馈BUG!
-1. 未充分测试,若遇到BUG,请酷安私信@StageGuard或新建Issue来反馈BUG!
+2. **SkyAutoplayerScript是完全免费且开源的软件/脚本([https://github.com/StageGuard/SkyAutoPlayerScript](https://github.com/StageGuard/SkyAutoPlayerScript)),使用 SkyAutoplayerScript 盈利的同时请标注源项目链接。**
- SkyAutoplayerScript is not fully tested, if you meet a bug, please PM CoolApk@StageGuard or create a new issue.
+3. **共享乐谱不遵守LGPL-2.1协议,如您想在SkyAutoPlayer以外使用这些乐谱,请自行找乐谱作者授权!**
-2. **SkyAutoplayerScript是完全免费且开源的软件/脚本([https://github.com/StageGuard/SkyAutoPlayerScript](https://github.com/StageGuard/SkyAutoPlayerScript)),使用 SkyAutoplayerScript 盈利的同时请标注源项目链接。**
+4. 本脚本仅可用作娱乐用途,请不要在正规场合使用本脚本(请自行体会\"正规场合\"是什么意思),若因使用本脚本所出现了一些不友好的问题,与脚本作者StageGuard无关。
- **SkyAutoplayerScript is a free and open source project. If you want to use it for commercial purposes, please add the link refers to this repository.**
+5. 脚本只能给你一时满足感而不能使你进步,请适当使用,只有真正的技术才是王道,才能使你感到快乐。
-3. **共享乐谱不遵守LGPL-2.1协议,如您想在SkyAutoPlayer以外使用这些乐谱,请自行找乐谱作者授权!**
+6. 本脚本只是一个"弹奏机",并不内置曲谱,请在 GooglePlay 下载 [SkyStudio](https://play.google.com/store/apps/details?id=com.Maple.SkyStudio) 编谱。
- **Shared sheets is not under the protection of LGPL-2.1, if you want to reprint shared sheets to other platforms, please contact sheet transcriber by yourself!**
-
-4. 本脚本仅可用作娱乐用途,请不要在正规场合使用本脚本(请自行体会\"正规场合\"是什么意思),若因使用本脚本所出现了一些不友好的问题,与脚本作者StageGuard无关。
-
- The script is just for entertainment and it is not suitable to use it in formal occasion.
-
-5. 脚本只能给你一时满足感而不能使你进步,请适当使用,只有真正的技术才是王道,才能使你感到快乐。
-
- Script just gives you a short-time sense of satisfaction and do not make you progress.
-
-6. 本脚本只是一个"弹奏机",并不内置曲谱,请在 GooglePlay 下载 [SkyStudio](https://play.google.com/store/apps/details?id=com.Maple.SkyStudio) 编谱。
-
- This script is just a "player" and no built-in sheets, you must download [SkyStudio](https://play.google.com/store/apps/details?id=com.Maple.SkyStudio) to make sheets.
-
-7. 本脚本不会增加解密乐谱功能,包括但不限于**加密的SkyStudio乐谱**,**加密的JS**等,也不接受加密乐谱的共享。
-
- The script will not support decrypt sheet, including **SkyStudio encryped sheet** or **encrypted js** etc...
And the repository will also not accept encrypted sheet.
+7. 本脚本不会增加解密乐谱功能,包括但不限于**加密的SkyStudio乐谱**,**加密的JS**等,也不接受加密乐谱的共享。
针对上述第2, 3条出现的问题:
@@ -203,19 +161,17 @@ Gitee 用户[嗨游圈(@vipssp)](https://gitee.com/vipssp)在**未经乐谱上
-# 贡献 / Contribution
+# 贡献
欢迎任何人贡献本项目,包括但不限于 Pull Request,Issue,New feature request 或者 贡献翻译。
-Welcome everyone to contribute this project, including pull request, issue, new feature request or translation.
-
-## 贡献者 / Contributor
+## 贡献者
### SkyAutoPlayerScript
[@tiaod](https://github.com/tiaod)
-### 共享乐谱 / Shared sheets
+### 共享乐谱
酷安[@Aex技术总监](http://www.coolapk.com/u/1286879)
酷安[@夏卡卡卡](http://www.coolapk.com/u/2313452)
@@ -229,7 +185,7 @@ Welcome everyone to contribute this project, including pull request, issue, new
酷安[@北极马可罗尼](http://www.coolapk.com/u/463478)
哔哩哔哩[@UTF16](https://space.bilibili.com/623364258)
酷安[@Syngenex](http://www.coolapk.com/u/1093421)
-Twitter[Phoebe@huunhut1217](https://mobile.twitter.com/huunhut1217)
+Twitter [Phoebe@huunhut1217](https://mobile.twitter.com/huunhut1217)
酷安[@终究是错付了](http://www.coolapk.com/u/2293899)
酷安[@DesperatU](http://www.coolapk.com/u/1075889)
酷安[@明明酱](http://www.coolapk.com/u/1706128)
@@ -240,25 +196,23 @@ Twitter[Phoebe@huunhut1217](https://mobile.twitter.com/huunhut1217)
酷安[@温茶予君](http://www.coolapk.com/u/1212499)
酷安[@落红难相聚](http://www.coolapk.com/u/2082465)
-## 翻译 / Translation
+## 翻译
SkyAutoplayerScript 在版本 21 已支持多语言并可以在线获取语言列表,你可以查看 [contribute-translation.md](contribute-translation.md) (English) 来了解如何贡献翻译。
-SkyAutoplayerScript version 21 has supported multi-language and can also fetch online language list, follow [contribute-translation.md](contribute-translation.md) (English) guide to contribute translation.
-
-### 贡献者 / Contributor
+### 贡献者
无
-# 图标来源 / Icon from:
+# 图标来源
[Iconfont-阿里巴巴矢量图标库](https://www.iconfont.cn/)
-# 鸣谢 / Thanks to:
+# 鸣谢
[projectXero](https://gitee.com/projectXero) (提供适用于Rhino的`ListAdapter`)
-# 许可证协议 / LICENSE
+# 许可证协议
```
SkyAutoPlayer (Auto.js script)