Skip to content

Commit

Permalink
[] (0) Make the BibTeX 'author' and 'editor' fields take individual v…
Browse files Browse the repository at this point in the history
…alues. (bug 6937)

git-svn-id: http://svn.whatwg.org/webapps@3173 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jun 2, 2009
1 parent 54ffae4 commit b7f5907
Show file tree
Hide file tree
Showing 2 changed files with 136 additions and 61 deletions.
79 changes: 53 additions & 26 deletions index
Expand Up @@ -43387,21 +43387,20 @@ document.body.appendChild(outer);</pre>

<dd>

<p>Gives the name of the authors of the work cited by the
<p>Gives the name of one of the authors of the work cited by the
bibliographic entry.</p>

<p>The <a href=#concept-property-value title=concept-property-value>value</a> must be
text.</p>

<!-- which should be a list of names, separated by "and", with the
weird BibTeX names form:
<!-- which should be in the weird BibTeX names form:
First last-prefix Last
last-prefix Last, First
last-prefix Last, last-suffix, First
http://artis.inrialpes.fr/~Xavier.Decoret/resources/xdkbibtex/bibtex_summary.html#names
...and with "others" as the last name if there's more than listed. -->

<p>A single property with the name <code title=md-bibtex-author><a href=#md-bibtex-author>author</a></code> may be present within each
<p>Any number of properties with the name <code title=md-bibtex-author><a href=#md-bibtex-author>author</a></code> may be present within each
<a href=#concept-item title=concept-item>item</a> with the type <code title=md-bibtex><a href=#md-bibtex>bibtex</a></code>. When such an <a href=#concept-item title=concept-item>item</a> has an <code title=md-bibtex-entrytype><a href=#md-bibtex-entrytype>entrytype</a></code> property whose value
is one of <code title=md-bibtex-entrytype-article><a href=#md-bibtex-entrytype-article>article</a></code>, <code title=md-bibtex-entrytype-incollection><a href=#md-bibtex-entrytype-incollection>incollection</a></code>,
<code title=md-bibtex-entrytype-inproceedings><a href=#md-bibtex-entrytype-inproceedings>inproceedings</a></code>,
Expand Down Expand Up @@ -43483,15 +43482,15 @@ document.body.appendChild(outer);</pre>

<dd>

<p>Gives the name of the editors of the work cited by the
<p>Gives the name of one of the editors of the work cited by the
bibliographic entry.</p>

<p>The <a href=#concept-property-value title=concept-property-value>value</a> must be
text.</p>

<!-- see note at "author" -->

<p>A single property with the name <code title=md-bibtex-editor><a href=#md-bibtex-editor>editor</a></code> may be present within each
<p>Any number of properties with the name <code title=md-bibtex-editor><a href=#md-bibtex-editor>editor</a></code> may be present within each
<a href=#concept-item title=concept-item>item</a> with the type <code title=md-bibtex><a href=#md-bibtex>bibtex</a></code>. When such an <a href=#concept-item title=concept-item>item</a> has an <code title=md-bibtex-entrytype><a href=#md-bibtex-entrytype>entrytype</a></code> property whose value
is one of <code title=md-bibtex-entrytype-book><a href=#md-bibtex-entrytype-book>book</a></code> or
<code title=md-bibtex-entrytype-inbook><a href=#md-bibtex-entrytype-inbook>inbook</a></code> and has no
Expand Down Expand Up @@ -45094,6 +45093,29 @@ document.body.appendChild(outer);</pre>
<li><p>Append a U+002C COMMA character (,) and a U+000A LINE FEED
(LF) character to <var title="">output</var>.</li>

<li>

<p>Run the following substeps, first with <var title="">name</var> set to the string "<code title=md-bibtex-author><a href=#md-bibtex-author>author</a></code>", and then with <var title="">name</var> set to the string "<code title=md-bibtex-editor><a href=#md-bibtex-editor>editor</a></code>":</p>

<ol><li><p>If there is no property with the name given by <var title="">name</var> whose <a href=#concept-item-corresponding title=concept-item-corresponding>corresponding item</a> is
<var title="">node</var> and whose <a href=#concept-property-value title=concept-property-value>value</a> is not an <a href=#concept-item title=concept-item>item</a>, skip these substeps for this
value of <var title="">name</var>.</li>

<li><p>Let <var title="">value</var> be the result of
concatentating the <a href=#concept-property-value title=concept-property-value>values</a> of all the
properties with the name given by <var title="">name</var> whose
<a href=#concept-item-corresponding title=concept-item-corresponding>corresponding
item</a> is <var title="">node</var>, excluding any whose
values are themselves <a href=#concept-item title=concept-item>items</a>,
separating each value with the five-character string "<code title="">&nbsp;and&nbsp;</code>" (that is, U+0020 SPACE, U+0061
LATIN SMALL LETTER A, U+006E LATIN SMALL LETTER N, U+0064 LATIN
SMALL LETTER D, U+0020 SPACE).</li>

<li><p><a href=#output-the-bibtex-name-value-pair>Output the BibTeX name-value pair</a> given by
<var title="">name</var> and <var title="">value</var>.</li>

</ol></li>

<li>

<p>For each element <var title="">element</var> that has one or
Expand All @@ -45102,8 +45124,7 @@ document.body.appendChild(outer);</pre>
in <var title="">element</var>'s <a href=#property-names>property names</a>, run
the appropriate set of substeps from the following list:</p>

<ol><li><p>If <var title="">name</var> is equal to the string "<code title=md-about><a href=#md-about>about</a></code>", "<code title=md-bibtex-entrytype><a href=#md-bibtex-entrytype>entrytype</a></code>", or "<code title=md-bibtex-bibtex-id><a href=#md-bibtex-bibtex-id>bibtex-id</a></code>", skip this
name.</li>
<ol><li><p>If <var title="">name</var> is equal to the string "<code title=md-about><a href=#md-about>about</a></code>", "<code title=md-bibtex-entrytype><a href=#md-bibtex-entrytype>entrytype</a></code>", "<code title=md-bibtex-bibtex-id><a href=#md-bibtex-bibtex-id>bibtex-id</a></code>", "<code title=md-bibtex-author><a href=#md-bibtex-author>author</a></code>", or "<code title=md-bibtex-editor><a href=#md-bibtex-editor>editor</a></code>", skip this name.</li>

<li><p>If <var title="">name</var> contains either a U+003A COLON
character (:) or a U+002E FULL STOP character (.), skip this
Expand All @@ -45113,34 +45134,40 @@ document.body.appendChild(outer);</pre>
of the property is itself an <a href=#concept-item title=concept-item>item</a>, then skip this
property.</li>

<li><p>Append two U+0020 SPACE characters to <var title="">output</var>.</li>
<li><p>Let <var title="">value</var> be the <a href=#concept-property-value title=concept-property-value>value</a> of the
property.</li>

<li><p>Append <var title="">name</var> to <var title="">output</var>.</li>
<li><p><a href=#output-the-bibtex-name-value-pair>Output the BibTeX name-value pair</a> given by
<var title="">name</var> and <var title="">value</var>.</li>

<li><p>Append a U+0020 SPACE character, a U+003D EQUALS SIGN
character (=), and another U+0020 SPACE character to <var title="">output</var>.</li>
</ol></li>

<li><p>Let <var title="">value</var> be the <a href=#concept-property-value title=concept-property-value>value</a> of the
property.</li>
<li><p>Append a U+007D RIGHT CURLY BRACKET character (}) to <var title="">output</var>.</li>

<li><p>Replace all occurrences of the U+0022 QUOTATION MARK
character (") in <var title="">value</var> with the
three-character sequence "<code title="">{"}</code>" (U+007B LEFT
CURLY BRACKET, U+0022 QUOTATION MARK, U+007D RIGHT CURLY
BRACKET).</li>
</ol><p>When the user agent is to <dfn id=output-the-bibtex-name-value-pair>output the BibTeX name-value
pair</dfn> given by <var title="">name</var> and <var title="">value</var>, it must run the following steps:</p>

<li><p>Append a U+0022 QUOTATION MARK character (") to <var title="">output</var>.</li>
<ol><li><p>Append two U+0020 SPACE characters to <var title="">output</var>.</li>

<li><p>Append <var title="">value</var> to <var title="">output</var>.</li>
<li><p>Append <var title="">name</var> to <var title="">output</var>.</li>

<li><p>Append a U+0022 QUOTATION MARK character (") to <var title="">output</var>.</li>
<li><p>Append a U+0020 SPACE character, a U+003D EQUALS SIGN
character (=), and another U+0020 SPACE character to <var title="">output</var>.</li>

<li><p>Append a U+002C COMMA character (,) and a U+000A LINE FEED
(LF) character to <var title="">output</var>.</li>
<li><p>Replace all occurrences of the U+0022 QUOTATION MARK
character (") in <var title="">value</var> with the
three-character sequence "<code title="">{"}</code>" (U+007B LEFT
CURLY BRACKET, U+0022 QUOTATION MARK, U+007D RIGHT CURLY
BRACKET).</li>

</ol></li>
<li><p>Append a U+0022 QUOTATION MARK character (") to <var title="">output</var>.</li>

<li><p>Append aU+007D RIGHT CURLY BRACKET character (}) to <var title="">output</var>.</li>
<li><p>Append <var title="">value</var> to <var title="">output</var>.</li>

<li><p>Append a U+0022 QUOTATION MARK character (") to <var title="">output</var>.</li>

<li><p>Append a U+002C COMMA character (,) and a U+000A LINE FEED
(LF) character to <var title="">output</var>.</li>

</ol><h4 id=atom><span class=secno>5.5.6 </span>Atom</h4>

Expand Down
118 changes: 83 additions & 35 deletions source
Expand Up @@ -49044,21 +49044,20 @@ document.body.appendChild(outer);</pre>

<dd>

<p>Gives the name of the authors of the work cited by the
<p>Gives the name of one of the authors of the work cited by the
bibliographic entry.</p>

<p>The <span title="concept-property-value">value</span> must be
text.</p>

<!-- which should be a list of names, separated by "and", with the
weird BibTeX names form:
<!-- which should be in the weird BibTeX names form:
First last-prefix Last
last-prefix Last, First
last-prefix Last, last-suffix, First
http://artis.inrialpes.fr/~Xavier.Decoret/resources/xdkbibtex/bibtex_summary.html#names
...and with "others" as the last name if there's more than listed. -->

<p>A single property with the name <code
<p>Any number of properties with the name <code
title="md-bibtex-author">author</code> may be present within each
<span title="concept-item">item</span> with the type <code
title="md-bibtex">bibtex</code>. When such an <span
Expand Down Expand Up @@ -49163,15 +49162,15 @@ document.body.appendChild(outer);</pre>

<dd>

<p>Gives the name of the editors of the work cited by the
<p>Gives the name of one of the editors of the work cited by the
bibliographic entry.</p>

<p>The <span title="concept-property-value">value</span> must be
text.</p>

<!-- see note at "author" -->

<p>A single property with the name <code
<p>Any number of properties with the name <code
title="md-bibtex-editor">editor</code> may be present within each
<span title="concept-item">item</span> with the type <code
title="md-bibtex">bibtex</code>. When such an <span
Expand Down Expand Up @@ -51320,6 +51319,43 @@ document.body.appendChild(outer);</pre>
<li><p>Append a U+002C COMMA character (,) and a U+000A LINE FEED
(LF) character to <var title="">output</var>.</p></li>

<li>

<p>Run the following substeps, first with <var
title="">name</var> set to the string "<code
title="md-bibtex-author">author</code>", and then with <var
title="">name</var> set to the string "<code
title="md-bibtex-editor">editor</code>":</p>

<ol>

<li><p>If there is no property with the name given by <var
title="">name</var> whose <span
title="concept-item-corresponding">corresponding item</span> is
<var title="">node</var> and whose <span
title="concept-property-value">value</span> is not an <span
title="concept-item">item</span>, skip these substeps for this
value of <var title="">name</var>.</p></li>

<li><p>Let <var title="">value</var> be the result of
concatentating the <span
title="concept-property-value">values</span> of all the
properties with the name given by <var title="">name</var> whose
<span title="concept-item-corresponding">corresponding
item</span> is <var title="">node</var>, excluding any whose
values are themselves <span title="concept-item">items</span>,
separating each value with the five-character string "<code
title="">&nbsp;and&nbsp;</code>" (that is, U+0020 SPACE, U+0061
LATIN SMALL LETTER A, U+006E LATIN SMALL LETTER N, U+0064 LATIN
SMALL LETTER D, U+0020 SPACE).</p></li>

<li><p><span>Output the BibTeX name-value pair</span> given by
<var title="">name</var> and <var title="">value</var>.</p></li>

</ol>

</li>

<li>

<p>For each element <var title="">element</var> that has one or
Expand All @@ -51333,9 +51369,10 @@ document.body.appendChild(outer);</pre>

<li><p>If <var title="">name</var> is equal to the string "<code
title="md-about">about</code>", "<code
title="md-bibtex-entrytype">entrytype</code>", or "<code
title="md-bibtex-bibtex-id">bibtex-id</code>", skip this
name.</p></li>
title="md-bibtex-entrytype">entrytype</code>", "<code
title="md-bibtex-bibtex-id">bibtex-id</code>", "<code
title="md-bibtex-author">author</code>", or "<code
title="md-bibtex-editor">editor</code>", skip this name.</p></li>

<li><p>If <var title="">name</var> contains either a U+003A COLON
character (:) or a U+002E FULL STOP character (.), skip this
Expand All @@ -51346,45 +51383,56 @@ document.body.appendChild(outer);</pre>
title="concept-item">item</span>, then skip this
property.</p></li>

<li><p>Append two U+0020 SPACE characters to <var
title="">output</var>.</p></li>

<li><p>Append <var title="">name</var> to <var
title="">output</var>.</li>

<li><p>Append a U+0020 SPACE character, a U+003D EQUALS SIGN
character (=), and another U+0020 SPACE character to <var
title="">output</var>.</p></li>

<li><p>Let <var title="">value</var> be the <span
title="concept-property-value">value</span> of the
property.</p></li>

<li><p>Replace all occurrences of the U+0022 QUOTATION MARK
character (") in <var title="">value</var> with the
three-character sequence "<code title="">{"}</code>" (U+007B LEFT
CURLY BRACKET, U+0022 QUOTATION MARK, U+007D RIGHT CURLY
BRACKET).</p></li>
<li><p><span>Output the BibTeX name-value pair</span> given by
<var title="">name</var> and <var title="">value</var>.</p></li>

<li><p>Append a U+0022 QUOTATION MARK character (") to <var
title="">output</var>.</p></li>
</ol>

<li><p>Append <var title="">value</var> to <var
title="">output</var>.</p></li>
</li>

<li><p>Append a U+0022 QUOTATION MARK character (") to <var
title="">output</var>.</p></li>
<li><p>Append a U+007D RIGHT CURLY BRACKET character (}) to <var
title="">output</var>.</p></li>

<li><p>Append a U+002C COMMA character (,) and a U+000A LINE FEED
(LF) character to <var title="">output</var>.</p></li>
</ol>

</ol>
<p>When the user agent is to <dfn>output the BibTeX name-value
pair</dfn> given by <var title="">name</var> and <var
title="">value</var>, it must run the following steps:</p>

</li>
<ol>

<li><p>Append two U+0020 SPACE characters to <var
title="">output</var>.</p></li>

<li><p>Append <var title="">name</var> to <var
title="">output</var>.</li>

<li><p>Append aU+007D RIGHT CURLY BRACKET character (}) to <var
<li><p>Append a U+0020 SPACE character, a U+003D EQUALS SIGN
character (=), and another U+0020 SPACE character to <var
title="">output</var>.</p></li>

<li><p>Replace all occurrences of the U+0022 QUOTATION MARK
character (") in <var title="">value</var> with the
three-character sequence "<code title="">{"}</code>" (U+007B LEFT
CURLY BRACKET, U+0022 QUOTATION MARK, U+007D RIGHT CURLY
BRACKET).</p></li>

<li><p>Append a U+0022 QUOTATION MARK character (") to <var
title="">output</var>.</p></li>

<li><p>Append <var title="">value</var> to <var
title="">output</var>.</p></li>

<li><p>Append a U+0022 QUOTATION MARK character (") to <var
title="">output</var>.</p></li>

<li><p>Append a U+002C COMMA character (,) and a U+000A LINE FEED
(LF) character to <var title="">output</var>.</p></li>

</ol>


Expand Down

0 comments on commit b7f5907

Please sign in to comment.