Song printing
I was over at Guthrum's for a session and he had printed out copies of the entire Book of Song and placed them in books so everyone would have a copy to use while jamming. This was really nice of him, so I didn't want to mention that I noticed that the printouts were not working properly! The 'printer friendly' version of any page here is formatted using a different CSS file (print.css) which strips out all the background images and colors and stuff so it's easy to print out, and since I had added a class called 'chord' into the standard CSS file (drupal.css) which makes the chords and notes appear in a different color onscreen (example), I should have also added something to the print.css to deal with that stuff but had forgotten to.
I made a quick change to the print.css to add in the chord class (example), so now when you select 'printer friendly' version of a Book of Song page, the chords and notes should appear as light gray on a black and white printer, or light beige on a color printer. This makes it a lot easier to read the words or follow along with the chords on a printed page (in my opinion).


Thanks
That's nice, but I don't know if I'll get them printed out by Friday. Did you add a link to be able to print out the whole book instead of each individual song? I know that you can do it without page breaks between the songs, but that doesn't make it easy for finding a song.
I will look
I'll look to see if there is a way I can add page breaks in between each song. It will require more custom code (it's not an option in the default setup), but I can probably hack it to add it. I had done a similar thing in the old book of song, but I don't think I'll have time to do that before the event.
page breaks
This works for now, but it's not ideal. What I *wanted* to do was set it up so that you could choose whether to use page breaks or not, but after some fruitless pounding on the keyboard, the best I can offer for now is that all pages in any book you print out will be on their own page. This means that printing things like the Laws will look funny since some of the pages are just a title (like a chapter heading), but it means you should be able to print the Book of Song out in one go (if there is any paper left ;) using the printer-friendly link and each song will have a page break after it. Note: you have to do a print preview to see anything different, it will look like nothing has changed in the browser.
Just so I remember what I did (this will break again in an upgrade):
In the book.module, modified the function book_node_visitor_html_pre, added
if ($node->body) {
$output .= $node->body;
$output .= "
";
}
page breaks
I have removed this code as it was just too annoying. It affected all printer-friendly output which is generally just a waste of paper. A more complete, and easier to print version of the Book of Song is in the works. It will be attached to the Book of Song page when available.
Thanks
Thanks. I'll try it out