<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Исправление регистра в документе]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=12621&amp;type=atom" />
	<updated>2017-04-18T16:08:24Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=12621</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Исправление регистра в документе]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=115129#p115129" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>becauseim пишет:</cite><blockquote><p>А возможность внесения исключений в текущий вариант уже включена?</p></blockquote></div><p>Нет. Т.к. нужно разбирать нюансы. Например, есть &quot;И т. <strong>о.</strong> бла-бла&quot;, а есть &quot;Бла-бла и т. д. <strong>О.</strong> То, что надо!&quot;<br />Или есть сокращения, которые являются словами. Например: букв., высок., комп., ласк., мол., муз., неправ., поэт., прост., вин. п., род. п., перс., русин., спец., цирк. и т. д. и т. п. И это только в одном языке...</p>]]></content>
			<author>
				<name><![CDATA[Flasher]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27593</uri>
			</author>
			<updated>2017-04-18T16:08:24Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=115129#p115129</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Исправление регистра в документе]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=115122#p115122" />
			<content type="html"><![CDATA[<p><strong>Malcev</strong>, речь идет об уже имеющемся материале и о скриптовом решении данного вопроса в целом, а не конкретно текущего проекта.</p>]]></content>
			<author>
				<name><![CDATA[becauseim]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33149</uri>
			</author>
			<updated>2017-04-18T15:36:36Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=115122#p115122</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Исправление регистра в документе]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=115117#p115117" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>becauseim пишет:</cite><blockquote><p>У меня проблем с набиранием заглавных букв нет, есть проблема по исправлению такого текста.</p></blockquote></div><p>Так почему вы не объясните человеку, что нужно писать правильно? Скрипт всё-равно не сможет всех случаев предусмотреть.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2017-04-18T12:57:57Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=115117#p115117</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Исправление регистра в документе]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=115116#p115116" />
			<content type="html"><![CDATA[<p>Спасибо! А возможность внесения исключений в текущий вариант уже включена?<br /></p><div class="quotebox"><cite>Flasher пишет:</cite><blockquote><p>Онлайн или всё же удалённо?</p></blockquote></div><p>Сервис. Но значения не имеет. Лишь уточнил, почему не имею у себя полноценного редактора текстов.</p>]]></content>
			<author>
				<name><![CDATA[becauseim]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33149</uri>
			</author>
			<updated>2017-04-18T11:17:49Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=115116#p115116</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Исправление регистра в документе]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=115110#p115110" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>text =
(
привет, меня зовут becauseim! мне 5 лет. я в состоянии: говорить, читать, писать и т. д...
(hi, my name is becauseim! i am 5 years old. i am able: to speak, to read, to write, etc...)

для &quot;document&quot; не требуется заглавная буква в записи &quot;window.document&quot;. понятно? или нет?

то же касается графических сокращений:
т. д. — так далее; т. п. — тому подобные; т. е. — то есть;
т. к. — так как; т. н. — так называемый; т. о. — таким образом;
т. с. — так сказать; т. ч. — том числе и т. п. сокр.
)

rtext = % RegExReplace(text, &quot;(^|[^\s.!?]{2,}[.!?]+[)\t ]*\s+[\t (]*)(\p{Ll})&quot;, &quot;$1$U2&quot;)
rtext = % RegExReplace(rtext, &quot;(^|[^\s.!?][.!?]+[)\t ]*\R+[\t (]*)(\p{Ll})&quot;, &quot;$1$U2&quot;)

MsgBox До:`n`n %text% `n`nПосле:`n`n %rtext%</code></pre></div><p>Конечно, для <a href="https://ru.wiktionary.org/wiki/%D0%92%D0%B8%D0%BA%D0%B8%D1%81%D0%BB%D0%BE%D0%B2%D0%B0%D1%80%D1%8C:%D0%A3%D1%81%D0%BB%D0%BE%D0%B2%D0%BD%D1%8B%D0%B5_%D1%81%D0%BE%D0%BA%D1%80%D0%B0%D1%89%D0%B5%D0%BD%D0%B8%D1%8F">подобных сокращений</a> уже полный список потребуется. Если текст диаложный, то одиночные междометия &quot;а&quot;, &quot;о&quot;, &quot;у&quot;, &quot;э&quot;, местоимения &quot;я&quot;, &quot;i&quot;, союз &quot;и&quot; и т. п. придётся внести в исключения.</p><br /><div class="quotebox"><cite>becauseim пишет:</cite><blockquote><p>у меня нет этой программы, я редактирую документы онлайн.</p></blockquote></div><p>Онлайн (сервисом) или всё же удалённо с наличием её (или BinaryNow/Kingsoft/Libre/Open/SoftMaker/WPS Office) на получателе?</p>]]></content>
			<author>
				<name><![CDATA[Flasher]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27593</uri>
			</author>
			<updated>2017-04-18T00:07:43Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=115110#p115110</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Исправление регистра в документе]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=115109#p115109" />
			<content type="html"><![CDATA[<p><strong>svoboden</strong>, Вы обладаете экстрасенсорными способностями? Откуда столько предположений?<br /></p><div class="quotebox"><blockquote><p>Где вы видели текст, где после точек не пишется заглавная буква?</p></blockquote></div><p>Если для Вас это имеет значение, то текст я беру из файлов, с которыми работаю на текущий момент.</p>]]></content>
			<author>
				<name><![CDATA[becauseim]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33149</uri>
			</author>
			<updated>2017-04-17T22:03:13Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=115109#p115109</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Исправление регистра в документе]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=115108#p115108" />
			<content type="html"><![CDATA[<p><strong>becauseim</strong>, вы задаете одинаковые вопросы - это нежелание писать заглавные буквы. Где вы видели текст, где после точек не пишется заглавная буква?</p>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2017-04-17T21:46:57Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=115108#p115108</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Исправление регистра в документе]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=115107#p115107" />
			<content type="html"><![CDATA[<p><strong>svoboden</strong>, я Вас не понимаю. В моем вопросе перечислено, в каких случаях необходимо менять регистр.</p><p>Вы написали, что я иду по стопам <strong>Ядрёна</strong>, скажите, с чего Вы это взяли?</p>]]></content>
			<author>
				<name><![CDATA[becauseim]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33149</uri>
			</author>
			<updated>2017-04-17T21:24:21Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=115107#p115107</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Исправление регистра в документе]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=115106#p115106" />
			<content type="html"><![CDATA[<p><strong>becauseim</strong>, вы думаете, что заглавные буквы пишутся только после точек?</p>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2017-04-17T20:41:03Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=115106#p115106</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Исправление регистра в документе]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=115105#p115105" />
			<content type="html"><![CDATA[<p><strong>svoboden</strong>, с чего Вы взяли, что я наступаю на его грабли?</p>]]></content>
			<author>
				<name><![CDATA[becauseim]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33149</uri>
			</author>
			<updated>2017-04-17T20:16:13Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=115105#p115105</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Исправление регистра в документе]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=115104#p115104" />
			<content type="html"><![CDATA[<p><strong>becauseim</strong>, зря вы идете по стопам Ядрена, его идея писать без заглавных букв и пробелов обречена.</p>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2017-04-17T20:11:59Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=115104#p115104</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Исправление регистра в документе]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=115103#p115103" />
			<content type="html"><![CDATA[<p><strong>ypppu</strong>, Почему не писать сразу грамотно? Спросите это у человека из соседней ветки, который привык делать именно так. У меня проблем с набиранием заглавных букв нет, есть проблема по исправлению такого текста.</p><p><strong>Malcev</strong>, так все-таки писать или исправлять уже набранный текст? Так или иначе, необходимо пакетное оффлайн решение и инструмент, работающий на лету с буфером обмена, чему может соответствовать надстройка системы в виде сценария.</p><p>На всякий случай, в <a href="http://ru.texthandler.com/?module=letter_case_converter"> онлайн конвертерах регистров</a> необходимости нет.</p>]]></content>
			<author>
				<name><![CDATA[becauseim]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33149</uri>
			</author>
			<updated>2017-04-17T20:11:57Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=115103#p115103</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Исправление регистра в документе]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=115102#p115102" />
			<content type="html"><![CDATA[<p>OFF: Во проблему-то раздули. А грамотно писать - не судьба? <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /> Давайте сразу сочиним скрипт, переводящий мутные потоки сознания в красиво изложенную мысль. <img src="//forum.script-coding.com/img/smilies/big_smile.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2017-04-17T19:24:41Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=115102#p115102</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Исправление регистра в документе]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=115101#p115101" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>becauseim пишет:</cite><blockquote><p>я редактирую документы онлайн.</p></blockquote></div><p>У гугл докс есть такая же опция, что и у ворда: &quot;Писать слова с заглавной буквы&quot;.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2017-04-17T18:41:39Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=115101#p115101</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Исправление регистра в документе]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=115099#p115099" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong>, в таком случае, не в doc-файле, а в txt. Или в буфере, может быть.</p>]]></content>
			<author>
				<name><![CDATA[becauseim]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33149</uri>
			</author>
			<updated>2017-04-17T16:05:44Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=115099#p115099</id>
		</entry>
</feed>
