From e7aefbada02fd791f0a294da893e2b9f131e5a2f Mon Sep 17 00:00:00 2001 From: Matt Mascarenhas Date: Wed, 28 Feb 2018 01:04:06 +0000 Subject: [PATCH] cinera.css: Marker and categories style cinera_player_pre.js: Episode keyboard navigation. Also swap out A for K, and D for J cinera_player_pre.js: Handle the case in onRefChanged() in which the filter_container or filterState is not present cinera.c: Refetch quotes when processing a set of annotations >60 mins after the last fetch Flags: -w Force quote cache rebuild --- README.md | 192 +++++++++++++++++++++++------------ cinera/cinera.c | 165 +++++++++++++++++------------- cinera/cinera.css | 5 +- cinera/cinera_player_post.js | 2 + cinera/cinera_player_pre.js | 38 ++++++- hmml_to_youtube/hmml.a | Bin 82876 -> 0 bytes hmml_to_youtube/hmmlib.h | 108 -------------------- 7 files changed, 261 insertions(+), 249 deletions(-) delete mode 100644 hmml_to_youtube/hmml.a delete mode 100644 hmml_to_youtube/hmmlib.h diff --git a/README.md b/README.md index 991dc99..4c8cb2d 100644 --- a/README.md +++ b/README.md @@ -45,22 +45,16 @@ directory. Typical operation will involve setting these flags: -d Project Input Directory, the directory where the .hmml files reside -r Root Directory, path shallower than or equal to the CSS, Images and JS directories - -u Root URL, corresponding to the Root Directory (optional if the Output + -R Root URL, corresponding to the Root Directory (optional if the Output Base Directory resides in the Root Directory) + -c CSS Directory, relative to Root + -i Images Directory, relative to Root + -j JS Directory, relative to Root -b Output Base Directory, location of the table of contents / search page - -t Player Template Location - -x Index Template Location - -#### Integration - - CINERA_MODE=INTEGRATE cinera test.hmml - -This will integrate into `template_player.html` (configurable with -t) the -player and related elements generated from `test.hmml` and output to -`out_integrated.html` - -Feel free to play with `template_player.html` to your heart's content. If you do -anything invalid, `cinera` will tell you what's wrong + -B Output Base URL, corresponding to the Output Base Directory + -t Template Directory + -x Index Template Location, relative to Template Directory + -y Player Template Location, relative to Template Directory #### Templates @@ -76,60 +70,128 @@ Valid tags: - `` _the table of contents, and search functionality_ *Player Template* -- `` _the necessary `.css` and `.js` files, and charset setting_ -- `` _ _the menu bar that typically appears above the player in my samples_ +- `` _the necessary `.css` and `.js` files, and + charset setting_ +- `` _ _the menu bar that typically appears above the + player in my samples_ - `` _the player_ -- `` _the filter state objects and `.js` file, which must come after both the MENUS and PLAYER tags_ +- `` _the filter state objects and `.js` file, which + must come after both the MENUS and PLAYER tags_ + +*Optional tags available for use in your Player Template* +- `` _the title of the video, excluding numbering_ +- `` _the unique identifer of the video as provided + by the VoD platform_ + +*Other available tags* +- `` _the full name of the project_ +- `` _the URL where we have derived the page will be + publically accessibly, only really usable if BaseURL is set (-B)_ +- `` +- `` +- `` + ⋮ +- `` + _Freeform buffers for small snippets of localised information, e.g. a single + element or perhaps a They correspond to the custom0 to + custom15 attributes in the [video] node in your .hmml files 0 to 11 may hold + up to 255 characters 12 to 15 may hold up to 1023 characters_ + +Feel free to play with templates to your heart's content. If you do anything +invalid, `cinera` will tell you what's wrong. #### Arguments - Usage: ./cinera [option(s)] filename(s) + Usage: ./cinera [option(s)] filename(s) - Options: - Paths: - -r - Override default root directory (".") - -u - Override default root URL ("") - -b - Override project's default base output directory (".") - -c - Override default CSS directory (""), relative to root - -i - Override default images directory (""), relative to root - -j - Override default JS directory (""), relative to root - -t - Override default player template location ("template_player.html"), relative to root - and automatically enable integration - -x - Override default index template location ("template_index.html"), relative to root - and automatically enable integration - - -o - Override default output player location for SINGLE_EDITION ("out.html") - -d - Override default project directory (".") - - -f - Force integration with an incomplete template - -p - Set the project ID, corresponding to the "project" field in the HMML files - -s