This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// 表示一条包含基本要素的字幕。 | |
/// </summary> | |
public interface ISubtitle | |
{ | |
/// <summary> | |
/// 获取或设置字幕的开始时间。 | |
/// </summary> | |
public TimeSpan Begin { get; set; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Debounce Dispatcher. | |
/// <para> | |
/// forked from: <seealso href="https://github.com/CommunityToolkit/WindowsCommunityToolkit/blob/main/Microsoft.Toolkit.Uwp/Extensions/DispatcherQueueTimerExtensions.cs">Microsoft.Toolkit.Uwp.Extensions.DispatcherQueueTimerExtensions</seealso>. | |
/// </para> | |
/// </summary> | |
public static class DebounceDispatcher | |
{ | |
private static readonly ConcurrentDictionary<DispatcherTimer, Action> _debounceActionDispatcherTimerInstances = new(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
from enum import Enum | |
import win32com.client as win32 | |
class Overwrite(Enum): | |
ASK = 0 | |
ALWAYS = 1 | |
NEVER = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
from enum import Enum | |
from typing import Union, Optional | |
from openpyxl.cell.cell import Cell, MergedCell | |
from openpyxl.worksheet.cell_range import CellRange | |
from openpyxl.worksheet.worksheet import Worksheet | |
class Direction(Enum): |