Skip to content

Commit

Permalink
Fix numberings documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
emilyyyylime committed Sep 27, 2024
1 parent ba95baa commit 539b79a
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions crates/typst/src/model/numbering.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ pub fn numbering(
/// Defines how the numbering works.
///
/// **Counting symbols** are `1`, `a`, `A`, `i`, `I`, `一`, `壹`, `あ`, `い`, `ア`, `イ`, `א`, `가`,
/// `ㄱ`, and `*`. They are replaced by the number in the sequence, in the
/// given case.
/// `ㄱ`, `*`, `①`, and ``. They are replaced by the number in the sequence, preserving the original
/// case.
///
/// The `*` character means that symbols should be used to count, in the
/// order of `*`, `†`, `‡`, `§`, `¶`, and `‖`. If there are more than six
Expand Down Expand Up @@ -140,9 +140,8 @@ cast! {

/// How to turn a number into text.
///
/// A pattern consists of a prefix, followed by one of
/// `1`, `a`, `A`, `i`, `I`, `一`, `壹`, `あ`, `い`, `ア`, `イ`, `א`, `가`, `ㄱ`, `*`, `①`, or `⓵`,
/// and then a suffix.
/// A pattern consists of a prefix, followed by one of `1`, `a`, `A`, `i`, `I`, `一`, `壹`, `あ`, `い`,
/// `ア`, `イ`, `א`, `가`, `ㄱ`, `*`, `①`, or `⓵`, and then a suffix.
///
/// Examples of valid patterns:
/// - `1)`
Expand Down Expand Up @@ -271,15 +270,15 @@ pub enum NumberingKind {
Symbol,
/// Hebrew numerals.
Hebrew,
/// Simplified Chinese numerals. Uses standard numerals for lowercase and banknote numerals for uppercase.
/// Simplified Chinese numerals. Uses standard numerals for lowercase and "banknote" numerals for uppercase.
SimplifiedChinese,
// TODO: Pick the numbering pattern based on languages choice.
// As the `1st` numbering character of Chinese (Simplified) and
// Chinese (Traditional) is same, we are unable to determine
// if the context is Simplified or Traditional by only this
// character.
#[allow(unused)]
/// Traditional Chinese numerals. Uses standard numerals for lowercase and banknote numerals for uppercase.
/// Traditional Chinese numerals. Uses standard numerals for lowercase and "banknote" numerals for uppercase.
TraditionalChinese,
/// Hiragana in the gojūon order. Includes n but excludes wi and we.
HiraganaAiueo,
Expand Down

0 comments on commit 539b79a

Please sign in to comment.