uniword 1.0.5 → 1.0.6
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/lib/uniword/docx/reconciler.rb +7 -25
- data/lib/uniword/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5dfe381dc7497d65a3df658a648fd09f7f3f5f1f66d68c27578cb3c1a8e226b3
|
|
4
|
+
data.tar.gz: c3ae36a30164bb6161a4a7b6d00525ae129b1230ee215941fa8deda61fdea557
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5942b178fdc0d078e2db920574940daf79dd8fe84fab759bb9265cf4ba4cefee28ed15129c876192d9ff923bd3888f2a598f456787b90360ee2d72b234e393a8
|
|
7
|
+
data.tar.gz: b15407d92eb46a750a842f0d38998d4ff49fcb374e5ed8c24ec94b0037fcf6cd10ac64855c490e07ded64381ad867fa1241867303192d09213e5da2b419b35aa
|
|
@@ -390,12 +390,7 @@ module Uniword
|
|
|
390
390
|
record_fix("R2", "Generated w15:docId in GUID format")
|
|
391
391
|
end
|
|
392
392
|
|
|
393
|
-
|
|
394
|
-
settings.mc_ignorable = Ooxml::Types::McIgnorable.new(
|
|
395
|
-
"w14 w15 w16se w16cid w16 w16cex w16sdtdh w16sdtfl w16du",
|
|
396
|
-
)
|
|
397
|
-
record_fix("R1", "Added mc:Ignorable to settings")
|
|
398
|
-
end
|
|
393
|
+
settings.mc_ignorable = nil
|
|
399
394
|
end
|
|
400
395
|
|
|
401
396
|
def reconcile_font_table
|
|
@@ -436,9 +431,7 @@ module Uniword
|
|
|
436
431
|
font_table.fonts << font
|
|
437
432
|
end
|
|
438
433
|
|
|
439
|
-
font_table.mc_ignorable
|
|
440
|
-
"w14 w15 w16se w16cid w16 w16cex w16sdtdh w16sdtfl w16du",
|
|
441
|
-
)
|
|
434
|
+
font_table.mc_ignorable = nil
|
|
442
435
|
record_fix("R13",
|
|
443
436
|
"Populated font table with profile fonts and signatures")
|
|
444
437
|
end
|
|
@@ -457,9 +450,7 @@ module Uniword
|
|
|
457
450
|
|
|
458
451
|
ensure_default_styles(styles)
|
|
459
452
|
|
|
460
|
-
styles.mc_ignorable
|
|
461
|
-
"w14 w15 w16se w16cid w16 w16cex w16sdtdh w16sdtfl w16du",
|
|
462
|
-
)
|
|
453
|
+
styles.mc_ignorable = nil
|
|
463
454
|
record_fix("R10",
|
|
464
455
|
"Ensured styles have docDefaults, latentStyles, and default styles")
|
|
465
456
|
end
|
|
@@ -468,12 +459,7 @@ module Uniword
|
|
|
468
459
|
return unless profile
|
|
469
460
|
return unless package.numbering
|
|
470
461
|
|
|
471
|
-
|
|
472
|
-
package.numbering.mc_ignorable = Ooxml::Types::McIgnorable.new(
|
|
473
|
-
"w14 w15 w16se w16cid w16 w16cex w16sdtdh w16sdtfl w16du wp14",
|
|
474
|
-
)
|
|
475
|
-
record_fix("R1", "Added mc:Ignorable to numbering")
|
|
476
|
-
end
|
|
462
|
+
package.numbering.mc_ignorable = nil
|
|
477
463
|
|
|
478
464
|
# Validate instance → definition references
|
|
479
465
|
package.numbering.instances.each do |inst|
|
|
@@ -499,10 +485,8 @@ module Uniword
|
|
|
499
485
|
package.web_settings
|
|
500
486
|
end
|
|
501
487
|
|
|
502
|
-
ws.mc_ignorable
|
|
503
|
-
|
|
504
|
-
)
|
|
505
|
-
record_fix("R1", "Added mc:Ignorable to webSettings")
|
|
488
|
+
ws.mc_ignorable = nil
|
|
489
|
+
record_fix("R1", "Cleared mc:Ignorable on webSettings")
|
|
506
490
|
end
|
|
507
491
|
|
|
508
492
|
def reconcile_app_properties
|
|
@@ -596,9 +580,7 @@ module Uniword
|
|
|
596
580
|
return unless package.document&.body
|
|
597
581
|
|
|
598
582
|
doc = package.document
|
|
599
|
-
doc.mc_ignorable
|
|
600
|
-
"w14 w15 w16se w16cid w16 w16cex w16sdtdh w16sdtfl w16du wp14",
|
|
601
|
-
)
|
|
583
|
+
doc.mc_ignorable = Ooxml::Types::McIgnorable.new("w14")
|
|
602
584
|
|
|
603
585
|
record_fix("R1", "Added mc:Ignorable to document body")
|
|
604
586
|
record_fix("R12", "Assigned rsid and paraId to paragraphs")
|
data/lib/uniword/version.rb
CHANGED