draft-h2h.txt

draft-h2h.txt

[1] H2H の仕様案 draft-h2h.txt タイムスタンプ


Block Element

  CITE
    Semantics: Citation.
    Parameter: @{default} | source | uri
    HTML: div element.
    Link: ok (discouraged)
    Text: source as ${CHAR} (discouraged)
    Content: ${inline} | ${block}
  
  DIV
    Semantics: Content group.
    Parameter: @{default}
    HTML: div element.
    Content: ${CHAR} | ${inline} | ${block}
  
  P
    Semantics: A paragraph.
    Parameter: @{default}
    HTML: p element.
    Content: ${CHAR} | ${inline}
    
      End command (/P) is optional.
    
    Example:
      
      P
      hogehoge
      /P
      P
      foo
      P {class => fooclass}
      This paragraph is viewed as red text.
      /P
  
  FN {@{default}}
  ${CHAR} | ${inline}
  /FN

Inline/Block command

  DEL {@{default},date} ${CHAR}
  
  DEL {@{default},date}
  ${block}
  /DEL
  
  INS {@{default},date} ${CHAR}
  
  INS {@{default},date}
  ${block}
  /INS
  
  YAMI {@{default}} ${CHAR}
  
  YAMI {@{default}}
  ${block}
  /YAMI

Inline command

  ABBR {@{default}} $${CHAR} ${CHAR}
  ACRONYM {@{default}} $${CHAR} ${CHAR}
  LDIARY {@{default}} ${CHAR} $${CHAR}
  LIMG {@{default}} ${URI} n ${URI} $${CHAR}
  LINK {@{default}} ${URI} $${CHAR}
  LMG {@{default}} ${URI} $${CHAR}
  PERSON {@{default}} ${ID} $${CHAR}
  RUBY {@{default},position} $${CHAR} $${CHAR}
  SEE {@{default}} ${ID} $${CHAR}
  SPAN {@{default}} $${CHAR}
  STRONG {@{default}} $${CHAR}
  !
  !#
  
  ABBR+ {@{default}} ${CHAR}
  ${CHAR} | ${inline}
  /ABBR
  
  RUBY+ {@{default}}
  RB
  ${CHAR} | ${inline}
  /RB
  RT {@{default},position}
  ${CHAR} | ${inline}
  /RT
  /RUBY

Parameter value

  Parameter names are usualy small-case.

  class
    Semantics: Style class.
    HTML: class attribute.
    Content: [A-Za-z_-][A-Za-z0-9_-]*
  
  id
    Semantics: Unique ID.
    HTML: id attribute.
    Content: [A-Za-z_-][A-Za-z0-9_-]*
  
  source  (CITE command)
    Semantics: Description of cited document.
    HTML: cite element.
    Content: ${CHAR}
  
  title
    Semantics: Additional information of command content.
    HTML: title attribute.
    Content: ${CHAR}
  
  uri
    Semantics: URI of cited document.
    HTML: cite attribute.
    Content: ${URI}
  
  
  @{default} = (id, class, title);
    
    With most of commands you can use these parameter.

TABLE
HEAD
$str(?:\t$str)+
/HEAD
$str(?:\t$str)+
/TABLE
VOTE