title: page range for printing algorithm
body: <p>Some print dialogs give you an option to specify which pages (and page ranges) you want printed out.</p>
  
  <pre><code>1-10, 3, 4, 23-47
  </code></pre>
  
  <p>Is there a recipe/algorithm for this already out there?</p>