This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# So, with some help (and perhaps some faulty testing on my part initially) here | |
# is a solution I'm happy with. | |
def sphinx_version | |
# STDERR redirection for Unix | |
stderr = $stderr.dup | |
read, write = IO.pipe | |
$stderr.reopen(write) | |
`indexer`[/^Sphinx (\d\.\d\.\d)/, 1] | |
rescue # This catches errors for Windows |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 'r' after open-mid central unrounded? | |
module Keats | |
module Phones | |
IPA_CONSONANTS = { | |
"B" => "b", # b - Lower-case B <be> voiced bilabial plosive | |
"CH" => "t\312\203", # tʃ - T-Esh ligature <cheese> voiceless postalveolar affricate | |
"D" => "d", # d - Lower-case D <dee> voiced dental or alveolar plosive | |
"DH" => "\303\260", # ð - Eth <thee> voiced dental fricative | |
"F" => "f", # f - Lower-case F <fee> voiceless labiodental fricative |