From da875fcb62c801b8d19b3d4d984ad963574fb356 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 2 Mar 2023 21:01:10 +0100 Subject: Adding upstream version 1.6.0. Signed-off-by: Daniel Baumann --- actionsosx/README.txt | 19 ++ .../UFO Normalize.workflow/Contents/Info.plist | 27 +++ .../Contents/QuickLook/Thumbnail.png | Bin 0 -> 34886 bytes .../UFO Normalize.workflow/Contents/document.wflow | 204 +++++++++++++++++++++ 4 files changed, 250 insertions(+) create mode 100644 actionsosx/README.txt create mode 100644 actionsosx/UFO Normalize.workflow/Contents/Info.plist create mode 100644 actionsosx/UFO Normalize.workflow/Contents/QuickLook/Thumbnail.png create mode 100644 actionsosx/UFO Normalize.workflow/Contents/document.wflow (limited to 'actionsosx') diff --git a/actionsosx/README.txt b/actionsosx/README.txt new file mode 100644 index 0000000..ac63546 --- /dev/null +++ b/actionsosx/README.txt @@ -0,0 +1,19 @@ +This folder contains actions for use in Mac OS X based on tools in pysilfont. + +UFO NORMALIZE + +This action takes a .ufo (Unified Font Object) and normalizes the file to standardize the formatting. Some of the changes include: + - standard indenting in the xml files + - sorting plists alphabetically + - uniform handling of capitals & underscores in glif filenames + +To install the UFO Normalize action: + +- install the pysilfont package using the steps in INSTALL.txt (important!) +- double-click on UFO Normalize.workflow + +To use the UFO Normalize action: + +- right-click on a UFO file, and choose Services>UFO Normalize + +The action first makes a copy of the UFO in a backups subfolder. diff --git a/actionsosx/UFO Normalize.workflow/Contents/Info.plist b/actionsosx/UFO Normalize.workflow/Contents/Info.plist new file mode 100644 index 0000000..7e01663 --- /dev/null +++ b/actionsosx/UFO Normalize.workflow/Contents/Info.plist @@ -0,0 +1,27 @@ + + + + + NSServices + + + NSMenuItem + + default + UFO Normalize + + NSMessage + runWorkflowAsService + NSRequiredContext + + NSApplicationIdentifier + com.apple.finder + + NSSendFileTypes + + public.item + + + + + diff --git a/actionsosx/UFO Normalize.workflow/Contents/QuickLook/Thumbnail.png b/actionsosx/UFO Normalize.workflow/Contents/QuickLook/Thumbnail.png new file mode 100644 index 0000000..97fea58 Binary files /dev/null and b/actionsosx/UFO Normalize.workflow/Contents/QuickLook/Thumbnail.png differ diff --git a/actionsosx/UFO Normalize.workflow/Contents/document.wflow b/actionsosx/UFO Normalize.workflow/Contents/document.wflow new file mode 100644 index 0000000..d00336f --- /dev/null +++ b/actionsosx/UFO Normalize.workflow/Contents/document.wflow @@ -0,0 +1,204 @@ + + + + + AMApplicationBuild + 428 + AMApplicationVersion + 2.7 + AMDocumentVersion + 2 + actions + + + action + + AMAccepts + + Container + List + Optional + + Types + + com.apple.cocoa.string + + + AMActionVersion + 2.0.3 + AMApplication + + Automator + + AMParameterProperties + + COMMAND_STRING + + CheckedForUserDefaultShell + + inputMethod + + shell + + source + + + AMProvides + + Container + List + Types + + com.apple.cocoa.string + + + ActionBundlePath + /System/Library/Automator/Run Shell Script.action + ActionName + Run Shell Script + ActionParameters + + COMMAND_STRING + for f in "$@" +do + /usr/local/bin/psfnormalize "$f" +done + CheckedForUserDefaultShell + + inputMethod + 1 + shell + /bin/bash + source + + + BundleIdentifier + com.apple.RunShellScript + CFBundleVersion + 2.0.3 + CanShowSelectedItemsWhenRun + + CanShowWhenRun + + Category + + AMCategoryUtilities + + Class Name + RunShellScriptAction + InputUUID + A5DDB5A1-5587-4252-BDF2-2088FB0C18DA + Keywords + + Shell + Script + Command + Run + Unix + + OutputUUID + C1A7AC3D-90D6-472B-8DBA-C3F2CD74F083 + UUID + C4284E07-22D9-4635-9306-D48F8EA7946F + UnlocalizedApplications + + Automator + + arguments + + 0 + + default value + 0 + name + inputMethod + required + 0 + type + 0 + uuid + 0 + + 1 + + default value + + name + source + required + 0 + type + 0 + uuid + 1 + + 2 + + default value + + name + CheckedForUserDefaultShell + required + 0 + type + 0 + uuid + 2 + + 3 + + default value + + name + COMMAND_STRING + required + 0 + type + 0 + uuid + 3 + + 4 + + default value + /bin/sh + name + shell + required + 0 + type + 0 + uuid + 4 + + + isViewVisible + + location + 309.000000:253.000000 + nibPath + /System/Library/Automator/Run Shell Script.action/Contents/Resources/English.lproj/main.nib + + isViewVisible + + + + connectors + + workflowMetaData + + serviceApplicationBundleID + com.apple.finder + serviceApplicationPath + /System/Library/CoreServices/Finder.app + serviceInputTypeIdentifier + com.apple.Automator.fileSystemObject + serviceOutputTypeIdentifier + com.apple.Automator.nothing + serviceProcessesInput + 0 + workflowTypeIdentifier + com.apple.Automator.servicesMenu + + + -- cgit v1.2.3