Compare commits

...

5 Commits

Author SHA1 Message Date
pog102
9560dc1e8b
Merge c09a6a9213c11096e96cdcb780548cb5c86f52d8 into 5661c20580584d86897d139cdeffd6fb1a9a6d5c 2025-07-17 02:21:32 +08:00
Robin
5661c20580
Slightly improve selector docs (#6544) 2025-07-16 16:15:49 +00:00
pog102
c09a6a9213
Merge branch 'main' into main 2025-07-15 11:21:45 +03:00
pog102
bb85b59aef forgot to add the constant 2025-07-11 17:58:03 +03:00
pog102
87c46e0145 Add Lithuanian translations
some translations needed
2025-07-10 21:37:01 +03:00
3 changed files with 18 additions and 7 deletions

View File

@ -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(

View File

@ -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);

View File

@ -0,0 +1,8 @@
figure = Pav.
table = Lent.
equation = Lygt.
bibliography = Literatūra
heading = Antraštė
outline = Turinys
raw = Kodo fragmentas
page = Psl.