{"id":238,"date":"2014-06-08T20:09:58","date_gmt":"2014-06-08T20:09:58","guid":{"rendered":"http:\/\/szapp.com\/?p=238"},"modified":"2014-06-08T20:09:58","modified_gmt":"2014-06-08T20:09:58","slug":"flexpaper-redux","status":"publish","type":"post","link":"https:\/\/wsbj.com\/sorabji\/2014\/06\/08\/flexpaper-redux.html","title":{"rendered":"FlexPaper Redux"},"content":{"rendered":"<p>\t\t\t\tAn e-mail to the support folks at FlexPaper returned a quick fix to an annoying bug.\u00a0Search engines were indexing the Flipbooks all right, but\u00a0after indexing the real pages they continued on into infinity, following hundreds of links to non-existent pages. A code fix to the index.php file looks like it should fix it, but I&#8217;ll keep an eye on it.<\/p>\n<p>The code fix was\u00a0copied and pasted into an e-mail, and also attached as a PHP\u00a0file. For some reason when I copied and pasted it from the body of the e-mail I got a T_STRING error on line 14, even though nothing whatsoever appeared to be wrong with the syntax of that line. Copying and pasting from the PHP file attachment worked perfectly. Both lines of code\u00a0were\u00a0identical to the nekkid eye. Some UTF-8-esque encoding bug? Who knows.<\/p>\n<p>I moved one edition that was being indexed into infinity (<a href=\"http:\/\/etudemagazine.com\/1899_02\/\">&#8220;The Etude&#8221;, February, 1899<\/a>) to a new URL and disallowed searchies from continuing to gobble up all the bad URLs at the old address. If all goes as planned\u00a0that should clear the pipes and get better search indexing on that edition. I&#8217;ll see how it goes with this one before changing the others.<\/p>\n<div class='et-box et-info'>\n\t\t\t\t\t<div class='et-box-content'>Derf! That was fast. Google picked up the new URL just 8 minutes after I changed it. It has already indexed up to page 16, of 31. Though the page numbering brings attention to the annoying vagaries of page numbering in digital publishing. Page 25 of a PDF copy of a printed book is unlikely to be the same page 25 as the hard copy.<\/div><\/div>\n<p>A\u00a0goal\u00a0with all this is to get the content of all my copies of &#8220;The Etude&#8221; fully indexed and then build a Google site-search to search all the magazines.<\/p>\n<p>Watching this\u00a0tick by:<\/p>\n<div class='et-box et-shadow'>\n\t\t\t\t\t<div class='et-box-content'>tail -f \/var\/log\/httpd\/domains\/etudemagazine.com.log |grep &#8216;1899_02&#8217;<\/div><\/div>\n<p>In the past I used the mighty swish-e search for text content.\u00a0I may revisit that for this project, but for now I&#8217;m trying to keep things as simple as possible. Swish-e&#8217;s documents do not seem to specifically reference support for HTML4 or HTML5, or the Flipbook format for that matter. It is a highly versatile piece of software, though, so I should be able to use it sooner or later.<\/p>\n<p>Each issue of the magazine includes a search box at the top right, allowing a full text search for that edition. That issue-specific search works well enough though it&#8217;s a little twitchy.<\/p>\n<ul>\n<li>Search\u00a0only works when you are viewing at 100%.\u00a0It\u00a0does not work if your are zoomed in even a little bit.<\/li>\n<li>When using Chrome the search term is highlighted on the page but that highlight disappears when you start zooming in. &#8220;The Etude&#8221;\u00a0content\u00a0is so text-heavy that I frequently\u00a0lose the location of the highlighted word\u00a0when zooming in. This does not happen when using Internet Explorer, but IE has another twitch:<\/li>\n<li>Search terms are highlighted when using IE, and the search term remains highlighted whilst zooming in, but sometimes when zooming in the text is blurry, and barely readable. This happens inconsistently. As with Chrome, one must be at 100% zoom to be able to search<\/li>\n<li>There appears to be no way to bookmark a search result. That would be an ace feature.<\/li>\n<\/ul>\n<p>For some reason Bing is not crawling the content at all, though it has a healthy appetite for the rest of the site&#8217;s pages. I shall\u00a0manually submit it, I guess.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #444444\"><style type=\"text\/css\">#map_1 {clear: both; padding: 0px; margin: 0px; border: 0px; width: 100%; height: 100%; margin-top:0px; margin-right:0px;margin-left:0px; margin-bottom:0px; left: 0px; border-radius:0px;\nbox-shadow: none;}#map_1 img{clear: both; padding: 0px; margin: 0px; border: 0px; width: 100%; height: 100%; position: absolute; margin-top:0px; margin-right:0px;margin-left:0px; margin-bottom:0px; border-radius:0px;\nbox-shadow: none;}<\/style><div id=\"map_1\" class=\"OSM_Map\" style=\"width:600px; height:450px; overflow:hidden;padding:0px;border:none;\"><script data-jetpack-boost=\"ignore\" type=\"text\/javascript\">\/* <![CDATA[ *\/(function($) { OpenLayers.ImgPath = \"https:\/\/wsbj.com\/sorabji\/wp-content\/plugins\/osm\/themes\/ol\/\"; map_1 = new OpenLayers.Map (\"map_1\", {            controls:[              new OpenLayers.Control.Navigation(),              new OpenLayers.Control.PanZoom(),              new OpenLayers.Control.Attribution()              ],          maxExtent: new OpenLayers.Bounds(-20037508.34,-20037508.34,20037508.34,20037508.34),          maxResolution: 156543.0399,          numZoomLevels: 19,          units: \"m\",          projection: new OpenLayers.Projection(\"EPSG:900913\"),          displayProjection: new OpenLayers.Projection(\"EPSG:4326\")      } );var layerMapnik = new OpenLayers.Layer.OSM.Mapnik(\"Mapnik\");var layerCycle  = new OpenLayers.Layer.OSM.CycleMap(\"CycleMap\");map_1.addLayers([layerMapnik, layerCycle]);map_1.addControl(new OpenLayers.Control.LayerSwitcher());var lonLat = new OpenLayers.LonLat(101.644,3.104).transform(map_1.displayProjection, map_1.projection);map_1.setCenter (lonLat,15);var lonLat = new OpenLayers.LonLat(101.644,3.104).transform(map_1.displayProjection, map_1.projection);map_1.setCenter (lonLat,15);})(jQuery)\/* ]]> *\/ <\/script><\/div><\/span>\t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>An e-mail to the support folks at FlexPaper returned a quick fix to an annoying bug.\u00a0Search engines were indexing the Flipbooks all right, but\u00a0after indexing the real pages they continued on into infinity, following hundreds of links to non-existent pages. A code fix to the index.php file looks like it should fix it, but I&#8217;ll [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[32],"tags":[219,221,270,271,389,484,539],"class_list":["post-238","post","type-post","status-publish","format-standard","hentry","category-unrepentant","tag-flexbook","tag-flipbook","tag-html4","tag-html5","tag-ocr","tag-searchies","tag-swish-e","et-doesnt-have-format-content","et_post_format-et-post-format-standard"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paumAn-3Q","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/wsbj.com\/sorabji\/wp-json\/wp\/v2\/posts\/238","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wsbj.com\/sorabji\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wsbj.com\/sorabji\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wsbj.com\/sorabji\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wsbj.com\/sorabji\/wp-json\/wp\/v2\/comments?post=238"}],"version-history":[{"count":0,"href":"https:\/\/wsbj.com\/sorabji\/wp-json\/wp\/v2\/posts\/238\/revisions"}],"wp:attachment":[{"href":"https:\/\/wsbj.com\/sorabji\/wp-json\/wp\/v2\/media?parent=238"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wsbj.com\/sorabji\/wp-json\/wp\/v2\/categories?post=238"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wsbj.com\/sorabji\/wp-json\/wp\/v2\/tags?post=238"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}