asciidoctor-pdf 2.0.0.alpha.1 → 2.0.0.alpha.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 51c4377f62ca11147b6d896ed5e3951b4a1f592a1ae0d2361ed7285a751af428
4
- data.tar.gz: 6d4011e829d0ffc774cd75833f633c76dbed53e1e9ada8c35d4d436c998ed82e
3
+ metadata.gz: da863e1bc05edaf64e5e443bb042fdaa01cc048ac559c9955bac4d7c27fff1c1
4
+ data.tar.gz: 0712e9ee6655c004b82f64c78d3c1eb326c182576e447669cce11e4ff7ca34db
5
5
  SHA512:
6
- metadata.gz: beac89c0b3c561e881e4f0c80d350f01cb2a46f14ce19779dd69a7e08173c8c6ba19fb072ffab76b0dc305ec083aa3e8305aa977b584643b18a9ed3475e3d2cd
7
- data.tar.gz: b347acb25d851c82ae9fddb6996bff0864fada2442237c9f6d4933ec18c1a9cf437ed85b1128fa857aab41c504fc237b29d6f104328a5ab00da7ecd4cf75df5d
6
+ metadata.gz: 8626792d427b27b635a6836fa0c1c7bf75faff5d82f1a71d74a23333e516086475e268cd524a5f5d2c0cfc9827b5b0f72a9d41fd6cc6b7c568506d914daf6840
7
+ data.tar.gz: 764bc2e6b6f069d437583c095a92f9e92969e306c872ea92c52e805c0063fa1d810390a303b597252adb9ca33015bd340f5e8d3851a0d64bb96d0cdc5d523329
data/CHANGELOG.adoc CHANGED
@@ -5,6 +5,43 @@
5
5
  This document provides a high-level view of the changes to the {project-name} by release.
6
6
  For a detailed view of what has changed, refer to the {uri-repo}/commits/main[commit history] on GitHub.
7
7
 
8
+ == 2.0.0.alpha.2 (2022-04-29) - @mojavelinux
9
+
10
+ Enhancements::
11
+
12
+ * separate `align` and `text-align` keys in theme schema; remap old keys for backwards compatibility (#2095)
13
+ * allow theme to control the border on all sides of tables independently (#902)
14
+ * keep section title with first block of content is `breakable` option is set on section (#2075, #38)
15
+ * pass `part`, `chapterlike`, and `hidden` options to `arrange_section` method
16
+ * add support for `background-color` property on caption (#1995)
17
+ * add support for image-based icons, resolved from `iconsdir` and having the `icontype` file extension (#1770)
18
+ * add `asciidoctor/pdf/nogmagick` script to prevent Gmagick from handling PNG images (#1687)
19
+ * change name of `untitled` option on special section to `notitle`
20
+ * allow the title of any section to be hidden using the `notitle` option
21
+ * allow imported PDF page to be referenced in TOC by enclosing in parent section with `notitle` option (#1213)
22
+ * allow entry for preface to be added to TOC without adding title to body using the `notitle` option on the preface section (#1786)
23
+ * automatically promote the `notitle` option from the first block in the premable to preface section; restore lead role on opening paragraph (#1786)
24
+
25
+ Improvements::
26
+
27
+ * change "icon" to "icon image" in warning about missing admonition icon image
28
+ * report admonition type in warning about missing implicit admonition icon image
29
+
30
+ Bug Fixes::
31
+
32
+ * set the base font of the front cover image is a PDF and the title page is not active (#2092)
33
+ * pass through warnings in background SVG to logger (#1940)
34
+ * keep closing quote with trailing ellipsis in text enclosed in typographic quotes (#321)
35
+ * collapse space in front of hidden index term (#2061)
36
+ * delete dests on page before deleting it (keeps generated PDF clean of obsolete destinations)
37
+ * don't call `arrange_section` if section title is hidden
38
+ * remove `theme_font` enclosure around call to `start_new_chapter` and `start_new_part`
39
+ * change `layout_` method prefix to `inscribe_` in converter (#2099)
40
+
41
+ === Details
42
+
43
+ {url-repo}/releases/tag/v2.0.0.alpha.2[git tag] | {url-repo}/compare/v2.0.0.alpha.1\...v2.0.0.alpha.2[full diff]
44
+
8
45
  == 2.0.0.alpha.1 (2022-04-20) - @mojavelinux
9
46
 
10
47
  Enhancements::
@@ -559,7 +596,7 @@ Bug Fixes::
559
596
  * allow theme to disable font kerning
560
597
  * add support for default theme alignment for tables (#1164)
561
598
  * add theming support to (inline) roles on phrases (#368)
562
- * allow theme to customize style of titles in running content (#1044)
599
+ * allow theme to customize style of titles in running content using `title-style` key (#1044)
563
600
  * add support for the built-in big and small roles on phrases (#459)
564
601
  * route AFM font warning through Asciidoctor logger
565
602
  * upgrade code font (M+ 1mn) to TESTFLIGHT-63a
data/README.adoc CHANGED
@@ -1,6 +1,6 @@
1
1
  = Asciidoctor PDF: A native PDF converter for AsciiDoc
2
2
  Dan Allen <https://github.com/mojavelinux[@mojavelinux]>; Sarah White <https://github.com/graphitefriction[@graphitefriction]>
3
- v2.0.0.alpha.1, 2022-04-20
3
+ v2.0.0.alpha.2, 2022-04-29
4
4
  // Settings:
5
5
  :experimental:
6
6
  :idprefix:
@@ -24,7 +24,7 @@ endif::[]
24
24
  :project-handle: asciidoctor-pdf
25
25
  // Variables:
26
26
  :release-line: 2.0.x
27
- :release-version: 2.0.0.alpha.1
27
+ :release-version: 2.0.0.alpha.2
28
28
  // URIs:
29
29
  :url-asciidoctor: http://asciidoctor.org
30
30
  :url-gem: http://rubygems.org/gems/asciidoctor-pdf
@@ -170,7 +170,7 @@ ifndef::env-site[You can also <<development,run the code from source>> if you wa
170
170
  To install {project-name}, first make sure you have satisfied the <<Prerequisites,prerequisites>>.
171
171
  Then, install the gem from RubyGems.org using the following command:
172
172
 
173
- $ gem install asciidoctor-pdf
173
+ $ gem install asciidoctor-pdf --pre
174
174
 
175
175
  If you're using Ruby 3.1 or better, you must also install the matrix gem until Prawn 2.5.0 or better is released.
176
176
 
@@ -7,7 +7,7 @@ page_margin: 36
7
7
  page_margin_inner: 48
8
8
  page_margin_outer: 24
9
9
  page_size: A4
10
- base_align: left
10
+ base_text_align: left
11
11
  #base_font_color: '333333'
12
12
  base_font_color: '000000'
13
13
  #base_font_family: Times-Roman
@@ -46,7 +46,7 @@ heading_line_height: 1.15
46
46
  heading_margin_top: 4
47
47
  heading_margin_bottom: 12
48
48
  heading_min_height_after: 20
49
- title_page_align: center
49
+ title_page_text_align: center
50
50
  title_page_line_height: 1.15
51
51
  title_page_logo_top: 10%
52
52
  title_page_title_top: 40%
@@ -101,6 +101,7 @@ sidebar_title_font_style: bold
101
101
  table_border_color: '000000'
102
102
  table_border_style: solid
103
103
  table_border_width: 0.5
104
+ table_grid_width: 0.5
104
105
  table_cell_padding: 2
105
106
  table_head_font_style: bold
106
107
  table_head_border_bottom_width: 1.25
@@ -22,7 +22,7 @@ page:
22
22
  margin_outer: 0.59in
23
23
  size: A4
24
24
  base:
25
- align: justify
25
+ text_align: justify
26
26
  # color as hex string (leading # is optional)
27
27
  font_color: 333333
28
28
  # color as RGB array
@@ -96,7 +96,7 @@ menu:
96
96
  caret_content: " <font size=\"1.15em\" color=\"#B12146\">\u203a</font> "
97
97
  font_style: bold
98
98
  heading:
99
- align: left
99
+ text_align: left
100
100
  font_color: $base_font_color
101
101
  font_style: bold
102
102
  # h1 is used for part titles (book doctype) or the doctitle (article doctype)
@@ -114,7 +114,7 @@ heading:
114
114
  margin_bottom: $vertical_rhythm * 0.9
115
115
  min_height_after: $base_line_height_length * 1.5
116
116
  title_page:
117
- align: right
117
+ text_align: right
118
118
  logo:
119
119
  top: 10%
120
120
  title:
@@ -148,7 +148,7 @@ abstract:
148
148
  font_style: italic
149
149
  first_line_font_style: bold
150
150
  title:
151
- align: center
151
+ text_align: center
152
152
  font_color: $heading_font_color
153
153
  font_size: $heading_h4_font_size
154
154
  font_style: $heading_font_style
@@ -218,7 +218,7 @@ sidebar:
218
218
  border_width: $base_border_width
219
219
  padding: [$vertical_rhythm, $vertical_rhythm * 1.25, $vertical_rhythm, $vertical_rhythm * 1.25]
220
220
  title:
221
- align: center
221
+ text_align: center
222
222
  font_color: $heading_font_color
223
223
  font_size: $heading_h4_font_size
224
224
  font_style: $heading_font_style
@@ -243,6 +243,7 @@ table:
243
243
  background_color: $page_background_color
244
244
  border_color: DDDDDD
245
245
  border_width: $base_border_width
246
+ grid_width: $base_border_width
246
247
  cell_padding: 3
247
248
  head:
248
249
  font_style: bold
@@ -1147,7 +1147,7 @@ The name of the role is the first subkey level.
1147
1147
  The role name may contain a hyphen, but *a role name cannot contain an underscore*.
1148
1148
  The keys under the role are the theming properties.
1149
1149
 
1150
- IMPORTANT: Custom roles only apply to inline phrases and paragraphs.
1150
+ IMPORTANT: Custom roles only apply to paragraphs and inline phrases.
1151
1151
 
1152
1152
  Here's an example of a role for making text red:
1153
1153
 
@@ -5910,14 +5910,14 @@ Refer to the primary converter to discover the pseudo-HTML you can use for inlin
5910
5910
 
5911
5911
  So far we've just been biting around the edges.
5912
5912
  A more realistic use case is to customize the part title page in a multi-part book.
5913
- Since this is a specialized section element, there's a dedicated method named `layout_part_title` that you'll need to override.
5913
+ Since this is a specialized section element, there's a dedicated method named `inscribe_part_title` that you'll need to override.
5914
5914
 
5915
5915
  Let's customize the part title page by making the background orange, making the font white, centering the title on the page, and disabling the running content.
5916
5916
  (You don't need to start a new page before and after the part title since that's already done for you).
5917
5917
 
5918
5918
  [source,ruby]
5919
5919
  ----
5920
- def layout_part_title node, title, opts = {}
5920
+ def inscribe_part_title node, title, opts = {}
5921
5921
  fill_absolute_bounds 'E64C3D'
5922
5922
  move_down 20
5923
5923
  typeset_text title, (calc_line_metrics 1.5), color: 'FFFFFF', inline_format: true, align: :center, size: 42