Skip to content

Latest commit

 

History

History
77 lines (38 loc) · 2.45 KB

README.md

File metadata and controls

77 lines (38 loc) · 2.45 KB

This project aims to build converters from aegisub's .ass subtitles to the decoratable subtitles, like bold, italic and strikethrough, which Youtube receives.
このプロジェクトでは、aegisub で使われている .ass ファイルを、Youtubeで使える太字や斜体、打ち消し線などの装飾が可能なファイル形式に変換することを目指す。

Youtube describes about the subtitle types they receive below:
Youtubeは以下のページでどの字幕形式を受けつけるか公開している。
https://support.google.com/youtube/answer/2734698

I, Ryow, have already scratched the first scripts for WebVTT and TTML. See the descriptions below:
WebVTTとTTMLは作成済み。以下に説明を付す。

Descriptions

Basic descriptions

  • This project has begun in PHP because I only can write PHP code.

  • I designed that the scripts receive just one argument; the full path to the target .ass file. They try to read it and write back the new unique file to the direcotry which contains the .ass.

  • Usage:
    # php /full/path/to/the/target.ass
    This command produces the file like this:
    target_1000.vtt

  • Only these tags can be used: <b>, <i> and <s>.

基本的な説明

  • このプロジェクトは、わたし(りょう)がPHPしか使えないため、PHPのみで製作された。

  • スクリプトの引数は「対象 .ass ファイルへのフルパス」である。ファイルを読み込んで、ユニークなファイル名で .ass ファイルと同じディレクトリに新しいファイルを書き出す。

  • 使い方は以下の通り。
    # php /full/path/to/the/target.ass
    最終的に以下のようなファイルを作成する。
    target_1000.vtt

  • Youtubeの仕様と同じく、<b>, <i> and <s> のみ使用可能。

Specifications

WebVTT (ass2vtt.php)

  • Same tag types as the basic description can be used.

  • The file extension is .vtt.

TTML (ass2ttml.php)

  • Same tag types as the basic description can be used.

  • The file extension is .ttml.

仕様

WebVTT (ass2vtt.php)

  • 基本的な説明に書かれたタグのみ使用可能。

  • 拡張子は .vtt 。

TTML (ass2ttml.php)

  • 基本的な説明に書かれたタグのみ使用可能。

  • 拡張子は .vtt 。