Skip to content

Tags: sheodox/jimaku-player

Tags

0.6.15

Toggle 0.6.15's commit message
Hotkey to go back to rewind to last sub, style updates and fixes

There's a lot in this, updated a bunch of dependencies, including sheodox-ui for updated base styles, and I improved the layout and wording of a lot of stuff in the tray so it's less of a soup of confusing buttons.

I added a hotkey 'b' which rewinds just before the last sub, you can hit this multiple times to keep going back line by line. This required a rewrite of how sub history is decided and it now shows subs from before the most recent subtitles instead of manually manipulating an array with any subtitles we haven't seen before every time they change. This will make the recent subs tab accurate to that point in time when you rewind or skip through a video instead of it being a mismash of subtitles from everywhere.

I also fixed some styling issues, Crunchyroll defined .row to be a flex row with justify-content: space-between, and I was using it to be just a row in a column, nothing with its actual display. I used f-row where appropriate, but it could probably use some cleanup where it's not necessary anymore.

0.6.14

Toggle 0.6.14's commit message
Generate a fallback style and use that when a subtitle tries to use a…

… non-existent subtitle

This just uses some plain styles as a fallback and parses the fallback along with other styles, then all times styles are referenced it will use the new `getStyle` method which returns the fallback style if none is found matching the desired name.

0.6.13

Toggle 0.6.13's commit message
More tolerant initialization

This makes it so if the container for the subtitler app isn't found it will keep retrying until it is found.

This should enhance compatibility with extensions like Crunchyroll With Better Seasons which interrupt the page loading and the vilosRoot element isn't found immediatley.

0.6.12

Toggle 0.6.12's commit message
For subtitles parsed by the SRT parser, if no per-sub styles are foun…

…d, render all subtitles under a common container

Previously subtitles without styling (so all Subrip subs, and WebVTT without styling) would render using some default styles. However without per-subtitle calculations for position, in the event that two subtitles were to show at once (as is the case for SRT any time two subs have the same timing) they would overlap as they both have the same default position.

This changes the strategy, so subtitles without any styling cues will now render as non-absolute/non-fixed position flowing text inside of a div. The div gets all absolute positioning so it can still be moved with activity/vertical invert, but inside of it all subtitles flow as normal text so they will not overlap.

0.6.11

Toggle 0.6.11's commit message
Added hotkeys for fine alignment adjustment without having to open th…

…e Fine Adjustment dialog

Pressing `z` or `x` will delay or hasten the current alignment (in place, over the top of the most recent thing in the history) by 0.2s or by 1s if shift is held.

I had to update some of the toast code to allow a specific ID which lets you update a toast instead of just adding a new one so the text of the current toast gets updated instead of spamming toasts when it displays the new alignment.

0.6.10

Toggle 0.6.10's commit message
Fixed VTT positioning and cleaned up subtitle text in some cases

I was using some transforms to account for SRT not having `line` properties, but that had an unintended side effect of not trusting VTT to specify appropriate `line` values and the transformY that was applied pushed the subtitles too close to the center of the video.

Also removing some html entities (more can be added later). Someone encountered `‎` which isn't a visible character and it looked fine without it. Normally svelte will replace html entities but not in dynamic expressions. For this case I decided to just remove the entity.

I also made the cue payload text tags removal work with more usages and not just specifically 'c.Japanese'.

0.6.9

Toggle 0.6.9's commit message
Moved the 'Do Nothing' subtitle click action to the bottom again (as …

…it's the most different of the options) and made the hotkey elements look nicer.