Thomas Goyne
4dc38447dc
Check the return value from lua_open()
...
It always fails when running under valgrind because valgrind does not
implement mmap functionality that LuaJIT requires.
2014-07-11 09:26:58 -07:00
Thomas Goyne
365c04333c
Install the unicode-compatible Lua module loader before loading moonscript
...
Closes #1760 .
2014-07-07 09:23:36 -07:00
Thomas Goyne
6fab17d860
Add basic tests for lfs
2014-07-04 10:52:38 -07:00
Thomas Goyne
68eaab0f43
Convert the build system to non-recursive make
...
Speeds up a no-op build from 500ms to 60ms and significantly improves
dependency tracking.
2014-06-17 11:37:20 -07:00
Thomas Goyne
6500b379bd
Remove all distfile stuff from the build system
...
It's unused and out of date.
2014-06-09 17:20:56 -07:00
Thomas Goyne
8d26c66d0f
Remove a bunch of unused functionalty from agi::Exception
2014-05-30 11:53:14 -07:00
Thomas Goyne
6a8958f287
Delete the Clean Script Info macro
...
It doesn't actually do anything anymore.
2014-05-22 09:29:15 -07:00
tophf
01dc7f9294
Only process selected lines in the Select Overlaps macro
...
And skip over commented lines as the description claimed it did already.
Closes #1751 .
2014-05-09 10:25:13 -07:00
Thomas Goyne
94a060a556
Add unicode case conversion functions to the automation module
2014-05-09 07:00:48 -07:00
Thomas Goyne
a5a6d5da86
Restore the BOM-skipping logic to the Lua script reader
...
And add BOM to one of the test files to verify it works.
2014-04-28 10:21:54 -07:00
Thomas Goyne
63f4bf1beb
Switch from regular Lua to LuaJIT
2014-04-28 07:38:30 -07:00
Thomas Goyne
9492192b73
Switch back to building Lua as C
...
In preparation for switching to LuaJIT, which doesn't support PUC Lua's
thing of using C++ exceptions for lua_error.
Requires replacing all uses of lua_error (and things calling lua_error)
with custom versions that throw an exception instead and adding an
exception -> lua error wrapper at all C++ -> Lua boundaries.
2014-04-27 10:37:23 -07:00
Thomas Goyne
2adcc76cf6
Switch automation tests to busted
...
This requires shuffling a bunch of stuff around to get a CLI lua
executable that uses an automation-like environment, but that's
something that'll be nice to have in the future anyway.
Busted indirectly depends on lfs and we currently can't use external
binary modules, so add a copy of lfs to the repo and build it with
Aegisub.
2014-04-26 08:16:38 -07:00
Thomas Goyne
b8af29da0d
Move some of the automation machinery to libaegisub
2014-04-25 15:03:18 -07:00
Thomas Goyne
a5fdc6795c
Fix compilation of automation tests
2014-04-25 14:52:53 -07:00
Thomas Goyne
1d5292fdee
Kill config.h and just force-include acconf.h in non-pch builds
2014-04-16 08:11:37 -07:00
Thomas Goyne
843e71331f
Add in-repo copy of Lua and use it rather than the system copy
...
Aegisub needs Lua built as C++ (for stack unwinding on errors). No one
packages it like that, so at the moment we can't actually use systme
packages for Lua.
Fixes a bunch of memory leaks on Automation errors.
2014-03-11 12:15:01 -07:00
Thomas Goyne
33a4a056a4
Move everything up a level since the root dir no longer has stuff
2014-03-11 12:14:57 -07: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
Niels Martin Hansen
9e69b413dd
Updated cleantags script from ai-chan.
...
Originally committed to SVN as r2748.
2009-02-28 17:52:06 +00:00
Amar Takhar
675c4caa09
Add multiple version support, everything is now suffixed with MAJOR.MINOR, this
...
will allow users on unix to install and operate different versions of aegisub a$
the same time. Note: auto3 linking is broken it will be fixed in the next
commit as it's unrelated to these changes.
Originally committed to SVN as r2659.
2009-01-06 10:44:49 +00:00
Amar Takhar
548a9b6499
Remove auto3/readme.txt.
...
Originally committed to SVN as r2640.
2009-01-04 10:53:27 +00:00
Amar Takhar
f165d6987c
Install docs into share/docs/aegisub rather than share/aegisub
...
Originally committed to SVN as r2636.
2009-01-04 09:56:31 +00:00
Niels Martin Hansen
a4abc2e3de
Move some Automation demos to autoload to match the Windows installation layout.
...
Remove two unused readme.txt files.
Originally committed to SVN as r2634.
2009-01-04 09:24:56 +00:00
Amar Takhar
c2d33f2e77
No files from tests/ should be installed.
...
Originally committed to SVN as r2633.
2009-01-04 09:20:45 +00:00
Niels Martin Hansen
904ef6b07e
Fix bug with $x/$lx/$sx and others definition time.
...
Originally committed to SVN as r2411.
2008-10-06 00:46:34 +00:00
Amar Takhar
62f6d8a4c7
Don't install any files from automation/* if no automation support is
...
available.
Originally committed to SVN as r2205.
2008-06-16 04:45:59 +00:00
Amar Takhar
b1c441ff73
Commit the new build system (complete re-write), this includes several changes:
...
* Sane C/CXX/CPP/LDFLAGS
* --with/--without settings
* Proper gettext support
* System portability changes (to support OS X and all other unix-like osen)
* Features to allow for proper compile time settings (support exists features
need to be added)
This comes with no warrenty at the moment, auto3 and asa support are both
incomplete/non-existent, there is no documentation and some conftests still nee$
to be written.
It's still incomplete try it at your own risk!
Originally committed to SVN as r1865.
2008-03-03 07:22:58 +00:00
Niels Martin Hansen
1deb1b0217
Forgot to update version number
...
Originally committed to SVN as r1864.
2008-02-22 22:04:58 +00:00
Niels Martin Hansen
a34ef985f9
Use positioning calculated from style rather than assuming \an8 alignment.
...
Originally committed to SVN as r1863.
2008-02-22 22:03:28 +00:00
Niels Martin Hansen
9f898ef5c2
Fix bug with # as first syllable on line, I think.
...
Originally committed to SVN as r1862.
2008-02-19 18:14:57 +00:00
shb
8e7f84c818
Fixed perl-api.txt further.
...
Originally committed to SVN as r1860.
2008-02-09 17:18:28 +00:00
shb
984bf384f9
Fixed perl-api.txt
...
Originally committed to SVN as r1859.
2008-02-09 17:12:29 +00:00
Niels Martin Hansen
375730fa52
Have kara-templater version number follow Aegisub version number.
...
Originally committed to SVN as r1855.
2008-01-27 21:55:43 +00:00
shb
9a7012de0b
Made PerlConsole compilation optional. Added a funny line in autoperl docs.
...
Originally committed to SVN as r1848.
2008-01-27 01:22:01 +00:00
shb
b2518f9ca1
New and reorganized perl sources. Autotools patched accordingly. Win build must be fixed.
...
Originally committed to SVN as r1827.
2008-01-24 17:20:47 +00:00
Niels Martin Hansen
15ce07e803
Fix inline-fx parsing in karaskel and handling in kara-templater. ( Fixes #577 )
...
Originally committed to SVN as r1783.
2008-01-19 23:53:29 +00:00
Karl Blomster
f4f619d22b
minor clarifications in perl-api.txt
...
Originally committed to SVN as r1764.
2008-01-18 06:01:27 +00:00
Karl Blomster
7ffc21cc7e
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF Aegisub.pm
...
Originally committed to SVN as r1761.
2008-01-18 03:22:31 +00:00
Karl Blomster
7a6f2973c5
moved perl-console.pl to /trunk/automation/demos instead
...
Originally committed to SVN as r1759.
2008-01-18 03:05:45 +00:00
Karl Blomster
09924e9716
Added auto4perl includes and (highly incomplete) API docs
...
Originally committed to SVN as r1758.
2008-01-18 01:46:12 +00:00
Niels Martin Hansen
6e621dcc8c
Adding $width and $height to kara-templater.
...
Originally committed to SVN as r1754.
2008-01-17 23:23:46 +00:00
Karl Blomster
f4c2ffac54
Minor tweaks to Auto4Utils.pm
...
Originally committed to SVN as r1750.
2008-01-17 15:48:52 +00:00
Karl Blomster
f2b6d17eb3
Adding Perl conversions of utils.lua. Requires discussion of what symbols should be exported by default; for now it exports the ones I think are interesting.
...
Originally committed to SVN as r1749.
2008-01-17 05:34:16 +00:00
Karl Blomster
dae9dfaee4
Added edgeblur macro example for the perl flavor of auto4.
...
Originally committed to SVN as r1747.
2008-01-17 00:27:49 +00:00
Niels Martin Hansen
1bf3fad8a1
One-byte-bug, missing backslash.
...
Originally committed to SVN as r1746.
2008-01-16 23:40:56 +00:00
Niels Martin Hansen
44a414e893
New karaoke timing helper script to automatically add lead-in timing to lines, such that they join up.
...
Originally committed to SVN as r1656.
2007-12-16 18:46:47 +00:00
Niels Martin Hansen
d7f962e2e9
tenv.basesyl was set incorrectly
...
Originally committed to SVN as r1655.
2007-11-23 23:43:13 +00:00
Niels Martin Hansen
afe0996608
More debug trace prints in kara-templater, especially for debugging code lines.
...
Originally committed to SVN as r1649.
2007-11-06 19:53:20 +00:00
Niels Martin Hansen
ccca10564c
Missing linebreak in debug trace message
...
Originally committed to SVN as r1647.
2007-11-01 21:17:50 +00:00
Niels Martin Hansen
304e4d080b
Bugfix: Used wrong name for aegisub.debug.out function in several places.
...
Addition: Also allow 'noblank' modifier for code lines.
Originally committed to SVN as r1599.
2007-10-08 15:22:00 +00:00
Niels Martin Hansen
10570fc54f
Report a different version number because I'm lazy
...
Originally committed to SVN as r1597.
2007-10-06 00:43:12 +00:00
Niels Martin Hansen
c9e26c0cf3
Bugfix: Anonymous line templates that did not have any additional template modifiers were treated as named line templates whose name was the empty string, causing such templates to be chained as one long line template.
...
Originally committed to SVN as r1595.
2007-10-04 23:30:52 +00:00
Niels Martin Hansen
774bd37839
Rename some auto3 scripts.
...
Originally committed to SVN as r1566.
2007-09-21 00:22:45 +00:00
Niels Martin Hansen
51616fea0b
Add tenv.maxj (upper loop bound)
...
Originally committed to SVN as r1564.
2007-09-19 21:58:25 +00:00
Niels Martin Hansen
a68fb2671a
Rename cleantags macro/filter wrapper script.
...
Originally committed to SVN as r1562.
2007-09-17 11:04:22 +00:00
Niels Martin Hansen
a3a3a29437
ai-chan's cleantags version 1.150
...
Originally committed to SVN as r1561.
2007-09-17 11:03:20 +00:00
Niels Martin Hansen
a5e800bccf
Fix a bug in mid-aligned line positioning
...
Originally committed to SVN as r1558.
2007-09-10 21:39:08 +00:00
Niels Martin Hansen
3c58dea73c
Adding ai-chan's tag cleaning script.
...
Originally committed to SVN as r1557.
2007-09-10 21:20:09 +00:00
Niels Martin Hansen
fda44c93a5
Add looping support for line templates. Produce multiple whole lines here, instead of multiple copies of each syllable one after another on the same line.
...
Originally committed to SVN as r1553.
2007-09-03 13:39:03 +00:00
Niels Martin Hansen
62ded21ece
Recalculate line.duration in retime() and add "line" as a mode.
...
Originally committed to SVN as r1552.
2007-09-03 13:28:40 +00:00
Niels Martin Hansen
4f689ac204
Apparently forgot to add 'meta' to tenv.
...
Originally committed to SVN as r1534.
2007-08-25 12:57:00 +00:00
Niels Martin Hansen
154e2840fb
'keeptags' modifier didn't do anything for non-'line' templates.
...
Originally committed to SVN as r1525.
2007-08-22 07:18:42 +00:00
Niels Martin Hansen
47e687900e
Missed a backslash in a string, thanks Gundamn.
...
Originally committed to SVN as r1509.
2007-08-18 00:03:33 +00:00
Niels Martin Hansen
8dee40348d
Added HSL_to_RGB function
...
Originally committed to SVN as r1488.
2007-08-14 21:36:43 +00:00
Niels Martin Hansen
9b282c8893
Scrapped tag-parsing functions from Auto4 Lua subtitle-file interface specs.
...
Originally committed to SVN as r1468.
2007-08-03 20:50:24 +00:00
Niels Martin Hansen
f556478902
Also accept SSA "Karaoke" effect field for timed karaoke source in kara-templater
...
Originally committed to SVN as r1465.
2007-08-03 01:46:33 +00:00
Niels Martin Hansen
5785cd191e
Some debug.out calls in furigana layout code were missing trace level.
...
Originally committed to SVN as r1450.
2007-07-28 21:43:35 +00:00
Niels Martin Hansen
fefa76b22c
Add missing field for furigana tables.
...
Originally committed to SVN as r1431.
2007-07-18 00:42:32 +00:00
Niels Martin Hansen
8ffaf7cfa0
Missed something crucial from Classic Advanced skeleton
...
Originally committed to SVN as r1430.
2007-07-17 23:37:42 +00:00
Niels Martin Hansen
a5fdb048a4
New karaoke skeleton, in the style of (but not compatible with) Auto3 karaskel-adv; untested as usual
...
Originally committed to SVN as r1429.
2007-07-17 23:09:09 +00:00
Niels Martin Hansen
42f47ed7eb
Minor fixes to Lua includes.
...
Originally committed to SVN as r1428.
2007-07-17 22:25:56 +00:00
Niels Martin Hansen
9eb5ab4e25
Can now set the grid selected from a Lua macro. Should still work in Ruby too but can't test that. Don't blame me if it breaks.
...
Originally committed to SVN as r1384.
2007-07-06 14:26:04 +00:00
Niels Martin Hansen
b9e7754b17
Add a missing trace level to debug output.
...
Originally committed to SVN as r1340.
2007-07-03 18:25:30 +00:00
Niels Martin Hansen
907221c940
Added spec for step in floatedit controls in Lua config dialogs and intedit spin controls seem to work properly now.
...
Originally committed to SVN as r1307.
2007-06-28 19:11:41 +00:00
Niels Martin Hansen
fa131dc769
Always generate furigana styles when kara-templater is used, hope it won't be ill received.
...
Originally committed to SVN as r1250.
2007-06-18 14:26:48 +00:00
Niels Martin Hansen
fc3a4938e1
Make sure tenv.line is well defined also when running code lines. (For code lines, tenv.line == tenv.orgline.)
...
Originally committed to SVN as r1249.
2007-06-18 14:03:22 +00:00
Niels Martin Hansen
a214b69cac
Introducing fxgroup modifier
...
Originally committed to SVN as r1248.
2007-06-18 13:49:17 +00:00
Niels Martin Hansen
520f380fbc
More sensible operation for empty "line" templates.
...
Originally committed to SVN as r1242.
2007-06-17 23:52:35 +00:00
Niels Martin Hansen
f3c9b2ca79
run_template_code and run_code_template is not the same thing...
...
Originally committed to SVN as r1238.
2007-06-17 20:42:42 +00:00
Niels Martin Hansen
a678ca82fe
Misc. enhancements and bugfixes to kara-templater.
...
Originally committed to SVN as r1234.
2007-06-17 12:01:36 +00:00
Niels Martin Hansen
9bb7b61007
Add "absurdness" benchmark-generator
...
Originally committed to SVN as r1229.
2007-06-17 01:58:00 +00:00
Niels Martin Hansen
354f96c081
kara-templater retime() function implemented, tested and working :)
...
Originally committed to SVN as r1226.
2007-06-16 21:57:14 +00:00
Niels Martin Hansen
40525074e3
Fixes to make kara-templater actually work... oops.
...
Originally committed to SVN as r1221.
2007-06-15 23:20:45 +00:00
Niels Martin Hansen
9b00ecf2ed
Kara-templater seems to be feature-complete by current specs, but it'll need lots and lots of testing!
...
Originally committed to SVN as r1220.
2007-06-15 21:42:03 +00:00
Niels Martin Hansen
59aad1f044
Added a bit to the template environment so all globals can now be called. (tenv._G refers to the regular global environment, so it's not safe from mangling, but that shouldn't matter either way. It allows much more freedom in writing templates.)
...
Originally committed to SVN as r1200.
2007-05-30 10:54:35 +00:00
Niels Martin Hansen
fab2bde15c
Fix syllable spacing issue (regression, I think)
...
Originally committed to SVN as r1196.
2007-05-22 22:03:17 +00:00
Niels Martin Hansen
5d81aa760a
Added a proper "interface" to tell furigana pseudo-syllables from actual syllables.
...
Originally committed to SVN as r1195.
2007-05-22 20:55:55 +00:00
Niels Martin Hansen
3090aaafad
Make furigana have (almost?) the same interface as syllables so the same code should be able to operate on either.
...
Originally committed to SVN as r1187.
2007-05-15 23:02:20 +00:00
Niels Martin Hansen
4aac1658ba
Removed now superseded precalc code and made it call the new code instead.
...
Originally committed to SVN as r1186.
2007-05-15 22:49:28 +00:00
Niels Martin Hansen
75548ec7cc
Full workiness added to furigana code. At least it passes my tests.
...
Originally committed to SVN as r1184.
2007-05-14 22:47:41 +00:00
Niels Martin Hansen
e2f62caf7b
And furigana seems to work, haven't tested flags however
...
Originally committed to SVN as r1183.
2007-05-14 21:36:00 +00:00
Niels Martin Hansen
6b55bf750c
Renamed Auto4/Lua test cases to more informative filenames
...
Originally committed to SVN as r1182.
2007-05-14 21:18:11 +00:00
Niels Martin Hansen
02c18a3380
Somewhat working furigana layouting
...
Originally committed to SVN as r1181.
2007-05-14 20:45:42 +00:00
Niels Martin Hansen
9ae7be4443
Seemingly working furigana/multi-hl parsing and some untested inline-fx parsing. Still no furigana layouting, and the parsing isn't integrated yet.
...
Originally committed to SVN as r1180.
2007-05-14 15:33:17 +00:00
Niels Martin Hansen
2c8c6977d5
Fix stupid bug in colour interpolation functions
...
Originally committed to SVN as r1179.
2007-05-13 14:08:10 +00:00
Niels Martin Hansen
5b9a374f6e
Fixes to make karaskel actually work again, and added some real skeleton code (fx_library)
...
Originally committed to SVN as r1176.
2007-05-12 14:37:31 +00:00
Niels Martin Hansen
c9a79bcf2f
Some extra colour handling code for Auto3, ported from Auto4/Lua.
...
Originally committed to SVN as r1172.
2007-05-08 13:30:24 +00:00
Niels Martin Hansen
7f8d1a5a81
Well look. Automation 3 works now!
...
Originally committed to SVN as r1165.
2007-05-07 13:38:12 +00:00
Niels Martin Hansen
81b8660348
Fix for styles table in auto3, broken karaoke-splitter...
...
Originally committed to SVN as r1163.
2007-05-04 01:43:00 +00:00