<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Auto-capital sentences in .txt]]></title><description><![CDATA[<p dir="auto">How to make each sentence start with a capital letter as I type? (like in libre-office)</p>
<p dir="auto">Preferably only in .txt files.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/26138/auto-capital-sentences-in-txt</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Jul 2026 00:24:50 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/26138.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 22 Sep 2024 10:50:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Auto-capital sentences in .txt on Sun, 22 Sep 2024 13:01:36 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/carsten88" aria-label="Profile: carsten88">@<bdi>carsten88</bdi></a> and <strong>All</strong>,</p>
<p dir="auto">Surely, some <strong>guru</strong> guys on this forum, versed in <strong><code>Python</code></strong>, could create a <strong>script</strong> for this purpose ! Unfortunately, I’m not part of them -:(</p>
<hr />
<p dir="auto">However, here is a <strong>regex</strong> search/replacement that you could run, once your text is <strong>completed</strong> :</p>
<ul>
<li>
<p dir="auto">SEARCH <strong><code>([.?!])\x20*(\w)</code></strong></p>
</li>
<li>
<p dir="auto">REPLACE <strong><code>\1\x20\U\2</code></strong></p>
</li>
</ul>
<hr />
<p dir="auto"><strong>Notes</strong> : This regex verifies and changes any <strong>text</strong> file as expected :</p>
<ul>
<li>
<p dir="auto">It rewrites, first, the <strong>last</strong> character of each sentence</p>
</li>
<li>
<p dir="auto">Then, it normalizes <strong>any</strong> amount of <strong><code>space</code></strong> chars, even none, to <strong><code>one</code></strong> space <strong>only</strong></p>
</li>
<li>
<p dir="auto">And, finally, it rewrites the <strong>first</strong> letter of the <strong>next</strong> sentence in <strong><code>uppercase</code></strong></p>
</li>
<li>
<p dir="auto">If this letter is <strong>already</strong> written as <strong>uppercase</strong>, nothing is modified !</p>
</li>
</ul>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/96725</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/96725</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sun, 22 Sep 2024 13:01:36 GMT</pubDate></item></channel></rss>