From da11cd88fa00e326fa6039d2ebbe21e80adeaac6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Mekina?= Date: Mon, 6 Oct 2025 13:16:01 +0200 Subject: [PATCH] rename author gender to author pronouns --- example.typ | 2 +- template/classic/bp.typ | 6 +++--- template/classic/classic.typ | 4 ++-- template/classic/common.typ | 4 ++-- template/lang.typ | 6 +++--- template/template.typ | 8 ++++---- 6 files changed, 15 insertions(+), 15 deletions(-) diff --git a/example.typ b/example.typ index 44d4008..7c011d2 100644 --- a/example.typ +++ b/example.typ @@ -331,7 +331,7 @@ Zvýrazněné hodnoty jsou základní -- pokud vynecháte parametr, pak bude pou - `author` (autor/autoři dokumentu) - Příklad: `"Pavel Novák"` nebo `"Petra Velká, Jindřich Peterka"` #line() -- `author_gender` (jazykový rod autora - není potřeba pro angličtinu, která má základní hodnotu) +- `author_pronouns` (jazykový rod autora - není potřeba pro angličtinu, která má základní hodnotu) - Pro vybraný jazyk _cs_: - `"masculine"` - Mužský rod - `"feminine"` - Ženský rod diff --git a/template/classic/bp.typ b/template/classic/bp.typ index 39cef8b..0e10061 100644 --- a/template/classic/bp.typ +++ b/template/classic/bp.typ @@ -20,7 +20,7 @@ faculty_id, faculty_color, language, assignment_document, citation_file, // document info - title, author, author_gender, supervisor, consultant, study_programme, study_branch, + title, author, author_pronouns, supervisor, consultant, study_programme, study_branch, year_of_study, abstract_content, acknowledgement_content, keywords, content @@ -41,7 +41,7 @@ } assert_not_none(acknowledgement_content, "acknowledgement content"); if language == "cs" { - assert_not_none(author_gender, "author gender"); + assert_not_none(author_pronouns, "author gender"); } assert_type_signature(supervisor, "string | none", "supervisor"); @@ -53,7 +53,7 @@ ); assignment(language, assignment_document); default_styling(false, faculty_color, { - disclaimer(language, faculty_id, "bp", author, author_gender); + disclaimer(language, faculty_id, "bp", author, author_pronouns); abstract("cs", title, abstract_content, keywords); abstract("en", title, abstract_content, keywords); acknowledgement(language, author, acknowledgement_content); diff --git a/template/classic/classic.typ b/template/classic/classic.typ index d5a4977..43ae34c 100644 --- a/template/classic/classic.typ +++ b/template/classic/classic.typ @@ -12,7 +12,7 @@ language, faculty_id, document_type, citation_file, assignment_document, // document info - title, author, author_gender, supervisor, consultant, study_programme, study_branch, + title, author, author_pronouns, supervisor, consultant, study_programme, study_branch, year_of_study, abstract, acknowledgement, keywords, // content @@ -37,7 +37,7 @@ map_none(citation_file, (v) => "../../" + v), title, author, - author_gender, + author_pronouns, supervisor, consultant, study_programme, diff --git a/template/classic/common.typ b/template/classic/common.typ index 6e29936..45f23ea 100644 --- a/template/classic/common.typ +++ b/template/classic/common.typ @@ -228,11 +228,11 @@ // DISCLAIMER PAGE -#let disclaimer(language, faculty_id, disclaimer_type, author, author_gender) = { +#let disclaimer(language, faculty_id, disclaimer_type, author, author_pronouns) = { import "../lang.typ": disclaimer heading(get_lang_item(language, "disclaimer"), numbering: none, outlined: false); par( - text(disclaimer(language, disclaimer_type, author_gender)) + text(disclaimer(language, disclaimer_type, author_pronouns)) ); v(5em); grid( diff --git a/template/lang.typ b/template/lang.typ index 2cf3942..a6783fc 100644 --- a/template/lang.typ +++ b/template/lang.typ @@ -45,13 +45,13 @@ }); } -#let disclaimer(language, document_type, author_gender) = { +#let disclaimer(language, document_type, author_pronouns) = { let disclaimer = get_lang_item(language, "disclaimer_content"); let replacements = get_lang_item(language, "disclaimer_replace").at(document_type); if language == "cs" { - disclaimer = replace_czech_gender(disclaimer, author_gender); + disclaimer = replace_czech_gender(disclaimer, author_pronouns); } else if language == "en" { - disclaimer = replace_english_pronounce(disclaimer, author_gender); + disclaimer = replace_english_pronounce(disclaimer, author_pronouns); } for (key, value) in replacements.pairs() { disclaimer = disclaimer.replace("{" + key + "}", value); diff --git a/template/template.typ b/template/template.typ index 86cda83..33a648d 100644 --- a/template/template.typ +++ b/template/template.typ @@ -28,7 +28,7 @@ // - document (str): Type of document. This can be "bp" or "other". // - title (dictionary): The title of the document. // - author (str): The name of the document's author. -// - author_gender (str): The gender of the document's author. Needed only for the `cs` language. +// - author_pronouns (str): The gender of the document's author. Needed only for the `cs` language. // - supervisor (str): The name of the document's supervisor. // - consultant (str): The name of the document's consultant. // - programme (dictionary): Study programme. @@ -46,7 +46,7 @@ // document info title: none, keywords: none, abstract: none, acknowledgement: none, author: none, - author_gender: none, supervisor: none, consultant: none, programme: none, + author_pronouns: none, supervisor: none, consultant: none, programme: none, branch: none, year_of_study: none, // links @@ -71,7 +71,7 @@ acknowledgement, "dictionary[string : string] | none", "acknowledgement content" ); assert_type_signature(author, "string | none", "author argument"); - assert_type_signature(author_gender, "string | none", "author gender argument"); + assert_type_signature(author_pronouns, "string | none", "author gender argument"); assert_type_signature( supervisor, "string | dictionary[string : string] | none", "supervisor argument" ); @@ -101,7 +101,7 @@ // template call templates.at(style)( lang, faculty, document, citations, assignment, - title, author, author_gender, supervisor, consultant, + title, author, author_pronouns, supervisor, consultant, programme, branch, year_of_study, abstract, acknowledgement, keywords, content );