mirror of
https://github.com/typst/typst
synced 2025-08-07 19:57:54 +08:00
Compare commits
5 Commits
0eb75fd22d
...
9560dc1e8b
Author | SHA1 | Date | |
---|---|---|---|
|
9560dc1e8b | ||
|
5661c20580 | ||
|
c09a6a9213 | ||
|
bb85b59aef | ||
|
87c46e0145 |
@ -37,13 +37,12 @@ pub use crate::__select_where as select_where;
|
||||
|
||||
/// A filter for selecting elements within the document.
|
||||
///
|
||||
/// You can construct a selector in the following ways:
|
||||
/// - you can use an element [function]
|
||||
/// - you can filter for an element function with
|
||||
/// [specific fields]($function.where)
|
||||
/// - you can use a [string]($str) or [regular expression]($regex)
|
||||
/// - you can use a [`{<label>}`]($label)
|
||||
/// - you can use a [`location`]
|
||||
/// To construct a selector you can:
|
||||
/// - use an element [function]
|
||||
/// - filter for an element function with [specific fields]($function.where)
|
||||
/// - use a [string]($str) or [regular expression]($regex)
|
||||
/// - use a [`{<label>}`]($label)
|
||||
/// - use a [`location`]
|
||||
/// - call the [`selector`] constructor to convert any of the above types into a
|
||||
/// selector value and use the methods below to refine it
|
||||
///
|
||||
@ -148,7 +147,9 @@ impl Selector {
|
||||
impl Selector {
|
||||
/// Turns a value into a selector. The following values are accepted:
|
||||
/// - An element function like a `heading` or `figure`.
|
||||
/// - A [string]($str) or [regular expression]($regex).
|
||||
/// - A `{<label>}`.
|
||||
/// - A [`location`].
|
||||
/// - A more complex selector like `{heading.where(level: 1)}`.
|
||||
#[func(constructor)]
|
||||
pub fn construct(
|
||||
|
@ -37,6 +37,7 @@ const TRANSLATIONS: &[(&str, &str)] = &[
|
||||
translation!("it"),
|
||||
translation!("ja"),
|
||||
translation!("la"),
|
||||
translation!("lt"),
|
||||
translation!("lv"),
|
||||
translation!("nb"),
|
||||
translation!("nl"),
|
||||
@ -90,6 +91,7 @@ impl Lang {
|
||||
pub const JAPANESE: Self = Self(*b"ja ", 2);
|
||||
pub const LATIN: Self = Self(*b"la ", 2);
|
||||
pub const LATVIAN: Self = Self(*b"lv ", 2);
|
||||
pub const LITHUANIAN: Self = Self(*b"lt ", 2);
|
||||
pub const LOWER_SORBIAN: Self = Self(*b"dsb", 3);
|
||||
pub const NYNORSK: Self = Self(*b"nn ", 2);
|
||||
pub const POLISH: Self = Self(*b"pl ", 2);
|
||||
|
8
crates/typst-library/translations/lt.txt
Normal file
8
crates/typst-library/translations/lt.txt
Normal file
@ -0,0 +1,8 @@
|
||||
figure = Pav.
|
||||
table = Lent.
|
||||
equation = Lygt.
|
||||
bibliography = Literatūra
|
||||
heading = Antraštė
|
||||
outline = Turinys
|
||||
raw = Kodo fragmentas
|
||||
page = Psl.
|
Loading…
x
Reference in New Issue
Block a user