From e01eb580ac2040e34fc92a1da5f5156c0774ba8c Mon Sep 17 00:00:00 2001 From: Sacha Chua Date: Sun, 12 Dec 2021 01:24:30 -0500 Subject: Use simpler markup for chapters --- 2021/info/forever-schedule.md | 116 +++++++++++++++++++++++------------------- local.css | 5 +- templates/chapters.md | 3 ++ templates/page.tmpl | 111 +++++++++++++++++++++++----------------- templates/vid.md | 6 +-- 5 files changed, 137 insertions(+), 104 deletions(-) create mode 100644 templates/chapters.md diff --git a/2021/info/forever-schedule.md b/2021/info/forever-schedule.md index 82b4bf33..ab79e929 100644 --- a/2021/info/forever-schedule.md +++ b/2021/info/forever-schedule.md @@ -9,60 +9,74 @@ If you have questions and the speaker has not indicated public contact informati # Talk -
    -
  1. 00:01 Introduction and conclusion
  2. -
  3. 00:28 Who am I?
  4. -
  5. 01:07 Is Emacs unpopular?
  6. -
  7. 02:26 What does popularity really mean?
  8. -
  9. 04:15 How do we measure popularity?
  10. -
  11. 04:32 Google Trends
  12. -
  13. 06:18 Stack Overflow Survey
  14. -
  15. 08:20 Community Activity
  16. -
  17. 10:23 How do editors lose popularity?
  18. -
  19. 10:38 A new editor with better features appears
  20. -
  21. 12:25 Lack of sufficient maintenance
  22. -
  23. 14:01 The "fashion" moves on
  24. -
  25. 14:36 What happens when an editor loses popularity?
  26. -
  27. 17:10 How will Emacs survive *despite* popularity?
  28. -
  29. 17:20 Emacs is more deeply hackable than almost all other editors
  30. -
  31. 19:51 Emacs has a strong community of highly skilled package authors
  32. -
  33. 21:15 Emacs has a very strong user community
  34. -
  35. 22:33 The Emacs maintainers and contributors care about the users
  36. -
  37. 23:40 Isn't all this supposed to come when an editor is popular?
  38. -
  39. 24:22 When someone talks about popularity...
  40. -
+[[!template id="vid" vidid="mainVideo" src="https://media.emacsconf.org/2021/emacsconf-2021-forever--m-x-forever-why-emacs-will-outlast-text-editor-trends--david-wilson-system-crafters--main.webm" poster="https://media.emacsconf.org/2021/emacsconf-2021-forever--m-x-forever-why-emacs-will-outlast-text-editor-trends--david-wilson-system-crafters--main.png" captions="""""" +size="27.6M" duration="24:52" other_resources="""[Download .org](https://media.emacsconf.org/2021/emacsconf-2021-forever--m-x-forever-why-emacs-will-outlast-text-editor-trends--david-wilson-system-crafters.org) +[Download --main.vtt](https://media.emacsconf.org/2021/emacsconf-2021-forever--m-x-forever-why-emacs-will-outlast-text-editor-trends--david-wilson-system-crafters--main.vtt) +[Download --chapters.vtt](https://media.emacsconf.org/2021/emacsconf-2021-forever--m-x-forever-why-emacs-will-outlast-text-editor-trends--david-wilson-system-crafters--chapters.vtt) +[Download --main--chapters.vtt](https://media.emacsconf.org/2021/emacsconf-2021-forever--m-x-forever-why-emacs-will-outlast-text-editor-trends--david-wilson-system-crafters--main--chapters.vtt) +[View on Toobnix](https://toobnix.org/w/jSW4Gk3hsuv2ZfW8jXHz39) +"""]] +[[!template id="chapters" vidid="mainVideo" data=""" +00:01 Introduction and conclusion +00:28 Who am I? +01:07 Is Emacs unpopular? +02:26 What does popularity really mean? +04:15 How do we measure popularity? +04:32 Google Trends +06:18 Stack Overflow Survey +08:20 Community Activity +10:23 How do editors lose popularity? +10:38 A new editor with better features appears +12:25 Lack of sufficient maintenance +14:01 The "fashion" moves on +14:36 What happens when an editor loses popularity? +17:10 How will Emacs survive *despite* popularity? +17:20 Emacs is more deeply hackable than almost all other editors +19:51 Emacs has a strong community of highly skilled package authors +21:15 Emacs has a very strong user community +22:33 The Emacs maintainers and contributors care about the users +23:40 Isn't all this supposed to come when an editor is popular? +24:22 When someone talks about popularity... + +"""]] + # Q&A -
    -
  1. 00:00 Thanks
  2. -
  3. 00:26 In your opinion, what is Emacs' Achilles heel?
  4. -
  5. 03:09 What is your opinion about the documentation of Emacs in other languages?
  6. -
  7. 05:06 Do you think more effort should be made to popularize hacking on the C parts of Emacs?
  8. -
  9. 06:31 Can you name a few features from other programming languages that you miss in Emacs Lisp?
  10. -
  11. 07:12 What are your opinions on Emacs's commitments to free software?
  12. -
  13. 08:22 Do you think that packages like Magit or Org mode make people see Emacs as an obstacle to these applications that they want to use?
  14. -
  15. 11:42 Another way people can help inspire others to use Emacs
  16. -
  17. 12:57 Should Emacs continue to present itself as an esoteric program and culture, or should we try to dispel the myth?
  18. -
  19. 14:49 Do you think there could be changes made to the core of Emacs that would betray the ethos you and most people here appreciate?
  20. -
  21. 15:22 When will David Wilson and Protesilaos collaborate?
  22. -
  23. 15:38 If you had to choose between graphics or real browser support within Emacs, which would you choose?
  24. -
  25. 16:28 How do you feel being an Emacs-focused YouTuber?
  26. -
  27. 18:29 More typesetting capabilities versus better performance
  28. -
  29. 20:31 Sneak peek of what's coming in the YouTube channel soon?
  30. -
  31. 24:43 Principles and compromises
  32. -
  33. 25:07 Understanding the value of Emacs Lisp
  34. -
  35. 26:10 Will you do a video showing your personal workflow?
  36. -
  37. 26:44 What do you think about Guix or NixOS?
  38. -
  39. 28:12 Can you talk about your actual work?
  40. -
  41. 31:18 Do your colleagues use Emacs as well?
  42. -
  43. 35:23 Any thoughts on the idea that the best tool to use is the one that is easiest to leave?
  44. -
  45. 39:23 Do you think there should be an updated initial configuration for fresh Emacs installations with more modern UI features and cool shortcuts?
  46. -
  47. 42:29 How hard is it to get into the native code side of Emacs?
  48. -
  49. 43:50 Emacs Chats
  50. -
  51. 46:28 Livestreams
  52. -
  53. 53:34 Short-form videos
  54. -
+[[!template id="vid" vidid="qanda" src="https://media.emacsconf.org/2021/emacsconf-2021-forever--m-x-forever-why-emacs-will-outlast-text-editor-trends--david-wilson-system-crafters--answers.webm" poster="https://media.emacsconf.org/2021/emacsconf-2021-forever--m-x-forever-why-emacs-will-outlast-text-editor-trends--david-wilson-system-crafters--answers.png" captions="""""" +size="116M" duration="56:57" other_resources="""[Download --answers--chapters.vtt](https://media.emacsconf.org/2021/emacsconf-2021-forever--m-x-forever-why-emacs-will-outlast-text-editor-trends--david-wilson-system-crafters--answers--chapters.vtt) +"""]] +[[!template id="chapters" vidid="qanda" data=""" +00:00 Thanks +00:26 In your opinion, what is Emacs' Achilles heel? +03:09 What is your opinion about the documentation of Emacs in other languages? +05:06 Do you think more effort should be made to popularize hacking on the C parts of Emacs? +06:31 Can you name a few features from other programming languages that you miss in Emacs Lisp? +07:12 What are your opinions on Emacs's commitments to free software? +08:22 Do you think that packages like Magit or Org mode make people see Emacs as an obstacle to these applications that they want to use? +11:42 Another way people can help inspire others to use Emacs +12:57 Should Emacs continue to present itself as an esoteric program and culture, or should we try to dispel the myth? +14:49 Do you think there could be changes made to the core of Emacs that would betray the ethos you and most people here appreciate? +15:22 When will David Wilson and Protesilaos collaborate? +15:38 If you had to choose between graphics or real browser support within Emacs, which would you choose? +16:28 How do you feel being an Emacs-focused YouTuber? +18:29 More typesetting capabilities versus better performance +20:31 Sneak peek of what's coming in the YouTube channel soon? +24:43 Principles and compromises +25:07 Understanding the value of Emacs Lisp +26:10 Will you do a video showing your personal workflow? +26:44 What do you think about Guix or NixOS? +28:12 Can you talk about your actual work? +31:18 Do your colleagues use Emacs as well? +35:23 Any thoughts on the idea that the best tool to use is the one that is easiest to leave? +39:23 Do you think there should be an updated initial configuration for fresh Emacs installations with more modern UI features and cool shortcuts? +42:29 How hard is it to get into the native code side of Emacs? +43:50 Emacs Chats +46:28 Livestreams +53:34 Short-form videos + +"""]] + # Description diff --git a/local.css b/local.css index 20706e7e..7a9225d0 100644 --- a/local.css +++ b/local.css @@ -83,7 +83,8 @@ summary h1 { display: inline-block } .speaker-details { margin: 0 } .vid .resources ul { margin: 0; list-style-type: none; padding: 0 } - ol.chapters { list-style-type: none; padding: 0; } +ol.chapters { list-style-type: none; padding: 0; } +#content ol.chapters a { text-decoration: none; color: inherit } .vid figure { margin: 0; padding: 0 } @@ -99,4 +100,4 @@ summary h1 { display: inline-block } border: 1px solid rgb(0 0 0 / 20%); border-radius: 5px; } .all > ol > li video { max-width: 100%; width: 100% } - .vid .chapters .current { background-color: rgba(0, 255, 0, 0.2); } + ol.chapters .current { background-color: rgba(0, 255, 0, 0.2); } diff --git a/templates/chapters.md b/templates/chapters.md new file mode 100644 index 00000000..ec06bf02 --- /dev/null +++ b/templates/chapters.md @@ -0,0 +1,3 @@ +
+
+
diff --git a/templates/page.tmpl b/templates/page.tmpl index 65d12e3b..11606228 100644 --- a/templates/page.tmpl +++ b/templates/page.tmpl @@ -76,6 +76,17 @@ }, 0); } + function handleSubtitleClick(event) { + var video = event.target.attributes['data-video'].value; + var start = event.target.attributes['data-start'].value + var videoElem = document.getElementById(video); + if (videoElem) { + videoElem.currentTime = parseSeconds(start); + videoElem.scrollIntoView(); + } + event.preventDefault(); + } + window.onload = function initScript() { mainVideo = document.getElementById("mainVideo"); qnaVideo = document.getElementById("qnaVideo"); @@ -88,16 +99,6 @@ video.currentTime = parseSeconds(this.innerText) }; } - handleSubtitleClick = function(event) { - video = event.target.attributes['data-video'].value; - start = event.target.attributes['data-start'].value - videoElem = document.getElementById(video); - if (videoElem) { - videoElem.currentTime = parseSeconds(start); - videoElem.scrollIntoView(); - } - } - let subtitles = document.getElementsByClassName('subtitle'); for (let i = 0; i < subtitles.length; i++) { subtitles[i].onclick = handleSubtitleClick; @@ -315,48 +316,62 @@ transcriptDiv.appendChild(transcriptLink) diff --git a/templates/vid.md b/templates/vid.md index b50349c4..2a48e3a0 100644 --- a/templates/vid.md +++ b/templates/vid.md @@ -1,6 +1,6 @@
-
-- cgit v1.2.3