<div dir="ltr">Hi Dhairyashil,<div><br></div><div>It is great to find that you're interested in contributing to the java-atk-wrapper. Please, take a look at the HACKING file for some idea of where it is at.[1] The ATK API is a useful reference.[2]</div><div><br></div><div>There is a lot to it but do not let that put you off. We will help where we can. Please feel free to report any bugs you may find and you are free to submit patches to bugzilla for review, if you wish to do this.[3] SwingSet is a good application for testing with and accerciser is a handy testing tool.[4] Before testing remember to have the setting JAW_DEBUG=1 to get more information.</div><div><br></div><div>Kind regards,</div><div><br></div><div>Magdalen</div><div><br></div><div>[1] <a href="https://git.gnome.org/browse/java-atk-wrapper/tree/HACKING">https://git.gnome.org/browse/java-atk-wrapper/tree/HACKING</a></div><div>[2] <a href="https://developer.gnome.org/atk/unstable/">https://developer.gnome.org/atk/unstable/</a></div><div>[3] <a href="https://bugzilla.gnome.org/enter_bug.cgi?product=java-atk-wrapper">https://bugzilla.gnome.org/enter_bug.cgi?product=java-atk-wrapper</a></div><div>[4] <a href="https://wiki.gnome.org/action/show/Apps/Accerciser?action=show&redirect=Accerciser">https://wiki.gnome.org/action/show/Apps/Accerciser?action=show&redirect=Accerciser</a></div><div><br></div><div>p.s. In case you are not already aware, the accessibility team at GNOME has an IRC channel called #a11y on gimpnet.</div><div><br><div class="gmail_extra"><div class="gmail_quote">On Mon, Mar 2, 2015 at 5:13 AM, Dhairyashil Bhosale <span dir="ltr"><<a href="mailto:dhairyashil.bhosale584@gmail.com" target="_blank">dhairyashil.bhosale584@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div><div>HI all,<br><br><br></div>           Thanks Alejandro for your reply. I am glad for your valuable reply, as per your suggestion, now I am working on java-atk-wrapper.Its worth mentioning that your brief explanation is quite helpful for beginners.Thanks again!<br><br><br><br></div>With Regards,<br></div>Dhairyashil<div><div class="h5"><br><div><div><br><br><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 27, 2015 at 8:09 PM, Alejandro Piñeiro <span dir="ltr"><<a href="mailto:apinheiro@igalia.com" target="_blank">apinheiro@igalia.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF"><span>
    <br>
    <div>On 26/02/15 13:51, Dhairyashil Bhosale
      wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div>
              <div>
                <div>Hi all,<br>
                  <br>
                </div>
                              I am new to At-SPI-1.0/2.0, I just
                successfully initialized the At-spi-init() method and
                just print the name of focused application running on
                GNOME. I have a lot of queries like:<br>
                <br>
              </div>
                                      1) Like in At-SPI-1.0 we set
              accessibility setting like
              "putenv("GNOME_ACCESSIBILITY=1");",<b>  </b>this but in
              AT-SPI-2.0 what parameters we have to set for enabling
              accessibility setting, for the time being I start ORCA
              screen reader and then run AT-SPI-2.0 demo example , so
              What parameters we have to set for enabling all
              accessibility setting in AT-SPI2.0?<br>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
    <br></span>
    First, it is not at-spi-1.0 vs at-spi-2.0. For example at-spi2-2.0
    behaviour at the beginning was basically the same that at-spi1.0.
    Enable accessibility is something somewhat more broader.<br>
    <br>
    Unfortunately there is not a single answer for your question. How to
    enable (if needed) accessibility depends on the distro that you are
    using. During all this years, there were different ways to enable
    the accessibility support. One is the environment variable you
    mention, and there was also the gsetting "toolkit-accessibility".
    You can check this one like this:<br>
    <br>
    gsettings get org.gnome.desktop.interface "toolkit-accessibility"<br>
    <br>
    With a several recent-enough-distro, it would be enough to just set
    that gsetting to true. But in any case, you should be able to enable
    accessibility using the universal access settings dialog.<br>
    <br>
    If you want a distro-independent answer, this is how it works on
    GNOME upstream:<br>
     * Since 2012 accessibility is enabled on default. So for gtk3,
    gnome-shell and others, accessibility (so at-spi2) is always
    enabled. You don't need to do anything.<br>
     * Old applications, mostly using gtk2, are still affected by
    toolkit-accessibility gsetting.<br>
    <br>
    Rationale and some extra details on this email [1].<span><br>
    <br>
    <blockquote type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div><br>
            </div>
                                     2) I am trying to make java
            application accessible to orca screen reader using JNI for
            calling At-spi's method, but in AT-SPI there are all get
            method like <br>
            " atspi_get_text() " like this, so in simple java ,python or
            gtk application How should I implement the At-SPI-2.0 means
            from application side we have to set somthing? <br>
          </div>
        </div>
      </div>
    </blockquote>
    <br></span>
    You are in the wrong side of the application. libatspi is the client
    server side library, used to write AT applications like Orca. Or in
    other words, libatspi is just used to get the info. Your approach
    would be valid if you want to write a screen reader using Java, that
    as far as I see, is not what you intend.<br>
    <br>
    You would need to explore the server side (more below).<span><br>
    <br>
    <blockquote type="cite">
      <div dir="ltr">
        <div>
          <div><br>
          </div>
                                    3) I am trying to call AT-SPI from
          java using JNI interface for making java application
          accessible to Orca screen reader, but when I run the java
          application, the Orca can not read the title bar or can't
          access that application, even I tried the <span>Java
            Accessibility API</span>(JAAPI).<br>
        </div>
      </div>
    </blockquote>
    <br></span>
    Again, libatspi is the client side library. It is already
    implemented, in order to get info from the accessibility APIs. So
    their purpose is writing ATs, not to expose the applications<span><br>
    <br>
    <blockquote type="cite">
      <div dir="ltr">
        <div><br>
        </div>
        <div>                       SO HOW TO MAKE JAVA APPLICATION
          ACCESSIBLE TO ORCA SCREEN READER OR OTHER ASSISTIVE TECH.<br>
        </div>
      </div>
    </blockquote>
    <br></span>
    Take a look to java-atk-wrapper:<br>
    <a href="https://git.gnome.org/browse/java-atk-wrapper" target="_blank">https://git.gnome.org/browse/java-atk-wrapper</a><br>
    <br>
    This library wraps Java applications (using JNI and all that stuff),
    exposing it as another ATK implementation (like those available on
    gtk, clutter, etc). Then it uses the server side library at-spi2-atk
    to expose the information using at-spi2 APIs. So instead of starting
    from scratch in order to make java applications accessible, probably
    it would be better if you collaborate with an already started
    module.<br>
    <br>
    Best regards<br>
    <br>
    [1]
<a href="https://mail.gnome.org/archives/desktop-devel-list/2012-June/msg00035.html" target="_blank">https://mail.gnome.org/archives/desktop-devel-list/2012-June/msg00035.html</a><span><font color="#888888"><br>
    <br>
    <pre cols="72">-- 
Alejandro Piñeiro (<a href="mailto:apinheiro@igalia.com" target="_blank">apinheiro@igalia.com</a>)</pre>
  </font></span></div>

</blockquote></div><br></div></div></div></div></div></div></div></div>
<br>_______________________________________________<br>
gnome-accessibility-list mailing list<br>
<a href="mailto:gnome-accessibility-list@gnome.org">gnome-accessibility-list@gnome.org</a><br>
<a href="https://mail.gnome.org/mailman/listinfo/gnome-accessibility-list" target="_blank">https://mail.gnome.org/mailman/listinfo/gnome-accessibility-list</a><br>
<br></blockquote></div><br></div></div></div>