Skip to content

Commit

Permalink
Change personal-name to given-name
Browse files Browse the repository at this point in the history
  • Loading branch information
andres-gimenez committed Mar 29, 2024
1 parent e3c713c commit 4a74ba5
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion examples/exam-localization.typ
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
page: [],
page-counter-display: "1 - 1",
family-name: "*Family* _name_",
personal-name: "*Personal* _name_",
given-name: "*Given* _name_",
group: [*Classroom*],
date: [*Date* of exam]
),
Expand Down
8 changes: 4 additions & 4 deletions src/auxiliary.typ
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#let __g-student-data(show-line-two: true) = {
locate(loc => {
[#__g-localization.final(loc).family-name: #box(width: 2fr, repeat[.]) #__g-localization.final(loc).personal-name: #box(width:1fr, repeat[.])]
[#__g-localization.final(loc).family-name: #box(width: 2fr, repeat[.]) #__g-localization.final(loc).given-name: #box(width:1fr, repeat[.])]
if show-line-two {
v(1pt)
align(right, [#__g-localization.final(loc).group: #box(width:2.5cm, repeat[.]) #__g-localization.final(loc).date: #box(width:3cm, repeat[.])])
Expand Down Expand Up @@ -135,7 +135,7 @@
page: none,
page-counter-display: none,
family-name: none,
personal-name: none,
given-name: none,
group: none,
date: none
)) => {
Expand Down Expand Up @@ -163,7 +163,7 @@
let __page = __read-localization_value(read_lang_data: __read_lang_data, field: "page", localization: localization)
let __page-counter-display = __read-localization_value(read_lang_data: __read_lang_data, field: "page-counter-display", localization: localization)
let __family_name = __read-localization_value(read_lang_data: __read_lang_data, field: "family-name", localization: localization)
let __personal_name = __read-localization_value(read_lang_data: __read_lang_data, field: "personal-name", localization: localization)
let __given_name_name = __read-localization_value(read_lang_data: __read_lang_data, field: "given-name", localization: localization)
let __group = __read-localization_value(read_lang_data: __read_lang_data, field: "group", localization: localization)
let __date = __read-localization_value(read_lang_data: __read_lang_data, field: "date", localization: localization)

Expand All @@ -177,7 +177,7 @@
page: __page,
page-counter-display: __page-counter-display,
family-name: __family_name,
personal-name: __personal_name,
given-name: __given_name,
group: __group,
date: __date,
)
Expand Down
2 changes: 1 addition & 1 deletion src/g-exam.typ
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
page: none,
page-counter-display: none,
family-name: none,
personal-name: none,
given-name: none,
group: none,
date: none
),
Expand Down
2 changes: 1 addition & 1 deletion src/global.typ
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
page: "Page",
page-counter-display: "1 of 1",
family-name: "Surname",
personal-name: "Name",
given-name: "Name",
group: "Group",
date: "Date"
)
Expand Down
12 changes: 6 additions & 6 deletions src/lang.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ points = "points"
page = "Page"
page-counter-display = "1 of 1"
family-name = "Surname"
personal-name = "Name"
given-name = "Name"
group = "Group"
date = "Date"

Expand All @@ -22,7 +22,7 @@ points = "puntos"
page = "Página"
page-counter-display = "1 de 1"
family-name = "Apellidos"
personal-name = "Nombre"
given-name = "Nombre"
group = "Grupo"
date = "Fecha"

Expand All @@ -36,7 +36,7 @@ points = "points"
page = "Seite"
page-counter-display = "1 von 1"
family-name = "Nachname"
personal-name = "Vor-und"
given-name = "Vor-und"
group = "Gruppe"
date = "Datum"

Expand All @@ -50,7 +50,7 @@ points = "aiguillage"
page = "Page"
page-counter-display = "1 sur 1"
family-name = "Prénom"
personal-name = "Nom"
given-name = "Nom"
group = "Groupe"
date = "Date"

Expand All @@ -64,7 +64,7 @@ points = "pontos"
page = "Página"
page-counter-display = "1 de 1"
family-name = "Apelido"
personal-name = "Nome"
given-name = "Nome"
group = "Grupo"
date = "Data"

Expand All @@ -78,6 +78,6 @@ points = "punti"
page = "Pagina"
page-counter-display = "1 di 1"
family-name = "Cognome"
personal-name = "Nome"
given-name = "Nome"
group = "Gruppo"
date = "Dattero"

0 comments on commit 4a74ba5

Please sign in to comment.