#microformats 2011-02-25

2011-02-25 UTC
#
tantek
edited /hcard-articles (-130) "Reverted edits by [[Special:Contributions/Dan0810|Dan0810]] ([[User talk:Dan0810|Talk]]) to last version by [[User:Tantek|Tantek]]"
(view diff)
kennyluck joined the channel
kennyluck_, csarven, GasbaKid, tantek and kennyluck joined the channel
#
phae
edited /events (+0) "move past event"
(view diff)
#
phae
edited /events (+232) "/* upcoming */ stub note for vEvent with Glenn Jones"
(view diff)
#
ChiefRA
guys, I need some help, if any of you available, please tye my nick name here
GasbaKid joined the channel
#
ChiefRA
1298641991
#
ChiefRA
anyone online from you guys?
#
singpolyma
ChiefRA: Just ask your question. People lurk and will eventually see it. Much more effective than a presence query
#
ChiefRA
oki doki
#
ChiefRA
I've implemented a vcard and I need an aditional tag for the languages spoken for that person
#
singpolyma
ChiefRA: You could use rel=tag
#
ChiefRA
rel-tag supports value ?
#
ChiefRA
as I need to put many languages
#
ChiefRA
I am having now deifned languages like this <dd>Danish, </dd>
#
ChiefRA
one after another the languages are delimited through dd
#
ChiefRA
I wanted to implement it like this: <dd class="note" value="language-spoken">Danish, </dd>
#
singpolyma
I'm not sure what you mean "supports value"? The languages a person speaks are arguable tags for that person, or categories, so you could use rel=tag or class=category or both
#
ChiefRA
with note but it doesn't support the value
#
ChiefRA
see the example above.
#
singpolyma
What would that syntax mean? value="" isn't allowed on dd... and language-spoken doesn't seem like a value at all
#
ChiefRA
can you please build me an example?
#
singpolyma
<div class="vcard"><span class="fn">John Smith</span> speaks <a href="http://en.wikipedia.org/wiki/English_language" rel="tag">English</a></div>
#
Phae
if you were using dd, wouldn't it be more like <dl><dt>languages spoken</dt><dd>danish</dd><dd>french</dd></dl> ? or am i missing what you mean?
#
ChiefRA
no, you're right on the spot
#
ChiefRA
that's the way I'm using the languages
#
ChiefRA
so I would like just to give them an hCard form
#
Phae
you can still use tags as indeicated by singpolyma
#
Phae
woah. i can't type today. indicated
#
ChiefRA
yes, but I don't want to append an URL to each language spoken
#
ChiefRA
I just want to mention them.
#
ChiefRA
like in your example Phae
#
ChiefRA
your example is the exact code I';m using on the website right now
#
singpolyma
ChiefRA: You could use class="category" if you really don't want to disambiguate with a URI
#
Phae
well, vcard doesn't have a property for language, so a parser isn't going to do anything with them. you could add them as notes, so potentially they have somewhere to live once pulled out of a page
#
Phae
category might be useful, also, if you're looking to distinguish people on that value
#
Phae
but i get the feeling you just want to append the info as just a little bit extra
#
Phae
a side note
#
ChiefRA
<dl class="group">
#
ChiefRA
<dt>Languages: </dt>
#
ChiefRA
<dd>Danish, </dd>
#
singpolyma
<dl><dt>Languages</dt><dd class="note">Danish</dd></dl> or some such
#
ChiefRA
this is my code, and since I've implemented the hcard on the person, I would like to outline these values (languages spoken) as a hcard values also
#
Phae
yeah, that's what i'm thinking
#
Phae
infact, note could probably just go on the parent dl
#
Phae
indicating you're interested in that whole set
#
singpolyma
or put the class="note" on the whole <dl> could work as well, then you just end up with a freeform blob of the whole list
#
ChiefRA
ok I'll do it right now and come back in a sec :)
#
ChiefRA
thank you
#
Phae
we could do with elaborating on the properties in the spec on the wiki
#
Phae
to suggest possible uses like this, i think
#
Phae
we have no info on what a 'note' actually is
#
Phae
for example
#
singpolyma
ChiefRA: Not a note about µformats per se, but you might not want to put things like : and , inside the <dd> if you want the data to be meaningful. Better to use CSS, imho. That's more of an opinion, though
#
singpolyma
I usually use "note" for bio, but I guess it's pretty freeform
#
Phae
yeah
#
Phae
i noticed that my android phone uses the note field with my google contacts to store machine data about what associated social networks that contact has (i.e. twitter username)
#
ChiefRA
so in this case, Phae you think it's appropriate to use the note tag?
#
Phae
i think so
#
singpolyma
Yeah, if you just need it to be human readable that seems to be working out pretty well
#
ChiefRA
I'm using it for offices instead of people, but that;s ok.
#
ChiefRA
and the languages is the languages spoken into that particular office.
#
ChiefRA
thank you guys, I'll implement it like this and see on the future if there will be a special tag designated for this.
#
ChiefRA
I also have a description of each office, which tag should I use for that ?
#
ChiefRA
or it's out of the hcard purpose?
#
Phae
that sounds like note territory too. you're wanting to do things that aren't part of hCard
#
Phae
but if you feel they're important enough to be attached you should add them as notes
#
Phae
but don't feel you have to get every thing into a contact card
#
Phae
it's still just meant to be a virtual business card
#
ChiefRA
mm ok then, I'll skip the description.
#
ChiefRA
but the languages spoken in that office, are useful to fit into the business card.
#
ChiefRA
at least in my oppinion
#
Phae
that's good
#
ChiefRA
and to feed them all, I've implemented a hfeed tag on a higher DIV. Is that enough ?
#
ChiefRA
<div class="hfeed list">
#
ChiefRA
like that
#
singpolyma
ChiefRA: Nothing prevents you from using good http://microformats.org/wiki/posh to mark up things nicely (like class="language" or the <dl> you're using, or class="description") -- but microformats tend to specifically encode some vocabulary that may not contain a property name for every piece of data you have :)
#
singpolyma
You wrapped the hCards in an hfeed? Are they a feed somehow?
#
singpolyma
edited /poshformats (+98) "/* known poshformats */ added POSHstream as a known POSHformat"
(view diff)
#
ChiefRA
singpolyma the full list of offices, shoule be feeded yes.
#
Phae
but..
#
Phae
it's not something someone would subscribe to?
#
Phae
it's not like an RSS feed
#
Phae
it's just info
#
Phae
it won't be updated with regularity, i assume?
#
Phae
this week: a new office!
#
Phae
kinda
#
ChiefRA
well, it's a list of worldwide offices a company has.
#
Phae
yeah
#
ChiefRA
so when an office will close, and another will rise,
#
Phae
but it's not a feed of news/info. it's just information. static.
#
singpolyma
Not a feed is the sense of an hAtom feed
#
ChiefRA
thay will all be in the same list.
#
Phae
you could say everything on the internet was a feed if you thought of it that way
#
singpolyma
hAtom is like Atom : blog posts and other regularly updated things or similar
#
ChiefRA
ok then I understand it wrong, I thought it's like that, but in a microformats style
#
ChiefRA
so what's the purpose of this hfeed tag then?
#
singpolyma
< singpolyma> hAtom is like Atom : blog posts and other regularly updated things or similar
#
ChiefRA
Phae, so I get it right then ?
#
ChiefRA
I'm confused.
#
singpolyma
ChiefRA: Are you familiar with Atom or RSS feeds?
#
ChiefRA
I'm not an expert if that's what you ask me, I have a clue though
#
ChiefRA
they're used to update a very fast changing data, not slow changing data.
#
ChiefRA
and you say that these offices may change or not over time.
#
ChiefRA
:)
#
ChiefRA
and I getting your point correctly ?
#
Phae
well
#
Phae
how fast?
#
Phae
i mena
#
Phae
mean*
#
Phae
offices don't shut daily
#
ChiefRA
no, true.
#
Phae
unless you're really unlucky :)
#
ChiefRA
they'll be there for years.
#
ChiefRA
hope so :)
#
Phae
this doesn't sound like the sort of information that would generally be considered something people would syndicate
#
Phae
you just go to a site and look this stuff up
#
ChiefRA
well, anyway, I got your point, the hfeed is obsolente in my situation.
#
ChiefRA
:))
#
Phae
i think so
#
ChiefRA
google will do a good job updating at least once a month these infos so...
#
ChiefRA
:)
#
Phae
think of hfeed/hatom as something you use for news/regularly updated information. like, if your company did bulletins or something like that
#
Phae
yeah
#
Phae
totally
csarven joined the channel
#
ChiefRA
-than kyou so far :)
#
ChiefRA
and you're not get rid of me just yes, as I wish to implement the hlisting too :D :)))
#
ChiefRA
just yet*
#
Phae
oh noes!
#
ChiefRA
I cna't type today ...
#
ChiefRA
something is wrong with my fingers :))))
#
tobyink
ChiefRA: my parser supports <span class="lang">en</span> to mark up languages spokeb. (Taken from vCard 4.0's LANG property.)
#
tobyink
Assuming that one day hCard (or hCard 2.0) is based on vCard 4.0 rather than vCard 3.0, other implementations will presumably also add support.
#
ChiefRA
tobyink but in order to be human radable and machine a like, your example should look like this in a "future" microformats markup language: <span class="lang" value="en">English</span>
#
tobyink
It supports all the usual microformats patterns, including value-title.
#
ChiefRA
tobyink 3 days ago, I left you a pm that your website was down.
#
ChiefRA
did you managed to put it back up ?
#
ChiefRA
I would like to test it.
#
tobyink
So you could do: <span class="lang"><span class="value-title" title="en"></span>English</span>
#
tobyink
But that's more annoying to type into an IRC client. :-)
#
tobyink
my database always crashes. I'm on an old beta version - really should upgrade it some time.
#
ChiefRA
:)))) I could try to implement it if your example is in microformats standards.
#
tobyink
my website's back up.
#
ChiefRA
is value-title accepted as vcard option ?
#
ChiefRA
option = parameter
#
ChiefRA
reading it now, ty
#
tobyink
filling out tax return online. Question "were you party to one or more tax avoidance schemes?" If I were, surely I wouldn't select "Yes"...
#
ChiefRA
tobyink I've read it, but I didn't see, can this valut-title be nested? I need to list like 4-10 languages in a vcard.
#
ChiefRA
value-title*
GasbaKid joined the channel
#
tobyink
You should be able to use something like <span class="lang"><span class="value-title" title="en,de,fr"></span>English, German and French</span>
#
singpolyma
tobyink: Would it not be better to use multiple class="lang" instead of comma sep stuff?
#
tobyink
yeah - I think I support both, but it's been a while since I looked through the code.
#
ChiefRA
bbl guys.
#
webcreationuk
edited /testimonials (-2) "/* Popa Bogdan */"
(view diff)
#
tobyink
edited /value-class-pattern (+165) "/* consuming and parsing tools */"
(view diff)
dzhus, philback, Chief|AFK, milk_ and mkaply joined the channel
#
saveontapestries
edited /hcard-examples-in-wild (+220) "/* new and uncategorized examples */"
(view diff)
csarven, tantek and Amorphous joined the channel