In a mixed language document, I try to use a URL. Here is minimal input demonstrating
\documentclass{article} % compile with xelatex
\usepackage{hyperref}
\usepackage{polyglossia}
\setmainlanguage{hebrew}
\setotherlanguage{english}
\newfontfamily\hebrewfont[Script=Hebrew]{Ezra SIL}% or{SBL Hebrew}
\begin{document}
\begin{english}English separates Yankees and Brits?
\url{http://www.google.com}
\end{english}
\end{document}
Now, polyglosssia does not like this at all, complaining that:
! Package polyglossia Error:
The current roman font does not contain the Hebrew script!
Please define \hebrewfont with \newfontfamily.
See the polyglossia package documentation for explanation.
Type H <return> for immediate help.
...
l.9 \url{http://www.google.com}
I am confused. Didn't I switch to English on line 8?