| 1 |
% !TeX encoding = UTF-8 |
| 2 |
% !TeX spellcheck = en_US |
| 3 |
% !TEX TS-program = lualatex |
| 4 |
\documentclass{article} |
| 5 |
\usepackage[nostamp,draft]{moodle} |
| 6 |
\usepackage{fontspec}% works only with XeTeX and LuaTeX |
| 7 |
\usepackage{polyglossia}% works only with XeTeX and LuaTeX |
| 8 |
\def\FullSupportList{british,french,ngerman,german,italian,spanish}% |
| 9 |
\def\PartialSupportList{catalan,croatian,czech,danish,dutch,% |
| 10 |
estonian,finnish,hungarian,icelandic,lithuanian,norsk,polish,portuguese,% |
| 11 |
romanian,swedish,turkish} |
| 12 |
\def\do#1{\setmainlanguage{#1}\let\do=\setotherlanguage} |
| 13 |
\expandafter\docsvlist\expandafter{\FullSupportList} |
| 14 |
\expandafter\docsvlist\expandafter{\PartialSupportList} |
| 15 |
%\usepackage{translations} % overides "translator" |
| 16 |
%\AfterEndPreamble{ |
| 17 |
% \DeclareTranslation{foobar}{True}{Foo}% |
| 18 |
% \DeclareTranslation{foobar}{False}{Bar}% |
| 19 |
%} |
| 20 |
\begin{document} |
| 21 |
\section*{Introduction} |
| 22 |
This document is intended to check the support of |
| 23 |
internationalization with \textsf{polyglossia}. This |
| 24 |
package requires the languages to be specified in the |
| 25 |
preamble. |
| 26 |
|
| 27 |
Internationalization only matters for the PDF typesetting. |
| 28 |
It has no impact on the XML file generated. |
| 29 |
|
| 30 |
\def\do#1{ |
| 31 |
\begin{#1} |
| 32 |
\begin{abstract}#1/\languagename\end{abstract} |
| 33 |
\begin{quiz}{#1} |
| 34 |
\begin{description}[tags={#1}]{Description}Text\end{description} |
| 35 |
\begin{cloze}{Cloze} |
| 36 |
\begin{multi}[shuffle]{Multichoice}?\item* A\item B\end{multi} |
| 37 |
\begin{multi}[multiple,shuffle=false]{Multianswer}?\item* A\item B\end{multi} |
| 38 |
\begin{numerical}{Numerical}?\item0\end{numerical} |
| 39 |
\begin{shortanswer}[usecase]{Shortanswer}?\item0\end{shortanswer} |
| 40 |
\begin{shortanswer}[usecase=false]{Shortanswer}?\item0\end{shortanswer} |
| 41 |
\end{cloze} |
| 42 |
\begin{essay}[template={Default}]{Essay}Text\item Info\end{essay} |
| 43 |
\begin{essay}[response format=html+file]{Essay}Text\end{essay} |
| 44 |
\begin{essay}[response format=text]{Essay}Text\end{essay} |
| 45 |
\begin{essay}[response format=monospaced]{Essay}Text\end{essay} |
| 46 |
\begin{essay}[response format=file]{Essay}Text\end{essay} |
| 47 |
\begin{matching}[dd]{Matching}?\item A\answer1\item B\answer2\item |
| 48 |
C\answer3\end{matching} |
| 49 |
\begin{multi}[shuffle]{Multichoice}?\item* A\item B\end{multi} |
| 50 |
\begin{multi}[multiple,shuffle=false]{Multianswer}?\item* A\item B\end{multi} |
| 51 |
\begin{multi}[allornothing]{All-or-nothing}?\item* A\item B\end{multi} |
| 52 |
\begin{numerical}{Numerical}?\item0\end{numerical} |
| 53 |
\begin{shortanswer}[usecase]{Shortanswer}?\item0\end{shortanswer} |
| 54 |
\begin{shortanswer}[usecase=false]{Shortanswer}?\item0\end{shortanswer} |
| 55 |
\begin{truefalse}{Truefalse}?\item*\end{truefalse} |
| 56 |
\end{quiz} |
| 57 |
\end{#1} |
| 58 |
} |
| 59 |
\expandafter\docsvlist\expandafter{\FullSupportList} |
| 60 |
|
| 61 |
\def\do#1{ |
| 62 |
\begin{#1} |
| 63 |
\begin{abstract}#1/\languagename\end{abstract} |
| 64 |
\begin{quiz}{True/False in #1} |
| 65 |
\begin{truefalse}{#1}?\item*\end{truefalse} |
| 66 |
\end{quiz} |
| 67 |
\end{#1} |
| 68 |
} |
| 69 |
\expandafter\docsvlist\expandafter{\PartialSupportList} |
| 70 |
|
| 71 |
\end{document} |