You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/file-format.md
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -537,9 +537,14 @@ ampersands, and hyphens. Numeric variables can express a single number or a
537
537
range and contain only integers, but may contain negative numbers. Numeric variables can have a non-numeric prefix and suffix.
538
538
539
539
```yaml
540
-
page-range: S10-15
540
+
page-range: S10-15 # Page S10 to 15
541
541
```
542
542
543
+
Note that the prefix and suffix for a numeric variable should be non-numeric. If
544
+
you specify a number with leading zeros or numeric suffix, then the whole variable
545
+
will be interpreted as a [string](#string) instead. This improves the style for
546
+
atypical page numbers like `011` and `11E201`.
547
+
543
548
#### Unicode Language Identifier
544
549
545
550
A [Unicode Language Identifier](https://unicode.org/reports/tr35/tr35.html#unicode_language_id) identifies a language or its variants. At the simplest, you can specify an all-lowercase [two-letter ISO 639-1 code](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) like `en` or `es` as a language. It is possible to specify regions, scripts, or variants to more precisely identify a variety of a language, especially in cases where the ISO 639-1 code is considered a "macrolanguage" (`zh` includes both Cantonese and Mandarin). In such cases, specify values like `en-US` for American English or `zh-Hans-CN` for Mandarin written in simplified script in mainland China. The region tags have to be written in all-caps and are mostly corresponding to [ISO 3166-1 alpha_2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) codes.
0 commit comments