add vim conf files
[arrow.git] / conf_slk120 / vim / _vim / ftplugin / latex-suite / packages / babel
blobda47adad4cf6a96e425633a2dc3d046cebd8e8a3
1 " This package sets some language specific options.
2 " Since it needs to find out which options the user used with the babel
3 " package, it needs to wait till latex-suite is done scanning packages. It
4 " then catches the LatexSuiteScannedPackages event which
5 " Tex_pack_updateall() throws at which time g:Tex_pack_detected and
6 " g:Tex_babel_options contain the necessary information.
8 let g:TeX_package_option_babel = 
9 \ 'afrikaans,'
10 \.'bahasa,'
11 \.'basque,'
12 \.'breton,'
13 \.'bulgarian,'
14 \.'catalan,'
15 \.'croatian,'
16 \.'chech,'
17 \.'danish,'
18 \.'dutch,'
19 \.'english,USenglish,american,UKenglish,british,canadian,'
20 \.'esperanto,'
21 \.'estonian,'
22 \.'finnish,'
23 \.'french,francais,canadien,acadian,'
24 \.'galician,'
25 \.'austrian,german,germanb,ngerman,naustrian,'
26 \.'greek,polutonikogreek,'
27 \.'hebrew,'
28 \.'magyar,hungarian,'
29 \.'icelandic,'
30 \.'irish,'
31 \.'italian,'
32 \.'latin,'
33 \.'lowersorbian,'
34 \.'samin,'
35 \.'norsk,nynorsk,'
36 \.'polish,'
37 \.'portuges,portuguese,brazilian,brazil,'
38 \.'romanian,'
39 \.'russian,'
40 \.'scottish,'
41 \.'spanish,'
42 \.'slovak,'
43 \.'slovene,'
44 \.'swedish,'
45 \.'serbian,'
46 \.'turkish,'
47 \.'ukrainian,'
48 \.'uppersorbian,'
49 \.'welsh'
51 let g:TeX_package_babel = 
52 \ 'bra:selectlanguage,'
53 \.'env:otherlanguage,'
54 \.'env:otherlanguage*,'
55 \.'env:hyphenrules,'
56 \.'brd:foreignlanguage,'
57 \.'spe:iflanguage{<+name+>}{<+true+>}{<+false+>},'
58 \.'languagename,'
59 \.'bra:useshorthands,'
60 \.'brd:defineshorthand,'
61 \.'brd:aliasshorthand,'
62 \.'bra:languageshorthans,'
63 \.'bra:shorthandon,'
64 \.'bra:shorthandoff,'
65 \.'brd:languageattribute'
67 " vim:ft=vim:ff=unix:
68 if exists('s:doneOnce')
69     finish
70 endif
71 let s:doneOnce = 1
73 augroup LatexSuite
74     au LatexSuite User LatexSuiteScannedPackages 
75         \ call Tex_Debug('babel: catching LatexSuiteScannedPackages event') |
76         \ call s:SetQuotes()
77 augroup END
79 let s:path = expand('<sfile>:p:h')
81 " SetQuotes: sets quotes for various languages {{{
82 " Description: 
83 function! <SID>SetQuotes()
84     if g:Tex_package_detected =~ '\<babel\>'
85         if g:Tex_babel_options =~ '\<german\>'
86             exec 'so '.s:path.'/german'
87                 elseif g:Tex_babel_options =~ '\<ngerman\>'
88             exec 'so '.s:path.'/ngerman'
89         endif
90     endif
91 endfunction " }}}
93 " vim:ft=vim:ff=unix: