Commit c726960ed29af65fcc615d6146181f24c4678db1
1 parent
656af452
Exists in
master
Comentários no bdrag
Showing
4 changed files
with
15 additions
and
26 deletions
Show diff stats
Clipboard/Clipboard.py
... | ... | @@ -3,6 +3,7 @@ import ctypes, subprocess |
3 | 3 | |
4 | 4 | global process |
5 | 5 | |
6 | +# Copia área de transferência | |
6 | 7 | def clip(): |
7 | 8 | |
8 | 9 | dll = ctypes.windll |
... | ... | @@ -21,9 +22,11 @@ def clip(): |
21 | 22 | else: |
22 | 23 | return "ESCOLHER TEXTO CERTO" |
23 | 24 | |
25 | +# Ativa bdrag | |
24 | 26 | def bdragOn(): |
25 | 27 | global process |
26 | 28 | process = subprocess.Popen("bdrag") |
27 | 29 | |
30 | +# Finaliza bdrag | |
28 | 31 | def bdragOff(): |
29 | 32 | process.kill() |
30 | 33 | \ No newline at end of file | ... | ... |
Makefile
autohotkey/Bdrag.ahk
... | ... | @@ -3,22 +3,30 @@ |
3 | 3 | ;# brunosantos@lavid.ufpb.br # |
4 | 4 | ;##################################################################### |
5 | 5 | |
6 | -#SingleInstance,Reload ;Mantem apenas uma versão executando | |
7 | -SetBatchLines,-1 ;Não permite o script entrar em modo sleep | |
6 | +;Mantem apenas uma versão executando | |
7 | +#SingleInstance,Reload | |
8 | + | |
9 | +;Não permite o script entrar em modo sleep | |
10 | +SetBatchLines,-1 | |
11 | + | |
8 | 12 | CoordMode,Mouse |
9 | 13 | |
14 | +; Comando CTRL + a | |
10 | 15 | ~^a:: |
11 | 16 | Gosub,COPIAR |
12 | 17 | return |
13 | 18 | |
19 | +;Comando SHIFT + click down | |
14 | 20 | ~+LButton Up:: |
15 | 21 | Gosub,COPIAR |
16 | 22 | Return |
17 | 23 | |
24 | +; Click down para pegar coordenadas | |
18 | 25 | ~LButton:: |
19 | 26 | MouseGetPos,coordx_old,coordy_old,winid_old |
20 | 27 | Return |
21 | 28 | |
29 | +; Click up para copiar seleção para área de transferência | |
22 | 30 | ~LButton Up:: |
23 | 31 | MouseGetPos,coordx,coordy,winid |
24 | 32 | |
... | ... | @@ -39,6 +47,7 @@ Return |
39 | 47 | |
40 | 48 | Return |
41 | 49 | |
50 | +; Rotina de cópia | |
42 | 51 | COPIAR: |
43 | 52 | clip=%Clipboardall% |
44 | 53 | Clipboard= | ... | ... |
translate.log
... | ... | @@ -1,24 +0,0 @@ |
1 | -2015-04-02 15:58:44,479 - ERROR: | |
2 | - | |
3 | -Traceback (most recent call last): | |
4 | - File "C:\vlibras-libs\vlibras-translate\src\TraduzSentencas.py", line 26, in iniciar_traducao | |
5 | - analise_sintatica = alexp.run(sentenca) | |
6 | - File "C:\vlibras-libs\vlibras-translate\src\alexp.py", line 138, in run | |
7 | - tree=analisaSentenca(tokens) | |
8 | - File "C:\vlibras-libs\vlibras-translate\src\alexp.py", line 111, in analisaSentenca | |
9 | - trees=parser.parse_one(codificada) | |
10 | - File "C:\Python27\Lib\site-packages\nltk\parse\api.py", line 66, in parse_one | |
11 | - return next(self.parse(sent, *args, **kwargs), None) | |
12 | - File "C:\Python27\Lib\site-packages\nltk\parse\chart.py", line 1350, in parse | |
13 | - chart = self.chart_parse(tokens) | |
14 | - File "C:\Python27\Lib\site-packages\nltk\parse\chart.py", line 1309, in chart_parse | |
15 | - self._grammar.check_coverage(tokens) | |
16 | - File "C:\Python27\Lib\site-packages\nltk\grammar.py", line 631, in check_coverage | |
17 | - "input words: %r." % missing) | |
18 | -ValueError: Grammar does not cover some of the input words: u"'TEXTO', 'CERTO'". | |
19 | - | |
20 | - | |
21 | - | |
22 | -############################################## | |
23 | - | |
24 | - |