[NTG-context] Input methods

Hans Γ…berg haberg-1 at telia.com
Fri Sep 16 10:25:38 CEST 2016


> On 15 Sep 2016, at 20:19, Wolfgang Schuster <schuster.wolfgang at gmail.com> wrote:


> Another input method is shown in the following video [1] where each symbol get its own command, e.g. \mbfitx is equal to {\bi x}.

This works on MacOS 10.12 in any application that uses the standard text services. One has an XML .plist file as listed below. Then in such an application, one turns on "Text Replacements". (The video shows TeXShop.)

Using the .plist file below, \mbfitx is translated into 𝒙. The replacement text can be anything.

----
<?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">
<array>
	<dict>
		<key>phrase</key>
		<string>𝒙</string>
		<key>shortcut</key>
		<string>\mbfitx</string>
	</dict>
	<dict>
		<key>phrase</key>
		<string>π’š</string>
		<key>shortcut</key>
		<string>\mbfity</string>
	</dict>
	<dict>
		<key>phrase</key>
		<string>𝒛</string>
		<key>shortcut</key>
		<string>\mbfitz</string>
	</dict>
</array>
</plist>
----





More information about the ntg-context mailing list