├── .gitmodules ├── .gitignore ├── .htaccess ├── logo ├── 192x192.png ├── 64x64.png └── 1080x1080.png ├── .pr-preview.json ├── webvtt-region-diagram.png ├── W3CTRMANIFEST.txt ├── archives ├── 2015-12-08 │ └── webvtt-region-diagram.png ├── 2017-07-13 │ └── webvtt-region-diagram.png ├── 2017-08-08 │ └── webvtt-region-diagram.png ├── 2018-04-15 │ ├── webvtt-region-diagram.png │ └── changes.html ├── 2019-03-06 │ ├── webvtt-region-diagram.png │ └── changes.html ├── WebVTT1_WD_Changes.htm ├── fixup.js └── base.css ├── w3c.json ├── CODE_OF_CONDUCT.md ├── Makefile ├── LICENSE.md ├── .github └── workflows │ └── deploy.yml ├── README.md ├── CONTRIBUTING.md ├── snapshot.sh ├── format.py └── anchors-w3c.txt /.gitmodules: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /html5/ 2 | index.html 3 | -------------------------------------------------------------------------------- /.htaccess: -------------------------------------------------------------------------------- 1 | Redirect 301 / https://w3c.github.io/webvtt/ 2 | -------------------------------------------------------------------------------- /logo/192x192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/webvtt/HEAD/logo/192x192.png -------------------------------------------------------------------------------- /logo/64x64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/webvtt/HEAD/logo/64x64.png -------------------------------------------------------------------------------- /.pr-preview.json: -------------------------------------------------------------------------------- 1 | { 2 | "src_file": "index.bs", 3 | "type": "bikeshed" 4 | } 5 | -------------------------------------------------------------------------------- /logo/1080x1080.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/webvtt/HEAD/logo/1080x1080.png -------------------------------------------------------------------------------- /webvtt-region-diagram.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/webvtt/HEAD/webvtt-region-diagram.png -------------------------------------------------------------------------------- /W3CTRMANIFEST.txt: -------------------------------------------------------------------------------- 1 | index.html?specStatus=WD&shortName=webvtt1 respec 2 | webvtt-region-diagram.png 3 | -------------------------------------------------------------------------------- /archives/2015-12-08/webvtt-region-diagram.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/webvtt/HEAD/archives/2015-12-08/webvtt-region-diagram.png -------------------------------------------------------------------------------- /archives/2017-07-13/webvtt-region-diagram.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/webvtt/HEAD/archives/2017-07-13/webvtt-region-diagram.png -------------------------------------------------------------------------------- /archives/2017-08-08/webvtt-region-diagram.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/webvtt/HEAD/archives/2017-08-08/webvtt-region-diagram.png -------------------------------------------------------------------------------- /archives/2018-04-15/webvtt-region-diagram.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/webvtt/HEAD/archives/2018-04-15/webvtt-region-diagram.png -------------------------------------------------------------------------------- /archives/2019-03-06/webvtt-region-diagram.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/webvtt/HEAD/archives/2019-03-06/webvtt-region-diagram.png -------------------------------------------------------------------------------- /w3c.json: -------------------------------------------------------------------------------- 1 | { 2 | "group": [ 34314, 49808 ] 3 | , "contacts": [ "himorin" ] 4 | , "repo-type": [ "rec-track", "cg-report"] 5 | , "shortname": "webvtt" 6 | } 7 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Code of Conduct 2 | 3 | All code and communication in this repository are covered by the [W3C 4 | Code of Ethics and Professional 5 | Conduct](https://www.w3.org/Consortium/cepc/). 6 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | .PHONY: all index.html 2 | 3 | all: index.html 4 | 5 | # build using api.csswg.org but not local bikeshed 6 | index.html: index.bs 7 | curl https://api.csswg.org/bikeshed/ -F file=@index.bs -F output=err 8 | curl https://api.csswg.org/bikeshed/ -F file=@index.bs -F force=1 > index.html | tee 9 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | All Reports in this Repository are licensed by Contributors under the 2 | [W3C Software and Document 3 | License](http://www.w3.org/Consortium/Legal/2015/copyright-software-and-document). Contributions to 4 | Specifications are made under the [W3C CLA](https://www.w3.org/community/about/agreements/cla/). 5 | 6 | -------------------------------------------------------------------------------- /.github/workflows/deploy.yml: -------------------------------------------------------------------------------- 1 | name: Build and Deploy 2 | on: 3 | push: 4 | branches: 5 | - main 6 | jobs: 7 | build-and-deploy: 8 | runs-on: ubuntu-latest 9 | steps: 10 | - name: Checkout 🛎️ 11 | uses: actions/checkout@v2.3.1 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly. 12 | with: 13 | persist-credentials: false 14 | 15 | - name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built. 16 | run: make 17 | - name: Prepare Deploy folder 18 | run: mkdir deploy && rsync -av --exclude=.git --exclude=.gitignore --exclude=deploy . deploy/ 19 | - name: Deploy 🚀 20 | uses: JamesIves/github-pages-deploy-action@4.0.0 21 | with: 22 | BRANCH: gh-pages # The branch the action should deploy to. 23 | FOLDER: deploy # The folder the action should deploy. 24 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | WebVTT 2 | ====== 3 | 4 | 5 | This is the source of the [WebVTT specification](https://w3c.github.io/webvtt/). 6 | 7 | Contributions can be made via the [W3C Text Tracks Community Group](http://www.w3.org/community/texttracks/). 8 | 9 | You can file new [issues](https://github.com/w3c/webvtt/issues) from the specification itself. There are also old bugs reported in [W3C BugZilla](https://www.w3.org/Bugs/Public/buglist.cgi?product=TextTracks%20CG&component=WebVTT&resolution=---). 10 | 11 | Generating the spec 12 | ------------------- 13 | 14 | This spec is generated using [bikeshed](https://github.com/tabatkins/bikeshed/). 15 | 16 | To generate a CG draft, run: 17 | 18 | $ bikeshed spec 19 | 20 | To generate a WD snapshot, run e.g.: 21 | 22 | $ ./snapshot.sh WD 2016-01-01 2015-12-08 23 | 24 | Also see https://github.com/w3c/webvtt/commit/754f13e3cf03d6036c3e4628c6920d17b412f778 for manual fixup of the generated output. 25 | 26 | To format the index.bs file, run: 27 | 28 | $ ./format.py index.bs 29 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Web Media Text Tracks Community Group 2 | 3 | This repository is being used for work in the Web Media Text Tracks Community Group, governed by the [W3C Community License 4 | Agreement (CLA)](http://www.w3.org/community/about/agreements/cla/). To contribute, you must join 5 | the CG. 6 | 7 | If you are not the sole contributor to a contribution (pull request), please identify all 8 | contributors in the pull request's body or in subsequent comments. 9 | 10 | To add a contributor (other than yourself, that's automatic), mark them one per line as follows: 11 | 12 | ``` 13 | +@github_username 14 | ``` 15 | 16 | If you added a contributor by mistake, you can remove them in a comment with: 17 | 18 | ``` 19 | -@github_username 20 | ``` 21 | 22 | If you are making a pull request on behalf of someone else but you had no part in designing the 23 | feature, you can remove yourself with the above syntax. 24 | 25 | # Tests 26 | 27 | For normative changes, a corresponding 28 | [web-platform-tests](https://github.com/web-platform-tests/wpt) PR is highly appreciated. Typically, 29 | both PRs will be merged at the same time. Note that a test change that contradicts the spec should 30 | not be merged before the corresponding spec change. If testing is not practical, please explain why 31 | and if appropriate [file an issue](https://github.com/web-platform-tests/wpt/issues/new) to follow 32 | up later. Add the `type:untestable` or `type:missing-coverage` label as appropriate. 33 | -------------------------------------------------------------------------------- /snapshot.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Generates a snapshot in archives/ 3 | 4 | STATUS=$1 5 | NEW_DATE=$2 6 | PREV_URL=$(echo $3 | sed -e 's#/#\\/#g') 7 | 8 | USAGE="\n\nUsage: $0 \n\ 9 | For example: $0 WD 2015-10-31 http://www.w3.org/TR/2014/WD-webvtt1-20141113/" 10 | 11 | case $(uname) in 12 | *Darwin*) 13 | DARWIN=1 14 | ;; 15 | esac 16 | 17 | function replace { 18 | if [ -n "$DARWIN" ] ; then 19 | sed -i "" "$1" "$2" 20 | else 21 | sed -i "$1" "$2" 22 | fi 23 | } 24 | 25 | function check { 26 | if [ $? != 0 ] ; then 27 | echo "* $1: Failed (!)" 28 | exit 1 29 | fi 30 | echo "* $1: Done" 31 | } 32 | 33 | if [ $# -lt 2 ] ; then 34 | echo -e "Too few arguments. $USAGE" 35 | exit 1 36 | fi 37 | 38 | cp index.bs index.temp.bs 39 | check "Make temporary copy of source file" 40 | 41 | mkdir -p "archives/$NEW_DATE/" 42 | check "Create directory archives/$NEW_DATE/" 43 | 44 | cp *.png "archives/$NEW_DATE/" 45 | check "Copy images to archives/$NEW_DATE/" 46 | 47 | replace "s/^Status: .*$/Status: $STATUS/" index.temp.bs 48 | check "Replace Status metadata" 49 | 50 | replace "1,/^$/s/^$/Date: $NEW_DATE/" index.temp.bs 51 | check "Add Date metadata" 52 | 53 | replace "1,/^$/s/^$/Previous Version: $PREV_URL/" index.temp.bs 54 | check "Add Previous Version metadata" 55 | 56 | 57 | replace "1,/^Prepare For TR: false$/s/^$/Prepare For TR: true/" index.temp.bs 58 | check "Prepare For TR" 59 | replace "s/^Default Ref Status: current$/Default Ref Status: snapshot/" index.temp.bs 60 | check "Default Ref Status" 61 | replace "s/\[\[!WEBIDL/\[\[!WEBIDL-1/" index.temp.bs 62 | check "Replace WEBIDL ref with W3C snapshot" 63 | replace "s/\[\[!HTML/\[\[!HTML51/g" index.temp.bs 64 | check "Replace HTML ref with W3C snapshot" 65 | 66 | replace "/