text = re.sub(r"([\u0400-\u04ff]+)", r"<alien>\1</alien>", text)
     # Geometric shapes.
     text = re.sub(r"([\u25a0-\u25ff]+)", r"<alien>\1</alien>", text)
+    # Hebrew
+    text = re.sub(r"([\u0590-\u05ff]+)", r"<fallback>\1</fallback>", text)
 
     document = WLDocument.from_bytes(text.encode('utf-8'),
                                      parse_dublincore=True, provider=provider)
 
 LetterSpace=-1.0
 ] {DejaVu Serif}
 
+\newfontfamily\fallback[
+SmallCapsFeatures = {Letters={SmallCaps,UppercaseSmallCaps}},
+Numbers=OldStyle,
+Scale=0.85,
+LetterSpace=-1.0
+] {Open Sans}
+
 \ifenablewlfont
 \setmainfont [
 %ExternalLocation,
     \newcommand{\pe}[1]{\NoCaseChange{\endnote{#1 [przypis edytorski]}}}
     \newcommand{\pr}[1]{\NoCaseChange{\endnote{#1 [przypis redakcyjny]}}}
     \newcommand{\pt}[1]{\NoCaseChange{\endnote{#1 [przypis tłumacza]}}}
+    \newcommand{\ptrad}[1]{\NoCaseChange{\endnote{#1 [przypis z tradycji]}}}
   \else
     \newcommand{\pa}[1]{\NoCaseChange{\footnote{#1 [przypis autorski]}}}
     \newcommand{\pe}[1]{\NoCaseChange{\footnote{#1 [przypis edytorski]}}}
     \newcommand{\pr}[1]{\NoCaseChange{\footnote{#1 [przypis redakcyjny]}}}
     \newcommand{\pt}[1]{\NoCaseChange{\footnote{#1 [przypis tłumacza]}}}
+    \newcommand{\ptrad}[1]{\NoCaseChange{\footnote{#1 [przypis z tradycji]}}}
   \fi
 \else
   \newcommand{\pa}[1]{}
   \newcommand{\pe}[1]{}
   \newcommand{\pr}[1]{}
   \newcommand{\pt}[1]{}
+  \newcommand{\ptrad}[1]{}
 \fi
 
 \newcommand{\mat}[1]{$#1$}
 
 
 
 <xsl:template mode="inline"
-    match="pa|pe|pr|pt|mat|didask_tekst|slowo_obce|wyroznienie|osoba|indeks_dolny|wieksze_odstepy">
+    match="pa|pe|pr|pt|ptrad|mat|didask_tekst|slowo_obce|wyroznienie|osoba|indeks_dolny|wieksze_odstepy">
     <cmd>
         <xsl:attribute name="name">
                <xsl:value-of select="wl:texcommand(name())" />
 </xsl:template>
 
 <xsl:template name="strip-for-toc">
-    <xsl:for-each select="./text() | nbsp | dywiz | alien | slowo_obce">
+    <xsl:for-each select="./text() | nbsp | dywiz | alien | fallback | slowo_obce">
         <xsl:choose>
             <xsl:when test="name() = 'nbsp'">
                 <xsl:text> </xsl:text>
             <xsl:when test="name() = 'alien'">
                 <xsl:apply-templates mode="inline" />
             </xsl:when>
+            <xsl:when test="name() = 'fallback'">
+                <xsl:apply-templates mode="inline" />
+            </xsl:when>
             <xsl:when test="name() = 'slowo_obce'">
                 <xsl:call-template name="strip-for-toc" />
             </xsl:when>
         <xsl:apply-templates mode="inline" />
     </group>
 </xsl:template>
+<xsl:template match="fallback" mode="inline">
+    <group>
+        <cmd name="fallback" />
+        <xsl:apply-templates mode="inline" />
+    </group>
+</xsl:template>
 
 <!-- ================ -->
 <!-- = IGNORED TAGS = -->