On 13 March 2013 15:17, Mikel Artetxe <[email protected]> wrote: > On Wed, Mar 13, 2013 at 9:40 AM, Mikel L. Forcada <[email protected]> wrote: >> >> Apertiumers, >> here's my idea #6: >> >> (6) Write an offline Apertium plugin for Firefox or Chromium, if they >> can launch Java plugins, based on apertium-caffeine but capable of >> dealing with HTML. >> >> Not sure if it is feasible. > > > I basically know nothing about plugin development for web browsers, but > Mozilla's own documentation says that "The DOM java object has been removed > in Gecko 15.0 ((Firefox 15.0 / Thunderbird 15.0 / SeaMonkey 2.12). For this > and other reasons, you should not write extensions that use Java code."[1]. > As for Chrome, it seems that Java isn't supported for plugin development > neither[2]. Note that, in both cases, compiling Java to JavaScript wouldn't > probably be a viable solution in our case because of performance. >
Javascript performance is a lot more impressive these days. In V8 (Chrome), the FSTs would probably be quite a lot slower, but word processing (splitting into clip parts) would be faster (Google have done a lot of work on regexes), while the actual processing of the rules would probably be about the same. > In any case, what's the point of having an offline plugin for a web browser? > If you are surfing the web, it's obvious that you have an Internet > connection, so an online plugin could do the same job without any problem... > Privacy, for one. > > [1] https://developer.mozilla.org/en/docs/Java_in_Firefox_Extensions > [2] > http://stackoverflow.com/questions/8735624/is-it-possible-to-build-a-chrome-extension-using-java -- <Sefam> Are any of the mentors around? <jimregan> yes, they're the ones trolling you ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar _______________________________________________ Apertium-stuff mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/apertium-stuff
