Skip to content

Commit

Permalink
chore: autopublish 2024-10-20T23:07:45Z
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Oct 20, 2024
1 parent 0dafdaf commit 8e35080
Show file tree
Hide file tree
Showing 194 changed files with 2,700 additions and 878 deletions.
32 changes: 26 additions & 6 deletions dist/UI_switch_to_selected_part.lua
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,30 @@ package.preload["library.client"] = package.preload["library.client"] or functio
end
return input_string
end

function client.encode_with_utf8_codepage(input_string)
if client.supports("luaosutils") then
local text = require("luaosutils").text
if text and text.get_default_codepage() ~= text.get_utf8_codepage() then
return text.convert_encoding(input_string, text.get_default_codepage(), text.get_utf8_codepage())
end
end
return input_string
end

function client.execute(command)
if client.supports("luaosutils") then
local process = require("luaosutils").process
if process then
return process.execute(command)
end
end
local handle = io.popen(command)
if not handle then return nil end
local retval = handle:read("*a")
handle:close()
return retval
end
return client
end
package.preload["library.general_library"] = package.preload["library.general_library"] or function()
Expand Down Expand Up @@ -307,7 +331,7 @@ package.preload["library.general_library"] = package.preload["library.general_li
end

function library.get_smufl_font_list()
local osutils = finenv.EmbeddedLuaOSUtils and require("luaosutils")
local osutils = client.supports("luaosutils") and require("luaosutils")
local font_names = {}
local add_to_table = function(for_user)
local smufl_directory = calc_smufl_directory(for_user)
Expand All @@ -318,11 +342,7 @@ package.preload["library.general_library"] = package.preload["library.general_li
end

local cmd = finenv.UI():IsOnWindows() and "dir " or "ls "
local handle = io.popen(cmd .. options .. " \"" .. smufl_directory .. "\"")
if not handle then return "" end
local retval = handle:read("*a")
handle:close()
return retval
return client.execute(cmd .. options .. " \"" .. smufl_directory .. "\"") or ""
end
local is_font_available = function(dir)
local fc_dir = finale.FCString()
Expand Down
25 changes: 25 additions & 0 deletions dist/accidental_simplify.lua
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,30 @@ package.preload["library.client"] = package.preload["library.client"] or functio
end
return input_string
end

function client.encode_with_utf8_codepage(input_string)
if client.supports("luaosutils") then
local text = require("luaosutils").text
if text and text.get_default_codepage() ~= text.get_utf8_codepage() then
return text.convert_encoding(input_string, text.get_default_codepage(), text.get_utf8_codepage())
end
end
return input_string
end

function client.execute(command)
if client.supports("luaosutils") then
local process = require("luaosutils").process
if process then
return process.execute(command)
end
end
local handle = io.popen(command)
if not handle then return nil end
local retval = handle:read("*a")
handle:close()
return retval
end
return client
end
package.preload["library.utils"] = package.preload["library.utils"] or function()
Expand Down Expand Up @@ -416,6 +440,7 @@ package.preload["library.utils"] = package.preload["library.utils"] or function(
local fcstr = finale.FCString(directory_path)
fcstr:AssureEndingPathDelimiter()
directory_path = fcstr.LuaString

local lfs_directory_path = text.convert_encoding(directory_path, text.get_utf8_codepage(), text.get_default_codepage())
return coroutine.wrap(function()
for lfs_file in lfs.dir(lfs_directory_path) do
Expand Down
33 changes: 27 additions & 6 deletions dist/articulation_expression_swap.lua
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@ package.preload["library.utils"] = package.preload["library.utils"] or function(
local fcstr = finale.FCString(directory_path)
fcstr:AssureEndingPathDelimiter()
directory_path = fcstr.LuaString

local lfs_directory_path = text.convert_encoding(directory_path, text.get_utf8_codepage(), text.get_default_codepage())
return coroutine.wrap(function()
for lfs_file in lfs.dir(lfs_directory_path) do
Expand Down Expand Up @@ -572,6 +573,30 @@ package.preload["library.client"] = package.preload["library.client"] or functio
end
return input_string
end

function client.encode_with_utf8_codepage(input_string)
if client.supports("luaosutils") then
local text = require("luaosutils").text
if text and text.get_default_codepage() ~= text.get_utf8_codepage() then
return text.convert_encoding(input_string, text.get_default_codepage(), text.get_utf8_codepage())
end
end
return input_string
end

function client.execute(command)
if client.supports("luaosutils") then
local process = require("luaosutils").process
if process then
return process.execute(command)
end
end
local handle = io.popen(command)
if not handle then return nil end
local retval = handle:read("*a")
handle:close()
return retval
end
return client
end
package.preload["library.general_library"] = package.preload["library.general_library"] or function()
Expand Down Expand Up @@ -771,7 +796,7 @@ package.preload["library.general_library"] = package.preload["library.general_li
end

function library.get_smufl_font_list()
local osutils = finenv.EmbeddedLuaOSUtils and require("luaosutils")
local osutils = client.supports("luaosutils") and require("luaosutils")
local font_names = {}
local add_to_table = function(for_user)
local smufl_directory = calc_smufl_directory(for_user)
Expand All @@ -782,11 +807,7 @@ package.preload["library.general_library"] = package.preload["library.general_li
end

local cmd = finenv.UI():IsOnWindows() and "dir " or "ls "
local handle = io.popen(cmd .. options .. " \"" .. smufl_directory .. "\"")
if not handle then return "" end
local retval = handle:read("*a")
handle:close()
return retval
return client.execute(cmd .. options .. " \"" .. smufl_directory .. "\"") or ""
end
local is_font_available = function(dir)
local fc_dir = finale.FCString()
Expand Down
33 changes: 27 additions & 6 deletions dist/barline_chooser.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3348,6 +3348,30 @@ package.preload["library.client"] = package.preload["library.client"] or functio
end
return input_string
end

function client.encode_with_utf8_codepage(input_string)
if client.supports("luaosutils") then
local text = require("luaosutils").text
if text and text.get_default_codepage() ~= text.get_utf8_codepage() then
return text.convert_encoding(input_string, text.get_default_codepage(), text.get_utf8_codepage())
end
end
return input_string
end

function client.execute(command)
if client.supports("luaosutils") then
local process = require("luaosutils").process
if process then
return process.execute(command)
end
end
local handle = io.popen(command)
if not handle then return nil end
local retval = handle:read("*a")
handle:close()
return retval
end
return client
end
package.preload["library.general_library"] = package.preload["library.general_library"] or function()
Expand Down Expand Up @@ -3547,7 +3571,7 @@ package.preload["library.general_library"] = package.preload["library.general_li
end

function library.get_smufl_font_list()
local osutils = finenv.EmbeddedLuaOSUtils and require("luaosutils")
local osutils = client.supports("luaosutils") and require("luaosutils")
local font_names = {}
local add_to_table = function(for_user)
local smufl_directory = calc_smufl_directory(for_user)
Expand All @@ -3558,11 +3582,7 @@ package.preload["library.general_library"] = package.preload["library.general_li
end

local cmd = finenv.UI():IsOnWindows() and "dir " or "ls "
local handle = io.popen(cmd .. options .. " \"" .. smufl_directory .. "\"")
if not handle then return "" end
local retval = handle:read("*a")
handle:close()
return retval
return client.execute(cmd .. options .. " \"" .. smufl_directory .. "\"") or ""
end
local is_font_available = function(dir)
local fc_dir = finale.FCString()
Expand Down Expand Up @@ -4071,6 +4091,7 @@ package.preload["library.utils"] = package.preload["library.utils"] or function(
local fcstr = finale.FCString(directory_path)
fcstr:AssureEndingPathDelimiter()
directory_path = fcstr.LuaString

local lfs_directory_path = text.convert_encoding(directory_path, text.get_utf8_codepage(), text.get_default_codepage())
return coroutine.wrap(function()
for lfs_file in lfs.dir(lfs_directory_path) do
Expand Down
1 change: 1 addition & 0 deletions dist/baseline_move_reset.lua
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@ package.preload["library.utils"] = package.preload["library.utils"] or function(
local fcstr = finale.FCString(directory_path)
fcstr:AssureEndingPathDelimiter()
directory_path = fcstr.LuaString

local lfs_directory_path = text.convert_encoding(directory_path, text.get_utf8_codepage(), text.get_default_codepage())
return coroutine.wrap(function()
for lfs_file in lfs.dir(lfs_directory_path) do
Expand Down
1 change: 1 addition & 0 deletions dist/chord_accidental_adjust_down.lua
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@ package.preload["library.utils"] = package.preload["library.utils"] or function(
local fcstr = finale.FCString(directory_path)
fcstr:AssureEndingPathDelimiter()
directory_path = fcstr.LuaString

local lfs_directory_path = text.convert_encoding(directory_path, text.get_utf8_codepage(), text.get_default_codepage())
return coroutine.wrap(function()
for lfs_file in lfs.dir(lfs_directory_path) do
Expand Down
1 change: 1 addition & 0 deletions dist/chord_accidental_adjust_up.lua
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@ package.preload["library.utils"] = package.preload["library.utils"] or function(
local fcstr = finale.FCString(directory_path)
fcstr:AssureEndingPathDelimiter()
directory_path = fcstr.LuaString

local lfs_directory_path = text.convert_encoding(directory_path, text.get_utf8_codepage(), text.get_default_codepage())
return coroutine.wrap(function()
for lfs_file in lfs.dir(lfs_directory_path) do
Expand Down
24 changes: 24 additions & 0 deletions dist/clef_change.lua
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,30 @@ package.preload["library.client"] = package.preload["library.client"] or functio
end
return input_string
end

function client.encode_with_utf8_codepage(input_string)
if client.supports("luaosutils") then
local text = require("luaosutils").text
if text and text.get_default_codepage() ~= text.get_utf8_codepage() then
return text.convert_encoding(input_string, text.get_default_codepage(), text.get_utf8_codepage())
end
end
return input_string
end

function client.execute(command)
if client.supports("luaosutils") then
local process = require("luaosutils").process
if process then
return process.execute(command)
end
end
local handle = io.popen(command)
if not handle then return nil end
local retval = handle:read("*a")
handle:close()
return retval
end
return client
end
package.preload["library.clef"] = package.preload["library.clef"] or function()
Expand Down
33 changes: 27 additions & 6 deletions dist/cross_staff_offset.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4802,6 +4802,7 @@ package.preload["library.utils"] = package.preload["library.utils"] or function(
local fcstr = finale.FCString(directory_path)
fcstr:AssureEndingPathDelimiter()
directory_path = fcstr.LuaString

local lfs_directory_path = text.convert_encoding(directory_path, text.get_utf8_codepage(), text.get_default_codepage())
return coroutine.wrap(function()
for lfs_file in lfs.dir(lfs_directory_path) do
Expand Down Expand Up @@ -4933,6 +4934,30 @@ package.preload["library.client"] = package.preload["library.client"] or functio
end
return input_string
end

function client.encode_with_utf8_codepage(input_string)
if client.supports("luaosutils") then
local text = require("luaosutils").text
if text and text.get_default_codepage() ~= text.get_utf8_codepage() then
return text.convert_encoding(input_string, text.get_default_codepage(), text.get_utf8_codepage())
end
end
return input_string
end

function client.execute(command)
if client.supports("luaosutils") then
local process = require("luaosutils").process
if process then
return process.execute(command)
end
end
local handle = io.popen(command)
if not handle then return nil end
local retval = handle:read("*a")
handle:close()
return retval
end
return client
end
package.preload["library.general_library"] = package.preload["library.general_library"] or function()
Expand Down Expand Up @@ -5132,7 +5157,7 @@ package.preload["library.general_library"] = package.preload["library.general_li
end

function library.get_smufl_font_list()
local osutils = finenv.EmbeddedLuaOSUtils and require("luaosutils")
local osutils = client.supports("luaosutils") and require("luaosutils")
local font_names = {}
local add_to_table = function(for_user)
local smufl_directory = calc_smufl_directory(for_user)
Expand All @@ -5143,11 +5168,7 @@ package.preload["library.general_library"] = package.preload["library.general_li
end

local cmd = finenv.UI():IsOnWindows() and "dir " or "ls "
local handle = io.popen(cmd .. options .. " \"" .. smufl_directory .. "\"")
if not handle then return "" end
local retval = handle:read("*a")
handle:close()
return retval
return client.execute(cmd .. options .. " \"" .. smufl_directory .. "\"") or ""
end
local is_font_available = function(dir)
local fc_dir = finale.FCString()
Expand Down
33 changes: 27 additions & 6 deletions dist/cue_notes_create.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3673,6 +3673,30 @@ package.preload["library.client"] = package.preload["library.client"] or functio
end
return input_string
end

function client.encode_with_utf8_codepage(input_string)
if client.supports("luaosutils") then
local text = require("luaosutils").text
if text and text.get_default_codepage() ~= text.get_utf8_codepage() then
return text.convert_encoding(input_string, text.get_default_codepage(), text.get_utf8_codepage())
end
end
return input_string
end

function client.execute(command)
if client.supports("luaosutils") then
local process = require("luaosutils").process
if process then
return process.execute(command)
end
end
local handle = io.popen(command)
if not handle then return nil end
local retval = handle:read("*a")
handle:close()
return retval
end
return client
end
package.preload["library.general_library"] = package.preload["library.general_library"] or function()
Expand Down Expand Up @@ -3872,7 +3896,7 @@ package.preload["library.general_library"] = package.preload["library.general_li
end

function library.get_smufl_font_list()
local osutils = finenv.EmbeddedLuaOSUtils and require("luaosutils")
local osutils = client.supports("luaosutils") and require("luaosutils")
local font_names = {}
local add_to_table = function(for_user)
local smufl_directory = calc_smufl_directory(for_user)
Expand All @@ -3883,11 +3907,7 @@ package.preload["library.general_library"] = package.preload["library.general_li
end

local cmd = finenv.UI():IsOnWindows() and "dir " or "ls "
local handle = io.popen(cmd .. options .. " \"" .. smufl_directory .. "\"")
if not handle then return "" end
local retval = handle:read("*a")
handle:close()
return retval
return client.execute(cmd .. options .. " \"" .. smufl_directory .. "\"") or ""
end
local is_font_available = function(dir)
local fc_dir = finale.FCString()
Expand Down Expand Up @@ -4396,6 +4416,7 @@ package.preload["library.utils"] = package.preload["library.utils"] or function(
local fcstr = finale.FCString(directory_path)
fcstr:AssureEndingPathDelimiter()
directory_path = fcstr.LuaString

local lfs_directory_path = text.convert_encoding(directory_path, text.get_utf8_codepage(), text.get_default_codepage())
return coroutine.wrap(function()
for lfs_file in lfs.dir(lfs_directory_path) do
Expand Down
Loading

0 comments on commit 8e35080

Please sign in to comment.