﻿```
                   __               __    __       ___                              
                  /\ \             /\ \__/\ \__  /'___`\                            
 __  __  __     __\ \ \____  __  __\ \ ,_\ \ ,_\/\_\ /\ \     __      ____    ____  
/\ \/\ \/\ \  /'__`\ \ '__`\/\ \/\ \\ \ \/\ \ \/\/_/// /__  /'__`\   /',__\  /',__\ 
\ \ \_/ \_/ \/\  __/\ \ \L\ \ \ \_/ |\ \ \_\ \ \_  // /_\ \/\ \L\.\_/\__, `\/\__, `\
 \ \___x___/'\ \____\\ \_,__/\ \___/  \ \__\\ \__\/\______/\ \__/.\_\/\____/\/\____/
  \/__//__/   \/____/ \/___/  \/__/    \/__/ \/__/\/_____/  \/__/\/_/\/___/  \/___/ 
```

Convert [WebVTT](http://dev.w3.org/html5/webvtt/) (The Web Video Text Tracks Format, aka html5 video subtitles) into ASS subtitle.

Under constraction🚧

## Setting up

```bash
npm install webvtt2ass
# or set it up globally
npm install webvtt2ass --global
```

## Command line

You may use it from the terminal if webvtt2ass was installed globally

```bash
webvtt2ass example.vtt --output example.ass
webvtt2ass example.vtt (It will output the result to the console).
webvtt2ass 01.vtt 02.vtt (It will convert each webvtt file into ASS subtitle)
```

## Usage

```js
var webvtt2ass = require('webvtt2ass');
webvtt2ass('input_file_path', outputStream);
```

Because the limitation of the ASS, the `<ruby>` tag in WebVTT converted into a [Furigana karaoke](http://docs.aegisub.org/manual/Furigana_karaoke) which need to use the `Automation->Apply karaoke template` in Aegisub to make the `<ruby>` tag display correctly.

## TODO

Font size, alignment, etc.
