├── .no-sublime-package ├── Codecs33.py ├── README.md └── README.zh_CN.md /.no-sublime-package: -------------------------------------------------------------------------------- 1 | dummy -------------------------------------------------------------------------------- /Codecs33.py: -------------------------------------------------------------------------------- 1 | import sublime 2 | import os 3 | import sys 4 | 5 | def plugin_loaded(): 6 | if sublime.platform() in ('linux', 'osx') and sublime.version() > '3000': 7 | path = os.path.join(sublime.packages_path(), 'Codecs33', 'lib') 8 | if path not in sys.path: 9 | sys.path.append(path) 10 | else: 11 | print('Warning: Codecs33 is only working for Sublime Text 3 on linux or osx') 12 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Description (中文说明见[README.zh_CN.md](https://github.com/seanliang/Codecs33/blob/master/README.zh_CN.md)) 2 | ------------------ 3 | Due to the limitation of embedded Python with Sublime Text 3, [ConvertToUTF8](https://github.com/seanliang/ConvertToUTF8) might not work properly. You can install this plugin to solve the problem. 4 | 5 | If you want to support this plugin, you can donate via Alipay or WeChat. Thanks! :) 6 | 7 | ![Alipay QR code](https://seanliang.github.io/donate/ap.png) ![WeChat QR code](https://seanliang.github.io/donate/wx.png) 8 | 9 | Installation 10 | ------------------ 11 | Using [Package Control](https://packagecontrol.io/installation) to find, install and upgrade *Codecs33* is the recommended method to install this plug-in. 12 | 13 | Otherwise, you can download this repository as a zip file from one of the branchs (osx, linux-x64, linux-x32) which matchs your platform. Unzip the archive and rename the new folder to *Codecs33*, then move this folder to *Packages* folder of Sublime Text (You can find the *Packages* folder by clicking "Preferences > Browse Packages" menu entry in Sublime Text). 14 | 15 | Contact me 16 | ------------------ 17 | Please send me your questions or suggestions: sunlxy (at) yahoo.com or http://weibo.com/seanliang 18 | -------------------------------------------------------------------------------- /README.zh_CN.md: -------------------------------------------------------------------------------- 1 | 说明 2 | ------------------ 3 | 由于 Sublime Text 3 内嵌的 Python 限制,[ConvertToUTF8](https://github.com/seanliang/ConvertToUTF8) 可能无法正常工作。你可以安装本插件来解决这一问题。 4 | 5 | 如果您觉得本插件有用并想给予支持,可通过支付宝或微信捐助。感谢!:) 6 | 7 | ![支付宝钱包扫一下](https://seanliang.github.io/donate/ap.png) ![微信扫一下](https://seanliang.github.io/donate/wx.png) 8 | 9 | 安装 10 | ------------------ 11 | 推荐使用 [Package Control](https://packagecontrol.io/installation) 查找 *Codecs33* 进行自动下载安装与更新。 12 | 13 | 如需手工安装,请从与您操作系统相符的分支(osx、linux-x64、linux-x32)中将本项目打包下载并解压,将解压后的文件夹名修改为 *Codecs33* ,然后将此文件夹移动到 Sublime Text 的 *Packages* 文件夹下(可通过 Sublime Text 菜单中的 Preferences > Browse Packages 找到 *Packages* 文件夹)。 14 | 15 | 联系我 16 | ------------------ 17 | 请发送您的问题或建议给我:sunlxy (at) yahoo.com 或 http://weibo.com/seanliang 18 | --------------------------------------------------------------------------------