From: Ralph Giles Date: Mon, 28 Nov 2005 00:58:48 +0000 (+0000) Subject: Harmonize the spec and stand-alone versions of the comment header docs. X-Git-Tag: v1.3.3~439 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=723ff552dff9e6e57f782d1713c1e4465a22c606;p=platform%2Fupstream%2Flibvorbis.git Harmonize the spec and stand-alone versions of the comment header docs. svn path=/trunk/vorbis/; revision=10468 --- diff --git a/doc/v-comment.html b/doc/v-comment.html index 0e995fe..e654004 100644 --- a/doc/v-comment.html +++ b/doc/v-comment.html @@ -89,7 +89,7 @@ they turn out to be, eg:

"Honest Bob and the Factory-to-Dealer-Incentives, _I'm Still Around_, -opening for Moxy Fruvous, 1997" +opening for Moxy Früvous, 1997"

Comment encoding

@@ -101,8 +101,8 @@ number of vectors is bounded to 2^32-1 and the length of each vector is limited to 2^32-1 bytes. The vector length is encoded; the vector contents themselves are not null terminated. In addition to the vector list, there is a single vector for vendor name (also 8 bit clean, -length encoded in 32 bits). Libvorbis currently sets the vendor string -to "Xiph.Org libVorbis I 20020717".

+length encoded in 32 bits). For example, the 1.0 release of libvorbis +set the vendor string to "Xiph.Org libVorbis I 20020717".

The comment header is decoded as follows:

@@ -118,14 +118,14 @@ to "Xiph.Org libVorbis I 20020717".

} 7) [framing_bit] = read a single bit as boolean - 8) if ( [framing_bit] unset or end of packet ) then ERROR + 8) if ( [framing_bit] unset or end of packet ) then ERROR 9) done.

Content vector format

The comment vectors are structured similarly to a UNIX environment variable. -That is, comment fields consist of a field name and a field value and +That is, comment fields consist of a field name and a corresponding value and look like:

@@ -138,10 +138,10 @@ comment[1]="TITLE=the sound of Vorbis";
 0x7D, 0x3D ('=') excluded. ASCII 0x41 through 0x5A inclusive (A-Z) is
 to be considered equivalent to ASCII 0x61 through 0x7A inclusive
 (a-z).
-
  • The field name is immediately followed by ASCII 0x3D ('='); this -equals sign is used to terminate the field name.
  • -
  • 0x3D is followed by 8 bit clean UTF-8 encoded field contents -to the end of the field.
  • +
  • The field name is immediately followed by ASCII 0x3D ('='); +this equals sign is used to terminate the field name.
  • +
  • 0x3D is followed by the 8 bit clean UTF-8 encoded value of the +field contents to the end of the field.
  • Field names

    @@ -221,8 +221,9 @@ ISRC intro page for more information on ISRC numbers.