Releases: TypesettingTools/ASSFoundation
Releases · TypesettingTools/ASSFoundation
ASSFoundation v0.4.4
ASSFoundation v0.3.4 alpha
Fixes
- TagList now discards any
\pos or \move
tags after the first one was seen, avoiding failure on lines where their order doesn't match the sort order. \move
now works with negative start and end times.- Junk drawing data is now emitted as a comment at the end of the drawing section.
- Comment sections are now detected more reliably instead of being handled like a tag section.
- Broken tags without proper closing brackets are now given one automatically.
- Removed a check within the
\fade
tag that did not work correctly with negative values in complex fades. - Shear tags now output decimals with a maximum precision of 3 digits, raised from the previous limit of 2.
ASSFoundation v0.3.3 alpha
Fixes
- Line splitting no longer incorrectly calculates the position for splits with leading or trailing whitespace characters (Thanks @lyger for reporting).
LineContents:getEffectiveTags()
now always returns requested default tags, even if the section at the specified index doesn't exist. (Fixes #3, thanks @SchRita for reporting)
ASSFoundation v0.3.2 alpha
Fixes
TextSection:getShape()
: A regression was now actually fixed that would cause the text-to-shape conversion to fail on ASSFoundation v0.3.0 and v0.3.1 (Let's all blame @torque for not proposing the complete fix the first time around).
ASSFoundation v0.3.1 alpha
Fixes
- The Yutils module is now loaded correctly on case-sensitive platforms/file systems such as Linux.
- Trying to use feature that requires Yutils now results in a proper error message in case the Yutils module is missing (rather than ASSFoundation running into an error while trying to do so).
TextSection:getShape()
: A regression was fixed that would cause the text-to-shape conversion to fail on ASSFoundation v0.3.0.
Thanks iamevn, Fyurie and @torque for the bug reports.
ASSFoundation v0.3.0 alpha
Features
Align:getPositionOffset()
: An optional parameter was added to allow for specifying a reference alignment. Previously the offset was always relative to the coordinate origin (\an7
alignment), now it's possible to use this method to calculate the offset between any given source and target alignment.- A convenient
Number:ModEq(value, divisor)
comparison method was added to Number primitives.
Changes
TagList:isTagTransformed()
was renamed toTagList:checkTransformed()
to better reflect the option of making it return a hashtable of all tags and whether or not they're being transformed when called without an argument.- The
LineContents:getMetrics()
andTagSection:getMetrics()
were renamed to:getTextMetrics
and had the option to also emit LineBounds removed. The type bounds table now uses.w
and.h
for width and height just as LineBounds does.
Fixes
LineContents:replaceTags()
: An argument was added to control insertion of remaining tags not previously found in the line (on by default to match old behavior).LineContents:replaceTags()
now automatically creates the missing tag section at the beginning of the line if insertion of remaining tags was requested starting at index 1.LineContents:getPosition()
: a bug was fixed that could cause the returned origin value to be of type boolean instead of an ASS.Point.LineContents:getDefaultTags()
: style defaults for tags now always take precedence over generic defaults.- Fixed a bug in the tag mapping table that resulted in a missing default value for
\fry
tags
ASSFoundation v0.2.9 alpha
Fixes
LineContents:replaceTags()
: An argument was added to control insertion of remaining tags not previously found in the line (on by default to match old behavior).LineContents:replaceTags()
now automatically creates the missing tag section at the beginning of the line if insertion of remaining tags was requested starting at index 1.
ASSFoundation v0.2.8 alpha
Fixes
- Fixed
\t
tags not being properly parsed when they contained a rectangular clip.
ASSFoundation v0.2.7 alpha
Fixes
- Fixed
LineContents:splitAtTags()
always throwing bad index errors. LineContents:splitAtIntervals()
now throws a descriptive error when the next-index-callback returns a non-number value.
ASSFoundation v0.2.6 alpha
Fixes
- Fixed a bug as well as a SubInspector compatibility issue that would cause an animated line to always be detected as static (and by extension would cause an animated line that started offscreen or transparent to get a 0-width bounding box).
- ASSFoundation no longer tries to come up with a default
\org
tag for a line with\move
(which is not possible since the origin moves with the line position and\org
is not transformable). - Converting a rectangular clip into a vector clip no longer results in an error.