市川@tenpoku1000 です。ご多忙の中、ご回答ありがとうございました。返信が遅くなり申し訳ございません

教えていただいた SeparatorType の値を 2:DETECT_SEPARATOR から 1:SEPARATOR に
変更することで目的の動作になりました

scuiasciiopt.cxx (revision eea90af52e744d64c3d6ffd49c8859572450aed4) - OpenGrok 
cross reference for /core/sc/source/ui/dbgui/scuiasciiopt.cxx 
https://opengrok.libreoffice.org/xref/core/sc/source/ui/dbgui/scuiasciiopt.cxx?r=eea90af52e744d64c3d6ffd49c8859572450aed4#87

87  enum SeparatorType
88  {
89      FIXED,
90      SEPARATOR,
91      DETECT_SEPARATOR
92  };

設定画面上では、以下の画像のような感じになります

test/report/2025-02-17/SeparatorType(2⇒1).png at master · tenpoku1000/test 
https://github.com/tenpoku1000/test/blob/master/report/2025-02-17/SeparatorType(2%E2%87%921).png

ありがとうございました

________________________________________
差出人: himajin100000 <[email protected]>
送信日時: 2025年2月20日 22:45
宛先: [email protected]
件名: [ja-users] Re: [ja-users] [Calc] CSV ファイルのインポートの区切りのオプションについて

まともに時間が確保できていないhimajin100000です。

未検証ですが、おそらく、検知後として扱われる設定自体は存在します。
上級向け設定でSeparatorTypeを検索してみてください。
https://opengrok.libreoffice.org/xref/core/sc/source/ui/dbgui/scuiasciiopt.cxx?r=eea90af52e744d64c3d6ffd49c8859572450aed4#259
https://opengrok.libreoffice.org/xref/core/sc/source/ui/dbgui/scuiasciiopt.cxx?r=eea90af52e744d64c3d6ffd49c8859572450aed4#87
符号化方式を検知したあと、
https://opengrok.libreoffice.org/xref/core/sc/source/ui/dbgui/scuiasciiopt.cxx?r=eea90af52e744d64c3d6ffd49c8859572450aed4#465
https://opengrok.libreoffice.org/xref/core/sc/source/ui/dbgui/scuiasciiopt.cxx?r=eea90af52e744d64c3d6ffd49c8859572450aed4#524
検知されたものが、それまでの設定と異なる場合
https://opengrok.libreoffice.org/xref/core/sc/source/ui/dbgui/scuiasciiopt.cxx?r=eea90af52e744d64c3d6ffd49c8859572450aed4#752
https://opengrok.libreoffice.org/xref/core/sc/source/ui/dbgui/scuiasciiopt.cxx?r=eea90af52e744d64c3d6ffd49c8859572450aed4#766
区切りの検知に入ります。
https://opengrok.libreoffice.org/xref/core/sc/source/ui/dbgui/scuiasciiopt.cxx?r=eea90af52e744d64c3d6ffd49c8859572450aed4#835
https://opengrok.libreoffice.org/xref/core/sfx2/source/doc/objstor.cxx?r=7daf54c93dbcdfb74a84e2e8e0b7725c67bf0941#952
この辺で考えるのが嫌になりました。


On Mon, Feb 17, 2025 at 7:56 PM Ichikawa Shin'ichi
<[email protected]> wrote:
>
>
> 市川@tenpoku1000 です
>
> LibreOffice 25.2.0.3(x86_64) Windows 版の Calc で、
> CSV ファイルに 2025/01/28 のような表記で日付が入っている場合に、
> テキストのインポート画面で以下の画像のような感じで、
> 区切りのオプション・Detected (/ タブ)が自動で有効になる場合があり、
> 2025/01/28 が 2025 01 28 のように別々の列に分離されてしまい、不便です
>
> test/report/2025-02-17/CSV_Calc_25.2.0.3(x86_64,Win).png at master · 
> tenpoku1000/test
> https://github.com/tenpoku1000/test/blob/master/report/2025-02-17/CSV_Calc_25.2.0.3(x86_64%2CWin).png
>
> 区切りのオプション・Detected (/ タブ)が自動で有効にならないように
> 無効化する設定などがありましたら、教えていただきたいです
>
> 以上です
>
> --
> Unsubscribe instructions: E-mail to [email protected]
> Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
> List archive: https://listarchives.libreoffice.org/ja/users/
> Privacy Policy: https://www.documentfoundation.org/privacy



--
himajin100000

--
Unsubscribe instructions: E-mail to [email protected]
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/ja/users/
Privacy Policy: https://www.documentfoundation.org/privacy

-- 
Unsubscribe instructions: E-mail to [email protected]
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/ja/users/
Privacy Policy: https://www.documentfoundation.org/privacy

メールによる返信