#microformats 2018-11-18
2018-11-18 UTC
[grantcodes] and [jgmac1106] joined the channel
#
@jgmac1106 After adding an h-feed I can see how much more appealing it is then having to maintain an xml file for rss. I will still do both, but a couple extra properties on some html classes and Boom! Readers could parse my microformats (https://quickthoughts.jgregorymcverry.com/s/2kawT9) (twitter.com/_/status/1063963151861989376)
[jgmac1106], [eddie], [tantek], tantek, cheim, globbot, gRegorLove, barpthewire, jgmac1106, [kevinmarks] and [cleverdevil] joined the channel
[tantek] joined the channel
jgmac1106 and [kevinmarks] joined the channel
[jgmac1106] joined the channel
[eddie] joined the channel
[Csongor] joined the channel
nitot, j12t_, j12t, [tantek], KartikPrabhu, [jgmac1106], tantek and [Vincent] joined the channel
#
[Vincent] hello all. I have a question. I’m a bit confused. What is the difference between u-category and p-category?
#
Zegnat I kinda expect the answer to be clear from http://microformats.org/wiki/microformats2-prefixes but it really isn’t
#
[Vincent] thanks that would be helpful. I keep seeing examples using these both interchangeably and I thought I was missing something.
tantek_ joined the channel
#
[Vincent] sounds auto-generated
#
gRegorLove Makes sense, sknebel
#
gRegorLove Yeah, seems tricky. I wasn't thinking we'd add it necessarily, unless it was easy. /mf2p does say "follow the HTML parsing rules"
#
gRegorLove Another question is whether we leave the other parsers as-is or "fix" them
#
gRegorLove Or update /mf2p as another option
nitot joined the channel
#
[Vincent] If I specified a u-category and a p-category. Which would win out? Or is that up to the vendor?
#
KartikPrabhu both will be parsed
#
KartikPrabhu there isn't any vendor
#
[Vincent] Sry by vendor I meant the other end doing the parsing
#
[Vincent] Cool that’s helpful thanks
#
KartikPrabhu you can try out the parsers here https://microformats.io/#parsers
#
gRegorLove The parser would return both
#
[Vincent] KartikPrabhu++
#
[Vincent] gRegorLove++
#
[Vincent] cheers!
#
[Vincent] Zegnat++
#
[Vincent] for before!
#
gRegorLove So it depends what you want for your consumer, really. If you want URLs as the categories, use u-category on links.
#
gRegorLove I think that's more common. On my site I don't yet have pages for tags, so I use p-category to just return the category names
#
[Vincent] My pages return tags, but I didn’t realise the difference between p-category and u-category till a little earlier. I was considering adding both, so I could lazy syndicate to Indienews. But I might actually just swap it all out to u-category
#
[Vincent] semantically that would make more sense as well I guess!
#
gRegorLove Gotcha. Yeah, if you already have links to tag pages, I'd add u-category to those.
#
gRegorLove aaronpk, somewhere I think it's documented if you find a url as a category attribute, use the trailing segment as the plaintext tag name
#
sknebel " rel=tag - parse as p-category. While not a class name nor typical microformats property, rel=tag was the typical way to tag an hentry. Thus parsers should look for rel=tag hyperlinks inside an hentry, and take the last path segment of their "href" value as a value for a p-category property. "
#
gRegorLove sknebel: I wasn't sure. https://html.spec.whatwg.org/multipage/parsing.html#parsing refers separately to HTML parser and XML parser, but I didn't go in-depth in that document
#
gRegorLove Agreed it makes sense not to hinder the other parsers
#
gRegorLove [Vincent], they're right, sorry I gave some incorrect information. https://indieweb.org/tags#How_to_markup is a good guide and https://indieweb.org/person-tag documents the u-category usage for person tags.
#
gRegorLove http://microformats.org/wiki/h-entry shows p-category too, so that's all in agreement
#
gRegorLove sknebel, Maybe Zegnat will have some ideas :) Sounds like it would only work if you had masterminds html5 installed though
#
[Vincent] [gRegorLove] no worries I’ll take a look thanks
nitot and mblaney joined the channel
[tantek] joined the channel
