I’d be interested to do some transliteration in a plugin I’m developing and this seems to be a perfect tool for the task. Simce I’m very unexperienced in python, would someone be so kind as to outline the steps I’d have to take to be able to use it in my plugin?
How do we add third party python modules to my in-developement plugin
addons_zz
#2
You can create a Package Control dependency https://packagecontrol.io/docs/dependencies and submit it with your plugin on package control.
- Open your
Packages
folder (menuPreferences -> Browse Packages
) - Open a command line on the folder
Packages
- Assure you have
git
installed, and run the commands:git clone https://github.com/avian2/unidecode
cd unidecode
mkdir all
git mv unidecode all/unidecode
echo 10 > .sublime-dependency
git add .sublime-dependency
git commit -m "Created a Package Control dependency."
- Assure you have
Package Control
installed - Open the Command Palette and run the command
Install Local Dependency
- Now on your plugin, just follow the instructions on: https://github.com/avian2/unidecode#module-content
0 Likes