ZedAI Date Proposal

From zedwiki

(Redirected from ZedAI Date)
Jump to: navigation, search

Contents

Introduction

In (Swiss) German Braille we render dates and times slightly different from the original in order to increase legibility. We drop some spaces and use the upper or the lower part of the Braille cell for month and day numbers for example.

Problem

The current proposal for date and time uses the standard xsd:time and xsd:date datatypes allowing the {gYear}, {gYearMonth}, {date}, {time} and {dateTime} datatypes as defined in in XSD Datatypes

From what I can tell this doesn't cover all our uses cases below where we want to markup dates without a year or times without a second.

Use Cases

Dates (w/o year)

With dates the numbers for day and month are rendered differently, e.g. using either the upper for or the lower for dots of the Braille cell. The month should use the lower for dots and the day should be use the normal number notation without number sign

  • Example input: "Der 16. 1. dieses Jahres" ("The 1/16 of this year")
  • Desired output: "DER #,+A DIESES JAHRES"

Dates (with year)

The day should use the lower for dots and the month should be use the normal number notation without number sign. The year is standard Braille number including number sign. This covered by the current proposal.

  • Example input: "Am 16. 1. 2010 geht's los."
  • Desired output: "AM #,+A#BJAJ GEHT'S LOS."

Time (w/o seconds)

A time notation such as 17:30 should be rendered such that the colon is replaced with a dot. Note that we do not specify the seconds here.

  • Example input: "Geboren um 17:30" (Born at half past five)
  • Desired output: "GEBOREN UM #AF.CJ"

Markup proposals

Of the above use cases only #Dates (with year) is covered by the current proposal, using something along the line of

 Am <date date="2010-01-16">16. 1. 2010</date> geht's los.

For dates without a year (#Dates (w/o year)) we cannot use the current proposal as it requires you to specify a year. We would need something along the lines of

 Der <date gMonthDay="--01-16">16. 1.</date> dieses Jahres

For times without seconds (#Time (w/o seconds)) we also cannot use the current proposal as that requires us to specify the seconds. A naive proposal would be something along the lines of

 Geboren <time hour="17" minute="30"></time>.
Personal tools