slideshow-templates / slideshow-slidy

Slidy (W3C Blue, Blank) - Slide Show (S9) Template Pack
21 stars 5 forks source link

Problem Loading Plugin #1

Closed Enrico68 closed 8 years ago

Enrico68 commented 8 years ago

When I try to load plugin with the command $ slideshow install slidy I get the following errors

confutils/1.1.2 on Ruby 2.0.0 (2014-05-08) [universal.x86_64-darwin13]
logutils/0.6.1 on Ruby 2.0.0 (2014-05-08) [universal.x86_64-darwin13]
fetcher/0.4.5 on Ruby 2.0.0 (2014-05-08) [universal.x86_64-darwin13]
textutils/1.4.0 on Ruby 2.0.0 (2014-05-08) [universal.x86_64-darwin13]
slideshow-models/3.2.0 on Ruby 2.0.0 (2014-05-08) [universal.x86_64-darwin13]
slideshow-templates/3.0.0 on Ruby 2.0.0 (2014-05-08) [universal.x86_64-darwin13]
slideshow/3.1.0 on Ruby 2.0.0 (2014-05-08) [universal.x86_64-darwin13]
Slide Show (S9) v3.2.0 on Ruby 2.0.0 (2014-05-08) [universal.x86_64-darwin13]
  Mapping fetch shortcut 'slidy' to: https://raw.github.com/slideshow-templates/slideshow-slidy/master/slidy.txt,https://raw.github.com/slideshow-templates/slideshow-slidy/master/slidy.txt.quick
Fetching template pack 'slidy'
    from 'https://raw.github.com:443/slideshow-templates/slideshow-slidy/master'
    saving to '/Users/enricopirani/.slideshow/templates/slidy'
  Downloading manifest 'slidy.txt'...
*** error - fetch HTTP - 404 Not Found

*** error: Not Found

So I tried with git issuing the command $ git clone https://github.com/slideshow-templates/slideshow-slidy.git. Checking the list of plugin installed I get

confutils/1.1.2 on Ruby 2.0.0 (2014-05-08) [universal.x86_64-darwin13]
logutils/0.6.1 on Ruby 2.0.0 (2014-05-08) [universal.x86_64-darwin13]
fetcher/0.4.5 on Ruby 2.0.0 (2014-05-08) [universal.x86_64-darwin13]
textutils/1.4.0 on Ruby 2.0.0 (2014-05-08) [universal.x86_64-darwin13]
slideshow-models/3.2.0 on Ruby 2.0.0 (2014-05-08) [universal.x86_64-darwin13]
slideshow-templates/3.0.0 on Ruby 2.0.0 (2014-05-08) [universal.x86_64-darwin13]
slideshow/3.1.0 on Ruby 2.0.0 (2014-05-08) [universal.x86_64-darwin13]
Slide Show (S9) v3.2.0 on Ruby 2.0.0 (2014-05-08) [universal.x86_64-darwin13]

Installed plugins in search path
    [1] plugins/*.{txt.plugin,plugin.txt}
    [2] plugins/*/*.{txt.plugin,plugin.txt}
    [3] ~/.slideshow/plugins/*.{txt.plugin,plugin.txt}
    [4] ~/.slideshow/plugins/*/*.{txt.plugin,plugin.txt}
  include:
       analytics (~/.slideshow/plugins/analytics/analytics.txt.plugin)
        snippets (~/.slideshow/plugins/snippets/snippets.txt.plugin)
          tables (~/.slideshow/plugins/tables/tables.txt.plugin)

Installed quickstarter packs in search path
    [1] node_modules/*/*.{txt.quick,quick.txt}
    [2] ~/.slideshow/templates/*.{txt.quick,quick.txt}
    [3] ~/.slideshow/templates/*/*.{txt.quick,quick.txt}
    [4] ~/.gem/gems/slideshow-templates-3.0.0/templates/*.{txt.quick,quick.txt}
  include:
         deck.js (~/.slideshow/templates/deck.js.quick/deck.js.txt.quick)
      impress.js (~/.slideshow/templates/impress.js.quick/impress.js.txt.quick)
           slidy (~/.slideshow/templates/slideshow-slidy/slidy.txt.quick)
         welcome (~/.gem/gems/slideshow-templates-3.0.0/templates/welcome.txt.quick)

Installed template packs in search path
    [1] templates/*.txt
    [2] templates/*/*.txt
    [3] node_modules/*/*.txt
    [4] ~/.slideshow/templates/*.txt
    [5] ~/.slideshow/templates/*/*.txt
    [6] ~/.gem/gems/slideshow-templates-3.0.0/templates/*.txt
  include:
         deck.js (~/.slideshow/templates/deck.js/deck.js.txt)
      deck.js.sh (~/.slideshow/templates/deck.js.sh/deck.js.sh.txt)
      impress.js (~/.slideshow/templates/impress.js/impress.js.txt)
          shower (~/.slideshow/templates/shower/shower.txt)
           slidy (~/.slideshow/templates/slideshow-slidy/slidy.txt)
              s6 (~/.gem/gems/slideshow-templates-3.0.0/templates/s6.txt)

I fetched the template with $ slideshow new -t slidy. In the working directory I tried without success to render the file: $ slideshow build slidy.text -t slidy And get the following output:

confutils/1.1.2 on Ruby 2.0.0 (2014-05-08) [universal.x86_64-darwin13]
logutils/0.6.1 on Ruby 2.0.0 (2014-05-08) [universal.x86_64-darwin13]
fetcher/0.4.5 on Ruby 2.0.0 (2014-05-08) [universal.x86_64-darwin13]
textutils/1.4.0 on Ruby 2.0.0 (2014-05-08) [universal.x86_64-darwin13]
slideshow-models/3.2.0 on Ruby 2.0.0 (2014-05-08) [universal.x86_64-darwin13]
slideshow-templates/3.0.0 on Ruby 2.0.0 (2014-05-08) [universal.x86_64-darwin13]
slideshow/3.1.0 on Ruby 2.0.0 (2014-05-08) [universal.x86_64-darwin13]
Slide Show (S9) v3.2.0 on Ruby 2.0.0 (2014-05-08) [universal.x86_64-darwin13]
Loading plugins in '/Users/enricopirani/.slideshow/plugins/analytics/analytics_helper.rb' (/Users/enricopirani/.slideshow/plugins/analytics/analytics_helper.rb)...
Loading plugins in '/Users/enricopirani/.slideshow/plugins/snippets/snippets_helper.rb' (/Users/enricopirani/.slideshow/plugins/snippets/snippets_helper.rb)...
Loading plugins in '/Users/enricopirani/.slideshow/plugins/tables/tables_helper.rb' (/Users/enricopirani/.slideshow/plugins/tables/tables_helper.rb)...
buffers:
{:text=>
  {:contents=>
    ["title: HTML Slidy: Slide Shows in HTML and XHTML\nauthor: Dave Raggett\ncopyright: Copyright © 2005-2010 W3C (MIT, ERCIM, Keio)\n\n\n# Slide Shows in HTML and XHTML\n\n- You can now create accessible slide shows with ease\n- Works across browsers and is operated like PowerPoint\n  - Advance to next slide with mouse click, space bar or swipe right\n  - Move forward/backward between slides with Cursor Left,\n    Cursor Right, __Pg Up__ and __Pg Dn__ keys, or swipe right or left\n  - __Home__ key for first slide, __End__ key for last slide\n  - \"__C__\" key for an automatically generated\n    table of contents, or click on \"contents\" on the toolbar or\n    swipe up or down\n  - Function __F11__ to go full screen and back\n  - The \"__F__\" key toggles the display of the footer\n  - The \"__A__\" key toggles display of current vs all slides\n    - Try it now to see how to include notes for handouts (this is\n      explained in the notes following this slide)\n  - Font sizes automatically adapt to browser window size\n    - __S__ and __B__ keys for manual control (or < and >, or the __-__ and\n      __+__ keys on the number pad\n    - Use CSS to set a relative font size on a given slide to make\n      the content bigger or smaller than on other slides\n  - Switching off JavaScript reveals all slides\n- _Now move to next slide to see how it works_\n\n\n# What you need to do\n\n- Each presentation is a single XHTML file\n- Each slide is enclosed in `<div class='slide'> ... </div>`\n  - The `div` element will be created automatically for `h1`\n    elements that are direct children of the body element.\n- Use regular markup within each slide\n- The document head includes two links:\n  - The slide show style sheet:\n    [http://www.w3.org/Talks/Tools/Slidy2/styles/slidy.css](http://www.w3.org/Talks/Tools/Slidy2/styles/slidy.css)\n  - The slide show script:\n    [http://www.w3.org/Talks/Tools/Slidy2/scripts/slidy.js](http://www.w3.org/Talks/Tools/Slidy2/scripts/slidy.js)\n  - Or you can link to the compressed version of the script which is about\n    one seventh the size, see\n    [http://www.w3.org/Talks/Tools/Slidy2/scripts/slidy.js.gz](http://www.w3.org/Talks/Tools/Slidy2/scripts/slidy.js.gz)\n  - If you are using XHTML, remember to use `</script>` and `</style>`\n    as per [Appendix C.3](http://www.w3.org/TR/xhtml1/#C_3)\n\nExample:\n\n    <?xml version=\"1.0\" encoding=\"utf-8\"?>\n    <!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"\n     \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n    <html xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"en\" xml:lang=\"en\">\n    <head>\n      <title>Slide Shows in XHTML</title>\n      <meta name=\"copyright\"\n       content=\"Copyright &#169; 2005 your copyright notice\" />\n      <link rel=\"stylesheet\" type=\"text/css\" media=\"screen, projection, print\"\n       href=\"http://www.w3.org/Talks/Tools/Slidy2/styles/slidy.css\" />\n      <script src=\"http://www.w3.org/Talks/Tools/Slidy2/scripts/slidy.js\"\n       charset=\"utf-8\" type=\"text/javascript\"></script>\n      <style type=\"text/css\">\n        <!-- your custom style rules -->\n      </style>\n    </head>\n\n\n# Timing Your Presentation\n\n- Sometimes it is handy to know just how much time you have to\n  left to finish your presentation\n- To get this feature, add the following markup to the\n  content of the head element, replacing 5 by the duration\n  of your presentation in minutes\n      <meta name=\"duration\" content=\"5\" />\n- The time left in minutes and seconds is shown in the footer\n  next to the slide number\n- The clock starts to run when you move away from the first slide\n- Moving back to the first slide pauses the clock\n\n\n# Generate a Title Page\n\nIf you want a separate title page with the W3C blue style, the\nfirst slide should be as follows:\n\n    <div class=\"slide cover\">\n     <img src=\"http://www.w3.org/Talks/Tools/Slidy2/graphics/keys.jpg\"\n      alt=\"Cover page images (keys)\" class=\"cover\" />\n     <br clear=\"all\" />\n     <h1>HTML Slidy: Slide Shows in XHTML</h1>\n     <p><a href=\"http://www.w3.org/People/Raggett/\">Dave Raggett,</a>\n     <a href=\"mailto:dsr@w3.org\">dsr@w3.org</a></p>\n    </div>\n\nThe [w3c-blue.css](http://www.w3.org/Talks/Tools/Slidy2/graphics/w3c-blue.css)\nstyle sheet looks for the classes \"slide\" and \"cover\" on div\nand img elements using the CSS selector _div.slide.cover_\n\nThis technique can be used to assign your slides to different\nclasses with a different appearence for each such class.\n\nSlidy also allows you to use different background markup for\ndifferent slides, based upon shared class names, as in \"foo\" below.\nBackgrounds without additional class names are always shown except\nwhen the slide isn't transparent. You may need to tweak your\ncustom style sheet.\n\n    <div class=\"background foo\">\n       ... background content ...\n    <div>\n\n    ...\n\n    <div class=\"slide foo\">\n       ... slide content ...\n    <div>\n\n\n# Continued...\n\nTo be done\n"],
   :files=>["slidy.text"]}}
Preparing slideshow 'slidy'...
  [1/1] Generating 'slidy' (.)...
  run filter skip_end_directive...
  run filter directives_bang_style_to_percent_style...
  Patching !-directives (0 slide/style-directives)...
  run filter directives_percent_style...
  Preparing %-directives (0 slide/style directives, 0 class/clear expr-directives, 0/0 block-directives)...
  run filter comments_percent_style...
  Removing %-comments (0 lines, 0 begin/end-blocks, 0 end-blocks)...
  run filter leading_headers...
  Reading 3 headers: title, author, copyright...
  run filter erb_django_style...
  Patching embedded Ruby (erb) code Django-style (0 {{-expressions, 0/0 {%-statements)...
  run filter erb_rename_helper_hack...
  Patching embedded Ruby (erb) code for aliases (0 include/class-aliases)...
  run filter dump_content_to_file_debug_text_erb...
  run filter erb...
  Running embedded Ruby (erb) code/helpers...
  run filter dump_content_to_file_debug_text...
  Converting markdown-text (4736 bytes) to HTML using kramdown library with {"input"=>"GFM", "hard_wrap"=>false}...
  Adding 0 slide breaks (using hr rule)...
  Adding 5 slide breaks (using h1 rule)...
  Adding 0 slide breaks (using h2 rule)...
5 slides found:
  [1] <h1 id="slide-shows-in-html-and-xhtml">Slide Shows in HTML and XHTML</h1>
  [2] <h1 id="what-you-need-to-do">What you need to do</h1>
  [3] <h1 id="timing-your-presentation">Timing Your Presentation</h1>
  [4] <h1 id="generate-a-title-page">Generate a Title Page</h1>
  [5] <h1 id="continued">Continued…</h1>
Merging slideshow 'slidy'...
content_for:
{}
assigns:
{"name"=>"slidy",
 "headers"=>Slideshow::HeadersDrop,
 "content"=>
  "<div class='slide '>\n\n<!-- _S9SLIDE_ -->\n<h1 id=\"slide-shows-in-html-and-xhtml\">Slide Shows in HTML and XHTML</h1>\n\n<ul>\n  <li>You can now create accessible slide shows with ease</li>\n  <li>Works across browsers and is operated like PowerPoint\n    <ul>\n      <li>Advance to next slide with mouse click, space bar or swipe right</li>\n      <li>Move forward/backward between slides with Cursor Left,\nCursor Right, <strong>Pg Up</strong> and <strong>Pg Dn</strong> keys, or swipe right or left</li>\n      <li><strong>Home</strong> key for first slide, <strong>End</strong> key for last slide</li>\n      <li>“<strong>C</strong>” key for an automatically generated\ntable of contents, or click on “contents” on the toolbar or\nswipe up or down</li>\n      <li>Function <strong>F11</strong> to go full screen and back</li>\n      <li>The “<strong>F</strong>” key toggles the display of the footer</li>\n      <li>The “<strong>A</strong>” key toggles display of current vs all slides\n        <ul>\n          <li>Try it now to see how to include notes for handouts (this is\nexplained in the notes following this slide)</li>\n        </ul>\n      </li>\n      <li>Font sizes automatically adapt to browser window size\n        <ul>\n          <li><strong>S</strong> and <strong>B</strong> keys for manual control (or &lt; and &gt;, or the <strong>-</strong> and\n<strong>+</strong> keys on the number pad</li>\n          <li>Use CSS to set a relative font size on a given slide to make\nthe content bigger or smaller than on other slides</li>\n        </ul>\n      </li>\n      <li>Switching off JavaScript reveals all slides</li>\n    </ul>\n  </li>\n  <li><em>Now move to next slide to see how it works</em></li>\n</ul>\n\n\n</div>\n<div class='slide '>\n<!-- _S9SLIDE_ -->\n<h1 id=\"what-you-need-to-do\">What you need to do</h1>\n\n<ul>\n  <li>Each presentation is a single XHTML file</li>\n  <li>Each slide is enclosed in <code>&lt;div class='slide'&gt; ... &lt;/div&gt;</code>\n    <ul>\n      <li>The <code>div</code> element will be created automatically for <code>h1</code>\nelements that are direct children of the body element.</li>\n    </ul>\n  </li>\n  <li>Use regular markup within each slide</li>\n  <li>The document head includes two links:\n    <ul>\n      <li>The slide show style sheet:\n<a href=\"http://www.w3.org/Talks/Tools/Slidy2/styles/slidy.css\">http://www.w3.org/Talks/Tools/Slidy2/styles/slidy.css</a></li>\n      <li>The slide show script:\n<a href=\"http://www.w3.org/Talks/Tools/Slidy2/scripts/slidy.js\">http://www.w3.org/Talks/Tools/Slidy2/scripts/slidy.js</a></li>\n      <li>Or you can link to the compressed version of the script which is about\none seventh the size, see\n<a href=\"http://www.w3.org/Talks/Tools/Slidy2/scripts/slidy.js.gz\">http://www.w3.org/Talks/Tools/Slidy2/scripts/slidy.js.gz</a></li>\n      <li>If you are using XHTML, remember to use <code>&lt;/script&gt;</code> and <code>&lt;/style&gt;</code>\nas per <a href=\"http://www.w3.org/TR/xhtml1/#C_3\">Appendix C.3</a></li>\n    </ul>\n  </li>\n</ul>\n\n<p>Example:</p>\n\n<pre><code>&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;\n&lt;!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"\n \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\"&gt;\n&lt;html xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"en\" xml:lang=\"en\"&gt;\n&lt;head&gt;\n  &lt;title&gt;Slide Shows in XHTML&lt;/title&gt;\n  &lt;meta name=\"copyright\"\n   content=\"Copyright &amp;#169; 2005 your copyright notice\" /&gt;\n  &lt;link rel=\"stylesheet\" type=\"text/css\" media=\"screen, projection, print\"\n   href=\"http://www.w3.org/Talks/Tools/Slidy2/styles/slidy.css\" /&gt;\n  &lt;script src=\"http://www.w3.org/Talks/Tools/Slidy2/scripts/slidy.js\"\n   charset=\"utf-8\" type=\"text/javascript\"&gt;&lt;/script&gt;\n  &lt;style type=\"text/css\"&gt;\n    &lt;!-- your custom style rules --&gt;\n  &lt;/style&gt;\n&lt;/head&gt;\n</code></pre>\n\n\n</div>\n<div class='slide '>\n<!-- _S9SLIDE_ -->\n<h1 id=\"timing-your-presentation\">Timing Your Presentation</h1>\n\n<ul>\n  <li>Sometimes it is handy to know just how much time you have to\nleft to finish your presentation</li>\n  <li>To get this feature, add the following markup to the\ncontent of the head element, replacing 5 by the duration\nof your presentation in minutes\n    <meta name=\"duration\" content=\"5\" /></li>\n  <li>The time left in minutes and seconds is shown in the footer\nnext to the slide number</li>\n  <li>The clock starts to run when you move away from the first slide</li>\n  <li>Moving back to the first slide pauses the clock</li>\n</ul>\n\n\n</div>\n<div class='slide '>\n<!-- _S9SLIDE_ -->\n<h1 id=\"generate-a-title-page\">Generate a Title Page</h1>\n\n<p>If you want a separate title page with the W3C blue style, the\nfirst slide should be as follows:</p>\n\n<pre><code>&lt;div class=\"slide cover\"&gt;\n &lt;img src=\"http://www.w3.org/Talks/Tools/Slidy2/graphics/keys.jpg\"\n  alt=\"Cover page images (keys)\" class=\"cover\" /&gt;\n &lt;br clear=\"all\" /&gt;\n &lt;h1&gt;HTML Slidy: Slide Shows in XHTML&lt;/h1&gt;\n &lt;p&gt;&lt;a href=\"http://www.w3.org/People/Raggett/\"&gt;Dave Raggett,&lt;/a&gt;\n &lt;a href=\"mailto:dsr@w3.org\"&gt;dsr@w3.org&lt;/a&gt;&lt;/p&gt;\n&lt;/div&gt;\n</code></pre>\n\n<p>The <a href=\"http://www.w3.org/Talks/Tools/Slidy2/graphics/w3c-blue.css\">w3c-blue.css</a>\nstyle sheet looks for the classes “slide” and “cover” on div\nand img elements using the CSS selector <em>div.slide.cover</em></p>\n\n<p>This technique can be used to assign your slides to different\nclasses with a different appearence for each such class.</p>\n\n<p>Slidy also allows you to use different background markup for\ndifferent slides, based upon shared class names, as in “foo” below.\nBackgrounds without additional class names are always shown except\nwhen the slide isn’t transparent. You may need to tweak your\ncustom style sheet.</p>\n\n<pre><code>&lt;div class=\"background foo\"&gt;\n   ... background content ...\n&lt;div&gt;\n\n...\n\n&lt;div class=\"slide foo\"&gt;\n   ... slide content ...\n&lt;div&gt;\n</code></pre>\n\n\n</div>\n<div class='slide '>\n<!-- _S9SLIDE_ -->\n<h1 id=\"continued\">Continued…</h1>\n\n<p>To be done</p>\n</div>\n",
 "slides"=>
  [Slideshow::SlideDrop,
   Slideshow::SlideDrop,
   Slideshow::SlideDrop,
   Slideshow::SlideDrop,
   Slideshow::SlideDrop]}
Merging template pack 'slidy'
  Loading template manifest /Users/enricopirani/.slideshow/templates/slideshow-slidy/slidy.txt...
  Loading page (from file) >/Users/enricopirani/.slideshow/templates/slideshow-slidy/slides.blank.html<...
#<MatchData "---\n---\n\n" headers:"---\n">
"---\n"
nil
  Merging to slidy.html...
  call HeadersDrop#before_method >generator< : String
  call HeadersDrop#before_method >author< : String
  call HeadersDrop#before_method >copyright< : String
  call HeadersDrop#before_method >title< : String
  call SlideDrop#content
  call SlideDrop#content
  call SlideDrop#content
  call SlideDrop#content
  call SlideDrop#content
  Loading page (from file) >/Users/enricopirani/.slideshow/templates/slideshow-slidy/slides.w3c.html<...
#<MatchData "---\n---\n\n" headers:"---\n">
"---\n"
nil
  Merging to slidy.w3c.html...
  call HeadersDrop#before_method >generator< : String
  call HeadersDrop#before_method >author< : String
  call HeadersDrop#before_method >copyright< : String
  call HeadersDrop#before_method >title< : String
  call HeadersDrop#before_method >title< : String
  call HeadersDrop#before_method >author< : String
  call SlideDrop#content
  call SlideDrop#content
  call SlideDrop#content
  call SlideDrop#content
  call SlideDrop#content
  Loading page (from file) >/Users/enricopirani/.slideshow/templates/slideshow-slidy/scripts/slidy.js<...
  Copying to scripts/slidy.js from /Users/enricopirani/.slideshow/templates/slideshow-slidy/scripts/slidy.js...
  Loading page (from file) >/Users/enricopirani/.slideshow/templates/slideshow-slidy/styles/slidy.css<...
  Copying to styles/slidy.css from /Users/enricopirani/.slideshow/templates/slideshow-slidy/styles/slidy.css...
  Loading page (from file) >/Users/enricopirani/.slideshow/templates/slideshow-slidy/styles/w3c-blue.css<...
  Copying to styles/w3c-blue.css from /Users/enricopirani/.slideshow/templates/slideshow-slidy/styles/w3c-blue.css...
  Loading page (from file) >/Users/enricopirani/.slideshow/templates/slideshow-slidy/help/help.html<...

*** error: invalid byte sequence in UTF-8
geraldb commented 8 years ago

@Enrico68 Hello, thanks for trying slideshow and your detailed report. I double checked your report:

Loading page (from file) >...slideshow-slidy/help/help.html<...
*** error: invalid byte sequence in UTF-8

Looks like there's an invalid character in the help.html document.

Can you please retry with the --verbose flag (e.g. $ slideshow --verbose build slidy.text -t slidy) and post the stack trace here (to help out w/ fixing this encoding error).

I will try to get an update for the gem uploaded in the next days. Thanks again for reporting. Cheers.

Enrico68 commented 8 years ago

Gerald Bauer notifications@github.com writes:

Hello, thanks for trying slideshow and your detailed report. I assume you're using windows - as a workaround for the encoding add this snippet to your slideshow source

<% Encoding.default_internal = Encoding::UTF_8
       Encoding.default_external = Encoding::UTF_8 %>

It should set the encoding to utf-8 (default in windows is CP-1252 or something. Cheers.

Hi Gerald,

thanks for your quick reply, sorry forgot to mention I am working on OSX 10.9.5

geraldb commented 8 years ago

@Enrico68 sorry for the confusion. I've updated the answer (it's not a Windows issue.) Would be great if you can help with the stack trace e.g.:

Can you please retry with the --verbose flag (e.g. $ slideshow --verbose build slidy.text -t slidy) and post the stack trace here (to help out w/ fixing this encoding error). Thanks. Cheers.

Enrico68 commented 8 years ago

Gerald Bauer notifications@github.com writes:

@Enrico68 sorry for the confusion. I've updated the answer (it's not a Windows issue.) Would be great if you can help with the stack trace e.g.:

Can you please retry with the --verbose flag (e.g. $ slideshow --verbose build slidy.text -t slidy) and post the stack trace here (to help out w/ fixing this encoding error). Thanks. Cheers.

No problem, http://paste.openstack.org/show/566888

geraldb commented 8 years ago

@Enrico68 Thanks for the detailed log (somehow it doesn't show the ruby stack trace - should be at the end with line numbers and source files - no worries). Will hard-code the encoding to UTF-8 for everything with the update in the next days (Tuesday or Wednesday). In the meantime if you want to try if this works (the switch -Ku) "forces" UTF-8 encoding for everything):

$ ruby -Ku -S slideshow build slidy.text -t slidy

Thanks for trying and thanks for the patience. Cheers.

Enrico68 commented 8 years ago

@geraldb

This is the output of $ ruby -Ku -S slideshow build slidy.text -t slidy:

confutils/1.1.2 on Ruby 2.0.0 (2014-05-08) [universal.x86_64-darwin13]
logutils/0.6.1 on Ruby 2.0.0 (2014-05-08) [universal.x86_64-darwin13]
fetcher/0.4.5 on Ruby 2.0.0 (2014-05-08) [universal.x86_64-darwin13]
textutils/1.4.0 on Ruby 2.0.0 (2014-05-08) [universal.x86_64-darwin13]
slideshow-models/3.2.0 on Ruby 2.0.0 (2014-05-08) [universal.x86_64-darwin13]
slideshow-templates/3.0.0 on Ruby 2.0.0 (2014-05-08) [universal.x86_64-darwin13]
slideshow/3.1.0 on Ruby 2.0.0 (2014-05-08) [universal.x86_64-darwin13]
Slide Show (S9) v3.2.0 on Ruby 2.0.0 (2014-05-08) [universal.x86_64-darwin13]
Loading plugins in '/Users/enricopirani/.slideshow/plugins/analytics/analytics_helper.rb' (/Users/enricopirani/.slideshow/plugins/analytics/analytics_helper.rb)...
Loading plugins in '/Users/enricopirani/.slideshow/plugins/snippets/snippets_helper.rb' (/Users/enricopirani/.slideshow/plugins/snippets/snippets_helper.rb)...
Loading plugins in '/Users/enricopirani/.slideshow/plugins/tables/tables_helper.rb' (/Users/enricopirani/.slideshow/plugins/tables/tables_helper.rb)...
buffers:
{:text=>
  {:contents=>
    ["title: HTML Slidy: Slide Shows in HTML and XHTML\nauthor: Dave Raggett\ncopyright: Copyright © 2005-2010 W3C (MIT, ERCIM, Keio)\n\n\n# Slide Shows in HTML and XHTML\n\n- You can now create accessible slide shows with ease\n- Works across browsers and is operated like PowerPoint\n  - Advance to next slide with mouse click, space bar or swipe right\n  - Move forward/backward between slides with Cursor Left,\n    Cursor Right, __Pg Up__ and __Pg Dn__ keys, or swipe right or left\n  - __Home__ key for first slide, __End__ key for last slide\n  - \"__C__\" key for an automatically generated\n    table of contents, or click on \"contents\" on the toolbar or\n    swipe up or down\n  - Function __F11__ to go full screen and back\n  - The \"__F__\" key toggles the display of the footer\n  - The \"__A__\" key toggles display of current vs all slides\n    - Try it now to see how to include notes for handouts (this is\n      explained in the notes following this slide)\n  - Font sizes automatically adapt to browser window size\n    - __S__ and __B__ keys for manual control (or < and >, or the __-__ and\n      __+__ keys on the number pad\n    - Use CSS to set a relative font size on a given slide to make\n      the content bigger or smaller than on other slides\n  - Switching off JavaScript reveals all slides\n- _Now move to next slide to see how it works_\n\n\n# What you need to do\n\n- Each presentation is a single XHTML file\n- Each slide is enclosed in `<div class='slide'> ... </div>`\n  - The `div` element will be created automatically for `h1`\n    elements that are direct children of the body element.\n- Use regular markup within each slide\n- The document head includes two links:\n  - The slide show style sheet:\n    [http://www.w3.org/Talks/Tools/Slidy2/styles/slidy.css](http://www.w3.org/Talks/Tools/Slidy2/styles/slidy.css)\n  - The slide show script:\n    [http://www.w3.org/Talks/Tools/Slidy2/scripts/slidy.js](http://www.w3.org/Talks/Tools/Slidy2/scripts/slidy.js)\n  - Or you can link to the compressed version of the script which is about\n    one seventh the size, see\n    [http://www.w3.org/Talks/Tools/Slidy2/scripts/slidy.js.gz](http://www.w3.org/Talks/Tools/Slidy2/scripts/slidy.js.gz)\n  - If you are using XHTML, remember to use `</script>` and `</style>`\n    as per [Appendix C.3](http://www.w3.org/TR/xhtml1/#C_3)\n\nExample:\n\n    <?xml version=\"1.0\" encoding=\"utf-8\"?>\n    <!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"\n     \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n    <html xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"en\" xml:lang=\"en\">\n    <head>\n      <title>Slide Shows in XHTML</title>\n      <meta name=\"copyright\"\n       content=\"Copyright &#169; 2005 your copyright notice\" />\n      <link rel=\"stylesheet\" type=\"text/css\" media=\"screen, projection, print\"\n       href=\"http://www.w3.org/Talks/Tools/Slidy2/styles/slidy.css\" />\n      <script src=\"http://www.w3.org/Talks/Tools/Slidy2/scripts/slidy.js\"\n       charset=\"utf-8\" type=\"text/javascript\"></script>\n      <style type=\"text/css\">\n        <!-- your custom style rules -->\n      </style>\n    </head>\n\n\n# Timing Your Presentation\n\n- Sometimes it is handy to know just how much time you have to\n  left to finish your presentation\n- To get this feature, add the following markup to the\n  content of the head element, replacing 5 by the duration\n  of your presentation in minutes\n      <meta name=\"duration\" content=\"5\" />\n- The time left in minutes and seconds is shown in the footer\n  next to the slide number\n- The clock starts to run when you move away from the first slide\n- Moving back to the first slide pauses the clock\n\n\n# Generate a Title Page\n\nIf you want a separate title page with the W3C blue style, the\nfirst slide should be as follows:\n\n    <div class=\"slide cover\">\n     <img src=\"http://www.w3.org/Talks/Tools/Slidy2/graphics/keys.jpg\"\n      alt=\"Cover page images (keys)\" class=\"cover\" />\n     <br clear=\"all\" />\n     <h1>HTML Slidy: Slide Shows in XHTML</h1>\n     <p><a href=\"http://www.w3.org/People/Raggett/\">Dave Raggett,</a>\n     <a href=\"mailto:dsr@w3.org\">dsr@w3.org</a></p>\n    </div>\n\nThe [w3c-blue.css](http://www.w3.org/Talks/Tools/Slidy2/graphics/w3c-blue.css)\nstyle sheet looks for the classes \"slide\" and \"cover\" on div\nand img elements using the CSS selector _div.slide.cover_\n\nThis technique can be used to assign your slides to different\nclasses with a different appearence for each such class.\n\nSlidy also allows you to use different background markup for\ndifferent slides, based upon shared class names, as in \"foo\" below.\nBackgrounds without additional class names are always shown except\nwhen the slide isn't transparent. You may need to tweak your\ncustom style sheet.\n\n    <div class=\"background foo\">\n       ... background content ...\n    <div>\n\n    ...\n\n    <div class=\"slide foo\">\n       ... slide content ...\n    <div>\n\n\n# Continued...\n\nTo be done\n"],
   :files=>["slidy.text"]}}
Preparing slideshow 'slidy'...
  [1/1] Generating 'slidy' (.)...
  run filter skip_end_directive...
  run filter directives_bang_style_to_percent_style...
  Patching !-directives (0 slide/style-directives)...
  run filter directives_percent_style...
  Preparing %-directives (0 slide/style directives, 0 class/clear expr-directives, 0/0 block-directives)...
  run filter comments_percent_style...
  Removing %-comments (0 lines, 0 begin/end-blocks, 0 end-blocks)...
  run filter leading_headers...
  Reading 3 headers: title, author, copyright...
  run filter erb_django_style...
  Patching embedded Ruby (erb) code Django-style (0 {{-expressions, 0/0 {%-statements)...
  run filter erb_rename_helper_hack...
  Patching embedded Ruby (erb) code for aliases (0 include/class-aliases)...
  run filter dump_content_to_file_debug_text_erb...
  run filter erb...
  Running embedded Ruby (erb) code/helpers...
  run filter dump_content_to_file_debug_text...
  Converting markdown-text (4736 bytes) to HTML using kramdown library with {"input"=>"GFM", "hard_wrap"=>false}...
  Adding 0 slide breaks (using hr rule)...
  Adding 5 slide breaks (using h1 rule)...
  Adding 0 slide breaks (using h2 rule)...
5 slides found:
  [1] <h1 id="slide-shows-in-html-and-xhtml">Slide Shows in HTML and XHTML</h1>
  [2] <h1 id="what-you-need-to-do">What you need to do</h1>
  [3] <h1 id="timing-your-presentation">Timing Your Presentation</h1>
  [4] <h1 id="generate-a-title-page">Generate a Title Page</h1>
  [5] <h1 id="continued">Continued…</h1>
Merging slideshow 'slidy'...
content_for:
{}
assigns:
{"name"=>"slidy",
 "headers"=>Slideshow::HeadersDrop,
 "content"=>
  "<div class='slide '>\n\n<!-- _S9SLIDE_ -->\n<h1 id=\"slide-shows-in-html-and-xhtml\">Slide Shows in HTML and XHTML</h1>\n\n<ul>\n  <li>You can now create accessible slide shows with ease</li>\n  <li>Works across browsers and is operated like PowerPoint\n    <ul>\n      <li>Advance to next slide with mouse click, space bar or swipe right</li>\n      <li>Move forward/backward between slides with Cursor Left,\nCursor Right, <strong>Pg Up</strong> and <strong>Pg Dn</strong> keys, or swipe right or left</li>\n      <li><strong>Home</strong> key for first slide, <strong>End</strong> key for last slide</li>\n      <li>“<strong>C</strong>” key for an automatically generated\ntable of contents, or click on “contents” on the toolbar or\nswipe up or down</li>\n      <li>Function <strong>F11</strong> to go full screen and back</li>\n      <li>The “<strong>F</strong>” key toggles the display of the footer</li>\n      <li>The “<strong>A</strong>” key toggles display of current vs all slides\n        <ul>\n          <li>Try it now to see how to include notes for handouts (this is\nexplained in the notes following this slide)</li>\n        </ul>\n      </li>\n      <li>Font sizes automatically adapt to browser window size\n        <ul>\n          <li><strong>S</strong> and <strong>B</strong> keys for manual control (or &lt; and &gt;, or the <strong>-</strong> and\n<strong>+</strong> keys on the number pad</li>\n          <li>Use CSS to set a relative font size on a given slide to make\nthe content bigger or smaller than on other slides</li>\n        </ul>\n      </li>\n      <li>Switching off JavaScript reveals all slides</li>\n    </ul>\n  </li>\n  <li><em>Now move to next slide to see how it works</em></li>\n</ul>\n\n\n</div>\n<div class='slide '>\n<!-- _S9SLIDE_ -->\n<h1 id=\"what-you-need-to-do\">What you need to do</h1>\n\n<ul>\n  <li>Each presentation is a single XHTML file</li>\n  <li>Each slide is enclosed in <code>&lt;div class='slide'&gt; ... &lt;/div&gt;</code>\n    <ul>\n      <li>The <code>div</code> element will be created automatically for <code>h1</code>\nelements that are direct children of the body element.</li>\n    </ul>\n  </li>\n  <li>Use regular markup within each slide</li>\n  <li>The document head includes two links:\n    <ul>\n      <li>The slide show style sheet:\n<a href=\"http://www.w3.org/Talks/Tools/Slidy2/styles/slidy.css\">http://www.w3.org/Talks/Tools/Slidy2/styles/slidy.css</a></li>\n      <li>The slide show script:\n<a href=\"http://www.w3.org/Talks/Tools/Slidy2/scripts/slidy.js\">http://www.w3.org/Talks/Tools/Slidy2/scripts/slidy.js</a></li>\n      <li>Or you can link to the compressed version of the script which is about\none seventh the size, see\n<a href=\"http://www.w3.org/Talks/Tools/Slidy2/scripts/slidy.js.gz\">http://www.w3.org/Talks/Tools/Slidy2/scripts/slidy.js.gz</a></li>\n      <li>If you are using XHTML, remember to use <code>&lt;/script&gt;</code> and <code>&lt;/style&gt;</code>\nas per <a href=\"http://www.w3.org/TR/xhtml1/#C_3\">Appendix C.3</a></li>\n    </ul>\n  </li>\n</ul>\n\n<p>Example:</p>\n\n<pre><code>&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;\n&lt;!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"\n \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\"&gt;\n&lt;html xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"en\" xml:lang=\"en\"&gt;\n&lt;head&gt;\n  &lt;title&gt;Slide Shows in XHTML&lt;/title&gt;\n  &lt;meta name=\"copyright\"\n   content=\"Copyright &amp;#169; 2005 your copyright notice\" /&gt;\n  &lt;link rel=\"stylesheet\" type=\"text/css\" media=\"screen, projection, print\"\n   href=\"http://www.w3.org/Talks/Tools/Slidy2/styles/slidy.css\" /&gt;\n  &lt;script src=\"http://www.w3.org/Talks/Tools/Slidy2/scripts/slidy.js\"\n   charset=\"utf-8\" type=\"text/javascript\"&gt;&lt;/script&gt;\n  &lt;style type=\"text/css\"&gt;\n    &lt;!-- your custom style rules --&gt;\n  &lt;/style&gt;\n&lt;/head&gt;\n</code></pre>\n\n\n</div>\n<div class='slide '>\n<!-- _S9SLIDE_ -->\n<h1 id=\"timing-your-presentation\">Timing Your Presentation</h1>\n\n<ul>\n  <li>Sometimes it is handy to know just how much time you have to\nleft to finish your presentation</li>\n  <li>To get this feature, add the following markup to the\ncontent of the head element, replacing 5 by the duration\nof your presentation in minutes\n    <meta name=\"duration\" content=\"5\" /></li>\n  <li>The time left in minutes and seconds is shown in the footer\nnext to the slide number</li>\n  <li>The clock starts to run when you move away from the first slide</li>\n  <li>Moving back to the first slide pauses the clock</li>\n</ul>\n\n\n</div>\n<div class='slide '>\n<!-- _S9SLIDE_ -->\n<h1 id=\"generate-a-title-page\">Generate a Title Page</h1>\n\n<p>If you want a separate title page with the W3C blue style, the\nfirst slide should be as follows:</p>\n\n<pre><code>&lt;div class=\"slide cover\"&gt;\n &lt;img src=\"http://www.w3.org/Talks/Tools/Slidy2/graphics/keys.jpg\"\n  alt=\"Cover page images (keys)\" class=\"cover\" /&gt;\n &lt;br clear=\"all\" /&gt;\n &lt;h1&gt;HTML Slidy: Slide Shows in XHTML&lt;/h1&gt;\n &lt;p&gt;&lt;a href=\"http://www.w3.org/People/Raggett/\"&gt;Dave Raggett,&lt;/a&gt;\n &lt;a href=\"mailto:dsr@w3.org\"&gt;dsr@w3.org&lt;/a&gt;&lt;/p&gt;\n&lt;/div&gt;\n</code></pre>\n\n<p>The <a href=\"http://www.w3.org/Talks/Tools/Slidy2/graphics/w3c-blue.css\">w3c-blue.css</a>\nstyle sheet looks for the classes “slide” and “cover” on div\nand img elements using the CSS selector <em>div.slide.cover</em></p>\n\n<p>This technique can be used to assign your slides to different\nclasses with a different appearence for each such class.</p>\n\n<p>Slidy also allows you to use different background markup for\ndifferent slides, based upon shared class names, as in “foo” below.\nBackgrounds without additional class names are always shown except\nwhen the slide isn’t transparent. You may need to tweak your\ncustom style sheet.</p>\n\n<pre><code>&lt;div class=\"background foo\"&gt;\n   ... background content ...\n&lt;div&gt;\n\n...\n\n&lt;div class=\"slide foo\"&gt;\n   ... slide content ...\n&lt;div&gt;\n</code></pre>\n\n\n</div>\n<div class='slide '>\n<!-- _S9SLIDE_ -->\n<h1 id=\"continued\">Continued…</h1>\n\n<p>To be done</p>\n</div>\n",
 "slides"=>
  [Slideshow::SlideDrop,
   Slideshow::SlideDrop,
   Slideshow::SlideDrop,
   Slideshow::SlideDrop,
   Slideshow::SlideDrop]}
Merging template pack 'slidy'
  Loading template manifest /Users/enricopirani/.slideshow/templates/slideshow-slidy/slidy.txt...
  Loading page (from file) >/Users/enricopirani/.slideshow/templates/slideshow-slidy/slides.blank.html<...
#<MatchData "---\n---\n\n" headers:"---\n">
"---\n"
nil
  Merging to slidy.html...
  call HeadersDrop#before_method >generator< : String
  call HeadersDrop#before_method >author< : String
  call HeadersDrop#before_method >copyright< : String
  call HeadersDrop#before_method >title< : String
  call SlideDrop#content
  call SlideDrop#content
  call SlideDrop#content
  call SlideDrop#content
  call SlideDrop#content
  Loading page (from file) >/Users/enricopirani/.slideshow/templates/slideshow-slidy/slides.w3c.html<...
#<MatchData "---\n---\n\n" headers:"---\n">
"---\n"
nil
  Merging to slidy.w3c.html...
  call HeadersDrop#before_method >generator< : String
  call HeadersDrop#before_method >author< : String
  call HeadersDrop#before_method >copyright< : String
  call HeadersDrop#before_method >title< : String
  call HeadersDrop#before_method >title< : String
  call HeadersDrop#before_method >author< : String
  call SlideDrop#content
  call SlideDrop#content
  call SlideDrop#content
  call SlideDrop#content
  call SlideDrop#content
  Loading page (from file) >/Users/enricopirani/.slideshow/templates/slideshow-slidy/scripts/slidy.js<...
  Copying to scripts/slidy.js from /Users/enricopirani/.slideshow/templates/slideshow-slidy/scripts/slidy.js...
  Loading page (from file) >/Users/enricopirani/.slideshow/templates/slideshow-slidy/styles/slidy.css<...
  Copying to styles/slidy.css from /Users/enricopirani/.slideshow/templates/slideshow-slidy/styles/slidy.css...
  Loading page (from file) >/Users/enricopirani/.slideshow/templates/slideshow-slidy/styles/w3c-blue.css<...
  Copying to styles/w3c-blue.css from /Users/enricopirani/.slideshow/templates/slideshow-slidy/styles/w3c-blue.css...
  Loading page (from file) >/Users/enricopirani/.slideshow/templates/slideshow-slidy/help/help.html<...

*** error: invalid byte sequence in UTF-8
geraldb commented 8 years ago

@Enrico68 Great thanks. I see. The quick workaround didn't help / fix the encoding. Sorry. Thanks for trying.

Enrico68 commented 8 years ago

Thanks for your great support and contribution !

geraldb commented 8 years ago

@Enrico68 Thanks for your patience. I double-checked and it looks like this is actually an encoding error in the (original) help.html page - it was using Windows CP1512 e.g.

Copyright © 2005
W3C ®

the (c) and (r) cause the trouble. I changed the encoding (to UTF8) in the html source (see https://github.com/slideshow-templates/slideshow-slidy/blob/gh-pages/help/help.html). If you update the template (e.g. help.html page) it should now work. Cheers.

Enrico68 commented 8 years ago

@geraldb Still remain encoding problem with help pages

confutils/1.1.2 on Ruby 2.0.0 (2014-05-08) [universal.x86_64-darwin13]
logutils/0.6.1 on Ruby 2.0.0 (2014-05-08) [universal.x86_64-darwin13]
fetcher/0.4.5 on Ruby 2.0.0 (2014-05-08) [universal.x86_64-darwin13]
textutils/1.4.0 on Ruby 2.0.0 (2014-05-08) [universal.x86_64-darwin13]
slideshow-models/3.2.0 on Ruby 2.0.0 (2014-05-08) [universal.x86_64-darwin13]
slideshow-templates/3.0.0 on Ruby 2.0.0 (2014-05-08) [universal.x86_64-darwin13]
slideshow/3.1.0 on Ruby 2.0.0 (2014-05-08) [universal.x86_64-darwin13]
Slide Show (S9) v3.2.0 on Ruby 2.0.0 (2014-05-08) [universal.x86_64-darwin13]
Copying template pack 'slidy.quick'
  Loading template manifest /Users/enricopirani/.slideshow/templates/slideshow-slidy/slidy.txt.quick...
  Copying to slidy.text from /Users/enricopirani/.slideshow/templates/slideshow-slidy/sample.md...
Done (in 0.024572 s).
~/slides/slidy%=> slideshow build slidy.text -t slidy                                                                                                   21:44
confutils/1.1.2 on Ruby 2.0.0 (2014-05-08) [universal.x86_64-darwin13]
logutils/0.6.1 on Ruby 2.0.0 (2014-05-08) [universal.x86_64-darwin13]
fetcher/0.4.5 on Ruby 2.0.0 (2014-05-08) [universal.x86_64-darwin13]
textutils/1.4.0 on Ruby 2.0.0 (2014-05-08) [universal.x86_64-darwin13]
slideshow-models/3.2.0 on Ruby 2.0.0 (2014-05-08) [universal.x86_64-darwin13]
slideshow-templates/3.0.0 on Ruby 2.0.0 (2014-05-08) [universal.x86_64-darwin13]
slideshow/3.1.0 on Ruby 2.0.0 (2014-05-08) [universal.x86_64-darwin13]
Slide Show (S9) v3.2.0 on Ruby 2.0.0 (2014-05-08) [universal.x86_64-darwin13]
Loading plugins in '/Users/enricopirani/.slideshow/plugins/analytics/analytics_helper.rb' (/Users/enricopirani/.slideshow/plugins/analytics/analytics_helper.rb)...
Loading plugins in '/Users/enricopirani/.slideshow/plugins/snippets/snippets_helper.rb' (/Users/enricopirani/.slideshow/plugins/snippets/snippets_helper.rb)...
Loading plugins in '/Users/enricopirani/.slideshow/plugins/tables/tables_helper.rb' (/Users/enricopirani/.slideshow/plugins/tables/tables_helper.rb)...
buffers:
{:text=>
  {:contents=>
    ["title: HTML Slidy: Slide Shows in HTML and XHTML\nauthor: Dave Raggett\ncopyright: Copyright © 2005-2010 W3C (MIT, ERCIM, Keio)\n\n\n# Slide Shows in HTML and XHTML\n\n- You can now create accessible slide shows with ease\n- Works across browsers and is operated like PowerPoint\n  - Advance to next slide with mouse click, space bar or swipe right\n  - Move forward/backward between slides with Cursor Left,\n    Cursor Right, __Pg Up__ and __Pg Dn__ keys, or swipe right or left\n  - __Home__ key for first slide, __End__ key for last slide\n  - \"__C__\" key for an automatically generated\n    table of contents, or click on \"contents\" on the toolbar or\n    swipe up or down\n  - Function __F11__ to go full screen and back\n  - The \"__F__\" key toggles the display of the footer\n  - The \"__A__\" key toggles display of current vs all slides\n    - Try it now to see how to include notes for handouts (this is\n      explained in the notes following this slide)\n  - Font sizes automatically adapt to browser window size\n    - __S__ and __B__ keys for manual control (or < and >, or the __-__ and\n      __+__ keys on the number pad\n    - Use CSS to set a relative font size on a given slide to make\n      the content bigger or smaller than on other slides\n  - Switching off JavaScript reveals all slides\n- _Now move to next slide to see how it works_\n\n\n# What you need to do\n\n- Each presentation is a single XHTML file\n- Each slide is enclosed in `<div class='slide'> ... </div>`\n  - The `div` element will be created automatically for `h1`\n    elements that are direct children of the body element.\n- Use regular markup within each slide\n- The document head includes two links:\n  - The slide show style sheet:\n    [http://www.w3.org/Talks/Tools/Slidy2/styles/slidy.css](http://www.w3.org/Talks/Tools/Slidy2/styles/slidy.css)\n  - The slide show script:\n    [http://www.w3.org/Talks/Tools/Slidy2/scripts/slidy.js](http://www.w3.org/Talks/Tools/Slidy2/scripts/slidy.js)\n  - Or you can link to the compressed version of the script which is about\n    one seventh the size, see\n    [http://www.w3.org/Talks/Tools/Slidy2/scripts/slidy.js.gz](http://www.w3.org/Talks/Tools/Slidy2/scripts/slidy.js.gz)\n  - If you are using XHTML, remember to use `</script>` and `</style>`\n    as per [Appendix C.3](http://www.w3.org/TR/xhtml1/#C_3)\n\nExample:\n\n    <?xml version=\"1.0\" encoding=\"utf-8\"?>\n    <!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"\n     \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n    <html xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"en\" xml:lang=\"en\">\n    <head>\n      <title>Slide Shows in XHTML</title>\n      <meta name=\"copyright\"\n       content=\"Copyright &#169; 2005 your copyright notice\" />\n      <link rel=\"stylesheet\" type=\"text/css\" media=\"screen, projection, print\"\n       href=\"http://www.w3.org/Talks/Tools/Slidy2/styles/slidy.css\" />\n      <script src=\"http://www.w3.org/Talks/Tools/Slidy2/scripts/slidy.js\"\n       charset=\"utf-8\" type=\"text/javascript\"></script>\n      <style type=\"text/css\">\n        <!-- your custom style rules -->\n      </style>\n    </head>\n\n\n# Timing Your Presentation\n\n- Sometimes it is handy to know just how much time you have to\n  left to finish your presentation\n- To get this feature, add the following markup to the\n  content of the head element, replacing 5 by the duration\n  of your presentation in minutes\n      <meta name=\"duration\" content=\"5\" />\n- The time left in minutes and seconds is shown in the footer\n  next to the slide number\n- The clock starts to run when you move away from the first slide\n- Moving back to the first slide pauses the clock\n\n\n# Generate a Title Page\n\nIf you want a separate title page with the W3C blue style, the\nfirst slide should be as follows:\n\n    <div class=\"slide cover\">\n     <img src=\"http://www.w3.org/Talks/Tools/Slidy2/graphics/keys.jpg\"\n      alt=\"Cover page images (keys)\" class=\"cover\" />\n     <br clear=\"all\" />\n     <h1>HTML Slidy: Slide Shows in XHTML</h1>\n     <p><a href=\"http://www.w3.org/People/Raggett/\">Dave Raggett,</a>\n     <a href=\"mailto:dsr@w3.org\">dsr@w3.org</a></p>\n    </div>\n\nThe [w3c-blue.css](http://www.w3.org/Talks/Tools/Slidy2/graphics/w3c-blue.css)\nstyle sheet looks for the classes \"slide\" and \"cover\" on div\nand img elements using the CSS selector _div.slide.cover_\n\nThis technique can be used to assign your slides to different\nclasses with a different appearence for each such class.\n\nSlidy also allows you to use different background markup for\ndifferent slides, based upon shared class names, as in \"foo\" below.\nBackgrounds without additional class names are always shown except\nwhen the slide isn't transparent. You may need to tweak your\ncustom style sheet.\n\n    <div class=\"background foo\">\n       ... background content ...\n    <div>\n\n    ...\n\n    <div class=\"slide foo\">\n       ... slide content ...\n    <div>\n\n\n# Continued...\n\nTo be done\n"],
   :files=>["slidy.text"]}}
Preparing slideshow 'slidy'...
  [1/1] Generating 'slidy' (.)...
  run filter skip_end_directive...
  run filter directives_bang_style_to_percent_style...
  Patching !-directives (0 slide/style-directives)...
  run filter directives_percent_style...
  Preparing %-directives (0 slide/style directives, 0 class/clear expr-directives, 0/0 block-directives)...
  run filter comments_percent_style...
  Removing %-comments (0 lines, 0 begin/end-blocks, 0 end-blocks)...
  run filter leading_headers...
  Reading 3 headers: title, author, copyright...
  run filter erb_django_style...
  Patching embedded Ruby (erb) code Django-style (0 {{-expressions, 0/0 {%-statements)...
  run filter erb_rename_helper_hack...
  Patching embedded Ruby (erb) code for aliases (0 include/class-aliases)...
  run filter dump_content_to_file_debug_text_erb...
  run filter erb...
  Running embedded Ruby (erb) code/helpers...
  run filter dump_content_to_file_debug_text...
  Converting markdown-text (4736 bytes) to HTML using kramdown library with {"input"=>"GFM", "hard_wrap"=>false}...
  Adding 0 slide breaks (using hr rule)...
  Adding 5 slide breaks (using h1 rule)...
  Adding 0 slide breaks (using h2 rule)...
5 slides found:
  [1] <h1 id="slide-shows-in-html-and-xhtml">Slide Shows in HTML and XHTML</h1>
  [2] <h1 id="what-you-need-to-do">What you need to do</h1>
  [3] <h1 id="timing-your-presentation">Timing Your Presentation</h1>
  [4] <h1 id="generate-a-title-page">Generate a Title Page</h1>
  [5] <h1 id="continued">Continued…</h1>
Merging slideshow 'slidy'...
content_for:
{}
assigns:
{"name"=>"slidy",
 "headers"=>Slideshow::HeadersDrop,
 "content"=>
  "<div class='slide '>\n\n<!-- _S9SLIDE_ -->\n<h1 id=\"slide-shows-in-html-and-xhtml\">Slide Shows in HTML and XHTML</h1>\n\n<ul>\n  <li>You can now create accessible slide shows with ease</li>\n  <li>Works across browsers and is operated like PowerPoint\n    <ul>\n      <li>Advance to next slide with mouse click, space bar or swipe right</li>\n      <li>Move forward/backward between slides with Cursor Left,\nCursor Right, <strong>Pg Up</strong> and <strong>Pg Dn</strong> keys, or swipe right or left</li>\n      <li><strong>Home</strong> key for first slide, <strong>End</strong> key for last slide</li>\n      <li>“<strong>C</strong>” key for an automatically generated\ntable of contents, or click on “contents” on the toolbar or\nswipe up or down</li>\n      <li>Function <strong>F11</strong> to go full screen and back</li>\n      <li>The “<strong>F</strong>” key toggles the display of the footer</li>\n      <li>The “<strong>A</strong>” key toggles display of current vs all slides\n        <ul>\n          <li>Try it now to see how to include notes for handouts (this is\nexplained in the notes following this slide)</li>\n        </ul>\n      </li>\n      <li>Font sizes automatically adapt to browser window size\n        <ul>\n          <li><strong>S</strong> and <strong>B</strong> keys for manual control (or &lt; and &gt;, or the <strong>-</strong> and\n<strong>+</strong> keys on the number pad</li>\n          <li>Use CSS to set a relative font size on a given slide to make\nthe content bigger or smaller than on other slides</li>\n        </ul>\n      </li>\n      <li>Switching off JavaScript reveals all slides</li>\n    </ul>\n  </li>\n  <li><em>Now move to next slide to see how it works</em></li>\n</ul>\n\n\n</div>\n<div class='slide '>\n<!-- _S9SLIDE_ -->\n<h1 id=\"what-you-need-to-do\">What you need to do</h1>\n\n<ul>\n  <li>Each presentation is a single XHTML file</li>\n  <li>Each slide is enclosed in <code>&lt;div class='slide'&gt; ... &lt;/div&gt;</code>\n    <ul>\n      <li>The <code>div</code> element will be created automatically for <code>h1</code>\nelements that are direct children of the body element.</li>\n    </ul>\n  </li>\n  <li>Use regular markup within each slide</li>\n  <li>The document head includes two links:\n    <ul>\n      <li>The slide show style sheet:\n<a href=\"http://www.w3.org/Talks/Tools/Slidy2/styles/slidy.css\">http://www.w3.org/Talks/Tools/Slidy2/styles/slidy.css</a></li>\n      <li>The slide show script:\n<a href=\"http://www.w3.org/Talks/Tools/Slidy2/scripts/slidy.js\">http://www.w3.org/Talks/Tools/Slidy2/scripts/slidy.js</a></li>\n      <li>Or you can link to the compressed version of the script which is about\none seventh the size, see\n<a href=\"http://www.w3.org/Talks/Tools/Slidy2/scripts/slidy.js.gz\">http://www.w3.org/Talks/Tools/Slidy2/scripts/slidy.js.gz</a></li>\n      <li>If you are using XHTML, remember to use <code>&lt;/script&gt;</code> and <code>&lt;/style&gt;</code>\nas per <a href=\"http://www.w3.org/TR/xhtml1/#C_3\">Appendix C.3</a></li>\n    </ul>\n  </li>\n</ul>\n\n<p>Example:</p>\n\n<pre><code>&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;\n&lt;!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"\n \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\"&gt;\n&lt;html xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"en\" xml:lang=\"en\"&gt;\n&lt;head&gt;\n  &lt;title&gt;Slide Shows in XHTML&lt;/title&gt;\n  &lt;meta name=\"copyright\"\n   content=\"Copyright &amp;#169; 2005 your copyright notice\" /&gt;\n  &lt;link rel=\"stylesheet\" type=\"text/css\" media=\"screen, projection, print\"\n   href=\"http://www.w3.org/Talks/Tools/Slidy2/styles/slidy.css\" /&gt;\n  &lt;script src=\"http://www.w3.org/Talks/Tools/Slidy2/scripts/slidy.js\"\n   charset=\"utf-8\" type=\"text/javascript\"&gt;&lt;/script&gt;\n  &lt;style type=\"text/css\"&gt;\n    &lt;!-- your custom style rules --&gt;\n  &lt;/style&gt;\n&lt;/head&gt;\n</code></pre>\n\n\n</div>\n<div class='slide '>\n<!-- _S9SLIDE_ -->\n<h1 id=\"timing-your-presentation\">Timing Your Presentation</h1>\n\n<ul>\n  <li>Sometimes it is handy to know just how much time you have to\nleft to finish your presentation</li>\n  <li>To get this feature, add the following markup to the\ncontent of the head element, replacing 5 by the duration\nof your presentation in minutes\n    <meta name=\"duration\" content=\"5\" /></li>\n  <li>The time left in minutes and seconds is shown in the footer\nnext to the slide number</li>\n  <li>The clock starts to run when you move away from the first slide</li>\n  <li>Moving back to the first slide pauses the clock</li>\n</ul>\n\n\n</div>\n<div class='slide '>\n<!-- _S9SLIDE_ -->\n<h1 id=\"generate-a-title-page\">Generate a Title Page</h1>\n\n<p>If you want a separate title page with the W3C blue style, the\nfirst slide should be as follows:</p>\n\n<pre><code>&lt;div class=\"slide cover\"&gt;\n &lt;img src=\"http://www.w3.org/Talks/Tools/Slidy2/graphics/keys.jpg\"\n  alt=\"Cover page images (keys)\" class=\"cover\" /&gt;\n &lt;br clear=\"all\" /&gt;\n &lt;h1&gt;HTML Slidy: Slide Shows in XHTML&lt;/h1&gt;\n &lt;p&gt;&lt;a href=\"http://www.w3.org/People/Raggett/\"&gt;Dave Raggett,&lt;/a&gt;\n &lt;a href=\"mailto:dsr@w3.org\"&gt;dsr@w3.org&lt;/a&gt;&lt;/p&gt;\n&lt;/div&gt;\n</code></pre>\n\n<p>The <a href=\"http://www.w3.org/Talks/Tools/Slidy2/graphics/w3c-blue.css\">w3c-blue.css</a>\nstyle sheet looks for the classes “slide” and “cover” on div\nand img elements using the CSS selector <em>div.slide.cover</em></p>\n\n<p>This technique can be used to assign your slides to different\nclasses with a different appearence for each such class.</p>\n\n<p>Slidy also allows you to use different background markup for\ndifferent slides, based upon shared class names, as in “foo” below.\nBackgrounds without additional class names are always shown except\nwhen the slide isn’t transparent. You may need to tweak your\ncustom style sheet.</p>\n\n<pre><code>&lt;div class=\"background foo\"&gt;\n   ... background content ...\n&lt;div&gt;\n\n...\n\n&lt;div class=\"slide foo\"&gt;\n   ... slide content ...\n&lt;div&gt;\n</code></pre>\n\n\n</div>\n<div class='slide '>\n<!-- _S9SLIDE_ -->\n<h1 id=\"continued\">Continued…</h1>\n\n<p>To be done</p>\n</div>\n",
 "slides"=>
  [Slideshow::SlideDrop,
   Slideshow::SlideDrop,
   Slideshow::SlideDrop,
   Slideshow::SlideDrop,
   Slideshow::SlideDrop]}
Merging template pack 'slidy'
  Loading template manifest /Users/enricopirani/.slideshow/templates/slideshow-slidy/slidy.txt...
  Loading page (from file) >/Users/enricopirani/.slideshow/templates/slideshow-slidy/slides.blank.html<...
#<MatchData "---\n---\n\n" headers:"---\n">
"---\n"
nil
  Merging to slidy.html...
  call HeadersDrop#before_method >generator< : String
  call HeadersDrop#before_method >author< : String
  call HeadersDrop#before_method >copyright< : String
  call HeadersDrop#before_method >title< : String
  call SlideDrop#content
  call SlideDrop#content
  call SlideDrop#content
  call SlideDrop#content
  call SlideDrop#content
  Loading page (from file) >/Users/enricopirani/.slideshow/templates/slideshow-slidy/slides.w3c.html<...
#<MatchData "---\n---\n\n" headers:"---\n">
"---\n"
nil
  Merging to slidy.w3c.html...
  call HeadersDrop#before_method >generator< : String
  call HeadersDrop#before_method >author< : String
  call HeadersDrop#before_method >copyright< : String
  call HeadersDrop#before_method >title< : String
  call HeadersDrop#before_method >title< : String
  call HeadersDrop#before_method >author< : String
  call SlideDrop#content
  call SlideDrop#content
  call SlideDrop#content
  call SlideDrop#content
  call SlideDrop#content
  Loading page (from file) >/Users/enricopirani/.slideshow/templates/slideshow-slidy/scripts/slidy.js<...
  Copying to scripts/slidy.js from /Users/enricopirani/.slideshow/templates/slideshow-slidy/scripts/slidy.js...
  Loading page (from file) >/Users/enricopirani/.slideshow/templates/slideshow-slidy/styles/slidy.css<...
  Copying to styles/slidy.css from /Users/enricopirani/.slideshow/templates/slideshow-slidy/styles/slidy.css...
  Loading page (from file) >/Users/enricopirani/.slideshow/templates/slideshow-slidy/styles/w3c-blue.css<...
  Copying to styles/w3c-blue.css from /Users/enricopirani/.slideshow/templates/slideshow-slidy/styles/w3c-blue.css...
  Loading page (from file) >/Users/enricopirani/.slideshow/templates/slideshow-slidy/help/help.html<...
  Copying to help/help.html from /Users/enricopirani/.slideshow/templates/slideshow-slidy/help/help.html...
  Loading page (from file) >/Users/enricopirani/.slideshow/templates/slideshow-slidy/help/help.html.ca<...
  Copying to help/help.html.ca from /Users/enricopirani/.slideshow/templates/slideshow-slidy/help/help.html.ca...
  Loading page (from file) >/Users/enricopirani/.slideshow/templates/slideshow-slidy/help/help.html.de<...
  Copying to help/help.html.de from /Users/enricopirani/.slideshow/templates/slideshow-slidy/help/help.html.de...
  Loading page (from file) >/Users/enricopirani/.slideshow/templates/slideshow-slidy/help/help.html.en<...
  Copying to help/help.html.en from /Users/enricopirani/.slideshow/templates/slideshow-slidy/help/help.html.en...
  Loading page (from file) >/Users/enricopirani/.slideshow/templates/slideshow-slidy/help/help.html.es<...
  Copying to help/help.html.es from /Users/enricopirani/.slideshow/templates/slideshow-slidy/help/help.html.es...
  Loading page (from file) >/Users/enricopirani/.slideshow/templates/slideshow-slidy/help/help.html.fr<...
  Copying to help/help.html.fr from /Users/enricopirani/.slideshow/templates/slideshow-slidy/help/help.html.fr...
  Loading page (from file) >/Users/enricopirani/.slideshow/templates/slideshow-slidy/help/help.html.hu<...
  Copying to help/help.html.hu from /Users/enricopirani/.slideshow/templates/slideshow-slidy/help/help.html.hu...
  Loading page (from file) >/Users/enricopirani/.slideshow/templates/slideshow-slidy/help/help.html.nl<...
  Copying to help/help.html.nl from /Users/enricopirani/.slideshow/templates/slideshow-slidy/help/help.html.nl...
  Loading page (from file) >/Users/enricopirani/.slideshow/templates/slideshow-slidy/help/help.html.pl<...
  Copying to help/help.html.pl from /Users/enricopirani/.slideshow/templates/slideshow-slidy/help/help.html.pl...
  Loading page (from file) >/Users/enricopirani/.slideshow/templates/slideshow-slidy/help/help.html.pt-br<...
  Copying to help/help.html.pt-br from /Users/enricopirani/.slideshow/templates/slideshow-slidy/help/help.html.pt-br...
  Loading page (from file) >/Users/enricopirani/.slideshow/templates/slideshow-slidy/help/help.html.pt_br<...
  Copying to help/help.html.pt_br from /Users/enricopirani/.slideshow/templates/slideshow-slidy/help/help.html.pt_br...
  Loading page (from file) >/Users/enricopirani/.slideshow/templates/slideshow-slidy/help/help.html.sv<...
  Copying to help/help.html.sv from /Users/enricopirani/.slideshow/templates/slideshow-slidy/help/help.html.sv...
  Loading page (from file) >/Users/enricopirani/.slideshow/templates/slideshow-slidy/help/help.pt-br.html<...
  Copying to help/help.pt-br.html from /Users/enricopirani/.slideshow/templates/slideshow-slidy/help/help.pt-br.html...
  Loading page (from file) >/Users/enricopirani/.slideshow/templates/slideshow-slidy/graphics/bullet-fold-dim.gif<...

*** error: invalid byte sequence in UTF-8
geraldb commented 8 years ago

@Enrico68 Thousand thanks for your patience and trying again. Very helpful. I've found the (new) error - binary files e.g. images get checked for front matter (leading to the error). Will fix it with an update later today (Tuesday). Thanks again for helping - the fix is out shortly (a couple of hours). Will push a new gem. Cheers.

geraldb commented 8 years ago

@Enrico68 If you're still interested I pushed a new pakman gem (handles the merging of templates) and it's now working - to update try:

$ gem install pakman

New version is 0.7.0 (old version was 0.6.0) and than retry as usual (it should now finally work as advertised) e.g.:

 $ slideshow build slidy.text -t slidy

Thanks for trying. Cheers.

Enrico68 commented 8 years ago

Perfect! Everything works. Thanks @geraldb

geraldb commented 8 years ago

@Enrico68 Thanks for reporting the error and your patience and help. Will close the ticket. Have a great day. Cheers.