slaw 0.15.0 → 0.15.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.
- checksums.yaml +4 -4
- data/README.md +4 -0
- data/lib/slaw/extract/html_to_akn_text.xsl +2 -11
- data/lib/slaw/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6077ac32a62ffd20ed6c20f1f27fc48471527d6a
|
|
4
|
+
data.tar.gz: ad9c45f24331e6df41ca3dbee780584345a73806
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 991efe1d467cefa23fb0c8cb9045af0bd56b31e9e033f48adce4a38059ed4ae5ac20a06f70d6e6d056d96a392b351c3a7211051673b32701fd273a5afb46c33d
|
|
7
|
+
data.tar.gz: c3f68343a148ea00c7393feaddfe8599f35669af798282d823c88aa841d296c104d511f06e2282f05d9ab27d39bf122fc6767019f0d3c6b3bda10919a819a168
|
data/README.md
CHANGED
|
@@ -218,6 +218,10 @@ Akoma Ntoso `component` elements at the end of the XML document, with a name of
|
|
|
218
218
|
|
|
219
219
|
## Changelog
|
|
220
220
|
|
|
221
|
+
### 0.15.1
|
|
222
|
+
|
|
223
|
+
* Ignore non-AKN compatible table attributes
|
|
224
|
+
|
|
221
225
|
### 0.15.0
|
|
222
226
|
|
|
223
227
|
* Support tables in many non-PDF documents (eg. Word documents) by converting to HTML and then to Akoma Ntoso
|
|
@@ -28,17 +28,8 @@
|
|
|
28
28
|
|
|
29
29
|
<xsl:template match="table">
|
|
30
30
|
<xsl:text>{| </xsl:text>
|
|
31
|
-
|
|
32
|
-
<!-- attributes -->
|
|
33
|
-
<xsl:for-each select="@*[local-name()!='id']">
|
|
34
|
-
<xsl:value-of select="local-name(.)" />
|
|
35
|
-
<xsl:text>="</xsl:text>
|
|
36
|
-
<xsl:value-of select="." />
|
|
37
|
-
<xsl:text>" </xsl:text>
|
|
38
|
-
</xsl:for-each>
|
|
39
31
|
<xsl:text>
|
|
40
32
|
|-</xsl:text>
|
|
41
|
-
|
|
42
33
|
<xsl:apply-templates />
|
|
43
34
|
<xsl:text>
|
|
44
35
|
|}
|
|
@@ -65,8 +56,8 @@
|
|
|
65
56
|
</xsl:choose>
|
|
66
57
|
|
|
67
58
|
<!-- attributes -->
|
|
68
|
-
<xsl:if test="
|
|
69
|
-
<xsl:for-each select="
|
|
59
|
+
<xsl:if test="@rowspan|@colspan">
|
|
60
|
+
<xsl:for-each select="@rowspan|@colspan">
|
|
70
61
|
<xsl:value-of select="local-name(.)" />
|
|
71
62
|
<xsl:text>="</xsl:text>
|
|
72
63
|
<xsl:value-of select="." />
|
data/lib/slaw/version.rb
CHANGED