<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
One of the things I'd like to do is decoupling the language<br>
in the babel sense from the language in the TeX sense. To<br>
make clear this distinction, babel will introduce the<br>
concept of locale, which is universally used elsewhere.<br></blockquote><div><br></div><div>I’ll develop this point:</div><div><br></div><div>3 ways to select a language:</div><div><br></div><div> – \textlocale{<lang>}{<text>}. Ensures text mode. Bidi - only text dir.</div><div><br></div><div> – \begin{locale}{<lang>} ... \end{locale}. Just selects the language</div><div> (also \locale{<lang>}, as command).</div><div><br></div><div> – \setlocale{<lang>} (or \selectlocale, I don’t mind). Only vmode.</div><div> Bidi - par and text dir.</div><div><br></div><div> – There must be at least a further level: document (margins and</div><div> the like) set directly by babel.</div><div><br></div><div>Dialects and variants are considered separate locales.</div><div><br></div><div>Well, this is the “public” interface, but what exactly do they do? Besides</div><div>a default (maybe configurable) behaviour, we should be able the decide</div><div>which features/elements should be selected/switched. This can be</div><div>accomplished with an optional argument: </div><div><br></div><div> – \textlocale[<options>]{<lang>}{<text>}</div><div> – \begin{locale}[<options>]{<lang>} </div><div> – \setlocale[<options>]{<lang>}</div><div><br></div><div>I wouldn’t define language-specific macros like \textenglish, mainly</div><div>because there isn't a single schema. Some people may prefer, say,</div><div>\texten, \textengl, \textenUS, etc. However, babel could provide (as</div><div>option) a few predefined schemas.</div><div><br></div><div>It’s worth noting no language info is written to the index file. This is</div><div>clearly an open problem.</div><div><br></div><div>These macros won’t be defined in monolingual documents (or will</div><div>be dummy).</div><div><br></div><div>Javier</div><div> </div></div><br></div></div>