<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <div class="moz-cite-prefix">26.12.2020 00:19, Alexander
      Epaneshnikov пишет:<br>
    </div>
    <blockquote type="cite"
      cite="mid:d1977e03-8533-37fc-cffc-6c13dbeb2e18@gmail.com">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <div class="moz-cite-prefix">25.12.2020 23:51, Jason White пишет:<br>
      </div>
      <blockquote type="cite"
        cite="mid:ff72524b-1f76-2a63-6c80-c68738652aa8@jasonjgw.net">
        <meta http-equiv="Content-Type" content="text/html;
          charset=UTF-8">
        <p><br>
        </p>
        <div class="moz-cite-prefix">On 12/25/20 2:29 PM, Alexander
          Epaneshnikov wrote:<br>
        </div>
        <blockquote type="cite"
          cite="mid:1a832545-a8bf-576e-0977-0f1560588b40@gmail.com">I
          suppose you could also try manually translating a string in
          Python
          <blockquote type="cite">
            <pre class="moz-quote-pre" wrap="">to confirm that it works there.

</pre>
          </blockquote>
        </blockquote>
        <blockquote>
          <pre class="moz-quote-pre" wrap="">I tried to do it, but I can't. maybe I just don't know python well.
can you, or someone else give me the code?</pre>
        </blockquote>
        <p>import louis</p>
        <p>tables=["unicode.dis", "en-us-g2.ctb"]</p>
        <p>louis.translateString(tables, "This is a test.")</p>
        <p><br>
        </p>
        <p>Substitute your preferred translation table for en-us-g2.ctb
          (they're in /usr/share/liblouis/tables), and you'll need to be
          in uncontracted mode to check the output, which is in Unicode
          braille (0x2800-0x28ff).</p>
        <p>I don't know whether you need any additional table files
          other than the main table in order to get correct Cyrillic
          translation. The input string should be UTF-8.<br>
        </p>
        <br>
      </blockquote>
      thanks. ok. if i do this and use ru.ctb as second table, i get
      this:<br>
      '⢁⢇⢑⢭⡜⢁⢇⢑⢭⠤⢏⢉⠀⠻⠀⡨⠀'<br>
      this is similar to the orca output. but as far as I know this
      isn't correct.<br>
      1. nvda in windows uses this table and outputs completely
      different results.<br>
      2. my brltty configured to use this contraction table and if I
      switch to tty<br>
      and tell brltty to use contracted braille my prompt looks
      different.<br>
      <br>
      something realy wrong hear.<br>
      <pre class="moz-signature" cols="72">-- 
Sincerely, Alexander.</pre>
    </blockquote>
    ok. my mesage was incorrect. i forgot to turn off contracted braille
    in orca preferences.<br>
    so louis output is correct. it's similar to brltty and nvda.<br>
    now i need to understand why it isn't working with orca.<br>
    I am glad that python liblouis bindings is working.<br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Sincerely, Alexander.</pre>
  </body>
</html>