#microformats 2018-10-28

2018-10-28 UTC
[dougbeal] joined the channel
#
@tmcw
✨ google finally started parsing my site's microformats and now my book reviews have lil stars next to the results! the dream of web 2.0 is alive.
(twitter.com/_/status/1056359137271996416)
Xeno1 joined the channel
#
KartikPrabhu
is there any use-case for separately marking up the currency?
#
KartikPrabhu
the example in the wiki page uses value-class pattern but you can skip that entirely to have the price parsed as "$20.00"
#
rockman37
The potential use-case is so that search engines etc. know what currency is being represented; of course, this relies on them actually doing that.
#
KartikPrabhu
or parsing microformats in the first place
#
rockman37
That they apparently do, according to the Wiki.
#
rockman37
It just doesn't make a lot of sense to me to do anything with price information unless you know what currency is being represented.
#
KartikPrabhu
using <span class="p-price">$20.00</span> looks fine to me
#
rockman37
(Other than blindly show it to the user.)
#
rockman37
That's fine, but I don't know from that what currency that is (other than some kind of dollar, obviously).
#
KartikPrabhu
"20.00 USD" or "20.00 US dollars" also works
#
KartikPrabhu
this all depends on what you want to do with the parsed information other than show it to the user
#
KartikPrabhu
if you have a use-case for actually using the parsed currency that would be great
#
rockman37
Mhm, I guess that works.
#
rockman37
My main reason for including it at this point is just so it's available in a machine-readable format if so needed; I'm not (yet) writing any code that parses and uses the data.
#
KartikPrabhu
right. without any actual consuming use-case for the parsed data there is no real reason to add another property
#
KartikPrabhu
there is some related brainstorming on "measures" in general http://microformats.org/wiki/measure
#
Loqi
Measure microformat research
#
KartikPrabhu
but again not enough actual usage to justify a new micorformat
#
rockman37
I'll take a look at that, thanks.
#
rockman37
A related question: In classic microformats, is it actually valid to include HTML markup within an element marked up as a microformat property? E.g., <div class="price"><abbr class="currency" title="NZD">NZD</abbr> $50</div>
#
KartikPrabhu
I don't think that will be parsed correctly
#
rockman37
Okay.
#
rockman37
But in microformats2, that is allowed, right?
#
KartikPrabhu
you probably get: price = "NZD $50"
#
KartikPrabhu
in both mf1 and mf2
#
rockman37
That is the desired output, actually.
#
KartikPrabhu
if that is your desired parsed result then go for it
#
rockman37
Thanks.
#
KartikPrabhu
rockman37: you can test your markup on various parsers here https://microformats.io/#parsers
#
rockman37
I'll try it out.
#
rockman37
https://pin13.net/mf2/ Doesn't like HTML within p-x elements.
#
KartikPrabhu
the p-* prefix is to parse it as plaintext
#
aaronpk
p- tells the parser to return a plain text value. If you want html returned, use e-
#
Loqi
aaronpk: gRegorLove left you a message 5 days, 1 hour ago: Can you update this plugin on the wiki? Should fix the Special:Version page https://github.com/gRegorLove/mediawiki-entry-title-override/commit/953d33d75c524c7624a9148925af50f08fe2fe50
#
rockman37
aaronpk: Can I arbitrarily switch prefixes on standard properties?
#
KartikPrabhu
rockman37: from the parsers point of view yes
#
KartikPrabhu
mf2 parsing is very flexible. but not so if you are using mf1
#
rockman37
KartikPrabhu: Good to know.
#
KartikPrabhu
the backwards compatible parsing for mf1 is pretty rigid
#
@jackyalcine
↩️ It looks like you're using the http://schema.org stuff that Google pushes, not microformats :/ http://microformats.org/wiki/review vs https://schema.org/Review
(twitter.com/_/status/1056399600116879360)
#
rockman37
Loqi: Is that comment addressed at me?
#
aaronpk
rockman37: yes, with the caveat that some consumers of the data may expect only a plaintext value for some things so it just doesn’t make sense to use e- for those. Like “published” date for example
#
rockman37
aaronpk: Cool, thanks.
#
KartikPrabhu
rockman37: no that comment is a tweet that our helpful bot Loqi transmitted to IRC :)
#
rockman37
KartikPrabhu: Ah, okay :)
#
rockman37
looks at Schema.org anyway.
#
KartikPrabhu
rockman37: be careful, volcanoes have fax numbers on Schema!!
#
rockman37
KartikPrabhu: Useful!
#
aaronpk
Some day I’m gonna set up a fax machine on a cell phone connection and bring it up to the volcano that’s a few miles from my house
#
KartikPrabhu
aaronpk: will you location track your trek with mf2 ;)
#
rockman37
My local volcano only has a phone number :(
[sebsel], sebsel, [jgmac1106], [pfefferle], bradenslen, [tantek] and tonz joined the channel
#
@ohashimasaki
↩️ 海外では職務経歴書のXML形式がたくさんあるようだ。 http://microformats.org/wiki/resume-formats
(twitter.com/_/status/1056546456788594688)
[tonz], [jgmac1106], [pfefferle] and [tantek] joined the channel
[kevinmarks786], [jgmac1106], [Rose], [eddie], [tonz] and [frank] joined the channel