■ txt2srt  ver.0.06

txtファイル を字幕間は均等時間ですが srt 字幕ファイル にとりあえず簡易的に変換するアプリケーションです。
配置などの時間調整は字幕専用アプリなどで調整します。

このソフトはフリーですが再配布は不可です。

本ソフトを使用した場合の責任は使用した人物や組織が負うものとします。
本ソフトの制作者及び関係者はいかなる損害も義務も負いません。
自己責任でお使い下さい。

--------------------------------------------------------------------

■使い方

本体A： txt2srt.exe (ver.0.06)
本体B： txt2srtBLK.exe (ver.0.06)
設定ファイル（AB共有）： initsrt.txt

txtファイル を本体にD&Dすると簡易な srt字幕ファイル ができます。

txt2srt.exe　1行1字幕です。
txt2srtBLK.exe 　字幕が複数行の時、空白行ごとに1字幕です。

設定ファイル：
　A.字幕の「長さ」や「間隔」などの秒数を半角数字で設定します。

　（例）
　length=1.000　//字幕を最低限表示する長さ　1.000秒
　interval=0.001　//字幕と字幕との間隔　 0.001秒
　onebyte_sec=0.083　//1バイト文字(abc) 1文字を表示する秒数　0.083秒
　multibyte_sec=0.250　//2バイト文字(あいう) 1文字を表示する秒数　0.250秒

　（1秒に読める文字数の目安　子供～年配な方まで）
　　英字： 1秒　＞約12文字　1/12=0.083秒
　　日本語： 1秒　＞約4文字　1/4=0.250秒

　B.設定ファイルが無い場合はデフォルトの設定で出力します。
　　同梱した  initsrt.txt と同じ設定です。

--------------------------------------------------------------------

 txt2srt.exe (ver.0.06)　 txt2srtBLK.exe (ver.0.06)
修飾タグ除外あとの処理はv.0.04と同じだったが、文字数のカウントが何故か不正なためカウントの関数を変更
[2026-05-12]18:54:40(+0900)

 txt2srt.exe (ver.0.05)　 txt2srtBLK.exe (ver.0.05)
修飾タグは文字数から除外。
テキストの最初[BOF]に改行文字がある場合、改行の字幕が1番目に作成される事がある
[2026-05-12]07:41:55(+0900)

 txt2srt.exe (ver.0.04)　 txt2srtBLK.exe (ver.0.04)
文字数に合わせて表示時間を出力。複数行用のアプリを追加
[2026-05-12]04:13:20(+0900)

 txt2srt.exe (ver.0.03)
get_directory関数で設定ファイルを取得できない事があるので別の方法で取得
[2026-05-04]18:50:18(+0900)

 txt2srt.exe (ver.0.02)
設定ファイルのディレクトリを本体のアプリケーションと同じ場所に変更
[2026-05-04]15:43:44(+0900)

 txt2srt.exe (ver.0.01)
[2026-05-02]20:34:29(+0900)

Copyright (c) 2026 crayonzen
https://crayonzen.kachoufuugetu.net/

--------------------------------------------------------------------
--------------------------------------------------------------------

■ txt2srt ver.0.06

This application provides a basic conversion of txt files into srt subtitle files, with equal time intervals between subtitles.
Perfect timing adjustments, such as placement, should be done using a dedicated subtitle application.

This software is free, but redistribution is prohibited.

The user or organization using this software assumes all responsibility for any consequences arising from its use.
The creators and related parties of this software assume no responsibility for any damages or liabilities.
Use at your own risk.

--------------------------------------------------------------------

■ How to Use

Main Unit A: txt2srt.exe (ver.0.06)
Main Unit B: txt2srtBLK.exe (ver.0.06)
Configuration File (Shared between A and B): initsrt.txt

Drag and drop a txt file into the main unit to create a simple srt subtitle file.

txt2srt.exe: 1 subtitle per line.
txt2srtBLK.exe: When subtitles have multiple lines, one subtitle is generated for each blank line.

Configuration file:
    A. Set the subtitle "length" and "interval" in seconds using half-width numerals.

    (Example)
    length=1.000 // Minimum display length for subtitles: 1.000 seconds
    interval=0.001 // Interval between subtitles: 0.001 seconds
    onebyte_sec=0.083 // Number of seconds to display one 1-byte character (abc): 0.083 seconds
    multibyte_sec=0.250 // Number of seconds to display one 2-byte character (あいう): 0.250 seconds

    (Estimated number of characters readable per second, from children to the elderly)
    English: 1 second > approximately 12 characters 1/12 = 0.083 seconds
    Japanese: 1 second > approximately 4 characters 1/4 = 0.250 seconds

    B. If no configuration file exists, the output will use the default settings.
    These are the same settings as the included initsrt.txt.

--------------------------------------------------------------------

txt2srt.exe (ver.0.06) txt2srtBLK.exe (ver.0.06)
The processing after removing modifier tags was the same as v.0.04, 
but the character count was somehow incorrect, so the counting function was changed.
[2026-05-12] 18:54:40 (+0900)

txt2srt.exe (ver.0.05) txt2srtBLK.exe (ver.0.05)
Modifying tags are excluded from the character count.
If there is a newline character at the beginning of the text [BOF], the newline subtitle may be created first.
[2026-05-12]07:41:55(+0900)

txt2srt.exe (ver.0.04) txt2srtBLK.exe (ver.0.04)
Outputs display time according to the number of characters. Added a multi-line application
[2026-05-12] 04:13:20 (+0900)

txt2srt.exe (ver.0.03)
The get_directory function sometimes fails to retrieve the configuration file, so an alternative method was used.
[2026-05-04] 18:50:18 (+0900)

txt2srt.exe (ver.0.02)
Changed the configuration file directory to the same location as the main application.
[2026-05-04] 15:43:44 (+0900)

txt2srt.exe (ver.0.01)
[2026-05-02] 20:34:29 (+0900)

Copyright (c) 2026 crayonzen
https://crayonzen.kachoufuugetu.net/







