aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2023-11-29 21:22:03 -0800
committerJohn MacFarlane <[email protected]>2023-11-29 21:22:03 -0800
commit80ea048bb26fdf50dbfe767d130054cf2dfc7d57 (patch)
tree0e8f758443f4052213447a8dea0b95f1852f27e3 /test
parent2e8ecb3fba62723fe39599f9f0cb7f7a30a5ca19 (diff)
LaTeX reader: handle otherlanguage environment...
...and language-name environments like `\begin{french}...\end{french}`. Closes #9202.
Diffstat (limited to 'test')
-rw-r--r--test/command/9202.md62
1 files changed, 62 insertions, 0 deletions
diff --git a/test/command/9202.md b/test/command/9202.md
new file mode 100644
index 000000000..c8096f695
--- /dev/null
+++ b/test/command/9202.md
@@ -0,0 +1,62 @@
+```
+% pandoc -f latex -t native
+\begin{otherlanguage}{french}
+Bonjour.
+\end{otherlanguage}
+^D
+[ Div
+ ( "" , [] , [ ( "lang" , "fr" ) ] )
+ [ Para [ Str "Bonjour." ] ]
+]
+```
+
+```
+% pandoc -f latex -t native
+\begin{otherlanguage*}{french}
+Bonjour.
+\end{otherlanguage*}
+^D
+[ Div
+ ( "" , [ "otherlanguage*" ] , [] )
+ [ Para
+ [ Span ( "" , [] , [] ) [ Str "french" ]
+ , SoftBreak
+ , Str "Bonjour."
+ ]
+ ]
+]
+```
+
+```
+% pandoc -f latex -t native
+\textfrench{Bonjour}
+^D
+[ Para
+ [ Span ( "" , [] , [ ( "lang" , "fr" ) ] ) [ Str "Bonjour" ]
+ ]
+]
+```
+
+```
+% pandoc -f latex -t native
+\foreignlanguage{swissgerman}{Guten tag}
+^D
+[ Para
+ [ Span
+ ( "" , [] , [ ( "lang" , "de-CH-1901" ) ] )
+ [ Str "Guten" , Space , Str "tag" ]
+ ]
+]
+```
+
+```
+% pandoc -f latex -t native
+\begin{french}
+Bonjour.
+\end{french}
+^D
+[ Div
+ ( "" , [] , [ ( "lang" , "fr" ) ] )
+ [ Para [ Str "Bonjour." ] ]
+]
+```