hcalendar-ja
relricouo
hCalendar
hCalendarã¯iCalendar (RFC2445)ãåºã¨ãããã·ã³ãã«ã§ãªã¼ãã³ãªã«ã¬ã³ãã¼ã»ã¤ãã³ãæ å ±é ä¿¡ç¨ã®microformatã§ãã(X)HTMLãAtom, RSS, ä»»æã®XMLãªã©ãåºç¯å²ã«é©ç¨å¯è½ãªãã©ã¼ãããã¨ãªã£ã¦ãã¾ãã
hCalendarã§ã¤ãã³ãæ å ±ãé ä¿¡ããã«ã¯ããã¤ãã®æ¹æ³ãããã¾ããæã£åãæ©ãã®ã¯ããhCalendar ã¯ãªã¨ã¼ã¿ã¼ããã¼ã«ã使ããã¨ãã§ãããããã§ã«ã¤ãã³ãã®æ å ±ãèªåã®ããã°ãwikiãªã©ã«æ¸ãã¦ããå ´åã¯ãhCalendarãæ¸ãã³ããèªã¿ãhCalendarã«æ²¿ããããã¼ã¯ã¢ããããç´ãã¾ãããã
ä»æ§
- ç·¨è
- Tantek Ãelik (Technorati, Inc)
- ä½è
- Tantek Ãelik, Technorati, Inc
- Brian Suda
èä½æ¨©
© 2004-2024 by the authors.
この仕様の著作権は、ページ編集に関わった人全てが保有しています。 しかし、著者はこの仕様をGMPGやIETF、W3Cなどの標準化団体に提出することを考えています。この仕様に貢献したい場合は、これらの団体が持つ著作権に対する方針やポリシー(例:GMPG Principles)を読み、ライセンスに関する規定(例:CC-by 1.0や後のバージョン)を理解した上でお願いします。
ç¹è¨±æ¹é
この仕様はロイヤリティーフリーの特許方針に帰属するものです。特許方針に関してはW3C Patent PolicyやRFC3667、RFC3668をご覧下さい。
è¬è¾
以ä¸ã®æ¹ã«æè¬ãã¾ãã
- FOOãã£ã³ã 2004ã®ãã«ã¬ã³ãã¼è¡¨ç¤ºã®ããã®HTMLããå å°ãã¦ããããã¢ãã ã»ããã¹ã¦ã©ã¼ã¹ããã®ãããã§hCalendarã¸ã®é¢å¿ãæ¬æ ¼çãªè ã«ãªãã¾ããã
æ¦è¦
iCalendar (RFC2445)ã¯Appleã®iCalãªã©ãã¹ã±ã¸ã¥ã¼ã«ç®¡çç¨ã¢ããªã±ã¼ã·ã§ã³ã«åºãæ¡ç¨ãããã¾ãå®è£ ä¸ã®ç¸äºéç¨æ§ãé«ããã©ã¼ãããã«ãªã£ã¦ãã¾ãã
ãã®åºã使ããã¦ãããã©ã¼ãããããããã°ã§è¨åãããã¤ãã³ãæ å ±ã«å¿ç¨ã§ããªãã§ãããããä»å¾è¡ãããã¤ãã³ãããããã¾ã§ã«åå ããã¤ãã³ãã«ã¤ãã¦èªåã®ããã°ä¸ã«è¨äºãæ¸ãããã¬ã¼ã¯ãããããã¾ãããããã®ã¤ãã³ãæ å ±ãå°ãæ§é åããiCalendarã¨ãã¦åºåå¯è½ã«ããã°ãã¢ããªã±ã¼ã·ã§ã³ãWebãµã¼ãã¹ãèªåçã«ãã®æ å ±ãå©ç¨ã§ããããã«ãªãã¾ãã
ãã®hCalendarã¨ããä»æ§ã¯ãXHTMLã«ãã£ã¦iCalendarã表ç¾ããæ¸å¼ã§ããããã¬ã¼ã¯hCalendarãç´æ¥webãã¼ã¸ã«åãè¾¼ãã ããã¾ããã®æ å ±ãCSSã§ãã¶ã¤ã³ãããã¨ãå¯è½ã§ããããã ãã§ã¯ããã¾ãããã¢ããªã±ã¼ã·ã§ã³ã¯ã¤ãã³ãæ å ±ãç´æ¥ãã®hCalendarããåã£ã¦ãããã¨ãã§ããããã«ãªãã¾ããã¤ãã³ãã«ã¤ãã¦æ¸ããããã¡ã¤ã«ããwebãã¼ã¸ã¨å¥ã«ç¨æããå¿ è¦ã¯ããããã¾ããã
ã»ãã³ãã£ãã¯XHTMLãã¶ã¤ã³æé
Note: the Semantic XHTML Design Principles were written primarily within the context of developing hCard and hCalendar, thus it may be easier to understand these principles in the context of the hCard design methodology (i.e. read that first). Tantek
XHTML is built on XML, and thus XHTML based formats can be used not only for convenient display presentation, but also for general purpose data exchange. In many ways, XHTML based formats exemplify the best of both HTML and XML worlds. However, when building XHTML based formats, it helps to have a guiding set of principles.
- Reuse the schema (names, objects, properties, values, types, hierarchies, constraints) as much as possible from pre-existing, established, well-supported standards by reference. Avoid restating constraints expressed in the source standard. Informative mentions are ok.
- For types with multiple components, use nested elements with class names equivalent to the names of the components.
- Plural components are made singular, and thus multiple nested elements are used to represent multiple text values that are comma-delimited.
- Use the most accurately precise semantic XHTML building block for each object etc.
- Otherwise use a generic structural element (e.g.
<span>
or<div>
), or the appropriate contextual element (e.g. an<li>
inside a<ul>
or<ol>
). - Use class names based on names from the original schema, unless the semantic XHTML building block precisely represents that part of the original schema. If names in the source schema are case-insensitive, then use an all lowercase equivalent. Components names implicit in prose (rather than explicit in the defined schema) should also use lowercase equivalents for ease of use. Spaces in component names become dash '-' characters.
- Finally, if the format of the data according to the original schema is too long and/or not human-friendly, use
<abbr>
instead of a generic structural element, and place the literal data into the 'title' attribute (where abbr expansions go), and the more brief and human readable equivalent into the element itself. Further informative explanation of this use of<abbr>
: Human vs. ISO8601 dates problem solved
å®ç¨çãªå°å
¥ãèããå ´åãInternet Explorerã§ã¯ <abbr>
è¦ç´ ã®CSSã¹ã¿ã¤ãªã³ã°ããã¡ãã¨ãµãã¼ãããã¦ããªããããå¥ã®è¿½å è¦ç´ ãå¿
è¦ã«ãªããã¨ãããã®ãè¦ãã¦ããã¨è¯ãã§ãããã
æ¸å¼
éä¾
iCalendar æ¨æºè¦ç´ï¼RFC2445ï¼ãhCalendarã®ãã¨ã¨ãªã£ã¦ãã¾ãã
注æï¼ãã®ä»æ§æ¸ã®ç·¨éè ããã³å·çè ã¯ããiCal-Basicãã®åãçµã¿ã追ãã hCalendarã®ã³ã¢ã»ãããã¡ã¤ã«ã iCal-Basic ã«åºã¥ãããã®ã«ãããã¨ãã¦ãã¾ãããªã³ã¯å ã«ããç¾å¨ã®è稿ãã覧ãã ããã
hCalendarã®åºæ¬çãªæ¸å¼ã¯ãiCalendarã®ãªãã¸ã§ã¯ãããã³å¤æ°åãclassåã¨ãã¦å°æåã§æ¸ãããã«ãããã®ã§ããã¾ããiCalendarã®å ¥ãåæ¹å¼ã«é ç½®ããããªãã¸ã§ã¯ããããã®ã¾ã¾å ¥ãåæ¹å¼ã®XHTMLã«ãããã³ã°ãã¾ãã
More Semantic Equivalents
However, for some properties there is a more semantic equivalent, and therefore they get special treatment, e.g.:
URL
in iCalendar becomes<a class="url" href="...">...</a>
inside the element withclass="vevent"
in hCalendar.ATTENDEE
,CONTACT
, andORGANIZER
in iCalendar may be represented by an hCard in hCalendar .- A named
LOCATION
(potentially with an address and/or geo) in iCalendar may be represented by a nested hCard in hCalendar. Similarly, an addressLOCATION
may be represented by an adr, and a geo (latitude and longitude)LOCATION
may be represented by a geo. UID
in iCalendar simply becomes another semantic applied to a specific URL for an hCalendar event.
Singular vs. Plural Properties
For properties which are singular (e.g. "N" and "FN" from vCard), the first descendant element with that class should take effect, any others being ignored.
For properties which can be plural (e.g. "TEL" from vCard), each class instance should create a instance of that property. Plural properties with subtypes (e.g. TEL with WORK, HOME, CELL from vCard) can be optimized to share a common element for the property itself, with each instance of subtype being an appropriately classed descendant of the property element.
Plural Properties Singularized
Since plural property names become their singular equivalents, even if the original plural property permitted only a single value with multiple components, those multiple components are represented each with their own singularly named property and the the property is effectively multivalued and subject to the above treatment of multivalued properties.
Human vs. Machine readable
If an <abbr>
element is used for a property, then the 'title
' attribute of the <abbr>
element is the value of the property, instead of the contents of the element, which instead provide a human presentable version of the value. This specification recommends that such <abbr>
elements be used for the following iCalendar properties:
- DTSTART, DTEND, DURATION, RDATE, RRULE
ä¾
以ä¸ã¯ãiCalendarã®ä¾ã§ãã
BEGIN:VCALENDAR PRODID:-//XYZproduct//EN VERSION:2.0 BEGIN:VEVENT URL:http://www.web2con.com/ DTSTART:20071005 DTEND:20071020 SUMMARY:Web 2.0 ã«ã³ãã¡ã¬ã³ã¹ LOCATION:ã¢ã¼ã¸ã§ã³ãããã«\, ãµã³ãã©ã³ã·ã¹ã³\, ã«ãªãã©ã«ãã¢å· END:VEVENT END:VCALENDAR
hCalendaræ¸å¼ã§åæ§ã®ã¤ãã³ãã表示ããå ´åãå種è¦ç´ ãæé©åããã以ä¸ã®ããã«ãªãã¾ããå ã«ãªã£ãå 容ã«ã¤ãã¦ã¯ãhcalendar-example1-stepsãã覧ãã ããã
<div class="vevent"> <a class="url" href="http://www.web2con.com/">http://www.web2con.com/</a> <span class="summary">Web 2.0 ã«ã³ãã¡ã¬ã³ã¹ </span>ï¼ <abbr class="dtstart" title="2007-10-05">10æ5æ¥</abbr>ã <abbr class="dtend" title="2007-10-20">19æ¥</abbr>ã <span class="location">ã¢ã¼ã¸ã§ã³ãããã«ï¼ã«ãªãã©ã«ãã¢å·ãµã³ãã©ã³ã·ã¹ã³ï¼</span>ã«ã¦ã </div>
ããã¯ã以ä¸ã®ããã«è¡¨ç¤ºããã¾ãã
http://www.web2con.com/ Web 2.0 ã«ã³ãã¡ã¬ã³ã¹ ï¼ 10æ5æ¥ã 19æ¥ ã ã¢ã¼ã¸ã§ã³ãããã«ï¼ã«ãªãã©ã«ãã¢å·ãµã³ãã©ã³ã·ã¹ã³ï¼ã«ã¦ã
ããã¯ã'æ¬ç©ã®'hCalendarãã¤ã¯ããã©ã¼ãããã§ããããã¼ãµã¼ããã®ãã¼ã¸å ããæ¤åºã§ãããã¨ã«æ³¨æãã¦ãã ããã
Example 2
The following example specifies a scheduled meeting that begins at 8:30 AM EST on March 12, 1998 and ends at 9:30 AM EST on March 12, 1998.
BEGIN:VCALENDAR BEGIN:VEVENT UID:guid-1.host1.com DTSTAMP:19980309T231000Z DESCRIPTION:Project XYZ Review Meeting SUMMARY:XYZ Project Review DTSTART:19980312T133000Z DTEND:19980312T143000Z LOCATION:1CP Conference Room 4350 END:VEVENT END:VCALENDAR
The equivalent in hCalendar:
<div class="vevent"> <h3 class="summary">XYZ Project Review</h3> <p class="description">Project XYZ Review Meeting</p> <p>To held on <abbr class="dtstart" title="1998-03-12T08:30:00-05:00">12 March 1998 from 8:30am EST</abbr> until <abbr class="dtend" title="1998-03-12T09:30:00-05:00">9:30am EST</abbr></p> <p>Location: <span class="location">1CP Conference Room 4350</span></p> <small>Booked by: <span class="uid">guid-1.host1.com</span> on <abbr class="dtstamp" title="19980309T231000Z">9 Mar 1998 6:00pm</abbr></small> </div>
This could be displayed as:
XYZ Project Review
Project XYZ Review Meeting
To held on 12 March 1998 from 8:30am EST until 9:30am EST
Location: 1CP Conference Room 4350
Booked by: guid-1.host1.com on
9 Mar 1998 6:00pmNote 1: The product information is not necessary since hCalendar is an interchange format. When transforming hCalendar back into iCalendar, the transforming engine should add its own product ID.
Note 2: A surrounding <span class="vcalendar">
element is optional, and is left out as such. It is optional since the context of a vcalendar is implied when a vevent is encountered. The implied context/scope is that of the document. Authors may explicitly use elements with class="vcalendar" to wrap sets of vevents that all belong to the same calendar, e.g. when publishing multiple calendars on the same page.
Note 3: The version information is unnecessary in hCalendar markup directly since the version will be defined by the profile of hCalendar that is used/referred to in the 'profile' attribute of the <head> element.
Note 4: ISO8601 dates (required by iCalendar) are not very human friendly. In addition, the year is often understood implicitly by humans from the context. Thus <abbr>
elements are used to simultaneously provide a human friendly date and/or time in the visible contents of the element, while placing the respective machine parsable comprehensive ISO8601 datetime in the 'title' attribute.
The notation YYYY-MM-DDThh:mm:ss
should be used for better readability, following the format of RFC 3339.
Note 5: The difference between the DTEND ISO8601 date (2005-10-08) and the human readable date (7) is NOT a mistake. DTEND is exclusive, meaning, that the event ends just before the DTEND. Thus for events which start on one day and end on another day, the DTEND date must be specified as the day after the day that a human would say is the last day of the event.
Note 6: The location in this example contains implicit structure (venue name, city, state) which could be marked up explicitly as an hCard. See hCalendar brainstorming: hCard locations for a informative explanation of how to do this.
Buttons
Don't forget that you can add one of our buttons to the page, to indicate the presence of hCalendar microformats. For example: . If you can link it back to this page (or even page on your website, about your use of the microformat), so much the better!
More Examples
See hCalendar examples for more examples, including examples from iCalendar RFC 2445 converted into hCalendar.
Examples in the wild
This section is informative. The number of hCalendar examples in the wild has expanded far beyond the capacity of being kept inline in this specification. They have been moved to a separate page.
See hCalendar Examples in the wild.
Implementations
This section is informative. The number of hCalendar implementations has also expanded beyond the capacity of keeping them inline. They have been moved to a separate page.
See hCalendar Implementations.
References
Normative References
Informative References
- CSS1
- hCalendar term introduced and defined on the Web, 20040930
- FOO Camp 2004 HTML For Calendars presentation, 20040911
- FOO Camp 2004 Simple Semantic Formats presentation, 20040910
- iCal-Basic (latest) (draft 04)
- Contributed from http://developers.technorati.com/wiki/hCalendar
- XHTML 1.1
- Internet Mail Consortium Personal Data Interchange vCard and vCalendar
Specifications That Use hCalendar
Similar Work
Further Reading
- Groupware Bad by Jamie Zawinski crystalizes the reason for hCalendar (emphasis added):
Right now people can do that by publishing .ics files, but it's not trivial to do so, and it's work on the part of other people to look at them. If it's not HTML hanging off our friend's home page that can be viewed in any browser on a public terminal in a library, the bar to entry is too high and it's useless.
- Jason Klemow's blog
- Moving forward with microformats by Jon Udell provides an hCalendar example and some discussion.
- See also blogs discussing this page and the hCalendar tag
- Wikipedia article on hCalendar (requires expansion)
Related Pages
- hCalendar - specification
- hCalendar intro - plain English introduction
- hCalendar authoring - learn how to add hCalendar markup to your existing events.
- hCalendar creator (hCalendar creator feedback) - create your own hCalendar events.
- hCalendar cheatsheet - hCalendar properties
- hCalendar examples in the wild - an on-going list of websites which use hCalendars.
- hCalendar implementations - websites or tools which either generate or parse hCalendars
- hCalendar FAQ - If you have any questions about hCalendar, check here.
- hCalendar parsing - normative details of how to parse hCalendar.
- hCalendar profile - the XMDP profile for hCalendar
- hCalendar singular properties - an explanation of the list of singular properties in hCalendar.
- hCalendar tests - a wiki page with actual embedded hCalendar events to try parsing.
- hCalendar "to do" - jobs to do
- hCalendar advocacy - encourage others to use hCalendar.
- iCalendar implementations
This specification is a work in progress. As additional aspects are discussed, understood, and written, they will be added. These thoughts, issues, and questions are kept in separate pages.
- hCalendar Brainstorming - brainstorms and other explorations relating to hCalendar
- hCalendar issues - issues with the specification