soywod / phonetics.vim

A vim plugin for checking and listening to English phonetics.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Phonetics.vim

A Vim plugin for:

  • 📖 Checking phonetics
  • 🎧 Listening to phonetics

Introduction

Vim Phonetics is a vim plugin that gives you English phonetic transcriptions of focused words. You can choose between British English and American English. You can also listen to audio associated to transcriptions.

The phonetics (transcription and audio) comes from Oxford Learner's Dictionnaries.

Prerequisites

  • cURL to retrieve audios and phonetics
  • mpv to play audios

Installation

Plug 'soywod/vim-phonetics'

Usage

Put your cursor under a word, then:

  • :Phonetics to get the transcription
  • :PhoneticsPlay to get the transcription and to play the sound

You can also specify the desired accent:

  • :Phonetics american to get the American transcription
  • :PhoneticsPlay british to get the British transcription and play the sound

Configuration

To set a default accent:

let g:phonetics_default_accent = 'american' | 'british'

Default value: british

About

A vim plugin for checking and listening to English phonetics.

License:MIT License


Languages

Language:Vim Script 100.0%