isodoc 1.6.0 → 1.6.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/bin/rspec +1 -2
- data/lib/isodoc/convert.rb +2 -2
- data/lib/isodoc/css.rb +30 -26
- data/lib/isodoc/function/blocks.rb +11 -4
- data/lib/isodoc/function/blocks_example_note.rb +2 -2
- data/lib/isodoc/function/cleanup.rb +1 -2
- data/lib/isodoc/function/utils.rb +41 -39
- data/lib/isodoc/gem_tasks.rb +30 -31
- data/lib/isodoc/html_convert.rb +4 -4
- data/lib/isodoc/html_function/postprocess.rb +27 -71
- data/lib/isodoc/html_function/postprocess_footnotes.rb +59 -0
- data/lib/isodoc/i18n.rb +20 -20
- data/lib/isodoc/presentation_function/block.rb +17 -8
- data/lib/isodoc/presentation_function/inline.rb +2 -0
- data/lib/isodoc/version.rb +1 -1
- data/lib/isodoc/word_function/footnotes.rb +22 -15
- data/lib/isodoc/xref.rb +9 -10
- data/lib/isodoc/xref/xref_counter.rb +31 -15
- data/lib/isodoc/xref/xref_gen.rb +12 -7
- data/lib/isodoc/xref/xref_sect_gen.rb +22 -20
- data/spec/isodoc/blocks_spec.rb +2585 -2576
- data/spec/isodoc/cleanup_spec.rb +1107 -1109
- data/spec/isodoc/i18n_spec.rb +984 -972
- data/spec/isodoc/lists_spec.rb +316 -315
- data/spec/isodoc/postproc_spec.rb +1636 -1530
- data/spec/isodoc/ref_spec.rb +718 -723
- data/spec/isodoc/xref_spec.rb +52 -0
- metadata +3 -2
data/spec/isodoc/xref_spec.rb
CHANGED
@@ -3245,4 +3245,56 @@ RSpec.describe IsoDoc do
|
|
3245
3245
|
a.increment({})
|
3246
3246
|
expect(a.print).to eq "V"
|
3247
3247
|
end
|
3248
|
+
|
3249
|
+
it "skips I in counter for xrefs" do
|
3250
|
+
a = IsoDoc::XrefGen::Counter.new("@", skip_i: true)
|
3251
|
+
a.increment({})
|
3252
|
+
a.increment({})
|
3253
|
+
a.increment({})
|
3254
|
+
a.increment({})
|
3255
|
+
a.increment({})
|
3256
|
+
a.increment({})
|
3257
|
+
a.increment({})
|
3258
|
+
a.increment({})
|
3259
|
+
expect(a.print).to eq "H"
|
3260
|
+
a.increment({})
|
3261
|
+
expect(a.print).to eq "J"
|
3262
|
+
a = IsoDoc::XrefGen::Counter.new("@")
|
3263
|
+
a.increment({})
|
3264
|
+
a.increment({})
|
3265
|
+
a.increment({})
|
3266
|
+
a.increment({})
|
3267
|
+
a.increment({})
|
3268
|
+
a.increment({})
|
3269
|
+
a.increment({})
|
3270
|
+
a.increment({})
|
3271
|
+
expect(a.print).to eq "H"
|
3272
|
+
a.increment({})
|
3273
|
+
expect(a.print).to eq "I"
|
3274
|
+
end
|
3275
|
+
|
3276
|
+
it "increments counter past Z for xrefs" do
|
3277
|
+
a = IsoDoc::XrefGen::Counter.new("Z")
|
3278
|
+
a.increment({})
|
3279
|
+
expect(a.print).to eq "AA"
|
3280
|
+
a.increment({})
|
3281
|
+
expect(a.print).to eq "AB"
|
3282
|
+
a = IsoDoc::XrefGen::Counter.new("BZ")
|
3283
|
+
a.increment({})
|
3284
|
+
expect(a.print).to eq "CA"
|
3285
|
+
a.increment({})
|
3286
|
+
expect(a.print).to eq "CB"
|
3287
|
+
a = IsoDoc::XrefGen::Counter.new("z")
|
3288
|
+
a.increment({})
|
3289
|
+
expect(a.print).to eq "aa"
|
3290
|
+
a.increment({})
|
3291
|
+
expect(a.print).to eq "ab"
|
3292
|
+
a = IsoDoc::XrefGen::Counter.new("Az")
|
3293
|
+
a.increment({})
|
3294
|
+
expect(a.print).to eq "Ba"
|
3295
|
+
a.increment({})
|
3296
|
+
expect(a.print).to eq "Bb"
|
3297
|
+
end
|
3298
|
+
|
3299
|
+
|
3248
3300
|
end
|
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: 1.6.
|
4
|
+
version: 1.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-04-
|
11
|
+
date: 2021-04-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: asciimath
|
@@ -389,6 +389,7 @@ files:
|
|
389
389
|
- lib/isodoc/html_function/html.rb
|
390
390
|
- lib/isodoc/html_function/mathvariant_to_plain.rb
|
391
391
|
- lib/isodoc/html_function/postprocess.rb
|
392
|
+
- lib/isodoc/html_function/postprocess_footnotes.rb
|
392
393
|
- lib/isodoc/i18n.rb
|
393
394
|
- lib/isodoc/metadata.rb
|
394
395
|
- lib/isodoc/metadata_contributor.rb
|