Skip to content

Commit

Permalink
Change default feature precision
Browse files Browse the repository at this point in the history
  • Loading branch information
inukshuk committed Mar 25, 2018
1 parent 4d1ef27 commit c7ee01b
Show file tree
Hide file tree
Showing 5 changed files with 10,899 additions and 12,613 deletions.
2 changes: 1 addition & 1 deletion lib/anystyle/feature.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class Feature

attr_reader :precision

def initialize(precision: 100, **opts)
def initialize(precision: 10, **opts)
@precision = precision
end

Expand Down
6 changes: 3 additions & 3 deletions lib/anystyle/finder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ def initialize(options = {})
super(options)

@features = [
Feature::Line.new(precision: 10),
Feature::Line.new,
Feature::Words.new,
Feature::Indent.new,
Feature::Ref.new,
Feature::Position.new(seq: :page, idx: :ln, precision: 10),
Feature::Position.new(seq: :pages, idx: :pn, precision: 10)
Feature::Position.new(seq: :page, idx: :ln),
Feature::Position.new(seq: :pages, idx: :pn)
]
end

Expand Down
Loading

0 comments on commit c7ee01b

Please sign in to comment.