Coder Social home page Coder Social logo

transformr's People

Contributors

pfefferle avatar weborganics avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

transformr's Issues

Microformat Fragment by id

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

using dom option for tidy fails

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

Problem with Safari

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?

missing space and added fullstop when using given-name and family-name

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:

`

Fréderic de Villamil
`

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.