mirror of
https://github.com/typst/typst
synced 2025-07-26 13:57:53 +08:00
Document that text.lang
and text.region
is case-insensitive
Resolves #6549
This commit is contained in:
parent
b05721869c
commit
2bbee17978
@ -411,6 +411,9 @@ pub struct TextElem {
|
||||
/// = Einleitung
|
||||
/// In diesem Dokument, ...
|
||||
/// ```
|
||||
///
|
||||
/// The language code is case-insensitive, and will be normalized to
|
||||
/// lowercase before made available to the [context]($context).
|
||||
#[default(Lang::ENGLISH)]
|
||||
#[ghost]
|
||||
pub lang: Lang,
|
||||
@ -418,6 +421,9 @@ pub struct TextElem {
|
||||
/// An [ISO 3166-1 alpha-2 region code.](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)
|
||||
///
|
||||
/// This lets the text processing pipeline make more informed choices.
|
||||
///
|
||||
/// The region code is case-insensitive, and will be normalized to
|
||||
/// uppercase before made available to the [context]($context).
|
||||
#[ghost]
|
||||
pub region: Option<Region>,
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user