-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
LaTeX reader: improve parsing of otherlanguage environment #9202
Comments
John, it is not just the command
there are quite a few more ways to choose the language in Babel and Polyglossia. I can list them all in here for you. It is also not just |
Here are (what I believe) are all possible ways to set and use a language in LaTeX: Babel:Setting:
Using:
Polyglossia:Setting:
Using:
|
Adding to @pauloney's above comment. Babel, together with other packages, also recognizes languages set in the options to |
Thnks @jpcirrus! I reviewed my list after your comments. |
Here is the spreadsheet containg the:
I added Hunspell because it is a better speller and there is way more development there now, and the set of supported languages is sligthly different. Having an option to use either (or both) would be realy nice. The Babel list has just the names of the langs, the Polyglossia one is more detailed because of the variations -- most of them not important for the choise of lang (one can spell an es-MX file with an es-ES disctionary for the most part), but some are really important, for example both Aspell and Hunspell have pt-PT and pt-BR dictionaries. The BCP-47 is certainly the best wayt to pass a parameter from LaTeX to Pandoc to Aspell, so that is included as well. |
Here is the code we use to do these conversions: |
John, this is great! I am not able to follow up on all the details of the code because of my limited Haskell skills, but the logic down in the languages looks all right. Is there a way I can do some quick tests, command line or small files? I want to check if things are indeed correct and complete -- in making the list I found at least two wrong BCP-47 tags in Aspell. |
is being parsed as
Instead, pandoc should recognize
{english}
as an argument to the environment and populate thelang
attribute (not withenglish
but withen
).The text was updated successfully, but these errors were encountered: