Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
.bundle
vendor/*

# Temporaly
# Temporary
tmp/*
texdoc-*.zip

Expand Down
4 changes: 2 additions & 2 deletions script/texdoclib-config.tlu
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions script/texdoclib-search.tlu
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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 = {}

Expand Down
2 changes: 1 addition & 1 deletion script/texdoclib-view.tlu
Original file line number Diff line number Diff line change
Expand Up @@ -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 .. '; ' ..
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion spec/config/texdoc_cnf_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
end
end

context "containes invalid line" do
context "contains invalid line" do
let(:config_content) {
<<~EOF
XXX
Expand Down
4 changes: 2 additions & 2 deletions spec/score/order_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion spec/support/helpers/texdoc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion spec/support/shared_contexts/messages_context.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion spec/unit/texdoclib_test.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion texdoc.cnf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading