isodoc 3.1.9 → 3.1.10
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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 99e69024aaaf44cd4e14adf54c3a7ae462ca5400306a9ccc20c74834ad101418
|
4
|
+
data.tar.gz: 39060f4e2b83d5211610b75d39474449191b0ef8f8d543672fc6a40eba55f7bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2eeb99cfc5aebc17b5e07b2496467cc822a547c61d08e5b572b6575da8402b3beee4c6b854e8ee7feefaaa215e6aecd055670f9653e1d9c38538928ab6d06a85
|
7
|
+
data.tar.gz: 6a185f46948895262590d32bf58d311f53938a0f122d84e26d722a661d1a48fdf63aa043f5d8f094928d1441eb6b00f844182376300b3cf5c44311e35dea2849
|
@@ -102,10 +102,9 @@ module IsoDoc
|
|
102
102
|
|
103
103
|
def image_body_parse(node, attrs, out)
|
104
104
|
if svg = node.at("./m:svg", "m" => "http://www.w3.org/2000/svg")
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
end
|
105
|
+
svg.delete("width")
|
106
|
+
svg["height"] = "1px"
|
107
|
+
svg["padding-bottom"] = "calc(100% * 3 / 4);"
|
109
108
|
out.parent.add_child(svg)
|
110
109
|
else super
|
111
110
|
end
|
@@ -80,9 +80,9 @@ module IsoDoc
|
|
80
80
|
IsoDoc::HtmlFunction::MathvariantToPlain.new(docxml).convert
|
81
81
|
end
|
82
82
|
|
83
|
+
# do not resize SVG, their height is set to 1px in HTML for autofit
|
83
84
|
def resize_images(docxml)
|
84
|
-
docxml.xpath("//*[local-name() = 'img'
|
85
|
-
.each do |i|
|
85
|
+
docxml.xpath("//*[local-name() = 'img']").each do |i|
|
86
86
|
loc = image_localfile(i) or next
|
87
87
|
i["width"], i["height"] = Vectory::ImageResize.new
|
88
88
|
.call(i, loc, @maxheight, @maxwidth)
|
data/lib/isodoc/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: isodoc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-05-
|
11
|
+
date: 2025-05-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: base64
|