Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • You would think with an online book service you could do exactly that.
    • The concept of a physical page is somewhat nebulous in HTML. Correlating references between a printed book with its physical limitations and an online version is trickier than it might seem.

      • When translating from the one to the other, we know the page breaks, right?

        Why can't you insert appropriate bookmarks at the page breaks at that point?
        • Page breaks (and even page numbers) are artifacts of the layout process for printing. As I understand the Safari conversion process, there's no pagination metadata in the DocBook XML sources.

          • So what you'd need to do is have a program that lays out the document for printing, and while laying it out emits the original document marked up with information from the layout process. That marked up document could then be laid out for the web with the additional information.

            I can understand why it hasn't been done yet. But it is in principle doable.
            • Well the problem brings me back to PBP and Perl::Critic, Perl::Critic should not reference pages in some book, the moment a new edition comes out everything will have to be refactored.

              So Perl::Critic should refer to policies, either by number or name, the latter preferred. I actually use this listing [cpan.org] a lot, but it is somewhat brief on the descriptions, but it is the closest I have found to a canonical list.

              Perl::Critic is evolving beyond PBP, but still you have to read about and understand some of the polic