/Thai-Eng_Swap-for-aegisub

Aegisub automation เปลี่ยนภาษาไทย<=>อังกฤษ

Primary LanguageLuaOtherNOASSERTION

CC BY-NC-SA 4.0

Thai-Eng_Swap for aegisub

Aegisub automation เปลี่ยนภาษาไทย<=>อังกฤษ

Requirement

  • Aegisub supporting Automation 4 (maybe working on 3?)

Installation

  1. Download "fu,kdดีมาก.lua"
  2. Move the file to "automation/autoload" in aegisub installation location

Usage

First, have the text forgotten to switch language keyboard layout.

line | text
1.   | ถถถ
2.   | l;ylfu8iy[
3.   | {\an8\fs50}gpj {\fs80} ัฟั
4.   | fu,kd

And select the line(s) you want to change and use ENG_to_TH or TH_to_ENG in the "fu,kdดีมาก" automation.

Change from English to Thai by using ENG_to_TH

After using ENG_to_TH

line | text
1.   | ถถถ
2.   | สวัสดีครับ
3.   | {\an8\fs50}เย่ {\fs80} ัฟั
4.   | ดีมาก

Change Thai text to English text by using TH_to_ENG

After using TH_to_ENG

line | text
1.   | 555
2.   | l;ylfu8iy[
3.   | {\an8\fs50}gpj {\fs80} yay
4.   | fu,kd
Text within curly brackets will not be affected by function.
Before

line | text
1.   | {\an8\fs50} {Hello World} {สวัสดีชาวโลก} {ハロー・ワールド}

After

line | text
1.   | {\an8\fs50} {Hello World} {สวัสดีชาวโลก} {ハロー・ワールド}

Note

  • Thai keyboard layout is Thai-Kedmanee-based.
  • English keyboard layout is US-QWERTY-based.
  • Changing between two language at the same time is not possible due to the same character in both keyboard layout.

License

Thai-Eng_Swap-for-aegisub is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License (CC BY-NC 4.0).