title: XSL-FO Reverted text in footnote
body: <p>I'm trying to display correctly a footnote inside a PDF with Apache FOP.</p>
  
  <pre><code>&lt;fo:block text-align="right"&gt;
      &lt;fo:bidi-override unicode-bidi="embed" direction="rtl"&gt;
          &lt;fo:inline&gt;שלום&lt;/fo:inline&gt;
          &lt;fo:footnote&gt;
              &lt;fo:inline alignment-baseline="hanging"&gt;1&lt;/fo:inline&gt;
              &lt;fo:footnote-body&gt;
                  &lt;fo:block&gt;
                      &lt;fo:bidi-override unicode-bidi="embed" direction="rtl"&gt;
                          &lt;fo:inline&gt;שלום&lt;/fo:inline&gt;
                      &lt;/fo:bidi-override&gt;
                  &lt;/fo:block&gt;
              &lt;/fo:footnote-body&gt;
          &lt;/fo:footnote&gt;
          &lt;fo:inline&gt;.&lt;/fo:inline&gt;
      &lt;/fo:bidi-override&gt;
  &lt;/fo:block&gt;
  </code></pre>
  
  <p>For some reason, the footnote text (at the bottom of the page) appears reverted:</p>
  
  <p><a href="https://i.stack.imgur.com/K5a95.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/K5a95.png" alt="enter image description here"></a></p>
  
  <p>Not sure what I'm doing wrong...</p>