Calendars¶
Extras > Calendars shows the calendars a Mac syncs onto the iPod, as plain iCalendar files in a
Calendars folder on the volume. The app has four screens plus To Do's, and Chikuma reproduces each
one against the original running on the same files.
How it was measured¶
Test calendars went onto a copy of the disk image. First came two files with three events and one to-do each, among them a timed event, an all-day event and a weekly recurring one. Two more files followed, one naming its calendar and one not.
The original ran in the emulator, driven screen by screen with scripted remote input.
Then two real calendars of 581 and 720 events went through both firmwares, with their descriptions stripped and kept out of the repository. On those, Chikuma's parser gives the identical set of flagged days on the month grid, and the same entries on the same day.
Loading¶
At start-up the firmware walks Calendars/, skips Finder's .DS_Store, and parses every file into
one store. A file can hold several calendars.
A calendar takes its name from X-WR-CALNAME, and the file name plays no part. The first name seen
before the first event fixes it, and a later name is ignored. Two files naming the same calendar make
one calendar, and a calendar with no name gets listed as Other.
The screens¶
The menu¶
The menu lists, in order:
- All Calendars
- each calendar, sorted by name, with Other last
- To Do's
- the Alarms setting (Beep and its other values), kept in the preferences where the original keeps it
The preview pane beside it draws the calendar icon with today's date.
The month grid¶
The grid is one small view drawn 42 times: six weeks, with the neighbouring months' days greyed and today selected. The wheel moves the selected day, across months.
A red flag marks every day an event covers, from its start to the day of its last second. An all-day event ending at midnight therefore leaves the following day unflagged. A bell appears beside the flag on a day with an event that carries an alarm.
A moved instance shows up twice
The original's keyword table has no RECURRENCE-ID. So on the day list, a moved instance of a
recurring event appears twice, once as the series and once as the override. This was measured on
the real calendars.
The day¶
The day lists its events across all the calendars shown, by start time, or "No events for this day". Next and previous step the day.
The event¶
The event screen shows Summary, Date, Time, Location, Attendees and Notes as label and value pairs. An empty row takes no height. Next and previous step through the day's events.
To Do's¶
With no to-dos, the screen shows instructions. Otherwise it lists them in calendar order, each one with its summary, status, priority and due date.
What is Chikuma's own¶
The firmware's iCalendar reader is a general text-record tokenizer with a table of 64 keywords.
Chikuma's reader recognises the same keywords, so its scope is the original's. There is no hourly
recurrence, because the table has no HOURLY.
Its line and value grammar comes from the iCalendar standard, without porting the firmware's tokenizer, and the reader is declared as Chikuma's own for that reason. The recurrence tests are the worked examples from the iCalendar specification.
Differences from the original¶
Time zones are not handled for the moment: events are read as floating local time. vCalendar 1.0 files and the attendee list are not parsed yet either.
The bell's exact rule is a fit. Chikuma's version, "an event with an alarm covers the day", matches what the original showed on the real calendars, but it has not been read in the original's code.
Text pitch differs. Rows sit 16 pixels apart where the original's sit 17 to 18, which comes from the shared text engine's line height. The month grid's digits use a fitted font size until the font the view asks for is traced.
How the original writes the all-day Time line was not measured.