Skip to content

Conversation

@rogenobl
Copy link
Contributor

@rogenobl rogenobl commented Nov 1, 2024

narou convertにおいて、通常はテキスト整形変換後、小説設定が@options["yokogaki"]にセットされ1 NovelConverter.convert_txt_to_ebook_fileに引き継がれる2 が、引数にテキストファイルを指定した場合は、それが成されず、横書き設定が反映されない。
また、通常の管理小説変換時も、横書き設定のセット時にはignore-force, ignore-defaultオプションが反映されていない。
一方、テキスト整形変換のために呼ばれるNovelConverter側ではコマンドラインオプションを反映した小説設定が読み込まれているため、これを戻り値に含めて、これを横書き設定に反映する。

Footnotes

  1. https://github.com/whiteleaf7/narou/blob/develop/lib/command/convert.rb#L243

  2. https://github.com/whiteleaf7/narou/blob/develop/lib/command/convert.rb#L300

rinjugatla added a commit to rinjugatla/narou_docker that referenced this pull request Oct 25, 2025
この変更に伴いerubiを1.13.1から1.13に巻き戻し
whiteleaf7/narou#440
whiteleaf7/narou#444
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant