Difference between revisions of "definition-examples"
m (→Dictionary.app: — typo) |
|||
(7 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
+ | = Dictionary examples = | ||
+ | |||
+ | == Purpose == | ||
+ | |||
+ | [[ChrisMessina]] [http://microformats.org/discuss/mail/microformats-discuss/2005-November/002140.html hacked Apple's Dictiontionary.app to see how it works]. He discovered some interesting markup. [[RyanKing]] suggested that the community collect examples of dictionary and thesaraus lists. Create a section below to add your own '''real world''' examples | ||
+ | |||
== Dictionary.app == | == Dictionary.app == | ||
− | I decided to hack Dictionary.app and see how it worked. It uses a stylesheet called DefaultStyle.css with all kinds of markup I've never before seen the likes of. For example: | + | I (ChrisMessina) decided to hack Dictionary.app and see how it worked. It uses a stylesheet called DefaultStyle.css with all kinds of markup I've never before seen the likes of. For example: |
<pre> | <pre> | ||
Line 20: | Line 26: | ||
@namespace o url(http://oup.dataformat.com/doc/OUP_DTD_Dictionary.html); | @namespace o url(http://oup.dataformat.com/doc/OUP_DTD_Dictionary.html); | ||
</pre> | </pre> | ||
+ | |||
+ | <div class="discussion"> | ||
+ | * http://oup.dataformat.com/doc/OUP_DTD_Dictionary.html seems to be dead | ||
+ | ** http://www.oadcms.com/doc/OUP_DTD_Dictionary.html instead? -- [[User:Abernier|abernier]] 18:50, 23 October 2009 (UTC) | ||
+ | </div> | ||
Apparently you can namespace objects dynamically! ...I had no idea! | Apparently you can namespace objects dynamically! ...I had no idea! |
Latest revision as of 22:17, 21 January 2010
Dictionary examples
Purpose
ChrisMessina hacked Apple's Dictiontionary.app to see how it works. He discovered some interesting markup. User:RyanKing suggested that the community collect examples of dictionary and thesaraus lists. Create a section below to add your own real world examples
Dictionary.app
I (ChrisMessina) decided to hack Dictionary.app and see how it worked. It uses a stylesheet called DefaultStyle.css with all kinds of markup I've never before seen the likes of. For example:
o|ent { font-family:'Baskerville';font-weight:normal; font-size:medium; display: block; margin: 0em 0em 0em 0em; margin-left: -13px; margin-bottom: 1.0em; }
It uses this 'o' object a lot and then I checked up on the namespaces referenced in the top of the document:
@namespace html url(http://www.w3.org/1999/xhtml); @namespace o url(http://oup.dataformat.com/doc/OUP_DTD_Dictionary.html);
- http://oup.dataformat.com/doc/OUP_DTD_Dictionary.html seems to be dead
- http://www.oadcms.com/doc/OUP_DTD_Dictionary.html instead? -- abernier 18:50, 23 October 2009 (UTC)
Apparently you can namespace objects dynamically! ...I had no idea!
Anyway, checking out that page resulted in a format that seemed ripe for some dl|dt|dd microformat love:
<entry type="subject" sortkey="sortkeyhere" status="Active" title="noad:1.01" entry="0" stage="1"> <meta> ... </meta> <hwGrp> ... <hwGrp> <senseBlock> <meta> ... </meta> <prelim> ... </prelim> <sense> <meta> ... </meta> ... </sense> </senseBlock> </entry>
Since much of the work has already been done and there's a decent use case for this kind of app, I was wondering if we might be able to take the data that's already available and see what a mF could do for it -- y'know, to be able to offer real world app conversion documentation?