Skip to content

Instantly share code, notes, and snippets.

@sago35
Last active December 19, 2022 12:39
Show Gist options
  • Save sago35/55960dd7af33158b96df9c76816983a2 to your computer and use it in GitHub Desktop.
Save sago35/55960dd7af33158b96df9c76816983a2 to your computer and use it in GitHub Desktop.
AutoHotkey を使って Adbe Acrobat Reader DC からのコピーの改行を翻訳用に調整する
;#IfWinActive Adobe Acrobat Reader DC
#IfWinActive Adobe Acrobat Reader (64-bit)
^c::
Send, ^c
ClipWait
x = %clipboard%
space := " "
StringReplace, x, x, .`r`n, .`r, All
StringReplace, x, x, :`r`n, :`r, All
StringReplace, x, x, `r`n, %space%, All
StringReplace, x, x, .`r, .`r`n`r`n, All
StringReplace, x, x, :`r, :`r`n`r`n, All
clipboard = %x%
return
#IfWinActive
@sago35
Copy link
Author

sago35 commented Feb 26, 2022

@sago35
Copy link
Author

sago35 commented Feb 26, 2022

スペースの扱いが悪かったので少し修正した。
だいたい正しく動いているはず。

@sago35
Copy link
Author

sago35 commented Feb 26, 2022

: で終わる書き方の表示を調整。

@sago35
Copy link
Author

sago35 commented Dec 19, 2022

Window タイトルが変更になっているので追従。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment