diff --git a/.gitignore b/.gitignore index 75d882f..4d8c898 100644 --- a/.gitignore +++ b/.gitignore @@ -24,7 +24,7 @@ .bundle vendor/* -# Temporaly +# Temporary tmp/* texdoc-*.zip diff --git a/script/texdoclib-config.tlu b/script/texdoclib-config.tlu index 14df3f8..cfff39b 100644 --- a/script/texdoclib-config.tlu +++ b/script/texdoclib-config.tlu @@ -61,7 +61,7 @@ local function context_to_string(context) elseif context.src == 'def' then return 'from built-in defaults' else - return 'from unkown source (should not happen, please report)' + return 'from unknown source (should not happen, please report)' end end @@ -380,7 +380,7 @@ function M.show_config_files(is_action) local w32_path = import_function('util', 'w32_path') local dbg_print = import_function('util', 'dbg_print') - -- controled print_func + -- controlled print_func local indent = is_action and ' ' or '' local print_func = is_action and print or function(s) dbg_print('files', s) end diff --git a/script/texdoclib-search.tlu b/script/texdoclib-search.tlu index abca807..3ab7ddd 100644 --- a/script/texdoclib-search.tlu +++ b/script/texdoclib-search.tlu @@ -31,7 +31,7 @@ local vanilla -- is this a vanilla TL or a re-package one without tlpdb? -- find the TeX Live root local function get_tlroot() - local tlroot = kpse.expand_path('$TEXMFROOT') -- it should be exisitng one + local tlroot = kpse.expand_path('$TEXMFROOT') -- it should be existing one get_tlroot = function() return tlroot end return tlroot end @@ -40,7 +40,7 @@ end -- (or known basename according to basename_list) local function check_ext(file) file = file:lower() - -- has a known extention? + -- has a known extension? if texdoc.util.get_ext(file) ~= nil then return true end @@ -517,7 +517,7 @@ end -- tlpdb means TeX Live Package DataBase and tlp means TeX Live Package --- return an iterator that ouputs the keys in order +-- return an iterator that outputs the keys in order local function opairs(t) local tkeys = {} diff --git a/script/texdoclib-view.tlu b/script/texdoclib-view.tlu index 594a641..abb226c 100644 --- a/script/texdoclib-view.tlu +++ b/script/texdoclib-view.tlu @@ -104,7 +104,7 @@ function M.view_file(filename) os.exit(C.exit_error) end - -- it is necessary to sleep a few secounds. Otherwise, the temporary + -- it is necessary to sleep a few seconds. Otherwise, the temporary -- file could be removed before opening it. viewer_replacement = tmpfile .. '; sleep 2; ' .. texdoc.config.get_value('rm_file') .. ' ' ..tmpfile .. '; ' .. diff --git a/spec/config/buitin_spec.rb b/spec/config/builtin_spec.rb similarity index 100% rename from spec/config/buitin_spec.rb rename to spec/config/builtin_spec.rb diff --git a/spec/config/texdoc_cnf_spec.rb b/spec/config/texdoc_cnf_spec.rb index ad6a31f..8b005b3 100644 --- a/spec/config/texdoc_cnf_spec.rb +++ b/spec/config/texdoc_cnf_spec.rb @@ -47,7 +47,7 @@ end end - context "containes invalid line" do + context "contains invalid line" do let(:config_content) { <<~EOF XXX diff --git a/spec/score/order_spec.rb b/spec/score/order_spec.rb index b9cecdf..a72ed52 100644 --- a/spec/score/order_spec.rb +++ b/spec/score/order_spec.rb @@ -19,7 +19,7 @@ end end - context "for documents with the same scores and different extentions" do + context "for documents with the same scores and different extensions" do before(:each) { run_texdoc "-lM", "texlive-en" } let(:res_list_head) do @@ -29,7 +29,7 @@ EXPECTED end - it "should be ordered by the extention position" do + it "should be ordered by the extension position" do expect(stdout).to start_with(res_list_head) end end diff --git a/spec/support/helpers/texdoc.rb b/spec/support/helpers/texdoc.rb index b66bc4d..f3a2d7e 100644 --- a/spec/support/helpers/texdoc.rb +++ b/spec/support/helpers/texdoc.rb @@ -48,7 +48,7 @@ def setup_texmf_trees # running the target texdoc def run_texdoc *args, interactive: false - # constract the arguments + # construct the arguments arg_str = "" arg_str = " " + args.join(" ") if args.size > 0 diff --git a/spec/support/shared_contexts/messages_context.rb b/spec/support/shared_contexts/messages_context.rb index 17eea58..bdd0a62 100644 --- a/spec/support/shared_contexts/messages_context.rb +++ b/spec/support/shared_contexts/messages_context.rb @@ -8,7 +8,7 @@ "Try `texdoc --help' for short help, `texdoc texdoc' for full manual." } - # functions for output line genaration + # functions for output line generation def error_line msg return "texdoc error: #{msg}" end diff --git a/spec/unit/texdoclib_test.lua b/spec/unit/texdoclib_test.lua index ccabb7e..d0c475f 100644 --- a/spec/unit/texdoclib_test.lua +++ b/spec/unit/texdoclib_test.lua @@ -35,7 +35,7 @@ end -- load texdoclib for tests bellow local texdoc = require('texdoclib') --- Are all submodules sucessfully loaded? +-- Are all submodules successfully loaded? do local names = { 'const', diff --git a/texdoc.cnf b/texdoc.cnf index 2654af7..da57485 100644 --- a/texdoc.cnf +++ b/texdoc.cnf @@ -158,7 +158,7 @@ adjscore /latex-dev/ = -2 # but they're still slightly better than other results with negative scores adjscore readme = +0.1 -# auto-generated README file shopuld not be preferred +# auto-generated README file should not be preferred adjscore readme.texlive = -10 ## Specific adjustments