weborganics / transformr Goto Github PK
View Code? Open in Web Editor NEWThe Microformat Transformer Toolkit
Home Page: http://microform.at/
The Microformat Transformer Toolkit
Home Page: http://microform.at/
file not found ...
http://microform.at/ does not detect microformat tags that are on http://cweiske.de/tagebuch/simpleid-invalid-openid-message.htm
Hi,
Great piece of code been using it for a long, long time (from the very begining), but decided to upgrade as no longer dependant on html tidy and therefore a little more tollerant.
Whilst it works like a dream for converting a page to the various formats, I was intrigued by the convert fragment by passing a html id for a given html snippet.
This does not appear to work, which ever way you try to dubmit it, even if using the direct functionality to pass it does.
Can you have a look and make sure it works as expected?
On a sperate note, on the assumption that search engines are at some point capable of reading and interpreting the information converted my transformr, we should be cautios of canocal urls : e.g /referer, or /id . My site uses this functionality on almost everypage and to avoid what appears to be the same url delivering something different on each call we should look to include the url in every call to transromr, which means that eacu url remains unique. (Just a thought)
Great work, it definately makes a big difference to me.
William
Not exaclty microformats, but sice you support RDF as well, I think its good to have.
using 'tidy_option' => 'dom'
fails due to wrong variable returned by tidy_html:
return str_replace(array("\r\n", "\r", "\n", "\t", "
"), '', $result);
looks like it should be -
return str_replace(array("\r\n", "\r", "\n", "\t", "
"), '', $html);
EDIT - actually... it still fails, it seemed like obvious mistake
Downloading a Hcalendar to iCal using Firefox works perfectly!
But doing the exact same procedure with Safari fails miserably - because Safari seem to add an extra file extension to the file name. It becomes...
Download with Firefox: filename.ics
Download with Safari : filename.ics.vcs
Where do the extra ".vcs" come from?
if markup contains nested spans and is parsed from html (not direct) spaces are removed from names and dot is added - using (simplified) exsample from http://microformats.org/wiki/hcard-examples to create HTML file:
`
results in:
N;CHARSET=UTF-8:de Villamil;Fréderic;;; FN;CHARSET=UTF-8:Frédericde Villamil.
e.g no space, fullstop added.
this seems to be result of replaces in get_file_contents ("insert fullstop so tidy does not clean empty span or span with just a space") - and hopefully not intended, as some applications do use the FN when N is present
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.