summaryrefslogtreecommitdiffstats
path: root/actionsosx
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-03-02 20:01:10 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-03-02 20:01:10 +0000
commitda875fcb62c801b8d19b3d4d984ad963574fb356 (patch)
tree3d85503747c56c2a387b291524442946f4bebb73 /actionsosx
parentInitial commit. (diff)
downloadpysilfont-da875fcb62c801b8d19b3d4d984ad963574fb356.tar.xz
pysilfont-da875fcb62c801b8d19b3d4d984ad963574fb356.zip
Adding upstream version 1.6.0.upstream/1.6.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'actionsosx')
-rw-r--r--actionsosx/README.txt19
-rw-r--r--actionsosx/UFO Normalize.workflow/Contents/Info.plist27
-rw-r--r--actionsosx/UFO Normalize.workflow/Contents/QuickLook/Thumbnail.pngbin0 -> 34886 bytes
-rw-r--r--actionsosx/UFO Normalize.workflow/Contents/document.wflow204
4 files changed, 250 insertions, 0 deletions
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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>NSServices</key>
+ <array>
+ <dict>
+ <key>NSMenuItem</key>
+ <dict>
+ <key>default</key>
+ <string>UFO Normalize</string>
+ </dict>
+ <key>NSMessage</key>
+ <string>runWorkflowAsService</string>
+ <key>NSRequiredContext</key>
+ <dict>
+ <key>NSApplicationIdentifier</key>
+ <string>com.apple.finder</string>
+ </dict>
+ <key>NSSendFileTypes</key>
+ <array>
+ <string>public.item</string>
+ </array>
+ </dict>
+ </array>
+</dict>
+</plist>
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
--- /dev/null
+++ b/actionsosx/UFO Normalize.workflow/Contents/QuickLook/Thumbnail.png
Binary files 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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>AMApplicationBuild</key>
+ <string>428</string>
+ <key>AMApplicationVersion</key>
+ <string>2.7</string>
+ <key>AMDocumentVersion</key>
+ <string>2</string>
+ <key>actions</key>
+ <array>
+ <dict>
+ <key>action</key>
+ <dict>
+ <key>AMAccepts</key>
+ <dict>
+ <key>Container</key>
+ <string>List</string>
+ <key>Optional</key>
+ <true/>
+ <key>Types</key>
+ <array>
+ <string>com.apple.cocoa.string</string>
+ </array>
+ </dict>
+ <key>AMActionVersion</key>
+ <string>2.0.3</string>
+ <key>AMApplication</key>
+ <array>
+ <string>Automator</string>
+ </array>
+ <key>AMParameterProperties</key>
+ <dict>
+ <key>COMMAND_STRING</key>
+ <dict/>
+ <key>CheckedForUserDefaultShell</key>
+ <dict/>
+ <key>inputMethod</key>
+ <dict/>
+ <key>shell</key>
+ <dict/>
+ <key>source</key>
+ <dict/>
+ </dict>
+ <key>AMProvides</key>
+ <dict>
+ <key>Container</key>
+ <string>List</string>
+ <key>Types</key>
+ <array>
+ <string>com.apple.cocoa.string</string>
+ </array>
+ </dict>
+ <key>ActionBundlePath</key>
+ <string>/System/Library/Automator/Run Shell Script.action</string>
+ <key>ActionName</key>
+ <string>Run Shell Script</string>
+ <key>ActionParameters</key>
+ <dict>
+ <key>COMMAND_STRING</key>
+ <string>for f in "$@"
+do
+ /usr/local/bin/psfnormalize "$f"
+done</string>
+ <key>CheckedForUserDefaultShell</key>
+ <true/>
+ <key>inputMethod</key>
+ <integer>1</integer>
+ <key>shell</key>
+ <string>/bin/bash</string>
+ <key>source</key>
+ <string></string>
+ </dict>
+ <key>BundleIdentifier</key>
+ <string>com.apple.RunShellScript</string>
+ <key>CFBundleVersion</key>
+ <string>2.0.3</string>
+ <key>CanShowSelectedItemsWhenRun</key>
+ <false/>
+ <key>CanShowWhenRun</key>
+ <true/>
+ <key>Category</key>
+ <array>
+ <string>AMCategoryUtilities</string>
+ </array>
+ <key>Class Name</key>
+ <string>RunShellScriptAction</string>
+ <key>InputUUID</key>
+ <string>A5DDB5A1-5587-4252-BDF2-2088FB0C18DA</string>
+ <key>Keywords</key>
+ <array>
+ <string>Shell</string>
+ <string>Script</string>
+ <string>Command</string>
+ <string>Run</string>
+ <string>Unix</string>
+ </array>
+ <key>OutputUUID</key>
+ <string>C1A7AC3D-90D6-472B-8DBA-C3F2CD74F083</string>
+ <key>UUID</key>
+ <string>C4284E07-22D9-4635-9306-D48F8EA7946F</string>
+ <key>UnlocalizedApplications</key>
+ <array>
+ <string>Automator</string>
+ </array>
+ <key>arguments</key>
+ <dict>
+ <key>0</key>
+ <dict>
+ <key>default value</key>
+ <integer>0</integer>
+ <key>name</key>
+ <string>inputMethod</string>
+ <key>required</key>
+ <string>0</string>
+ <key>type</key>
+ <string>0</string>
+ <key>uuid</key>
+ <string>0</string>
+ </dict>
+ <key>1</key>
+ <dict>
+ <key>default value</key>
+ <string></string>
+ <key>name</key>
+ <string>source</string>
+ <key>required</key>
+ <string>0</string>
+ <key>type</key>
+ <string>0</string>
+ <key>uuid</key>
+ <string>1</string>
+ </dict>
+ <key>2</key>
+ <dict>
+ <key>default value</key>
+ <false/>
+ <key>name</key>
+ <string>CheckedForUserDefaultShell</string>
+ <key>required</key>
+ <string>0</string>
+ <key>type</key>
+ <string>0</string>
+ <key>uuid</key>
+ <string>2</string>
+ </dict>
+ <key>3</key>
+ <dict>
+ <key>default value</key>
+ <string></string>
+ <key>name</key>
+ <string>COMMAND_STRING</string>
+ <key>required</key>
+ <string>0</string>
+ <key>type</key>
+ <string>0</string>
+ <key>uuid</key>
+ <string>3</string>
+ </dict>
+ <key>4</key>
+ <dict>
+ <key>default value</key>
+ <string>/bin/sh</string>
+ <key>name</key>
+ <string>shell</string>
+ <key>required</key>
+ <string>0</string>
+ <key>type</key>
+ <string>0</string>
+ <key>uuid</key>
+ <string>4</string>
+ </dict>
+ </dict>
+ <key>isViewVisible</key>
+ <true/>
+ <key>location</key>
+ <string>309.000000:253.000000</string>
+ <key>nibPath</key>
+ <string>/System/Library/Automator/Run Shell Script.action/Contents/Resources/English.lproj/main.nib</string>
+ </dict>
+ <key>isViewVisible</key>
+ <true/>
+ </dict>
+ </array>
+ <key>connectors</key>
+ <dict/>
+ <key>workflowMetaData</key>
+ <dict>
+ <key>serviceApplicationBundleID</key>
+ <string>com.apple.finder</string>
+ <key>serviceApplicationPath</key>
+ <string>/System/Library/CoreServices/Finder.app</string>
+ <key>serviceInputTypeIdentifier</key>
+ <string>com.apple.Automator.fileSystemObject</string>
+ <key>serviceOutputTypeIdentifier</key>
+ <string>com.apple.Automator.nothing</string>
+ <key>serviceProcessesInput</key>
+ <integer>0</integer>
+ <key>workflowTypeIdentifier</key>
+ <string>com.apple.Automator.servicesMenu</string>
+ </dict>
+</dict>
+</plist>