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.
@@ -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.0
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-12 00:00:00.000000000 Z
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