SUMMARY icalendar 中的逗号

Commas in SUMMARY icalendar

在 ics 文档的摘要标签中使用逗号可以吗?

因为我正在使用 calcurse 加载 .ics,它不会加载以逗号分隔的摘要事件。

根据 RFC5545 规范,逗号在那种情况下需要反斜杠。参见:

SUMMARY 在此处定义:https://www.rfc-editor.org/rfc/rfc5545#section-3.8.1.12 截至值类型:TEXT

TEXT 定义在这里:https://www.rfc-editor.org/rfc/rfc5545#section-3.3.11

以上规范的一部分描述了如果您想将某些字符包含在文本值中如何处理它们:

text       = *(TSAFE-CHAR / ":" / DQUOTE / ESCAPED-CHAR)
          ; Folded according to description above

       ESCAPED-CHAR = ("\" / "\;" / "\," / "\N" / "\n")
          ; \ encodes \, \N or \n encodes newline
          ; \; encodes ;, \, encodes ,

       TSAFE-CHAR = WSP / %x21 / %x23-2B / %x2D-39 / %x3C-5B /
                    %x5D-7E / NON-US-ASCII
          ; Any character except CONTROLs not needed by the current
          ; character set, DQUOTE, ";", ":", "\", ","

   Description:  If the property permits, multiple TEXT values are
      specified by a COMMA-separated list of values.

 ...

      The "TEXT" property values may also contain special characters
      that are used to signify delimiters, such as a COMMA character for
      lists of values or a SEMICOLON character for structured values.
      In order to support the inclusion of these special characters in
      "TEXT" property values, they MUST be escaped with a BACKSLASH
      character. ....  A COMMA character in
      a "TEXT" property value MUST be escaped with a BACKSLASH
      character.  ....