[Tex/LaTex] Advice for multilingual document with many languages

languagessharelatex

I need to create a document with snippets in many languages – between 10 and 30 of them. I've seen people suggest XeLaTeX, but I'm working on a system that I don't have control over and that's a separate issue. For now, I'd like to do this on shareLaTeX. I started by trying babel

\documentclass{article}

    \usepackage[utf8]{inputenc}
    \usepackage[german, french, italian, spanish, portuguese, russian, arabic, hebrew, scottish, irish, english]{babel}
    \usepackage{CJKutf8} %for chinese, korean, japanese

\begin{document}

\begin{enumerate}
    \item one
    \item %\foreignlanguage{scottish}{ceithir}
    \item aon d\'eag %foreignlanguage{irish}{aon d\'eag}
    \item %\foreignlanguage{scottish}{fichead}
    \item fiche a c\'uig %foreignlanguage{irish}{fiche a c\'uig}
\end{enumerate}

\end{document}

but I exceed the default TeX capacity of shareLaTeX, presumably because I have too many languages. Hyphenation would be nice but isn't a hard requirement, and I realize I could typeset some languages without loading any packages. Should I be loading fonts instead for things like Cyrillic, Chinese, or Arabic? Should I be entering everything in hex or decimal unicode? I'll be on a mix of Windows and Linux machines, with an American QWERTY keyboard. What might be the best way for me to go about this?

Best Answer

With ShareLaTeX you do have the option to use XeLaTeX as your document processor, so you can work with a Unicode input file. In theory, this would allow you to input whatever characters you like and, provided you use a suitable font, have it compiled without too many troubles.

Given that ShareLaTeX is a web application, it is rather strange what you mention that you are working on a system that you don't have control over: you could work from any computer you like, or at least devise some strategies to overcome any limitations of that system (e.g., type difficult passages on another computer with a suitable "keyboard" installed, save them on a file and then simply copy and paste them into ShareLaTeX).