from __future__ import absolute_import from __future__ import print_function import os from mojo.extensions import ExtensionBundle basePath = os.path.dirname(__file__) extensionPath = os.path.join(basePath, "ThemeManager.roboFontExt") libPath = os.path.join(basePath, "lib") htmlPath = os.path.join(basePath, "html") resourcesPath = os.path.join(basePath, "resources") B = ExtensionBundle() B.name = "Theme Manager" B.version = "1.0.2" B.developer = "Connor Davenport and Andy Clymer" B.developerURL = 'http://www.connordavenport.com/ http://www.andyclymer.com/' B.launchAtStartUp = False B.addToMenu = [{ 'path': 'ThemeManager.py', 'preferredName': 'Theme Manager...', 'shortKey': '', }] B.requiresVersionMajor = '3' B.requiresVersionMinor = '1' B.infoDictionary["html"] = True B.save(extensionPath, libPath=libPath,
import os import shutil from mojo.extensions import ExtensionBundle lib_path = os.path.dirname(__file__) extension_file = 'MeasureHandles.roboFontExt' extension_path = os.path.join(os.path.join(lib_path, 'extension'), extension_file) # extension_html = os.path.join(lib_path, "_docs") extension_lib_path = os.path.join(extension_path, 'lib') print 'building extension...', B = ExtensionBundle() B.name = u"Measure Handles Tool" B.developer = u'Gustavo Ferreira, Johannes Breyer' B.developerURL = 'http://hipertipo.com/' B.version = "0.1" B.mainScript = "MeasureHandlesTool.py" B.launchAtStartUp = 1 B.addToMenu = [] B.requiresVersionMajor = '1' B.requiresVersionMinor = '5' B.infoDictionary["html"] = 0 B.infoDictionary["com.robofontmechanic.Mechanic"] = { "repository" : "johannesbreyer/HandleLength", "description" : "A tool to display length & angle of bezier handles in a glyph", } B.save(extension_path, libPath=lib_path, htmlPath=None, resourcesPath=None, pycOnly=False) print 'done.\n'
import os, shutil from mojo.extensions import ExtensionBundle basePath = os.path.dirname(__file__) sourcePath = os.path.join(basePath, 'source') libPath = os.path.join(sourcePath, 'code') htmlPath = os.path.join(sourcePath, 'docs') resourcesPath = os.path.join(sourcePath, 'resources') licensePath = os.path.join(basePath, 'LICENSE') pycOnly = False extensionFile = 'ShapeTool.roboFontExt' extensionPath = os.path.join(basePath, extensionFile) B = ExtensionBundle() B.name = "ShapeTool" B.developer = 'TypeMyType' B.developerURL = 'http://www.typemytype.com' B.icon = os.path.join(basePath, 'ShapeToolMechanicIcon.png') B.version = '1.7' B.launchAtStartUp = True B.mainScript = 'drawShapesTool.py' B.html = True B.requiresVersionMajor = '3' B.requiresVersionMinor = '2' B.addToMenu = [] with open(licensePath) as license: B.license = license.read() # copy README + images to extension docs if not os.path.exists(htmlPath):
] installAfterBuild = True basePath = os.path.dirname(__file__) sourcePath = os.path.join(basePath, "source") libPath = os.path.join(sourcePath, "code") licensePath = os.path.join(basePath, "license.txt") requirementsPath = os.path.join(basePath, "requirements.txt") extensionFile = "%s.roboFontExt" % name buildPath = os.path.join(basePath, "build") extensionPath = os.path.join(buildPath, extensionFile) B = ExtensionBundle() B.name = name B.developer = developer B.developerURL = developerURL B.version = version B.launchAtStartUp = False B.mainScript = "main.py" B.html = os.path.exists(os.path.join(sourcePath, "documentation", "index.html")) B.requiresVersionMajor = roboFontVersion.split(".")[0] B.requiresVersionMinor = roboFontVersion.split(".")[1] B.addToMenu = menuItems if os.path.exists(licensePath): with open(licensePath) as license: B.license = license.read() if os.path.exists(requirementsPath): with open(requirementsPath) as requirements: B.requirements = requirements.read()
import os import shutil from mojo.extensions import ExtensionBundle lib_path = os.path.dirname(__file__) extension_file = 'MeasureHandles.roboFontExt' extension_path = os.path.join(os.path.join(lib_path, 'extension'), extension_file) # extension_html = os.path.join(lib_path, "_docs") extension_lib_path = os.path.join(extension_path, 'lib') print 'building extension...', B = ExtensionBundle() B.name = u"Measure Handles Tool" B.developer = u'Gustavo Ferreira, Johannes Breyer' B.developerURL = 'http://hipertipo.com/' B.version = "0.1" B.mainScript = "MeasureHandlesTool.py" B.launchAtStartUp = 1 B.addToMenu = [] B.requiresVersionMajor = '1' B.requiresVersionMinor = '5' B.infoDictionary["html"] = 0 B.infoDictionary["com.robofontmechanic.Mechanic"] = { "repository": "johannesbreyer/HandleLength", "description": "A tool to display length & angle of bezier handles in a glyph", } B.save(extension_path, libPath=lib_path,
import os import shutil from mojo.extensions import ExtensionBundle lib_path = os.path.dirname(__file__) extension_file = 'CompareOTFs.roboFontExt' extension_path = os.path.join(lib_path, extension_file) # extension_html = os.path.join(lib_path, "_docs") extension_lib_path = os.path.join(extension_path, 'lib') print 'building extension...', B = ExtensionBundle() B.name = u"CompareOTFs" B.developer = u'Gustavo Ferreira' B.developerURL = 'http://hipertipo.com/' B.version = "0.11" B.mainScript = "" B.launchAtStartUp = 0 B.addToMenu = [ { 'path' : 'compare-otfs.py', 'preferredName' : 'CompareOTFs', 'shortKey' : '', }, ] B.requiresVersionMajor = '1' B.requiresVersionMinor = '5' B.infoDictionary["html"] = 0 B.save(extension_path, libPath=lib_path, htmlPath=None, resourcesPath=None, pycOnly=False)
extensionFile = "RoboFabDocs.roboFontExt" extensionPath = os.path.join(libPath, extensionFile) extensionHtml = os.path.join(libPath, "_build/html/") print "building RoboFab Docs extension...\n" # remove existing extension if os.path.exists(extensionPath): print "\tremoving old RoboFont extension..." shutil.rmtree(extensionPath) # build new extension print "\trebuilding the RoboFont extension..." B = ExtensionBundle() B.name = "RoboFab Docs" B.developer = "RoboFab Developers" B.developerURL = "http://robofab.org/" B.version = "0.1" B.mainScript = "" B.launchAtStartUp = 0 B.addToMenu = [{ "path" : "docs.py", "preferredName" : "RoboFab Docs", "shortKey" : "", }] B.requiresVersionMajor = "1" B.requiresVersionMinor = "5" B.infoDictionary["html"] = 0 B.infoDictionary["com.robofontmechanic.Mechanic"] = { "repository" : "roboDocs/roboFabDocs", "description" : "The RoboFab Documentation as a RoboFont extension",
# name of the compiled extension file extensionFile = "OverlayUFOs.roboFontExt" # path of the compiled extension buildPath = os.path.join(basePath, "build") extensionPath = os.path.join(buildPath, extensionFile) # initiate the extension builder B = ExtensionBundle() # name of the extension B.name = "Overlay UFOs" # name of the developer B.developer = "David Jonathan Ross, Petr van Blokland, Roberto Arista" # URL of the developer B.developerURL = "http://github.com/roboDocs" # extension icon (file path or NSImage) imagePath = os.path.join(resourcesPath, "icon.png") B.icon = imagePath # version of the extension B.version = "2.0.1" # should the extension be launched at start-up? B.launchAtStartUp = True # script to be executed when RF starts
import importlib importlib.reload(hTools2) import os from mojo.extensions import ExtensionBundle hTools2_path = os.path.dirname(os.path.dirname(hTools2.__file__ )) hTools2_html = os.path.join(os.path.dirname(hTools2_path), "Docs/build/html") extension_file = 'hTools2.roboFontExt' extension_path = os.path.join(os.path.dirname(__file__), extension_file) print('building extension...', end=' ') B = ExtensionBundle() B.name = "hTools2" B.developer = 'Gustavo Ferreira' B.developerURL = 'http://hipertipo.com/' B.version = "1.9" B.mainScript = "init-RF-extension.py" B.launchAtStartUp = 1 B.addToMenu = [] B.requiresVersionMajor = '1' B.requiresVersionMinor = '5' B.infoDictionary["repository"] = 'gferreira/hTools2' B.infoDictionary["summary"] = 'A collection of tools to help with common type design & font production tasks.' B.infoDictionary["html"] = 1 B.save(extension_path, libPath=hTools2_path, htmlPath=hTools2_html, resourcesPath=None, pycOnly=False) print('done.')
# name of the compiled extension file extensionFile = 'AngleRatioTool.roboFontExt' # path of the compiled extension buildPath = basePath extensionPath = os.path.join(buildPath, extensionFile) # initiate the extension builder B = ExtensionBundle() # name of the extension B.name = "AngleRatioTool" # name of the developer B.developer = 'LettError' # URL of the developer B.developerURL = 'http://letterror.com' if resourcesPath: # extension icon (file path or NSImage) imagePath = os.path.join(resourcesPath, 'icon.png') B.icon = imagePath # version of the extension B.version = '0.3' # should the extension be launched at start-up? B.launchAtStartUp = True
with codecs.open(mdPath, mode="r", encoding="utf-8") as f: mdSrc = f.read() M = markdown.Markdown(extensions=[TocExtension(permalink=True), FencedCodeExtension()]) html = htmlTemplate % M.convert(mdSrc) htmlFile = codecs.open(htmlIndexPath, mode="w", encoding="utf-8") htmlFile.write(html) htmlFile.close() # ---------------- # create extension # ---------------- B = ExtensionBundle() B.name = "Glyph Construction" B.developer = 'Frederk Berlaen' B.developerURL = 'http://typemytype.com/' B.version = '0.4' B.launchAtStartUp = 0 B.mainScript = '' B.html = True B.requiresVersionMajor = '1' B.requiresVersionMinor = '5' B.addToMenu = [ { 'path' : 'glyphConstructionUI.py', 'preferredName': 'Glyph Builder', 'shortKey' : '', }, ]
from __future__ import absolute_import from __future__ import print_function import os from mojo.extensions import ExtensionBundle basePath = os.path.dirname(__file__) extensionPath = os.path.join(basePath, "BezierSurgeon.roboFontExt") libPath = os.path.join(basePath, "lib") # htmlPath = os.path.join(basePath, "html") B = ExtensionBundle() B.name = "Bezier Surgeon" B.version = "0.201" B.developer = "Connor Davenport" B.developerURL = 'http://www.connordavenport.com/' B.mainScript = "BezierSurgeon.py" B.launchAtStartUp = True B.addToMenu = [{ 'path': 'BezierSurgeon.py', 'preferredName': 'Bezier Surgeon', 'shortKey': '', }] B.requiresVersionMajor = '3' B.requiresVersionMinor = '1' # B.infoDictionary["html"] = True B.save(extensionPath, libPath=libPath, pycOnly=False) # htmlPath=htmlPath, print("Done")
basePath = os.path.dirname(__file__) libPath = os.path.join(basePath, 'LibExtension') htmlPath = os.path.join(basePath, 'html') licensePath = os.path.join(basePath, 'LICENSE') readmePath = os.path.join(basePath, 'README.md') extensionPath = os.path.join(basePath, 'GlyphConstruction.roboFontExt') modulePath = os.path.join(basePath, "Lib", "glyphConstruction.py") # ---------------- # create extension # ---------------- B = ExtensionBundle() B.name = "Glyph Construction" B.developer = 'Frederk Berlaen' B.developerURL = 'http://typemytype.com/' B.version = '0.5' B.launchAtStartUp = 0 B.mainScript = '' B.html = True B.requiresVersionMajor = '1' B.requiresVersionMinor = '5' B.addToMenu = [ { 'path' : 'glyphConstructionUI.py', 'preferredName': 'Glyph Builder', 'shortKey' : '', }, ]
import os from mojo.extensions import ExtensionBundle basePath = os.path.dirname(__file__) extensionPath = os.path.join(basePath, "SlightlyBetterTransform.roboFontExt") libPath = os.path.join(basePath, "lib") htmlPath = os.path.join(basePath, "html") resourcesPath = os.path.join(basePath, "resources") B = ExtensionBundle() B.name = "Slightly Better Transform" B.version = "1.2" B.mainScript = "SlightlyBetterTransform.py" B.developer = "Andy Clymer" B.developerURL = 'http://www.andyclymer.com/' B.launchAtStartUp = True B.addToMenu = [] B.requiresVersionMajor = '3' B.requiresVersionMinor = '1' B.infoDictionary["html"] = True B.save(extensionPath, libPath=libPath, htmlPath=htmlPath, resourcesPath=resourcesPath, pycOnly=False) print("Done")
extensionFile = "RoboFabDocs.roboFontExt" extensionPath = os.path.join(libPath, extensionFile) extensionHtml = os.path.join(libPath, "_build/html/") print "building RoboFab Docs extension...\n" # remove existing extension if os.path.exists(extensionPath): print "\tremoving old RoboFont extension..." shutil.rmtree(extensionPath) # build new extension print "\trebuilding the RoboFont extension..." B = ExtensionBundle() B.name = "RoboFab Docs" B.developer = "RoboFab Developers" B.developerURL = "http://robofab.org/" B.version = "0.1" B.mainScript = "" B.launchAtStartUp = 0 B.addToMenu = [{ "path": "docs.py", "preferredName": "RoboFab Docs", "shortKey": "", }] B.requiresVersionMajor = "1" B.requiresVersionMinor = "5" B.infoDictionary["html"] = 0 B.infoDictionary["com.robofontmechanic.Mechanic"] = { "repository": "roboDocs/roboFabDocs", "description": "The RoboFab Documentation as a RoboFont extension",
# name of the compiled extension file extensionFile = 'myExtension.roboFontExt' # path of the compiled extension buildPath = os.path.join(basePath, 'build') extensionPath = os.path.join(buildPath, extensionFile) # initiate the extension builder B = ExtensionBundle() # name of the extension B.name = "myExtension" # name of the developer B.developer = 'RoboDocs' # URL of the developer B.developerURL = 'http://github.com/roboDocs' # extension icon (file path or NSImage) imagePath = os.path.join(resourcesPath, 'icon.png') B.icon = imagePath # version of the extension B.version = '0.2.6' # should the extension be launched at start-up? B.launchAtStartUp = True # script to be executed when RF starts
import os from mojo.extensions import ExtensionBundle basePath = os.path.dirname(__file__) extensionPath = os.path.join(basePath, "ControlBoard.roboFontExt") libPath = os.path.join(basePath, "lib") htmlPath = os.path.join(basePath, "html") resourcesPath = os.path.join(basePath, "resources") B = ExtensionBundle() B.name = "ControlBoard" B.version = "0.22b" B.mainScript = "ControlBoard.py" B.developer = "Andy Clymer" B.developerURL = 'http://www.andyclymer.com/' B.launchAtStartUp = False B.addToMenu = [{"path" : "ControlBoard.py", "preferredName" : "ControlBoard", "shortKey" : ""}] B.requiresVersionMajor = '1' B.requiresVersionMinor = '5' B.infoDictionary["html"] = True B.save(extensionPath, libPath=libPath, htmlPath=htmlPath, resourcesPath=resourcesPath, pycOnly=False) print "Done"