Commit graph

46 commits

Author SHA1 Message Date
Thomas Goyne
0216d9d5bd Make utils.lua a proper module with a compat wrapper 2013-04-28 20:52:36 -07:00
Thomas Goyne
a40b1d0028 Make unicode.lua a proper module and add basic tests
Also drop support for >4 byte sequences as they were eliminated in RFC 3629.
2013-04-28 20:52:36 -07:00
Thomas Goyne
37e74b8274 Add a basic test harness for running Automation tests 2013-04-28 20:51:45 -07:00
Thomas Goyne
7232de2cdd Move Aegisub modules to aegisub.(module) and add wrapper shims 2013-04-28 20:02:54 -07:00
Thomas Goyne
5a4b70b8b9 Don't create a global 'clipboard' object in the clipboard module 2013-04-21 18:02:03 -07:00
Thomas Goyne
71b14ecc74 Select the right things in the select overlaps macro. Closes #1594. 2013-04-16 20:05:44 -07:00
Thomas Goyne
c556a47509 Replace wxRegex bindings for lua with boost::regex bindings
API is mostly unchanged other than the addition of a lot more flags.
Should be less buggy since it has an actual test suite, and generally
has a more powerful regex syntax with better support for Unicode.

The bindings are written in MoonScript. For now the compiled form is
store in the repo for convenince.
2013-04-16 20:05:43 -07:00
Thomas Goyne
c83fff12a9 Match HTML colors in a way that actually works in extract_color
Lua patterns don't have optional capture groups, so instead make the
contents of the capture groups optional.

Closes #1575.
2013-02-12 17:09:04 -08:00
Thomas Goyne
e44c47c863 Remove $Id$ markers since git doesn't support them 2012-10-25 17:39:49 -07:00
Thomas Goyne
b44d53c227 Don't install the somewhat out-of-date automation design docs. Updates #1135. 2012-10-08 14:01:05 -07:00
Thomas Goyne
16cd907fe7 Add a BOM to all of the lua files since they're no longer assumed to be UTF-8
Originally committed to SVN as r6962.
2012-08-19 20:43:39 -07:00
Thomas Goyne
f3a935c985 Install all of the automation scripts
Originally committed to SVN as r6938.
2012-07-22 23:56:49 +00:00
Thomas Goyne
bc74dfc33b Update the video matrix tagging scheme
Write the color range and color space used to convert video to RGB to
the YCbCr Matrix field, or None if no non-RGB video was opened. See
http://code.google.com/p/xy-vsfilter/issues/detail?id=91 for related
discussion.

Originally committed to SVN as r6762.
2012-05-11 14:38:44 +00:00
Thomas Goyne
b7c1526c7d Fix an underescaped translatable string
Originally committed to SVN as r6656.
2012-04-04 02:47:12 +00:00
Thomas Goyne
4d2623bc2a Really fix crash when switching lines with the drag visual tool active
Originally committed to SVN as r6588.
2012-03-15 00:25:54 +00:00
Thomas Goyne
9f43f9f041 Rewrite the Clean Script Info export filter in lua
This makes it easy to make it a macro in addition to an export filter,
and simplifies the implementation.

Originally committed to SVN as r6586.
2012-03-12 23:35:56 +00:00
Thomas Goyne
f4c1fb441e Mark the names and descriptions of included lua macros as translatable
Originally committed to SVN as r6584.
2012-03-12 23:35:37 +00:00
Thomas Goyne
c4daf860e5 Add a lua module for reading from/writing to the clipboard
Originally committed to SVN as r6501.
2012-02-22 20:47:34 +00:00
Thomas Goyne
5bf7342019 Add a Lua binding for wxRegEx
Lua's built in regular expression engine is rather limited in features
compared to wx's, and operates on bytes rather than characters due to
not being unicode-aware.

Originally committed to SVN as r6473.
2012-02-15 21:23:42 +00:00
Thomas Goyne
fcffb010b9 Fix check for \i?clip in cleantags. Updates #1450.
Originally committed to SVN as r6452.
2012-02-07 01:23:00 +00:00
Thomas Goyne
3ed84ba70d Update distdir generation
The list of files to include was out of date and only included files
for dependencies which were actually enabled, and the script was
FreeBSD-specific.

Originally committed to SVN as r6298.
2012-01-14 18:46:43 +00:00
Thomas Goyne
c4251bd181 Add DESTDIR support. Patch by Alucryd. Closes #1376.
Originally committed to SVN as r6198.
2012-01-08 01:03:45 +00:00
Thomas Goyne
776c7e69a8 When appending lines from a lua script, always append the new line to the end of the appropriate section, creating the section if needed
Originally committed to SVN as r6077.
2011-12-22 21:21:29 +00:00
Niels Martin Hansen
23510dcac8 Merge kara-templater remember/recall functions from 2.1.9. Updates #1277.
Originally committed to SVN as r5378.
2011-04-26 08:42:05 +00:00
Niels Martin Hansen
27839f92ac Fix #1018 properly, make sure the colour values are brought into 0-255 range and rounded.
Originally committed to SVN as r5354.
2011-02-22 00:54:20 +00:00
Amar Takhar
5a635ebdb3 Merge r4855-4894 from the new_build_system branch. This still has rough spots and some of the dependency relations haven't been expressed but it works, and it's much better than what we had before as it kills off automake, libtool, gettext (package not library), intltool usage.
Originally committed to SVN as r4895.
2010-12-05 19:12:42 +00:00
Karl Blomster
49cdd10ffd fix a bug in kara-templater.lua on behalf of jfs.
Originally committed to SVN as r4808.
2010-10-15 14:33:10 +00:00
Niels Martin Hansen
ce4babb192 Update table.copy_deep function to correctly handle self-referencing tables and tables with circular references. Doesn't handle tables with meta-tables overriding regular field get/set behaviour but that isn't intended either way. Also add a test of this.
Originally committed to SVN as r4645.
2010-06-30 00:36:25 +00:00
Thomas Goyne
ea100e9bff Add simple automation macros to strip override tags and select overlapping lines. Closes #120.
Originally committed to SVN as r4305.
2010-05-19 00:44:31 +00:00
Niels Martin Hansen
cb8cafadbd Add video/script resolution correct factor to karaskel, updates #1139.
Originally committed to SVN as r4087.
2010-02-05 17:31:18 +00:00
Niels Martin Hansen
8d5cde185d Fix rare furigana layout issue. Updates #1144.
Originally committed to SVN as r4079.
2010-02-05 12:51:20 +00:00
Niels Martin Hansen
d6b0cdcedf Blind but most likely correct fix missing \iclip support in cleantags.lua. Updates #1044.
Originally committed to SVN as r3772.
2009-11-13 22:13:58 +00:00
Amar Takhar
4cc6610161 Commit jfs' patch to fix rounding errors as he doesn't have trunk going at the moment. Closes #1018.
Originally committed to SVN as r3622.
2009-10-05 22:46:28 +00:00
Niels Martin Hansen
075439f405 Fix bugs in kara-templater causing tenv.relayer and tenv.restyle functions to fail.
Closes #950.

Originally committed to SVN as r3277.
2009-07-25 18:16:37 +00:00
Amar Takhar
c6145f0b63 I don't know why there were .pm files under data_general.. updates #840 and #938.
Originally committed to SVN as r3208.
2009-07-23 01:45:11 +00:00
Niels Martin Hansen
31657f94da The removal of Auto4 Ruby and Auto4 Perl code. Updates #665 and #938.
Originally committed to SVN as r3205.
2009-07-23 01:39:57 +00:00
Amar Takhar
af5df13f00 Remove Auto4 Ruby from the (unix) build system, updates #665 and #938.
Originally committed to SVN as r3204.
2009-07-23 01:23:35 +00:00
Amar Takhar
3403a5faea Remove Auto4 PERL from the build system, updates #840 and #938.
Originally committed to SVN as r3203.
2009-07-23 01:18:51 +00:00
Amar Takhar
d8c7515975 Remove a few auto3 files that wern't associated with auto3 in the Makefile.
Originally committed to SVN as r3202.
2009-07-23 01:11:27 +00:00
Amar Takhar
dbf0f48713 Nuke auto3 from the Unix/OSX build system.
Originally committed to SVN as r3199.
2009-07-23 00:27:57 +00:00
Niels Martin Hansen
be26ba4652 Surgically remove Automation 3.
Going to break UNIX build and Windows buildbot for now.

Originally committed to SVN as r3196.
2009-07-23 00:19:36 +00:00
Niels Martin Hansen
2acf887157 Fix #845 by counting how many output lines were produced by applying a template to a line, instead of assuming that a template always gets applied, even if it's a code template.
Originally committed to SVN as r2922.
2009-05-14 15:34:37 +00:00
Niels Martin Hansen
425ca55698 Bump kara-templater version number.
Originally committed to SVN as r2914.
2009-05-12 16:39:53 +00:00
Niels Martin Hansen
d71fa2d85c Add support for variable loops in kara-templater, and add a few more utility functions.
- Variable loops are controlled using the tenv.maxloop(newmax) function to set the loop counter max. This is a wrapper around setting tenv.maxj.
- Add tenv.relayer(newlayer) function for changing the Layer of an output line.
- Add tenv.restyle(newstyle) function for changing the Style of an output line, despite this usually breaking positioning/sizing information.
- tenv.maxloops is an alias for tenv.maxloop.
- tenv.loopctl(newj, newmaxj) controls both loop variables if anyone wants to do that.
This closes #753 but documentation still needs to be written.

Originally committed to SVN as r2913.
2009-05-12 16:36:51 +00:00
Niels Martin Hansen
28d4ed7c8a Extend Auto 4 Lua config dialogues test case to cover most interesting cases of controls.
Updates #775 and #776 since they need those cases.

Originally committed to SVN as r2911.
2009-05-12 15:24:07 +00:00
Amar Takhar
91d73ec8ea SVN Transition Step 3/7
1. cd aegisub/
  2. svn mv *cpp *h src/
  3. svn mv Makefile.am MatroskaParser.c auto4_perldata.inc bitmaps boost \
     changelog.txt config gl include libosxutil libresrc md5.c msvc mythes.cxx \
     mythes.hxx res.rc src/
  4. cd ..
  5. svn mv FFmpegSource2/ INSTALL Makefile.am README  acinclude.m4 \
     autogen.sh automation/ bin build configure.in desktop dummy.txt lib \
     libass/ m4macros/ packages/ po/ scripts/ universalchardet/ aegisub/
  6. mkdir -p docs/wiki_convert
  7. svn add docs/wiki_convert
  8. cd docs
  9. svn mv aegisub_convert_docs.pl convert.bat output wiki_convert/

* See r2749 for full description.

Originally committed to SVN as r2752.
2009-03-08 08:30:39 +00:00