%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode

\documentclass[12pt,a5paper]{article}

\usepackage{fontspec}
\setromanfont[Ligatures=TeX]{Linux Libertine}	% It works on the Mac as well:-)
\usepackage{hologo}			% to get the XeLaTeX logo
\usepackage{polyglossia} 	% replaces babel

% Note: The polyglossia interface differs from the babel interface
\setdefaultlanguage{english}
\setotherlanguage[babelshorthands]{german} % enable "', "` and other german.sty/babel notations
\setotherlanguage{russian}
\setotherlanguage{polish}

\newfontfamily\germanfont[Ligatures=TeX,Ligatures=Rare]{Linux Libertine}
% Writing German with some unusual ligatures.
\newfontfamily\russianfont[Script=Cyrillic]{Old Standard TT}
% Yes, Linux Libertine does contain cyrillic letters, this is just for show.
\newfontfamily\polishfont[Language=Polish]{Latin Modern Roman}
% Is there really a fk ligature in Polish? 

\newfontfamily\LLln[Numbers=Lining]{Linux Libertine} % This is the default
\newfontfamily\LLos[Numbers=OldStyle]{Linux Libertine}

\title{\hologo{XeLaTeX} sample}
\author{}

\begin{document}
\maketitle

This is a short text in English. It demonstrates the different kind of numbers available in this font, the lining number {\LLln 0123456789} and the lowercase or old style number {\LLos 0123456789}. This will even work with bold {\LLos 012\textbf{345}6789} and italic {\LLos 012\textit{345}679}.

{\LLln This paragraph uses \textit{Linux Libertine} without the \texttt{Ligatures=TeX} option. Thus -- will not be converted to –, neither will --- be converted to —.}

\begin{german}
Und das hier ist in Deutsch. Oder ist es in \emph{deutsch}? Auf jeden Fall lang genug, um einen Umbruch zu erfordern. Die Silbentrennung erfolgt jetzt nach den deutschen Trennmustern.

Die Anführungszeichen können entweder als "`\TeX-Befehle"' oder als „Unicode“ eingegeben werden, dafür sorgt die Option \texttt{babelshorthands}.
\end{german}

\begin{polish}
Don't expect anything Polish here, I just wanted to check whether there is actually an fk ligature in Polish. This is not a ligature in Englisch see:\textenglish{fk}. (You may need a magnifying glass)
\end{polish}

And now for something completely different \dots

\begin{russian}
могу я Вам чем-л. помочь?% I hope this isn't a terrible curse or an insult, never trust a dictionary
\end{russian}


\end{document}  