3
1
Back

A quick and dirty content rewriting engine with code already written for about a dozen webcomics. Examples: * Least I Could Do (wtf image size?) elseif (strpos($article['link'], 'campcomic.com/comic/') !== FALSE) { //also append the blarg post because that's small, interesting, $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comicpage']//img[contains(@src, 'uploads')]", $article); elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); } // PhD Unknown elseif (strpos($article["link"], "trenchescomic.com/comic/post/") !== FALSE || strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE) { elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { // text(string, size, halign=halign, font=font_for_title); //} // draw panel, subtract holes // v_wall(h=4, l=height-rail_clearance*2-thickness); // top horizontal rib // h_wall(h=4, l=right_rib_x); // middle horizontal rib // h_wall(h=4, l=right_rib_x); // middle-bottom h rib pcb_holder(h=10, l=top_row-rail_clearance*2-15-thickness, th=1.15, wall_thickness=1); // lower h-rib reinforcer cylinder(r=hole_r, h=thickness*2); echo("Putting a hole with radius: ", hole_r , " at ", hole_dist_side, height - v_margin - title_font_size*1.5; // surface("FireballSpellSmall.png", center=true, invert=false); More experimentation with panel alignment before printing Messing.

New Pull Request