hiro1357

論文などの本文をGoogle翻訳にかけるための前処理用秀丸マクロ

Apr 18th, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. setcompatiblemode 0x0F;
  2. begingroupundo;
  3. replaceall "\\n" , " " , regular, nocasesense, nohilight;
  4. if( ! result ) beep;
  5. endgroupundo 1;
  6. begingroupundo;
  7. replaceall "\\([a-za-z0-9 .,/-]*\\)" , " " , regular, nocasesense, nohilight;
  8. if( ! result ) beep;
  9. endgroupundo 1;
  10. begingroupundo;
  11. replaceall "\ et\ al\." , "" , regular, nocasesense, nohilight;
  12. if( ! result ) beep;
  13. endgroupundo 1;
  14. begingroupundo;
  15. replaceall "([.:])" , "\\1\\n\\n" , regular, nocasesense, nohilight;
  16. if( ! result ) beep;
  17. endgroupundo 1;
Add Comment
Please, Sign In to add comment