Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iCalendar and Description formatting

Is it possible to add any formatting to the description of the event in an iCalendar ICS?

When Outlook imports my ICS, it makes some lines 18pt Bold and others not, what defines which lines get formatted in OL?

Is there also a way to add an alt description for links in the description?

I want to build my ICS file using PHP, too.

like image 575
MB34 Avatar asked Aug 24 '12 15:08

MB34


People also ask

What is an iCalendar in Outlook?

The Internet Calendaring and Scheduling Core Object Specification (iCalendar) is a media type which allows users to store and exchange calendaring and scheduling information such as events, to-dos, journal entries, and free/busy information.

What is iCal and how does it work?

iCalendar is a standard for calendar data exchange. The standard is sometimes referred to as "iCal", which also is the name of the Apple, Inc. calendar program that provides one of the implementations of the standard. Outlook can subscribe to Internet-based calendars, such as the Google calendar.

Does iCal support HTML?

iCalendar, the file format used for our calendar downloads, does not officially support HTML formatting. If any HTML formatting is present in the rich text of the portal content, the HTML tags are replaced with line breaks.


2 Answers

Why not use X-ALT-DESC?

X-ALT-DESC;FMTTYPE=text/html: <html><body>I am <b>bold</b></body></html>
like image 80
Dmitry Streblechenko Avatar answered Sep 22 '22 23:09

Dmitry Streblechenko


Outlook is very capricious about this, and you might be better off not fighting it.

I find that Outlook formats my first line bold if it's followed 2 newlines (\n), then by at least 3 lines of text, the first of which must have a capital letter. Two minimalist examples: this works:

DESCRIPTION:I am bold\n\nThey\nthey\nthey

this doesn't

DESCRIPTION:I am not bold\n\nthey\nthey\nthey

I admit this isn't an exact answer. Maybe a Microsoft Outlook engineer can jump on the thread and tell us what the business logic is.

like image 24
MM. Avatar answered Sep 19 '22 23:09

MM.