Skip to content

Instantly share code, notes, and snippets.

View amake's full-sized avatar
🌵

Aaron Madlon-Kay amake

🌵
View GitHub Profile
@amake
amake / omegat.pom.xml
Last active July 2, 2021 07:17
Run OmegaT install-less with Maven
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<!-- Execute OmegaT with Maven: mvn -q -f omegat.pom.xml exec:java -Dexec.args=-h -->
<modelVersion>4.0.0</modelVersion>
<groupId>org.omegat</groupId>
<artifactId>omegat-run</artifactId>
<version>1.0-SNAPSHOT</version>
<build>
<plugins>
<plugin>
@amake
amake / innosetup-linux-macos.org
Last active February 26, 2024 05:22
Inno Setup on Linux and macOS

Inno Setup on Linux and macOS

Inno Setup is a popular installer builder for Windows. Of course it is made to run on Windows only, by default. But what if you want to build Windows installers off Windows, i.e. on Linux or macOS?

You’re in luck: It’s possible to run Inno Setup anywhere that Docker runs (including Linux and macOS), and even have a passable experience writing your setup script.

@amake
amake / Makefile
Last active January 4, 2019 13:37
`make test` to generate initialisms for Japanese place names, e.g. 池袋 → E. K. Bukuro
vendor:
mkdir -p $(@)
NOUN_DATA := vendor/Noun.place.csv
NOUN_DATA_URL := https://raw.githubusercontent.com/taku910/mecab/master/mecab-ipadic/Noun.place.csv
$(NOUN_DATA): | vendor
curl $(NOUN_DATA_URL) | iconv -f EUC-JP -t UTF-8 > $(@)
ENV := .env
@amake
amake / fliptext.py
Last active August 9, 2017 04:25
macOS Services
# -*- coding: utf-8 -*-
import re
from sys import stdin, stdout
wspace = re.compile(r'^(\s*)(.*?)(\s*)$')
pchars = (u'ACDEFGJLMNPRTUVWY'
u'abcdefghijklmnpqrstuvwy'
u",.?!'()[]{}‿∴¯_ツ")
@amake
amake / android-7-localization.org
Last active July 25, 2023 22:34
Correct localization on Android 7

Correct localization on Android 7

Prior to Android 7, the system had a single preferred locale, and fallback behavior was quite rudimentary. Starting with Android 7, the user can now specify a priority list of locales, and fallback behavior is improved.

However, in many cases it is still surprisingly difficult to make full use of locale fallback, and there are some hidden gotchas when trying to fully support both Android 7 and earlier versions.

@amake
amake / dicttest-Harrap_s_Business_fran_ais_ang.idx.txt
Last active September 9, 2017 20:26
Test index for trie4j issue #31
(cas de) force majeure
(papier) brouillon
3G
<br>abaissement
A3
A4
abaisser
abandon
abandon de l'option
abandonner
@amake
amake / ios10-android24-glyphs-regex
Last active September 18, 2016 15:57
Unicode characters with glyphs available on both iOS 10 and Android 24
[\u0000-\u0377\u037a-\u037e\u0384-\u038a\u038c\u038e-\u03a1\u03a3-\u052f\u0531-\u0556\u0559-\u055f\u0561-\u0587\u0589-\u058a\u058f\u0591-\u05c7\u05d0-\u05ea\u05f0-\u05f4\u0600-\u0603\u0606-\u061c\u061e-\u061f\u0621-\u065e\u0660-\u070d\u070f-\u074a\u074d-\u07b1\u07c0-\u07fa\u0840-\u085b\u085e\u0900-\u097f\u0981-\u0983\u0985-\u098c\u098f-\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bc-\u09c4\u09c7-\u09c8\u09cb-\u09ce\u09d7\u09dc-\u09dd\u09df-\u09e3\u09e6-\u09fb\u0a01-\u0a03\u0a05-\u0a0a\u0a0f-\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32-\u0a33\u0a35-\u0a36\u0a38-\u0a39\u0a3c\u0a3e-\u0a42\u0a47-\u0a48\u0a4b-\u0a4d\u0a51\u0a59-\u0a5c\u0a5e\u0a66-\u0a75\u0a81-\u0a83\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2-\u0ab3\u0ab5-\u0ab9\u0abc-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ad0\u0ae0-\u0ae3\u0ae6-\u0aef\u0af1\u0b01-\u0b03\u0b05-\u0b0c\u0b0f-\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32-\u0b33\u0b35-\u0b39\u0b3c-\u0b44\u0b47-\u0b48\u0b4b-\u0b4d\u0b56-\u0b57\u0b5c-\u0b5d\u0b5f-\u0b63\u0b66-\u0b71\u0b83\u0b85-\
@amake
amake / list-ttf-chars.py
Created September 15, 2016 08:56
Dump Android supported glyphs
'''
Call this with TrueType font filename arguments to output a list of
all Unicode characters covered by all fonts, e.g.
list_ttf_chars.py $ANDROID_HOME/platforms/android-XY/data/fonts/*.ttf
Requires FontTools: https://pypi.python.org/pypi/FontTools
'''
import sys
@amake
amake / android24-glyphs-available.txt
Created September 15, 2016 08:54
Glyphs available in Android SDK 24
This file has been truncated, but you can view the full file.
U+000000 uni0000
U+000001 uni000F
U+000002 uni0002
U+000003 uni000F
U+000004 uni000F
U+000005 uni000F
U+000006 uni000F
U+000007 uni000F
U+000008 uni000F
@amake
amake / ios10-glyphs-available.txt
Last active September 15, 2016 13:43
Glyphs available on iOS 10 (not lastresorttemplate)
U+000000 (failed to get glyph name)
U+000001 (failed to get glyph name)
U+000002 (failed to get glyph name)
U+000003 (failed to get glyph name)
U+000004 (failed to get glyph name)
U+000005 (failed to get glyph name)
U+000006 (failed to get glyph name)
U+000007 (failed to get glyph name)
U+000008 (failed to get glyph name)
U+000009 (failed to get glyph name)