-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
saving subed buffer removes flyspell overlays #55
Comments
Probably because subed-sort possibly rewrites things. Do you want to add
flyspell-buffer to your after-save-hook? If that works, we can add it to
the README.
…On Fri., Jan. 14, 2022, 06:07 mooseyboots, ***@***.***> wrote:
not sure if others have this issue.
when i save a subed buffer, all flyspell underlines disappear, which means
i have to keep running flyspell-buffer to see them again, even when
flyspell-mode is enabled.
—
Reply to this email directly, view it on GitHub
<#55>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACD7EUZOBMLM2OC3YCTZ5TUV77YPANCNFSM5L6QK2AQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
yeah i guess the buffer gets fully re-written, so prob not much we can do. re-running |
I wonder if
https://www.reddit.com/r/emacs/comments/fqe600/rfc_flyspell_visible or
https://www.reddit.com/r/emacs/comments/bsoygn/spell_checking_for_onscreen_text
might have something you can use to spellcheck visible text...
…On Fri., Jan. 14, 2022, 11:05 mooseyboots, ***@***.***> wrote:
yeah i guess the buffer gets fully re-written, so prob not much we can do.
re-running flyspell-buffer after save is also going to be too slow, at
least for longer videos.
—
Reply to this email directly, view it on GitHub
<#55 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACD7EWU47AP3BKG7ED2UZDUWBCTFANCNFSM5L6QK2AQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you commented.Message ID:
***@***.***>
|
Hmm... If you don't mind losing the sorting behaviour, we could probably change this so that sorting is controlled by a custom variable. That way, SRT subtitles can still be renumbered as needed, but if you don't often need to completely sort the buffer, we can skip that part and you can keep flyspell. Would something like that work for you? |
Working on getting it to skip sorting if already sorted, will update when I
get all the tests worked out.
…On Fri., Jan. 14, 2022, 13:08 Sacha Chua, ***@***.***> wrote:
I wonder if
https://www.reddit.com/r/emacs/comments/fqe600/rfc_flyspell_visible or
https://www.reddit.com/r/emacs/comments/bsoygn/spell_checking_for_onscreen_text
might have something you can use to spellcheck visible text...
On Fri., Jan. 14, 2022, 11:05 mooseyboots, ***@***.***>
wrote:
> yeah i guess the buffer gets fully re-written, so prob not much we can
> do. re-running flyspell-buffer after save is also going to be too slow,
> at least for longer videos.
>
> —
> Reply to this email directly, view it on GitHub
> <#55 (comment)>, or
> unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AACD7EWU47AP3BKG7ED2UZDUWBCTFANCNFSM5L6QK2AQ>
> .
> Triage notifications on the go with GitHub Mobile for iOS
> <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
> or Android
> <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
>
> You are receiving this because you commented.Message ID:
> ***@***.***>
>
|
This should reduce the disruption to things like the mark ring. (Related to #57 and #55, and might address #35 as well?) * subed/subed-common.el (sanitize): Separate the sanitize and sanitize-format functions. (sanitize-format): New generic function. (validate): Separate the validate and validate-format functions. (validate-format): New generic function. (regenerate-ids): Have generic implementation. (subed-sanitize-functions): Move to subed-config.el. (subed-validate-functions): Move to subed-config.el. (subed-prepare-to-save): Call subed-sanitize and subed-validate. (subed--sorted-p): New function to test if the subtitles are sorted. (sort): Make interactive. Sort only if unsorted, which should minimize interference with flycheck and the mark ring. * subed/subed-config.el (subed-sanitize-functions): New customizable variable. (subed-validate-functions): New customizable variable. * subed/subed-srt.el (subed--sanitize-format): Define this instead of subed--sanitize. (subed--validate-format): Define this instead of subed--validate. * subed/subed-vtt.el (subed--sanitize-format): Define this instead of subed--sanitize. (subed--validate-format): Define this instead of subed--validate. (subed--sort): Remove format-specific implementation. * tests/test-subed-common.el ("Trimming subtitles when configured to check on save reports overlaps."): Specify options. ("Sorting"): Add test cases. * tests/test-subed-vtt.el ("Sorting preserves point in the current subtitle when subtitle text is empty."): Tweak position check.
not sure if others have this issue.
when i save a subed buffer, all flyspell underlines disappear, which means i have to keep running
flyspell-buffer
to see them again, even whenflyspell-mode
is enabled.The text was updated successfully, but these errors were encountered: