Skip to content

Commit a671d76

Browse files
committed
Update docs
+ Switch from | to / so that Github pages do not try creating tables for possible values
1 parent 1e0cc48 commit a671d76

21 files changed

+47
-49
lines changed

css/dist/ReadMe.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,6 @@ Disabled user settings:
2727
- `hyphens`;
2828
- `letter-spacing`.
2929

30-
Added user settings:
31-
32-
- `font-variant-ligatures` (mapped to `--USER__ligatures` CSS variable).
33-
3430
## CJK
3531

3632
Chinese, Japanese, Korean, and Mongolian can be either written `horizontal-tb` or `vertical-*`. Consequently, there are stylesheets for horizontal and vertical writing modes.
@@ -52,6 +48,7 @@ Disabled user settings:
5248

5349
- `text-align`;
5450
- `hyphens`;
51+
- `ligatures`;
5552
- paragraphs’ indent;
5653
- `word-spacing`.
5754

@@ -88,6 +85,7 @@ Disabled user settings:
8885
- `column-count` (number of columns);
8986
- `text-align`;
9087
- `hyphens`;
88+
- `ligatures`;
9189
- paragraphs’ indent;
9290
- `word-spacing`.
9391

css/src/ReadiumCSS-after-rtl.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
@import "modules/user-settings-submodules/ReadiumCSS-paraSpacing_pref.css";
1414
@import "modules/user-settings-submodules/ReadiumCSS-paraIndent_pref.css";
1515
@import "modules/user-settings-submodules/ReadiumCSS-wordSpacing_pref.css";
16-
@import "modules/user-settings-submodules/ReadiumCSS-variableFont_pref.css";
1716
@import "modules/user-settings-submodules/ReadiumCSS-ligatures_pref.css";
17+
@import "modules/user-settings-submodules/ReadiumCSS-variableFont_pref.css";
1818
@import "modules/user-settings-submodules/ReadiumCSS-imageFilters_pref.css";
1919
@import "modules/ReadiumCSS-fs_normalize.css";
2020
@import "modules/ReadiumCSS-iPadOS_patch.css";

css/src/ReadiumCSS-after.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
@import "modules/user-settings-submodules/ReadiumCSS-paraIndent_pref.css";
1717
@import "modules/user-settings-submodules/ReadiumCSS-wordSpacing_pref.css";
1818
@import "modules/user-settings-submodules/ReadiumCSS-letterSpacing_pref.css";
19-
@import "modules/user-settings-submodules/ReadiumCSS-variableFont_pref.css";
2019
@import "modules/user-settings-submodules/ReadiumCSS-ligatures_pref.css";
20+
@import "modules/user-settings-submodules/ReadiumCSS-variableFont_pref.css";
2121
@import "modules/user-settings-submodules/ReadiumCSS-imageFilters_pref.css";
2222
@import "modules/ReadiumCSS-fs_normalize.css";
2323
@import "modules/ReadiumCSS-iPadOS_patch.css";

docs/CSS06-stylesheets_order.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ The following modules must be appended after the author’s stylesheets (`Readiu
5959
11. `ReadiumCSS-paraIndent_pref.css` (does not apply to CJK scripts)
6060
12. `ReadiumCSS-wordSpacing_pref.css` (does not apply to CJK scripts)
6161
13. `ReadiumCSS-letterSpacing_pref.css` (does not apply to RTL scripts, except in vertical writing mode)
62-
14. `ReadiumCSS-arabicLigatures_pref.css` (RTL only)
62+
14. `ReadiumCSS-ligatures_pref.css` (RTL only)
6363
15. `ReadiumCSS-variableFont_pref.css` (this contains optical sizing, weight and width prefs)
6464
16. `ReadiumCSS-ruby_pref.css` (CJK only)
6565
17. `ReadiumCSS-imageFilters_pref.css`

docs/CSS08-defaults.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ The typeface for code snippets. The value can be another variable e.g. `var(-RS_
261261

262262
The scale to be used for computing all elements’ `font-size`. Since those font sizes are computed dynamically, you can set a smaller type scale when the user sets one of the largest font sizes.
263263

264-
Possible values: `1` | `1.067` | `1.125` | `1.2` (suggested default) | `1.25` | `1.333` | `1.414` | `1.5` | `1.618`
264+
Possible values: `1` / `1.067` / `1.125` / `1.2` (suggested default) / `1.25` / `1.333` / `1.414` / `1.5` / `1.618`
265265

266266
* * *
267267

docs/CSS11-overrides_classification.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ The following settings are optional but should be applied by any means necessary
4343
- paragraph indent;
4444
- letter-spacing;
4545
- word-spacing;
46-
- arabic ligatures;
46+
- ligatures;
4747
- hiding ruby (CJK);
4848
- accessibility normalization;
4949
- font optical sizing (requires a variable font);

docs/CSS12-user_prefs.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Allows to switch between paged and scroll view.
6969
--USER__view
7070
```
7171

72-
Supported values: `readium-paged-on` | `readium-scroll-on`
72+
Supported values: `readium-paged-on` / `readium-scroll-on`
7373

7474
Override class: Chrome (should be applied by any means necessary)
7575

@@ -249,7 +249,7 @@ The user can set `text-align` and `hyphens` for body copy contents.
249249
--USER__textAlign
250250
```
251251

252-
Possible values: `left` (LTR) or `right` (RTL) | `start` (logical property resolving to `left` in LTR, `right` in RTL) | `justify`
252+
Possible values: `left` (LTR) or `right` (RTL) / `start` (logical property resolving to `left` in LTR, `right` in RTL) / `justify`
253253

254254
Override class: User settings advanced (optional but should be applied by any means necessary if provided to users)
255255

@@ -261,7 +261,7 @@ Note: the value `start` can be used to let all rendering engines, excepted Tride
261261
--USER__bodyHyphens
262262
```
263263

264-
Possible Values: `auto` | `none`
264+
Possible Values: `auto` / `none`
265265

266266
Override class: User settings advanced (optional but should be applied by any means necessary if provided to users)
267267

@@ -279,9 +279,9 @@ The user can set `font-family`, `font-size` and `line-height` for body copy cont
279279
--USER__fontFamily
280280
```
281281

282-
Possible values: `var(--RS__oldStyleTf)` | `var(--RS__modernTf)` | `var(--RS__sansTf)` | `var(--RS__humanistTf)` | `<string>`
282+
Possible values: `var(--RS__oldStyleTf)` / `var(--RS__modernTf)` / `var(--RS__sansTf)` / `var(--RS__humanistTf)` / `<string>`
283283

284-
For Japanese, possible values become: `var(--RS__serif-ja)` (horizontal writing) | `var(--RS__sans-serif-ja)` (horizontal writing) | `var(--RS__serif-ja-v)` (vertical writing) | `var(--RS__sans-serif-ja-v)` (vertical writing) | `<string>`
284+
For Japanese, possible values become: `var(--RS__serif-ja)` (horizontal writing) / `var(--RS__sans-serif-ja)` (horizontal writing) / `var(--RS__serif-ja-v)` (vertical writing) / `var(--RS__sans-serif-ja-v)` (vertical writing) / `<string>`
285285

286286
Required flag: none
287287

@@ -365,13 +365,13 @@ Recommended values: a range from `0` to `0.5rem`. Increments are left to impleme
365365

366366
Override class: User settings advanced (optional but should be applied by any means necessary if provided to users)
367367

368-
#### Arabic Ligatures
368+
#### Ligatures
369369

370370
```
371371
--USER__ligatures
372372
```
373373

374-
Possible values: `none` | `common-ligatures`
374+
Possible values: `none` / `common-ligatures`
375375

376376
Override class: User settings advanced (optional but should be applied by any means necessary if provided to users)
377377

@@ -391,7 +391,7 @@ Rendering engines and browsers enable optical sizing by default for fonts that h
391391

392392
When optical sizing is used, small text sizes are often rendered with thicker strokes and larger serifs, whereas larger text is often rendered more delicately with more contrast between thicker and thinner strokes.
393393

394-
Possible values: `none` | `auto` (default)
394+
Possible values: `none` / `auto` (default)
395395

396396
Required flag: none
397397

@@ -417,7 +417,7 @@ Override class: User settings advanced (optional but should be applied by any me
417417
--USER__fontWidth
418418
```
419419

420-
Possible values: `ultra-condensed` | `extra-condensed` | `condensed` | `semi-condensed` | `normal` | `semi-expanded` | `expanded` | `extra-expanded` | `ultra-expanded` | `percentage` e.g. `50%`, `125%`
420+
Possible values: `ultra-condensed` / `extra-condensed` / `condensed` / `semi-condensed` / `normal` / `semi-expanded` / `expanded` / `extra-expanded` / `ultra-expanded` / `percentage` e.g. `50%`, `125%`
421421

422422
**Warning: the percentage values depend on the variable font you may be using.** You can use services such as [Wakamai Fondue](https://wakamaifondue.com) to get the values.
423423

@@ -453,7 +453,7 @@ This will apply a `mix-blend-mode` of `multiply` with a transparent background t
453453
--USER__darkenImages
454454
```
455455

456-
Possible values: `readium-darken-on` | `percentage` e.g. `50%`.
456+
Possible values: `readium-darken-on` / `percentage` e.g. `50%`.
457457

458458
This will apply a `brightness` filter with the percentage value it’s given, or a preset of `80%` if using it as a flag.
459459

@@ -463,7 +463,7 @@ This will apply a `brightness` filter with the percentage value it’s given, or
463463
--USER__invertImages
464464
```
465465

466-
Possible values: `readium-invert-on` | `percentage` e.g. `50%`.
466+
Possible values: `readium-invert-on` / `percentage` e.g. `50%`.
467467

468468
This will apply an `invert` filter with the percentage value it’s given, or a preset of `100%` if using it as a flag.
469469

@@ -473,7 +473,7 @@ If you want to only invert gaiji (valid Japanese character as `img`), you can us
473473
--USER__invertGaiji
474474
```
475475

476-
Possible values: `readium-invertGaiji-on` | `percentage` e.g. `50%`.
476+
Possible values: `readium-invertGaiji-on` / `percentage` e.g. `50%`.
477477

478478
This will apply an `invert` filter with the percentage value it’s given, or a preset of `100%` if using it as a flag, only to `img class="gaiji"`.
479479

docs/CSS14-user_settings_recs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,11 +215,11 @@ It is very rare authors’ will use those CSS properties for body copy. They may
215215

216216
In any case, implementers should force those settings for body copy.
217217

218-
## Ligatures (Arabic & Persian scripts)
218+
## Ligatures
219219

220220
### User’s intent
221221

222-
The user intends to disable ligatures. This setting applies to the Arabic and Persian scripts, and is believed to help dyslexic readers as `word-spacing` in Latin.
222+
The user intends to disable ligatures. This setting applies to the Latin, Arabic and Persian scripts. In the two latter, it is believed to help dyslexic readers as `word-spacing` in Latin.
223223

224224
### Author’s intent
225225

docs/CSS16-internationalization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ Several parts of the UI must follow the direction (`rtl`) of the primary languag
156156
- user settings e.g. text align;
157157
- implementers might want to localize the interface based on the language set at the system level, or at least fall back to English.
158158

159-
Moreover, some user settings should be removed if used (`letter-spacing`) and another one added (arabic ligatures in `ar` and `fa`).
159+
Moreover, some user settings should be removed if used (`letter-spacing`).
160160

161161
#### CJK
162162

docs/CSS18-further_details.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ The typeface for code snippets. The value can be another variable e.g. `var(-RS_
4848

4949
The scale to be used for computing all elements’ `font-size`. Since those font sizes are computed dynamically, you can set a smaller type scale when the user sets one of the largest font sizes.
5050

51-
Possible values: `1` | `1.067` | `1.125` (suggested default) | `1.2` | `1.25` | `1.333` | `1.414` | `1.5` | `1.618`
51+
Possible values: `1` / `1.067` / `1.125` (suggested default) / `1.2` / `1.25` / `1.333` / `1.414` / `1.5` / `1.618`
5252

5353
The suggested default will accomodate most configurations, from small to large screens.
5454

0 commit comments

Comments
 (0)