Class: Fontist::Import::SilImport

Inherits:
Object
  • Object
show all
Defined in:
lib/fontist/import/sil_import.rb

Constant Summary collapse

ROOT =
"https://software.sil.org/fonts/".freeze

Instance Method Summary collapse

Instance Method Details

#callObject



9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/fontist/import/sil_import.rb', line 9

def call
  links = font_links
  Fontist.ui.success("Found #{links.size} links.")

  paths = []
  links.each do |link|
    path = create_formula_by_page_link(link)
    paths << path if path
  end

  Fontist::Index.rebuild

  Fontist.ui.success("Created #{paths.size} formulas.")
end