Skip to content

Commit

Permalink
fix: no space for name when language is zh or jp
Browse files Browse the repository at this point in the history
For chinese and japanese, don't use a space between the firstname and lastname
  • Loading branch information
DeveloperPaul123 committed Jun 24, 2024
1 parent 6f3a515 commit a2ac2cf
Showing 1 changed file with 23 additions and 8 deletions.
31 changes: 23 additions & 8 deletions lib.typ
Original file line number Diff line number Diff line change
Expand Up @@ -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)
]
Expand Down Expand Up @@ -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]
]
]
]
]
Expand Down Expand Up @@ -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)
]
Expand Down Expand Up @@ -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]
]

]
]
]
Expand Down

0 comments on commit a2ac2cf

Please sign in to comment.