From 553a59fd6ffdf982edfb3efb82d7456329bb4ccd Mon Sep 17 00:00:00 2001 From: wodeni Date: Thu, 27 Jun 2024 11:42:03 -0400 Subject: [PATCH] feat: allow custom author display names --- src/App.tsx | 2 ++ src/Papers.ts | 3 +++ 2 files changed, 5 insertions(+) diff --git a/src/App.tsx b/src/App.tsx index 8fe6b96..e9ad34f 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -109,6 +109,7 @@ const Publications = () => ( authors, talk, coauthors, + authorDisplayNames, series, slides, id, @@ -123,6 +124,7 @@ const Publications = () => (
{authors + .map((a, i) => authorDisplayNames?.get(i) ?? a) .map((a) => (coauthors?.includes(a) ? `${a}*` : a)) .map((a) => a === "Wode Ni" || a === "Wode Ni*" ? {a} : a diff --git a/src/Papers.ts b/src/Papers.ts index c8a6493..75eda0e 100644 --- a/src/Papers.ts +++ b/src/Papers.ts @@ -17,6 +17,8 @@ interface PaperMeta { talk?: string; slides?: string; coauthors?: string[]; + // map bibtex strings to unicode strings + authorDisplayNames?: Map; bibtex?: string; } interface Papers { @@ -34,6 +36,7 @@ const entries: Papers = { "minkowski-2024": { type: "conference", pdf: new URL("/assets/siggraph-24-minkowski.pdf", import.meta.url).href, + authorDisplayNames: new Map([[0, "Jiří Minarčík"]]), }, "stsearch-2024": { type: "conference",