Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for multiple languages #203

Open
dipzza opened this issue May 10, 2022 · 1 comment
Open

Support for multiple languages #203

dipzza opened this issue May 10, 2022 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@dipzza
Copy link
Contributor

dipzza commented May 10, 2022

I am working on a document with multiple languages, for now I'm dealing with it ignoring environments and ignoring everything except the main language.

However, having the languages already specified on latex with a simple syntax with the babel package i think textidote using the languages specified would be so much more convenient.

I understand this conflicts with #56 and can be difficult. But as babel is quite standardized and has a simple syntax maybe is worth to consider it.

Default language for text would be specified like:
\usepackage[defaultlanguage, otherlanguage1, otherlanguage2]{babel}

or

\usepackage[otherlanguage1, main=defaultlanguage, otherlanguage2]{babel}

And when the text is on a different language from the default it would be wrapped on enviroments:

\begin{otherlanguage}{otherlanguage1}
Text written on otherlanguage1
\end{otherlanguage}

@sylvainhalle
Copy link
Owner

At first glance I think it is reasonable, as all we need to remember is the current language for a given line (either the default or that of the last otherlanguage instruction).

@sylvainhalle sylvainhalle added the enhancement New feature or request label May 10, 2022
@sylvainhalle sylvainhalle added this to the v0.9 milestone May 10, 2022
@dipzza dipzza changed the title Support for multilple languages Support for multiple languages May 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants