1.0.11 • Published 2 years ago

kar-to-ass v1.0.11

Weekly downloads
107
License
MIT
Repository
gitlab
Last release
2 years ago

kar-to-ass

Conversion tool made to parse kar files and rewrite their lyrics using ASS format

Usage

CLI

# Prints conversion on stdout
kar-to-ass -i <kar file>

# Prints conversion into specified file
kar-to-ass -i <kar file> -o <ASS file>

# Use 'kf' instead of 'k' to make the text filling progressive
kar-to-ass -i <kar file> -p

# Converts file and applies the specified offset (in cs)
kar-to-ass -i <kar file> -c <offset>

# Displays more help
kar-to-ass --help

Module

function parseKar(fileContent: string): KarData

Loads a KarData structure based on said fileContent

function convertKarToAss(kar: KarData, options: Options): string

Prepares said kar and returns it as a string

function convertKarStringToAss(fileContent: string, options: Options): string

All of the above in one step

interface Options

Wraps all options that could be used during conversion. Its members are:

  • offset (number): offsets every line
  • progressive (boolean): use 'kf' instead of 'k'

Test

You can test code with a kar file :

node dist/index.js -i test.kar -o test.ass
1.0.11

2 years ago

1.0.10-0

2 years ago

1.0.9

2 years ago

1.0.10

2 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago