Ⅰ. 插件描述
Easily-customizable Vim keymap for typing polytonic Greek.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'na4zagin3/pgreek-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'na4zagin3/pgreek-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'na4zagin3/pgreek-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/na4zagin3/pgreek.vim
Ⅳ. 文档说明
pgreek.vim
Easily-customizable Vim keymap for typing polytonic Greek.
Install
If you use NeoBundle, Vundle and so on, add line like following to your .vimrc.
NeoBundle 'na4zagin3/pgreek.vim'
Or, copy keymap/pgreek_utf-8.vim into your $VIMRUNTIME/keymap (e.g. ~/.vim/keymap)
How to Use
To use this keymap, set keymap to 'pgreek'. Please check encoding is surely UTF-8.
:set keymap=pgreek
Example
εἰμί: e>im;i, ei]mi/
ἄϊδι: <;a:idi, a[/i"di
τὸ ζῷον: t`o z~v|on, to\ zv=|on
Ϙόρινθος: Qg;orinuow, Qgo/rinuow
Default Keymap
Alphabets
| Letter | Name | Keymap |
|---|---|---|
| Α α | Alpha | A a |
| Β β | Beta | B b |
| Γ γ | Gamma | G g |
| Δ δ | Delta | D d |
| Ε ε | Epsilon | E e |
| Ϝ ϝ | Digamma, Waw | Qf qf |
| Ͷ ͷ | Qv qv | |
| Ζ ζ | Zeta | Z z |
| Η η | Eta | H h |
| Ͱ ͱ | Heta | Qh qh |
| Θ θ | Theta | U u |
| Ι ι | Iota | I i |
| Κ κ | Kappa | K k |
| Λ λ | Lambda | L l |
| Μ μ | Mu | M m |
| Ν ν | Nu | N n |
| Ξ ξ | Xi | J j |
| Ο ο | Omicron | O o |
| Π π | Pi | P p |
| Ϻ ϻ | San | Qs qs |
| Ϸ ϸ | Sho | Qx qx |
| Ϙ ϙ | Qoppa | Qg qg |
| Ϟ ϟ | Qq qq | |
| Ρ ρ | Rho | R r |
| Σ σ ς | Sigma | S s w |
| Τ τ | Tau | T t |
| Υ υ | Ypsilon | Y y |
| Φ φ | Phi | F f |
| Χ χ | Chi | X x |
| Ψ ψ | Psi | C c |
| Ω ω | Omega | V v |
| Ϡ ϡ | Sampi | Qt qt |
| Ͳ ͳ | Qu qu | |
| Ϛ ϛ | Stigma | Qj qj |
| ϳ | Jot | qy |
Diacritics
| Diacritic | Prefix Style | Postfix Style |
|---|---|---|
| Accute | ; | / |
| Grave | ` | \ |
| Circumflex | ~ | = |
| Smooth breathing | < | [ |
| Rough breathing | > | ] |
| Diaeresis | : | " |
| Iota subscript | (None) | | |
| Breve | (None) | ^ |
| Macron | (None) | - |
At this version, there are rules among base letter and diacritics.
- Aspiration (smooth and rougnt breathing) is anterior to accent (accute, grave, and circumflex).
- Length mark (breve and macron) follows the base letter or located at last of the sequence. Length mark cannot cooccurrent with any other diacritics, because of constraint of the implimentation.
- Iota subscript is posterior to the base letter, aspiration, accent.
- Diaeresis is anterior to iota subscript. Diaeresis is anterior to the base letter, or follows length mark that follows the base letter.
Symbols
| Letter | Name | Keymap |
|---|---|---|
| : | Colon | Q |
| ; | Greek Question mark | q |
| · | Interpunct | ;. |
| ᾽ | Greek Apostrofos | ' |
| « | Open quotation | << ;< |
| » | Close quotation | >> ;> |
| – | En-dash | -- |
| – | Em-dash | --- |
| ϗ | Kai | && |
| ʹ | Numeral Mark | ;# |
| ͵ | Lower numeral Mark | ;## |