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