-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Page numbering hardcoded in English #7
Comments
English is just the default. You can change it to German like this: #show: letter-simple.with(
// [...]
page-numbering: (current-page, page-count) => [Seite #current-page von #page-count],
) |
I know that I can change it. But why is English the default for a Letter following the German DIN standard? Everything else in this letter is in German. Sorry, but this doesn't make sense for me. |
The page numbering is the only place where in this library where there is a default English text. Everything else in this library is language independent. Even tho this letter is following a German standard, documents written in Typst default to the English language. This is why I think it is the best choice to make English the default. A good compromise could be to use the linguify library that can derive the correct translation from the document context. Would this work for you? |
Is there a way of testing for text.lang and then doing a conditional? And, how to I change the size of the text |
You can get the current document language with this: #context {
let the_language = text.lang
if the_language == "de" {
"Deutscher Text!"
} else {
"English text!"
}
}
The #show: letter-simple.with(
// [...]
page-numbering: (current-page, page-count) => text(10pt)[Seite #current-page von #page-count],
) |
thanks. I’ll use em though :-)-O |
This feature is now implemented and will be available in the upcoming |
Expected: For a DIN Letter I would expect a German numbering scheme
Actual: Numbering is using "Page 1 of 2"
The text was updated successfully, but these errors were encountered: