# lyric-ass

> ASS format lyrics generator

Latest version **0.2.1** (published 2017-07-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install lyric-ass
pnpm add lyric-ass
yarn add lyric-ass
bun add lyric-ass
```

Provides the command `lyric-ass`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.1 |
| Published | 2017-07-29 |
| First published | 2017-03-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Author | frimin |
| Maintainers | frimin |
| Keywords | lyric, ass |

## Links

- npm: https://www.npmjs.com/package/lyric-ass
- Repository: https://frimin@github.com/frimin/lyric-ass
- Homepage: https://github.com/frimin/lyric-ass#readme
- Issues: https://github.com/frimin/lyric-ass/issues
- npm.io page: https://npm.io/package/lyric-ass

## Dependencies (3)

- [lyric-dl](https://npm.io/package/lyric-dl.md) ^0.2.0
- [commander](https://npm.io/package/commander.md) ^2.9.0
- [ass-parser](https://npm.io/package/ass-parser.md) ^0.1.2

## Alternatives

- [@pothos/plugin-authz](https://npm.io/package/@pothos/plugin-authz.md) — 12.4K weekly downloads
- [@bounded-sh/client](https://npm.io/package/@bounded-sh/client.md) — 3.2K weekly downloads
- [@luigi-project/plugin-auth-oauth2](https://npm.io/package/@luigi-project/plugin-auth-oauth2.md) — 2.3K weekly downloads
- [@nocobase/plugin-verification](https://npm.io/package/@nocobase/plugin-verification.md) — 2.0K weekly downloads
- [escher-request](https://npm.io/package/escher-request.md) — 545 weekly downloads

## Recent versions

- 0.2.1 (latest) — 2017-07-29
- 0.2.0 — 2017-07-09
- 0.1.0 — 2017-03-31

## README

# ASS Format Lyrics Generator

一个由在线歌词生成至 ASS 字幕文件的命令行工具，依赖 Node.js 框架。

支持 [lyric-dl](https://github.com/frimin/lyric-dl) 所支持的在线地址

安装

	npm install lyric-ass -g

更新

	npm update lyric-ass -g

### 使用

命令格式

	lyric-ass [子命令] [选项] <URL>

不作任何内容修改由原始歌词直接生成 ASS 字幕:

	lyric-ass url <url>
	
你可以使用一系列指令来对歌词时间轴进行简单的编辑:

	lyric-ass url -e "1:-1>1" <url>
	
指令格式为: <区间 | 列表> <操作类型> <参数>

区间可以表示为 **1:10**, 取 1 至 10 条歌词，也可以用负数作索引 **1:-1** 取所有歌词。

列表可以表示为 **1,2,3,4** 甚至可以是 **1,1,1,1** 这样会对第一句歌词做同一个操作四次。

操作类型有如下几种：

  * **r** \<regexp\>,[newstring] : 替换内容
  * **d** : 删除
  * **>** \<second\> : 时间轴后移
  * **<** \<second\> : 时间轴前移
  * **+** \<second\> : 增加显示持续时间
  * **-** \<second\> : 减少显示持续时间

同时也可用符号;来分隔多个操作:

  * "1:-1>2.5;-1d" 所有歌词向后移动 2.5 秒且删除最后一条歌词
  * "1,2,2+1;3d" 把索引 1 和 2 的歌词持续时间增加一秒，且 2 被增加两次并且删除第三句歌词

为了直观地看到歌词索引，可以添加选项 **-E**, 它会在歌词内容中添加当前歌词的初始索引信息

### 修改已生成 ASS 字幕文件

	lyric-ass restyle -e "1:-1>1" <filename>
	
### 修改默认样式

创建一个字幕风格配置文件:

	lyric-ass style-config [stylename]
	
可以修改字体等细节选项，在生成字幕的时候传入配置文件:

	lyric-ass restyle -e "1:-1>1" <filename> [styleConfigFile]

---
_Source: https://npm.io/package/lyric-ass · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
