Respec: auto normalize references

Created on 27 Feb 2018  路  6Comments  路  Source: w3c/respec

today, if you have:

[[html]] and <a data-cite="HTML">

Or variance in the above, ReSpec warns:

"[HTML] is referenced in 2 ways: ('HTML', 'html'). This causes duplicate entries in the References section."

This is annoying for a number of reasons:

  1. finding the culprit duplicate can be really hard in a large document. Specs can be thousands of lines long, and contain 50-100 citations.
  2. Clearly, ReSpec knows the two are clashing - so it should just automatically fix the problem (just use the first encountered convention) and avoid adding duplicate entries to the bibliography.

Most helpful comment

Can be solved whenever :) It should be fairly simple to fix.

All 6 comments

Is this to be solved here or can it be a part of #1502 (module rewrite) ?

Same question

Can be solved whenever :) It should be fairly simple to fix.

WebIDL issue! I'd love to work on this please @marcoscaceres

Starting point is:
https://github.com/w3c/respec/blob/develop/src/core/inlines.js#L67-L87

And where the warning happens:
https://github.com/w3c/respec/blob/develop/src/core/biblio.js#L182-L189

Somewhere in the above (you whomever works on it), normalization of the reference needs to happen.

Accidentally closed. Reopening

Was this page helpful?
0 / 5 - 0 ratings

Related issues

marcoscaceres picture marcoscaceres  路  6Comments

jnurthen picture jnurthen  路  6Comments

sidvishnoi picture sidvishnoi  路  4Comments

marcoscaceres picture marcoscaceres  路  7Comments

marcoscaceres picture marcoscaceres  路  3Comments