Last active
December 19, 2022 12:39
-
-
Save sago35/55960dd7af33158b96df9c76816983a2 to your computer and use it in GitHub Desktop.
AutoHotkey を使って Adbe Acrobat Reader DC からのコピーの改行を翻訳用に調整する
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;#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 |
スペースの扱いが悪かったので少し修正した。
だいたい正しく動いているはず。
: で終わる書き方の表示を調整。
Window タイトルが変更になっているので追従。
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://www.autohotkey.com/