Difference between revisions of "User:Kiara"

From Apertium
Jump to navigation Jump to search
Line 94: Line 94:
 
| ara
 
| ara
 
| ar
 
| ar
| Arabic
+
| Arabic
 
|-
  +
| an
  +
| N/A
  +
| Aragonese
 
|-
 
|-
 
| ast
 
| ast
Line 100: Line 104:
 
| Asturian
 
| Asturian
 
|-
 
|-
|
 
 
| bg
 
| bg
|
+
| bg
  +
| Bulgarian
 
|-
 
|-
 
|
 
|
Line 151: Line 155:
 
| et
 
| et
 
|
 
|
 
|-
  +
| eu
  +
| N/A
  +
| Basque
 
|-
 
|-
 
|
 
|
Line 176: Line 184:
 
|
 
|
 
|-
 
|-
  +
| hin
|
 
 
| hi
 
| hi
  +
| Hindi
|
 
 
|-
 
|-
 
|
 
|
Line 203: Line 211:
 
| ja
 
| ja
 
|
 
|
 
|-
  +
| kaz
  +
| N/A (kk)
  +
| Kazakh
 
|-
 
|-
 
|
 
|
Line 238: Line 250:
 
| mt
 
| mt
 
| N/A
 
| N/A
| Maltese
+
| Maltese
 
|-
  +
| nob
  +
| N/A (nb)
  +
| Bokmål
 
|-
 
|-
 
|
 
|
 
| ne
 
| ne
  +
| Nepali
|
 
 
|-
 
|-
 
| nl
 
| nl
 
| nl
 
| nl
| Dutch
+
| Dutch
 
|-
  +
| nno
  +
| N/A (nn)
  +
| Norwegian Nynorsk
 
|-
 
|-
 
| nor
 
| nor
Line 258: Line 278:
 
|
 
|
 
| pa
 
| pa
  +
| Panjabi
|
 
 
|-
 
|-
 
|
 
|
 
| pl
 
| pl
  +
| Polish
|
 
 
|-
 
|-
 
| pt
 
| pt
Line 281: Line 301:
 
|-
 
|-
 
| sme
 
| sme
| N/A(se)
+
| N/A (se)
 
| Northern Sami
 
| Northern Sami
 
|-
 
|-
 
|
 
|
 
| sk
 
| sk
  +
| Slovak
|
 
 
|-
 
|-
 
| slv
 
| slv
Line 294: Line 314:
 
|
 
|
 
| so
 
| so
  +
| Somali
|
 
 
|-
 
|-
 
|
 
|
 
| sq
 
| sq
  +
| Albanian
|
 
 
|-
 
|-
 
| swe (sv)
 
| swe (sv)
Line 310: Line 330:
 
|
 
|
 
| ta
 
| ta
  +
| Tamil
|
 
 
|-
 
|-
 
|
 
|
 
| te
 
| te
  +
| Telugu
|
 
 
|-
 
|-
 
|
 
|
 
| th
 
| th
  +
| Thai
|
 
 
|-
 
|-
 
|
 
|
 
| tl
 
| tl
  +
| Tagalog
|
 
 
|-
 
|-
 
|
 
|
 
| tr
 
| tr
  +
| Turkish
|
 
 
|-
  +
| tat
  +
| N/A (tt)
  +
| Tatar
 
|-
 
|-
 
|
 
|
 
| uk
 
| uk
  +
| Ukrainian
|
 
 
|-
 
|-
  +
| urd
|
 
 
| ur
 
| ur
  +
| Urdu
|
 
 
|-
 
|-
 
|
 
|
 
| vi
 
| vi
  +
| Vietnamese
|
 
 
|-
 
|-
 
| N/A
 
| N/A

Revision as of 11:08, 6 July 2016

Kiara's page


Suggestion task:

Notes

1. How to work with APY from the command line: http://wiki.apertium.org/wiki/APY#Usage

2. How to launch Suggestions from the command line https://github.com/goavki/apertium-html-tools/pull/35


Suggestion docs:

This is for the apy page


use ./servlet.py /usr/local/share/apertium/ --wiki-username=WikiUsername --wiki-password=WikiPassword -rs=YourRecaptchaSecret to run apy in google reCaptcha mode

  • -b --bypass-token: testing token is generated to bypass recaptcha

URL Function Parameters Output
/suggest Generate a suggestion on target wiki-page using a testing token.
  • context: sentence
  • word: word that will be sugested
  • newWord: suggestion
  • langpair: language pair to use for translation
  • g-recaptcha-response: testing token generated when running apy (note that only testing token can be used with curl)
Returns the status. If "Success", the suggestion is posted on the target wiki-page.

Note that the correct wiki-page url is required (wiki_util.py)


For production usage of Google reCaptcha the registration is required (https://developers.google.com/recaptcha/).

Note that correct keys are required when starting apy and in the html-tools config file.

curl --data 'context=otro+mundo&word=*mundo&newWord=MUNDO&langpair=esp|eng&g-recaptcha-response=testingToken' http://localhost:2737/suggest
{"responseStatus": 200, "responseData": {"status": "Success"}, "responseDetails": null}

This is for the html-tools page:

  • ENABLED: turns on the suggestion mode (True/False)
  • RECAPTCHA_SITE_KEY: recaptcha site key which can be obtained by registration at https://developers.google.com/recaptcha/
  • CONTEXT_WRAP: a number of context words from the left


Speller backlog:

1. Localize 'Any ideas?' fixed and question

2. Punctuation fixed

3. Documentation

4. Button glitch fixed

5. Hovering over a misspelled word highlights it in black, with a second underline. fixed

6. After a word has been updated, it stays red, even though the underline disappears fixed

7. An error message for missed -translate mode fixed and question



Apertium code langdetect code Language
af af Afrikaans
ara ar Arabic
an N/A Aragonese
ast N/A Asturian
bg bg Bulgarian
bn
br N/A Breton
ca ca Catalan
cs
cy cy Welsh
dan da Danish
de
el
en en English
eo N/A Esperanto
es es Spanish
et
eu N/A Basque
fa
fi
fra fr French
gl N/A Galician
gu
he
hin hi Hindi
hr
hu
id id Indonesian
is N/A Icelandic
it it Italian
ja
kaz N/A (kk) Kazakh
kn
ko
lt
lv
mk mk Macedonian
ml
mr
ms N/A Malaysian
mt N/A Maltese
nob N/A (nb) Bokmål
ne Nepali
nl nl Dutch
nno N/A (nn) Norwegian Nynorsk
nor no Norwegian
oc N/A Occitan
pa Panjabi
pl Polish
pt pt Portuguese
ro ro Romanian
ru Russian
hbs N/A (sh) Serbo-Croatian
sme N/A (se) Northern Sami
sk Slovak
slv sl Slovenian
so Somali
sq Albanian
swe (sv) sv Swedish
sw Swahili
ta Tamil
te Telugu
th Thai
tl Tagalog
tr Turkish
tat N/A (tt) Tatar
uk Ukrainian
urd ur Urdu
vi Vietnamese
N/A zh-cn Chinese (Simplified and using Mainland Chinese terms)
N/A zh-tw Chinese (Traditional and using Taiwanese terms)