Skip to content

Commit

Permalink
update bibtex entry keys ref #13811
Browse files Browse the repository at this point in the history
Signed-off-by: m-kro <[email protected]>
  • Loading branch information
m-kro committed Dec 6, 2024
1 parent 3d5d7f3 commit c4ec1b7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
12 changes: 6 additions & 6 deletions docs/sumo.bib
Original file line number Diff line number Diff line change
Expand Up @@ -3271,7 +3271,7 @@ @Article{BiekerEtAl2015
}


@Article{CodecàEtAl2015,
@Article{CodecaEtAl2015,
author = {Lara Codecà and Raphaël Frank and T. Engel},
year = {2015},
title = {Luxembourg SUMO Traffic (LuST) Scenario: 24 hours of mobility for vehicular networking research},
Expand Down Expand Up @@ -3323,7 +3323,7 @@ @Article{SainiEtAl2015
}


@Article{GuériauEtAl2016,
@Article{GueriauEtAl2016,
author = {Maxime Guériau and Romain Billot and Nour-Eddin El Faouzi and Julien Monteil and Frederic Armetta and S. Hassas},
year = {2016},
title = {How to assess the benefits of connected vehicles? A simulation framework for the design of cooperative traffic management strategies},
Expand Down Expand Up @@ -3408,7 +3408,7 @@ @Article{AminiEtAl2017
}


@Article{D'AndreaAndMarcelloni2017,
@Article{DAndreaAndMarcelloni2017,
author = {Eleonora D'Andrea and F. Marcelloni},
year = {2017},
title = {Detection of traffic congestion and incidents from GPS trace analysis},
Expand Down Expand Up @@ -3537,7 +3537,7 @@ @Article{LiangEtAl2018
}


@Article{LópezEtAl2018,
@Article{LopezEtAl2018,
author = {Pablo Álvarez López and M. Behrisch and Laura Bieker-Walz and J. Erdmann and Y. Flötteröd and Robert Hilbrich and L. Lücken and Johannes Rummel and P. Wagner and Evamarie WieBner},
year = {2018},
title = {Microscopic Traffic Simulation using SUMO},
Expand Down Expand Up @@ -3613,7 +3613,7 @@ @Article{LuEtAl2019_0
}


@Article{Millard‐Ball2019,
@Article{MillardBall2019,
author = {A. Millard‐Ball},
year = {2019},
title = {The autonomous vehicle parking problem},
Expand Down Expand Up @@ -3865,7 +3865,7 @@ @Article{YuanAndLi2021
}


@Article{ChenAndKrähenbühl2022,
@Article{ChenAndKrahenbuhl2022,
author = {Dian Chen and Philipp Krähenbühl},
year = {2022},
title = {Learning from All Vehicles},
Expand Down
4 changes: 1 addition & 3 deletions tools/build_config/bibtexUpdate.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def main(options):


def formatName(name):
return u"".join([unicodedata.normalize("NFD", x)[0] for x in name if x not in ("'", "‐")])
return u"".join([unicodedata.normalize("NFKD", x)[0] for x in name if x not in ("'", "‐")])


def getRelevantKeyWords(paper, keywords):
Expand All @@ -241,8 +241,6 @@ def toBibTexBlock(paper, groups=""):
authors = [a["name"].strip() for a in paper["authors"]]
lastNames = [a[a.rindex(" ")+1:] for a in [formatName(author) for author in authors]]
citKey = "%s%d" % ("%sEtAl" % lastNames[0] if len(lastNames) > 2 else "And".join(lastNames), paper["year"])
# authors = [" ".join(["{%s}" % name if name[0].isupper() else name for name in author.split(" ")])
# for author in authors]
entry = bibtexparser.model.Entry(getBibtexType(paper["publicationTypes"]), citKey, [])
entry.set_field(bibtexparser.model.Field("author", " and ".join(authors)))
entry.set_field(bibtexparser.model.Field("year", paper["year"]))
Expand Down

0 comments on commit c4ec1b7

Please sign in to comment.