<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Special char: find the char by drawing it"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=114721">114721</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Special char: find the char by drawing it
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>legarrec.vincent@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>legarrec.vincent@gmail.com
          </td>
        </tr>

        <tr>
          <th>Blocks</th>
          <td>109232
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=138698" name="attach_138698" title="ocr_symbol.tar.xz">attachment 138698</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=138698&action=edit" title="ocr_symbol.tar.xz">[details]</a></span>
ocr_symbol.tar.xz

It would be really nice to be able to find char by drawing it.

I started working on it. Please find enclosed few patches. If you rather github
: <a href="https://github.com/bansan85/core/tree/ocr">https://github.com/bansan85/core/tree/ocr</a>. I didn't used gerrit because
patches are actually really unstable.

What does patches do and how does it work ?

1) Add a check button to show a drawing area that allow drawing.
2) Draw the char. Left click to add black, right click to rub out.
3) Uncheck the draw check button and let the "almost" magic do:
4) Ĝet list of all "special character" and convert it in 15*15px bitmap.
5) Use lib fann to create and learn the neuronal network. Be careful, this step
is taking about 30-45 minutes. After the network created, the result is saved
in /tmp/fann.net so it can be reused after. The idea is to make a (online?)
database with generated network for each font to avoid this step.
6) Search the drawn char in the network and sort result by probability for each
char (output of the network).
7) Show sorted char in the window.

Theses steps is what it *should* do. But I'm having lots of trouble :

After my modifications, opening the special Character often crashes. I almost
done nothing during this step, so I don't know how to solve this problem. Maybe
I did something wrong when I added the check box or the drawing area.

Is it a problem to add a dependency with fann ? If it is, I can create my own
library, I already done it 10 years ago. By additional heavy work, the library
should use blas / opencl.

Part 6 looks to be buggy. I can't open the network generated using fann under
Libreoffice but I can open it by a simple "hello world fann". Maybe the
instability of the opening the window is the reason ???

Where should I put the code about fann and ocr ? In another class ? In the cui
lib ? In another lib ?


So actually, I need the help of someone that already done some development for
LibreOffice. I worked on the base but I'm stuck for writing the final code with
enough QA.

Any help will be appreciated.

Thanks,
Best regards,</pre>
        </div>
      </p>

        <div id="referenced">
          <hr style="border: 1px dashed #969696">
          <b>Referenced Bugs:</b>
          <ul>
              <li>
                [<a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [META] Special character dialog bugs and enhancements"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=109232">Bug 109232</a>] [META] Special character dialog bugs and enhancements
              </li>
          </ul>
        </div>
        <br>

      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>