Created
June 21, 2016 02:29
-
-
Save romgrk/6094a54c68e567cd30ba2f4c69508dce to your computer and use it in GitHub Desktop.
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
| " Gothik functions "{{{ | |
| function! Gothik (string) | |
| let result = '' | |
| let len = len(a:string) | |
| let n = 0 | |
| while (n < len) | |
| let result .= s:gothik(a:string[n]) | |
| let n += 1 | |
| endwhile | |
| return result | |
| endfunc | |
| function! s:gothik (letter) | |
| " let fraktur = [ "๐ฌ๐ญ๐ฎ๐ฏ๐ฐ๐ฑ๐ฒ๐ณ๐ด๐ต๐ถ๐ท๐ธ๐น๐บ๐ป๐ผ๐ฝ๐พ๐ฟ๐๐๐๐๐๐ ", | |
| " A = 0x1D56C \ "๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐" ] | |
| let nr = char2nr(a:letter) | |
| if (nr >= 65 && nr <= 90) " Maj | |
| let nr = nr + 120107 | |
| elseif (nr >= 97 && nr <= 122) " Min | |
| let nr = nr + 120101 | |
| else | |
| return a:letter | end | |
| return nr2char(nr) | |
| endfunc | |
| "}}} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment