heypublisher / kindle-feed Goto Github PK
View Code? Open in Web Editor NEWGenerate Kindle For Periodicals XML feed from WordPress content.
Generate Kindle For Periodicals XML feed from WordPress content.
non-breaking spaces get converted into weird chars in the xml.
See the kindle feed at: http://www.pifmagazine.com/2018/05/such-importance/?feed=kindle_article
Kindle seems to be working past this issue, as the publication was not blocked. But the XML is malformed.
Also getting errors about "bold" not being supported in the kindle device when rendering the above page.
Plugin has not been updated in 4 years. It's still working fine, but should be updated to indicate which current version of WordPress it has been validated against, and to move hosting from WordPress to GitHub.
The common library should be updated to HeyPublisher Base
class, too.
These feeds are broken:
<link rel='stylesheet' id='dashicons-css' href='http://www.pifmagazine.com/wp-includes/css/dashicons.min.css?ver=4.7' type='text/css' media='all' />
<link rel='stylesheet' id='admin-bar-css' href='http://www.pifmagazine.com/wp-includes/css/admin-bar.min.css?ver=4.7' type='text/css' media='all' />
Most noticeable when viewing the magazine in kindle app for iPad.
It might make more sense to roll this plugin into HeyPublisher
<!-- ngg_resource_manager_marker --><!-- ngg_resource_manager_marker --> <script type="text/javascript">
// <![CDATA[
var disqus_shortname = 'pifmagazine';
(function () {
var nodes = document.getElementsByTagName('span');
for (var i = 0, url; i < nodes.length; i++) {
if (nodes[i].className.indexOf('dsq-postid') != -1 && nodes[i].parentNode.tagName == 'A') {
nodes[i].parentNode.setAttribute('data-disqus-identifier', nodes[i].getAttribute('data-dsqidentifier'));
url = nodes[i].parentNode.href.split('#', 1);
if (url.length == 1) { url = url[0]; }
else { url = url[1]; }
nodes[i].parentNode.href = url + '#disqus_thread';
}
}
var s = document.createElement('script');
s.async = true;
s.type = 'text/javascript';
s.src = '//' + disqus_shortname + '.disqus.com/count.js';
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
}());
// ]]>
</script>
<!-- Starting of Javascript Generated by Simple Slideshow Manager -->
<script type="text/javascript">
</script>
<!-- Ending of Javascript Generated by Advanced Slideshow Manager -->
<!-- Powered by WPtouch: 4.3.7 --><script type='text/javascript' src='http://www.pifmagazine.com/wp-includes/js/jquery/jquery.js?ver=1.12.4'></script>
<script type='text/javascript' src='http://www.pifmagazine.com/wp-includes/js/jquery/jquery-migrate.min.js?ver=1.4.1'></script>
This will prevent the random indentation we're seeing.
Blockquotes are a common formatting entity online in WordPress, but they are not rendering properly within the Kindle format. They are being converted to DIVs
This Kindle spec indicates that blockquotes should be supported. Not rendering properly on kindle app for iPad. Need to check Kindle device and add screenshots.
<br> => <br/>
<hr> => <hr />
<img ....> => <img .... />
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.