Skip to content

Commit

Permalink
Merge pull request gregorio-project#1622 from rpspringuel/akira-windo…
Browse files Browse the repository at this point in the history
…ws-bug

Normalizing filenames for Windows
  • Loading branch information
rpspringuel authored Feb 17, 2025
2 parents 96ea274 + 6a8656e commit ba5c432
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tex/gregoriotex.lua
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,6 @@ local function dump_nodes(head)
log('--end dump--')
end


-- helper function for center_translation()
local function get_first_node_by_id(id, head)
for n in traverse_id(id, head) do
Expand Down Expand Up @@ -1298,6 +1297,7 @@ local function include_score(input_file, force_gabccompile, allow_deprecated)
glog_file = string.format("%s%s-%s.glog", output_dir, cleaned_filename,
internalversion:gsub("%.", "_"))
compile_gabc(gabc_file, gtex_filename, glog_file, allow_deprecated)
gtex_filename = lfs.normalize(gtex_filename)
tex.print(string.format([[\input %s\relax]], gtex_filename))
return
else
Expand All @@ -1306,6 +1306,7 @@ local function include_score(input_file, force_gabccompile, allow_deprecated)
end
end
if not gabc_file then
gtex_file = lfs.normalize(gtex_file)
tex.print(string.format([[\input %s\relax]], gtex_file))
return
end
Expand All @@ -1328,6 +1329,7 @@ local function include_score(input_file, force_gabccompile, allow_deprecated)
elseif force_gabccompile then
compile_gabc(gabc_file, gtex_file, glog_file, allow_deprecated)
end
gtex_file = lfs.normalize(gtex_file)
tex.print(string.format([[\input %s\relax]], gtex_file))
return
end
Expand Down

0 comments on commit ba5c432

Please sign in to comment.