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
This commit is contained in:
25
lib.typ
25
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,11 +244,15 @@
|
||||
style: "normal",
|
||||
font: ("Roboto"),
|
||||
)
|
||||
#text(fill: accent-color, weight: "thin")[#author.firstname]
|
||||
#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]
|
||||
]
|
||||
]
|
||||
]
|
||||
]
|
||||
}
|
||||
|
||||
let positions = {
|
||||
@@ -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,9 +511,14 @@
|
||||
style: "normal",
|
||||
font: ("Roboto"),
|
||||
)
|
||||
#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]
|
||||
]
|
||||
|
||||
]
|
||||
]
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user