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 =
19 \.'english,USenglish,american,UKenglish,british,canadian,'
23 \.'french,francais,canadien,acadian,'
25 \.'austrian,german,germanb,ngerman,naustrian,'
26 \.'greek,polutonikogreek,'
37 \.'portuges,portuguese,brazilian,brazil,'
51 let g:TeX_package_babel =
52 \ 'bra:selectlanguage,'
53 \.'env:otherlanguage,'
54 \.'env:otherlanguage*,'
56 \.'brd:foreignlanguage,'
57 \.'spe:iflanguage{<+name+>}{<+true+>}{<+false+>},'
59 \.'bra:useshorthands,'
60 \.'brd:defineshorthand,'
61 \.'brd:aliasshorthand,'
62 \.'bra:languageshorthans,'
65 \.'brd:languageattribute'
68 if exists('s:doneOnce')
74 au LatexSuite User LatexSuiteScannedPackages
75 \ call Tex_Debug('babel: catching LatexSuiteScannedPackages event') |
79 let s:path = expand('<sfile>:p:h')
81 " SetQuotes: sets quotes for various languages {{{
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'