Skip to content

Instantly share code, notes, and snippets.

@romgrk
Created June 21, 2016 02:29
Show Gist options
  • Select an option

  • Save romgrk/6094a54c68e567cd30ba2f4c69508dce to your computer and use it in GitHub Desktop.

Select an option

Save romgrk/6094a54c68e567cd30ba2f4c69508dce to your computer and use it in GitHub Desktop.
" 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