Skip to content

Commit

Permalink
list counter type: metanorma/metanorma-jis#228
Browse files Browse the repository at this point in the history
  • Loading branch information
opoudjis committed Oct 24, 2024
1 parent 335fcb3 commit c247444
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions lib/isodoc/xref.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,31 @@ class Xref

# Note: if bibrender is no passed in, do not parse references
def initialize(lang, script, klass, i18n, options = {})
@anchors = {}
initialize_empty
@lang = lang
@script = script
@klass = klass
@options = options
@i18n = i18n
@labels = @i18n.get
@klass.i18n = @i18n
initialize_i18n(i18n)
@klass.bibrender ||= options[:bibrender]
@locale = options[:locale]
@reqt_models = @klass.requirements_processor
.new({
default: "default", lang:, script:,
labels: @i18n.get
})
@i18n
.new({ default: "default", lang:, script:,
labels: @i18n.get })
end

def initialize_empty
@c = HTMLEntities.new
@anchors = {}
@parse_settings = {}
end

def initialize_i18n(i18n)
@i18n = i18n
@labels = @i18n.get
@klass.i18n = @i18n
@locale = @options[:locale]
end

def get
@anchors
end
Expand Down

0 comments on commit c247444

Please sign in to comment.