rename author gender to author pronouns
This commit is contained in:
@@ -331,7 +331,7 @@ Zvýrazněné hodnoty jsou základní -- pokud vynecháte parametr, pak bude pou
|
|||||||
- `author` (autor/autoři dokumentu)
|
- `author` (autor/autoři dokumentu)
|
||||||
- Příklad: `"Pavel Novák"` nebo `"Petra Velká, Jindřich Peterka"`
|
- Příklad: `"Pavel Novák"` nebo `"Petra Velká, Jindřich Peterka"`
|
||||||
#line()
|
#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_:
|
- Pro vybraný jazyk _cs_:
|
||||||
- `"masculine"` - Mužský rod
|
- `"masculine"` - Mužský rod
|
||||||
- `"feminine"` - Ženský rod
|
- `"feminine"` - Ženský rod
|
||||||
|
@@ -20,7 +20,7 @@
|
|||||||
faculty_id, faculty_color, language, assignment_document, citation_file,
|
faculty_id, faculty_color, language, assignment_document, citation_file,
|
||||||
|
|
||||||
// document info
|
// 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,
|
year_of_study, abstract_content, acknowledgement_content, keywords,
|
||||||
|
|
||||||
content
|
content
|
||||||
@@ -41,7 +41,7 @@
|
|||||||
}
|
}
|
||||||
assert_not_none(acknowledgement_content, "acknowledgement content");
|
assert_not_none(acknowledgement_content, "acknowledgement content");
|
||||||
if language == "cs" {
|
if language == "cs" {
|
||||||
assert_not_none(author_gender, "author gender");
|
assert_not_none(author_pronouns, "author gender");
|
||||||
}
|
}
|
||||||
|
|
||||||
assert_type_signature(supervisor, "string | none", "supervisor");
|
assert_type_signature(supervisor, "string | none", "supervisor");
|
||||||
@@ -53,7 +53,7 @@
|
|||||||
);
|
);
|
||||||
assignment(language, assignment_document);
|
assignment(language, assignment_document);
|
||||||
default_styling(false, faculty_color, {
|
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("cs", title, abstract_content, keywords);
|
||||||
abstract("en", title, abstract_content, keywords);
|
abstract("en", title, abstract_content, keywords);
|
||||||
acknowledgement(language, author, acknowledgement_content);
|
acknowledgement(language, author, acknowledgement_content);
|
||||||
|
@@ -12,7 +12,7 @@
|
|||||||
language, faculty_id, document_type, citation_file, assignment_document,
|
language, faculty_id, document_type, citation_file, assignment_document,
|
||||||
|
|
||||||
// document info
|
// 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,
|
year_of_study, abstract, acknowledgement, keywords,
|
||||||
|
|
||||||
// content
|
// content
|
||||||
@@ -37,7 +37,7 @@
|
|||||||
map_none(citation_file, (v) => "../../" + v),
|
map_none(citation_file, (v) => "../../" + v),
|
||||||
title,
|
title,
|
||||||
author,
|
author,
|
||||||
author_gender,
|
author_pronouns,
|
||||||
supervisor,
|
supervisor,
|
||||||
consultant,
|
consultant,
|
||||||
study_programme,
|
study_programme,
|
||||||
|
@@ -228,11 +228,11 @@
|
|||||||
|
|
||||||
// DISCLAIMER PAGE
|
// 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
|
import "../lang.typ": disclaimer
|
||||||
heading(get_lang_item(language, "disclaimer"), numbering: none, outlined: false);
|
heading(get_lang_item(language, "disclaimer"), numbering: none, outlined: false);
|
||||||
par(
|
par(
|
||||||
text(disclaimer(language, disclaimer_type, author_gender))
|
text(disclaimer(language, disclaimer_type, author_pronouns))
|
||||||
);
|
);
|
||||||
v(5em);
|
v(5em);
|
||||||
grid(
|
grid(
|
||||||
|
@@ -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 disclaimer = get_lang_item(language, "disclaimer_content");
|
||||||
let replacements = get_lang_item(language, "disclaimer_replace").at(document_type);
|
let replacements = get_lang_item(language, "disclaimer_replace").at(document_type);
|
||||||
if language == "cs" {
|
if language == "cs" {
|
||||||
disclaimer = replace_czech_gender(disclaimer, author_gender);
|
disclaimer = replace_czech_gender(disclaimer, author_pronouns);
|
||||||
} else if language == "en" {
|
} else if language == "en" {
|
||||||
disclaimer = replace_english_pronounce(disclaimer, author_gender);
|
disclaimer = replace_english_pronounce(disclaimer, author_pronouns);
|
||||||
}
|
}
|
||||||
for (key, value) in replacements.pairs() {
|
for (key, value) in replacements.pairs() {
|
||||||
disclaimer = disclaimer.replace("{" + key + "}", value);
|
disclaimer = disclaimer.replace("{" + key + "}", value);
|
||||||
|
@@ -28,7 +28,7 @@
|
|||||||
// - document (str): Type of document. This can be "bp" or "other".
|
// - document (str): Type of document. This can be "bp" or "other".
|
||||||
// - title (dictionary): The title of the document.
|
// - title (dictionary): The title of the document.
|
||||||
// - author (str): The name of the document's author.
|
// - 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.
|
// - supervisor (str): The name of the document's supervisor.
|
||||||
// - consultant (str): The name of the document's consultant.
|
// - consultant (str): The name of the document's consultant.
|
||||||
// - programme (dictionary): Study programme.
|
// - programme (dictionary): Study programme.
|
||||||
@@ -46,7 +46,7 @@
|
|||||||
|
|
||||||
// document info
|
// document info
|
||||||
title: none, keywords: none, abstract: none, acknowledgement: none, author: none,
|
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,
|
branch: none, year_of_study: none,
|
||||||
|
|
||||||
// links
|
// links
|
||||||
@@ -71,7 +71,7 @@
|
|||||||
acknowledgement, "dictionary[string : string] | none", "acknowledgement content"
|
acknowledgement, "dictionary[string : string] | none", "acknowledgement content"
|
||||||
);
|
);
|
||||||
assert_type_signature(author, "string | none", "author argument");
|
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(
|
assert_type_signature(
|
||||||
supervisor, "string | dictionary[string : string] | none", "supervisor argument"
|
supervisor, "string | dictionary[string : string] | none", "supervisor argument"
|
||||||
);
|
);
|
||||||
@@ -101,7 +101,7 @@
|
|||||||
// template call
|
// template call
|
||||||
templates.at(style)(
|
templates.at(style)(
|
||||||
lang, faculty, document, citations, assignment,
|
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
|
programme, branch, year_of_study, abstract, acknowledgement, keywords, content
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user