-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
122 lines (121 loc) · 6.83 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>SRT Extractor</title>
<!-- meta tags -->
<meta property="og:title" content="SRT to DOCX Converter" />
<meta name="og:image" content="assets/og-image.jpeg" />
<meta property="og:image" content="assets/og-image.jpeg" />
<meta name="description" content="Transform your subtitles effortlessly with our SRT to DOCX Converter. Simply upload your .srt files, choose your preferred conversion option, and save the results as a convenient .docx document. Subtitles made simple!" />
<meta name="og:description" content="Transform your subtitles effortlessly with our SRT to DOCX Converter. Simply upload your .srt files, choose your preferred conversion option, and save the results as a convenient .docx document. Subtitles made simple!" />
<meta property="og:description" content="Transform your subtitles effortlessly with our SRT to DOCX Converter. Simply upload your .srt files, choose your preferred conversion option, and save the results as a convenient .docx document. Subtitles made simple!" />
<meta name="url" content="https://srt.hackettlai.com" />
<meta name="og:url" content="https://srt.hackettlai.com" />
<meta property="og:url" content="https://srt.hackettlai.com" />
<meta name="keywords" content="SRT to DOCX converter, subtitle converter, SRT to Word, DOCX converter, subtitle to document, convert subtitles to Word, SRT file conversion, subtitle text extractor, caption to DOCX, convert SRT to document, subtitle processing, text conversion tool" />
<meta http-equiv="CACHE-CONTROL" content="NO-CACHE" />
<!-- favicons -->
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<link rel="manifest" href="/site.webmanifest" />
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#1f1f1f" />
<meta name="msapplication-TileColor" content="#ffffff" />
<meta name="theme-color" content="#ffffff" />
<!-- stylesheets -->
<link rel="stylesheet" href="style.css" />
</head>
<body>
<h1>SRT to DOCX Converter</h1>
<p class="full green">Welcome to the SRT to DOCX Converter, your easy-to-use tool for transforming subtitle files.</p>
<ol class="full">
<li>Just upload your .srt files.</li>
<li>Select the desired conversion option.</li>
<li>Once you're happy, save it as a handy .docx Word document. Done!</li>
</ol>
<input type="file" id="srtFile" accept=".srt" />
<div class="flex-r full">
<button disabled id="btn_convert_1">Original Breaks</button>
<button disabled id="btn_convert_2">Break on Punct</button>
<button disabled id="btn_convert_3">In Paragraphs</button>
</div>
<label class="checkbox-container full">
<input type="checkbox" id="checkbox1" disabled>
Add <b>Line Breaks</b> between dialogues / paragraphs
</label>
<div id="result_div"></div>
<button onclick="downloadDocx() " disabled id="btn_download">Download</button>
<footer>
<p id="version">Built Version 2.2.0</p>
<img class="footer-image" src="assets/footer-logo.png" />
<p>
<a href="https://tool.hackettlai.com" target="blank">Hackett.Lai</a>
@
<span id="thisYear" class="footer"></span>
</p>
</footer>
<!-- Changes Log -->
<div id="modal" class="modal">
<div class="modal-content">
<span id="closeModal" class="close">×</span>
<h2>Changes Log</h2>
<table class="modal-table">
<tr>
<td>v2.2.0</td>
<td>
<p>2024/08/31</p>
<ol>
<li><strong>Line break</strong> between dialogues / paragraphs now is optional.</li>
</ol>
</td>
</tr>
<tr>
<td>v2.1.0</td>
<td>
<p>2024/08/30</p>
<ol>
<li>Introduced a new feature: <strong>Conversion Options</strong>!</li>
<li><strong>Original Breaks:</strong> Preserves original line breaks only.</li>
<li><strong>Break on Punct:</strong> Strips out original line breaks and add line breaks after punctuation marks for each dialogue.</li>
<li><strong>In Paragraphs:</strong> Merges all dialogue and group them into paragraphs by adding line breaks after punctuation marks.</li>
<li>Automatically scroll to the first line of the converted text after each conversion.</li>
<li>New color theme with animation effects.</li>
</ol>
</td>
</tr>
<tr>
<td>v1.0.2</td>
<td>
<p>2024/08/28</p>
<ol>
<li><strong>Automatic Sentence Separation:</strong> Removed this feature as it caused unstable result across different situations.</li>
<li><strong>Dialogues Summary:</strong> Added a summary of the dialogue count.</li>
</ol>
</td>
</tr>
<tr>
<td>v1.0.1</td>
<td>
<p>2024/08/26</p>
<ol>
<li><strong>Simple File Upload:</strong> Easily upload your `.srt` subtitle files using the integrated file input option.</li>
<li><strong>Instant Text Display:</strong> Once converted, your subtitle text is displayed instantly on the page, formatted for easy viewing and ready for review.</li>
<li><strong>Flexible Download Option:</strong> Choose to download the converted document when you're ready—no need for immediate downloads after conversion.</li>
<li><strong>Automatic Sentence Separation:</strong> The tool intelligently processes your subtitles, breaking them down into paragraphs based on sentence-ending punctuation, including Western and Chinese marks like ".", "!", "?", "。", "!", and "?".</li>
<li><strong>Readability Enhancements:</strong> For enhanced readability, the converted text includes sensible line breaks and section spacing, making your subtitles easier to navigate.</li>
<li><strong>Intuitive Interface:</strong> The layout and functionality are designed to provide an effortless user experience, ensuring even those unfamiliar with DOCX conversions can navigate the process with ease.</li>
</ol>
</td>
</tr>
</table>
</div>
</div>
<!-- scripts -->
<!-- Include the docx.js library from a CDN -->
<script src="https://unpkg.com/docx@7.1.0/build/index.js"></script>
<script src="function.js"></script>
<script type="text/javascript" src="./changelog.js"></script>
</body>
</html>