From a2ac2cfb1869c710bd9da756970701f2c27b15d7 Mon Sep 17 00:00:00 2001 From: Paul T Date: Sun, 23 Jun 2024 20:03:42 -0400 Subject: [PATCH 1/2] fix: no space for name when language is zh or jp For chinese and japanese, don't use a space between the firstname and lastname --- lib.typ | 31 +++++++++++++++++++++++-------- 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/lib.typ b/lib.typ index 07db6cf..9940af6 100644 --- a/lib.typ +++ b/lib.typ @@ -169,8 +169,11 @@ #smallcaps[#date] ][ #smallcaps[ - #author.firstname - #author.lastname + #if language == "zh" or language == "ja" [ + #author.firstname#author.lastname + ] else [ + #author.firstname#sym.space#author.lastname + ] #sym.dot.c #linguify("resume", from: lang_data) ] @@ -241,8 +244,12 @@ style: "normal", font: ("Roboto"), ) - #text(fill: accent-color, weight: "thin")[#author.firstname] - #text(weight: "bold")[#author.lastname] + #if language == "zh" or language == "ja" [ + #text(accent-color, weight: "thin")[#author.firstname]#text(weight: "bold")[#author.lastname] + ] else [ + #text(accent-color, weight: "thin")[#author.firstname] + #text(weight: "bold")[#author.lastname] + ] ] ] ] @@ -450,8 +457,11 @@ #smallcaps[#date] ][ #smallcaps[ - #author.firstname - #author.lastname + #if language == "zh" or language == "ja" [ + #author.firstname#author.lastname + ] else [ + #author.firstname#sym.space#author.lastname + ] #sym.dot.c #linguify("cover-letter", from: lang_data) ] @@ -499,8 +509,13 @@ style: "normal", font: ("Roboto"), ) - #text(accent-color, weight: "thin")[#author.firstname] - #text(weight: "bold")[#author.lastname] + #if language == "zh" or language == "ja" [ + #text(accent-color, weight: "thin")[#author.firstname]#text(weight: "bold")[#author.lastname] + ] else [ + #text(accent-color, weight: "thin")[#author.firstname] + #text(weight: "bold")[#author.lastname] + ] + ] ] ] From 53f3b721b2ba36f4e7c488bf715ad9b1e3b86bdb Mon Sep 17 00:00:00 2001 From: Paul T Date: Sun, 23 Jun 2024 20:03:42 -0400 Subject: [PATCH 2/2] fix: no space for name when language is zh or jp For chinese and japanese, don't use a space between the firstname and lastname --- lib.typ | 31 +++++++++++++++++++++++-------- 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/lib.typ b/lib.typ index 01633de..adebe2c 100644 --- a/lib.typ +++ b/lib.typ @@ -169,8 +169,11 @@ #smallcaps[#date] ][ #smallcaps[ - #author.firstname - #author.lastname + #if language == "zh" or language == "ja" [ + #author.firstname#author.lastname + ] else [ + #author.firstname#sym.space#author.lastname + ] #sym.dot.c #linguify("resume", from: lang_data) ] @@ -241,8 +244,12 @@ style: "normal", font: ("Roboto"), ) - #text(fill: accent-color, weight: "thin")[#author.firstname] - #text(weight: "bold")[#author.lastname] + #if language == "zh" or language == "ja" [ + #text(accent-color, weight: "thin")[#author.firstname]#text(weight: "bold")[#author.lastname] + ] else [ + #text(accent-color, weight: "thin")[#author.firstname] + #text(weight: "bold")[#author.lastname] + ] ] ] ] @@ -452,8 +459,11 @@ #smallcaps[#date] ][ #smallcaps[ - #author.firstname - #author.lastname + #if language == "zh" or language == "ja" [ + #author.firstname#author.lastname + ] else [ + #author.firstname#sym.space#author.lastname + ] #sym.dot.c #linguify("cover-letter", from: lang_data) ] @@ -501,8 +511,13 @@ style: "normal", font: ("Roboto"), ) - #text(accent-color, weight: "thin")[#author.firstname] - #text(weight: "bold")[#author.lastname] + #if language == "zh" or language == "ja" [ + #text(accent-color, weight: "thin")[#author.firstname]#text(weight: "bold")[#author.lastname] + ] else [ + #text(accent-color, weight: "thin")[#author.firstname] + #text(weight: "bold")[#author.lastname] + ] + ] ] ]