Arabic indic numbering is incorrect

Đang mở
#190 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
62/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
rust
Lĩnh vực
tooling

Hướng nghiên cứu

Start by locating the page-numbering implementation and its tests, then reproduce the issue with the provided A4 page configuration and Arabic-Indic numbering. The issue does not name files or tests, so first trace where page numbering is implemented. Done means multi-digit numbering proceeds ١٢, ١٣, ١٤ rather than ١٢, ٢٢, ٣٢.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug
Description

#set page(paper: "a4", margin: 2cm, numbering: "١") causes numbering to work correctly for single digit numbers:
١, ٢, ٣, ٤, ٥, ٦, ٧, ٨, ٩
but once you get more than one digit it incorrectly increments the digit to the left most
١٢ then ٢٢ then ٣٢

it should be ١٢ then ١٣ then ١٤ and so on

Operating system

archlinux

Typst version

typst 0.15.1 (9dfd3a08)

Ngôn ngữ chính
Rust
Star
53
Fork
23
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của typst/codex

Tất cả issue của typst/codex

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.