postext-cli 1.75.0 → 1.76.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -38,6 +38,8 @@ postext image book.postext --page 12 -o p12.png
38
38
  postext images book.postext --pages 1-10 -o pages/ --dpi 100 -f webp
39
39
  postext docx book.postext -o book.docx
40
40
  postext import-docx manuscript.docx -o manuscript/
41
+ postext idml book.postext -o out/book.idml --fonts # InDesign package, fonts beside it
42
+ postext import-idml book.idml -o book/ --report # an InDesign document (IDML) as a new book
41
43
  postext pack book/ -o book.postext
42
44
  postext unpack book.postext -o book/
43
45
  postext info book.postext --pages
@@ -51,6 +53,10 @@ A book is any of:
51
53
  - an unpacked book folder, with its `preset.json`, chapters, resources and fonts;
52
54
  - loose Markdown files, one chapter each, in the order given (a folder: its `.md` files by name), with an optional `--config` JSON, a `--resources` folder of pictures (each named by its file name, or described in a `resources.json`) and a `--fonts` folder.
53
55
 
56
+ `postext idml` writes the laid-out pages as an InDesign Markup package with the [`postext-idml`](https://www.npmjs.com/package/postext-idml) package: `--images embed|link` keeps the pictures inside the file or puts them beside it in `Links/`, `--lines keep|reflow` ends every line where Postext ended it (`keep`, the default) or leaves the paragraphs to InDesign's composer, and `--fonts` writes the font files of the faces used beside the package, in `Document fonts/` (`-o` has to name a file; a family the book may not redistribute is left out, with a warning). `postext build --idml FILE` writes the same package beside the other outputs, with `--idml-images`, `--idml-lines` and `--idml-fonts`.
57
+
58
+ `postext import-idml` reads an InDesign Markup package (an `.indd` is not read: save it as InDesign Markup first) and writes a new book, a folder or a `.postext`, as composed pages that follow the document or as a flowing book (`--layout auto|pages|flow`). A book exported from Postext comes back with the same lines; a document made in InDesign is read with losses, which the summary counts and `--report` lists. Linked pictures are read from `--links`, or from beside the file and its `Links/`.
59
+
54
60
  `--set path=value` changes one setting without editing the book (`--set page.dpi=150`, `--set bodyText.fontFamily=Lora`), and `--chapters 2-4` lays out part of it.
55
61
 
56
62
  ### Fonts
package/bin/readme.txt CHANGED
@@ -1,4 +1,4 @@
1
- postext command line 1.75.0
1
+ postext command line 1.76.1
2
2
  ===========================
3
3
 
4
4
  One self-contained executable per system: no installation, no runtime and
@@ -22,7 +22,7 @@ Download the latest (every release of postext publishes them):
22
22
 
23
23
  e.g. https://github.com/drnachio/postext/releases/latest/download/postext-linux-x64
24
24
 
25
- or a given version: https://github.com/drnachio/postext/releases/tag/v1.75.0
25
+ or a given version: https://github.com/drnachio/postext/releases/tag/v1.76.1
26
26
  SHA256SUMS lists the checksum of each file.
27
27
 
28
28
  Install
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "postext-cli",
3
- "version": "1.75.0",
3
+ "version": "1.76.1",
4
4
  "license": "MIT",
5
5
  "homepage": "https://postext.dev/",
6
6
  "repository": {
@@ -27,11 +27,11 @@
27
27
  "bin/readme.txt"
28
28
  ],
29
29
  "optionalDependencies": {
30
- "postext-cli-macos-arm64": "1.75.0",
31
- "postext-cli-macos-x64": "1.75.0",
32
- "postext-cli-linux-x64": "1.75.0",
33
- "postext-cli-linux-arm64": "1.75.0",
34
- "postext-cli-linux-x64-musl": "1.75.0",
35
- "postext-cli-windows-x64": "1.75.0"
30
+ "postext-cli-macos-arm64": "1.76.1",
31
+ "postext-cli-macos-x64": "1.76.1",
32
+ "postext-cli-linux-x64": "1.76.1",
33
+ "postext-cli-linux-arm64": "1.76.1",
34
+ "postext-cli-linux-x64-musl": "1.76.1",
35
+ "postext-cli-windows-x64": "1.76.1"
36
36
  }
37
37
  }