These are tools that improve typographic details like microtypography and typographic syntax automatically.
Additions welcome!
Name | Language/Platform |
---|---|
Detergent | JavaScript (ESM) |
JoliTypo | PHP |
import UIKit | |
import SwiftUI | |
extension View { | |
func highLegibilityFigures(forStyle style: UIFont.TextStyle, tableFigures: Bool = false) -> some View { | |
modifier(HighLegibilityFigures(style: style, tableFigures: tableFigures)) | |
} | |
} | |
private struct HighLegibilityFigures: ViewModifier { |
pandoc -o index_temp.html index.md | |
cat header.html index_temp.html footer.html > index.html | |
rm index_temp.html |
func fontDescriptorWithHighLegibilityMonospacedFigures(for fontDescriptor: UIFontDescriptor) -> UIFontDescriptor { | |
return fontDescriptor.addingAttributes( | |
[ | |
UIFontDescriptor.AttributeName.featureSettings: | |
[ | |
[ // High legibility 6 and 9 | |
UIFontDescriptor.FeatureKey.featureIdentifier: kStylisticAlternativesType, | |
UIFontDescriptor.FeatureKey.typeIdentifier: kStylisticAltOneOnSelector, | |
], | |
[ // High legibility 4 |
# Regex: | |
UIKeyCommand\(input: (.+)\, modifierFlags: (.+), action: #selector\((.+)\), discoverabilityTitle: (.+)\), | |
# Replace: | |
UIKeyCommand(title: $4, | |
image: nil, | |
action: #selector($3), | |
input: $1, | |
modifierFlags: $2, | |
propertyList: nil, |
{ | |
"alfredtheme" : { | |
"result" : { | |
"textSpacing" : 4, | |
"subtext" : { | |
"size" : 12, | |
"colorSelected" : "#FFFFFFFF", | |
"font" : "CamingoCode", | |
"color" : "#7F7F7FFF" | |
}, |
on alfred_script(q) | |
set title to "Untitled.txt" | |
if q is not equal to "" then set title to q | |
tell application "Finder" to make new file at (the target of the front window) as alias with properties {name: title} | |
end alfred_script |
#/bin/sh | |
speed="0.7" | |
mkdir "speed-${speed}x" | |
for f in *.mp3 | |
do ffmpeg -i "$f" -filter:a "atempo=${speed}" "./speed-${speed}x/$f" | |
done |
protocol PopoverFirstResponderStealingSuppression { | |
var suppressFirstResponderWhenPopoverShows: Bool { get } | |
} | |
class CustomDocumentWindow: NSWindow { | |
override func makeFirstResponder(_ responder: NSResponder?) -> Bool { | |
if responder != self.firstResponder, | |
let newFirstResponder = responder as? NSView { | |
let newFirstResponderWindow = newFirstResponder.window |
sourceFiles="../assets/icons/*.svg" | |
destFile="../assets/sass/_icons.svg.scss" | |
classPrefix=".icon-" | |
echo "Compiling icons from "$sourceFiles" into "$destFile" …" | |
echo "" > $destFile | |
for fileWithPath in ../assets/icons/*.svg; | |
do | |
contents=$(cat $fileWithPath) |