GithubHelp home page GithubHelp logo

ijitsuki's Introduction

Aegisub 3 moonscript macros

[Add edgeblur](Add edgeblur.moon)

Adds \be1 tags to selected lines. Affects only the lines that do not have the \be or \blur tag.

[Add tags](Add tags.moon)

Adds user-specified tags to all/selected lines.
20 last used tags are remembered between sessions and may be re-applied (or just loaded) later.

Screenshot

Marks lines exceeding specified limits:

  • minimum/maximum durations - lines dangerously shortened by TPP's keyframe snapping, for example.
  • CPS - characters per second - excessively verbose lines.
  • line count - 3-liners!!1
  • overlaps - TPP may easily produce those
  • missing styles - lines using non-existent styles will look wrong

Screenshot

Puts results into the Effect field (1), and/or selects lines (2), and/or displays a mini log (3).
In the first case you can navigate between such lines using two supplementary macros:

  • Go to previous
  • Go to next

Tip: assign handy hotkeys in Options like Ctrl-Up and Down arrows, for example.

Saves/loads subtitle grid scrollbar position.
Requires Aegisub with LuaJIT and win32/64 (r8238 or v3.2 and newer).
Number of "memory spots" for positions is set in the macro, jumpscroll_max = 3 by default.
Assign hotkeys to use it effectively e.g. Ctrl-F1...F3 to save, Shift-F1...F3 to jump.
Currently it doesn't save these positions to a file so it's session-only.

[Position shifter](Position shifter.moon)

Shifts position tags in selected lines (\pos,\move,\org,\clip,\p).
Screenshot

[Remove unused styles](Remove unused styles.moon)

Removes styles not referenced in dialogue lines (comment lines are ignored).
Also reports lines that reference a non-existent style ("orphaned lines").

Screenshot

Select/navigate in the subtitle grid.

  • Current style related:
  • Current style/select all - select all lines with the same style as the current line
  • Current style/previous - go to previous line with the same style as the current line
  • Current style/next - go to next line with the same style as the current line
  • Current style/first in block - go to the first line in current block of lines with the same style
  • Current style/last in block - go to the last line in current block of lines with the same style
  • Current style/select block - select all lines in current block of lines with the same style
  • Select till start - unlike built-in Shift-Home, it preserves the active line
  • Select till end - unlike built-in Shift-End, it preserves the active line

Assigning hotkeys makes these really handy. NB. You can redefine the built-in Shift-Home/End hotkeys with 'Select till start/end' macros in the 'Subtitle Grid' section of Options->Hotkeys.

  • Split by \N - split dialogues like -Person\N-Another person, also trim spaces/hyphens at start and estimate durations
  • Split 1 frame - split after the 1st frame to prevent disappearing of subtitles, that start exactly at video chapter mark, when Jump-to-next-chapter hotkey/button is used in a video player.
  • Split 1 frame on chapters - same as above but reads a user specified chapters file and automatically fixes the affected lines.

[Title Case](Title Case.moon)

Applies English Title Case (maintains lower case on prepositions and other auxiliary words) to the selected lines.

[Wrap in curly braces](Wrap in curly braces.moon)

Wraps all/selected lines in {}.
Helps translating subtitles since the text in {} isn't shown on video.
Original override tags are preserved inside <>.


P.S.
Add tags & Position shifter are enhanced moonscript versions of lua-macros originally written by [Youka](http://forum.youka.de/index.php?topic=4.0).
Remove unused styles originated from pieceofsummer's CleanStyles.

ijitsuki's People

Contributors

tophf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ijitsuki's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.