A script to convert SIL's IPA keyboard layout to a format compatible with the Compose key.
From my experience, Keyman does not work as expected in all programs (e.g., Signal Desktop)*, and it also is not as versatile and cross-platform as the Compose key (which can be implemented via IMEs and browser extensions in a variety of environments). So, it would be useful to use the Compose key to type in the International Phonetic Alphabet anywhere instead of relying on dedicated programs where Keyman works properly or using online IPA keyboards.
Here is a guide for a simpler version of this setup that inspired this script: https://thealchemist.website/phonetics-minimal-ipa-keyboard-set-up/.
* This could be my fault and not Keyman's.
Run the script and concatenate the output to your Compose file.
Copyright (c) 2021 psvenk
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
-
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
-
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.