<div dir="ltr" align="left">

‎[čeština](/docs/cs/PŘEČTĚTEMĚ.md) | ‎[English](/docs/en/README.md) | ‎[español](/docs/es/LÉAME.md) | ‎[français](/docs/fr/LISEZMOI.md) | ‎[magyar](/docs/hu/OLVASSAEL.md) | ‎[Melayu](/docs/ms/BACASAYA.md) | ‎[русский](/docs/ru/ПРОЧТИМЕНЯ.md) | ‎**简体中文** | ‎[[+]](https://weblate.librescore.org/projects/librescore/docs)

[//]: # "\+\_==!|!=_=!|!==_/+/ ***不要在此行上方编辑*** /+/^^+#|#+^+#|#+^^\+\"

# dl-librescore

<div align="center">

<img src="https://github.com/LibreScore/dl-musescore/raw/master/images/logo.png" width="256" alt="LibreScore 标志">

[![Discord](https://img.shields.io/discord/774491656643674122?color=5865F2&label=&labelColor=555555&logo=discord&logoColor=FFFFFF)](https://discord.gg/DKu7cUZ4XQ) [![Weblate（翻译）](https://weblate.librescore.org/widgets/librescore/-/dl-librescore/svg-badge.svg)](https://weblate.librescore.org/engage/librescore) [![Github 全部发布版](https://img.shields.io/github/downloads/LibreScore/app-librescore/total.svg?label=应用)](https://github.com/LibreScore/app-librescore/releases/latest) [![Github 全部发布版](https://img.shields.io/github/downloads/LibreScore/dl-librescore/total.svg?label=用户脚本)](https://github.com/LibreScore/dl-librescore/releases/latest) [![node包管理器](https://img.shields.io/npm/dt/dl-librescore?label=命令行工具)](https://www.npmjs.com/package/dl-librescore)

下载乐谱

</div>

> 免责声明：这不是官方认可的 MuseScore 产品

## 安装

有4种不同的安装程序：

| 程序                                                                            | MSCZ | MIDI | MP3 | PDF | 转换 |     | Windows | macOS | Linux | 安卓 | iOS/iPadOS |
| ---------------------------------------------------------------------------------- | ---- | ---- | --- | --- | ---------- | --- | ------- | ----- | ----- | ------- | ---------- |
| [应用程序](#应用程序)                             | ✔️   | ✔️   | ✔️  | ❌  | ❌         |     | ✔️      | ✔️    | ✔️    | ✔️      | ❌         |
| [用户脚本](#用户脚本)               | ❌   | ✔️   | ✔️  | ✔️  | ❌         |     | ✔️      | ✔️    | ✔️    | ✔️      | ✔️         |
| [命令行工具](#命令行工具) | ❌   | ✔️   | ✔️  | ✔️  | ✔️         |     | ✔️      | ✔️    | ✔️    | ✔️      | ❌         |
| [Webmscore 尔网站](#webmscore-尔网站) | ❌   | ❌   | ❌  | ❌  | ✔️         |     | ✔️      | ✔️    | ✔️    | ✔️      | ✔️         |

> 注意：`轉換`是指將文件轉換為其他文件類型的能力，包括那些不能在此程式中下載的文件。
> 轉換類型包括：樂譜中的單個樂器、PDF、PNG、SVG、MP3、WAV、FLAC、OGG、MIDI、MusicXML、MSCZ 和 MSCX。

### 应用程序

1. 前往 [README](https://github.com/LibreScore/app-librescore#installation) 页面找到 `app-librescore` 储存库
2. 按照您设备的安装流程进行安装

### 用户脚本

> 注意：如果您的设备运行的系统是 iOS 或者 iPadOS，请参考： [Shortcut](#shortcut) 
>
> 注意：如果您无法在您的设备上安装浏览器扩展插件，请参考以下替代方案： [Bookmark](#bookmark)

#### 浏览器扩展插件

1. 安装 [Tampermonkey](https://www.tampermonkey.net)

> 提示：如果您已经安装了名为“musescore-downloader”、“mcsz downloader”或“musescore-dl”的旧版本脚本，请从Tampermonkey管理面板中卸载它

2. 访问最新的 [dl-librescore.user.js](https://github.com/LibreScore/dl-librescore/releases/latest/download/dl-librescore.user.js) 文件
3. 按下安装按钮

#### 快捷方式

1. 安装 [LibreScore快捷方式](https://www.icloud.com/shortcuts/901d8778d2da4f7db9272d3b2232d0fe)
2. 在Safari中，当在MuseScore上查看歌曲时，点击<img src="https://help.apple.com/assets/61800C7E6EA4632586448084/61800C896EA463258644809A/en_US/01f5a9889bbecc202d8cbb3067a261ad.png" height="16">
3. 点击LibreScore快捷方式激活扩展

> 注意：您必须先打开“允许运行脚本”，才能从快捷指令运行 JavaScript
>
> 1. 前往“设置” <img src="https://help.apple.com/assets/61800C7E6EA4632586448084/61800C896EA463258644809A/en_US/492fec5aff74dbdef9b526177c3804b4.png" height="16"> > “快捷指令” > “高级”
> 2. 打开“允许运行脚本”

#### 书签

1. 创建一个新书签(通常是Ctrl+D)
2. 在Name字段中输入 `LibreScore`
3. 键入 `javascript:(function () {let code = document.createElement('script');code.src = 'https://github.com/LibreScore/dl-librescore/releases/latest/download/dl-librescore.user.js';document.body.appendChild(code);}())` 用于URL字段
4. 保存书签
5. 在MuseScore上查看歌曲时，单击书签以激活扩展

### 命令行工具

1. 安装 [Node.js LTS](https://nodejs.org)
2. 打开一个终端(Terminal)窗口 (不要打开 the Node.js 应用程序)
3. 在窗口中输入 `npx dl-librescore@latest`，然后按 `回车键(Enter) ↵`

### Webmscore 网站

1. 打开 [Webmscore](https://webmscore-pwa.librescore.org)网站

> 提示：通过把它安装为渐进式Web应用(PWA)，您可以离线访问这个网站

## 构建方法

1. 安装 [Node.js LTS](https://nodejs.org)
2.运行 `npm install` 来安装程序包
3. 运行`npm run build` 来构建程序

- 用油猴(篡改猴，Tampermonkey)安装 `./dist/main.user.js` 
- 运行`node ./dist/cli.js` 来启动命令行工具

</div>
