>>===== MODE =====>> citation <<===== MODE =====<< Simplified from collapse_CitationNumberRangesInsert.txt >>===== RESULT =====>> [1]–[4] [1]–[4] <<===== RESULT =====<< >>===== CITATION-ITEMS =====>> [ [ { "id": "ITEM-1" }, { "id": "ITEM-2" }, { "id": "ITEM-3" }, { "id": "ITEM-4" } ], [ { "id": "ITEM-2" }, { "id": "ITEM-1" }, { "id": "ITEM-4" }, { "id": "ITEM-3" } ] ] <<===== CITATION-ITEMS =====<< >>===== CSL =====>> <<===== CSL =====<< >>===== INPUT =====>> [ { "id": "ITEM-1", "title": "Paper 1", "type": "book" }, { "id": "ITEM-2", "title": "Paper 2", "type": "book" }, { "id": "ITEM-3", "title": "Paper 3", "type": "book" }, { "id": "ITEM-4", "title": "Paper 4", "type": "book" } ] <<===== INPUT =====<< >>===== VERSION =====>> 1.0 <<===== VERSION =====<<