Skip to content

Commit

Permalink
Merge pull request #40 from DeveloperPaul123/fix/no-space-for-chinese…
Browse files Browse the repository at this point in the history
…-and-japanese

No space between first and last name for Japanese and Chinese languages
  • Loading branch information
DeveloperPaul123 authored Jul 8, 2024
2 parents 70e7f9c + 4cefe9c commit d97b816
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 @@ -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)
]
Expand Down Expand Up @@ -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]
]

]
]
]
Expand Down

0 comments on commit d97b816

Please sign in to comment.