<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: текст с форматированием + без форматирования в clipboard]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=15163&amp;type=atom" />
	<updated>2020-05-05T01:38:48Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=15163</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: текст с форматированием + без форматирования в clipboard]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=139328#p139328" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>DD пишет:</cite><blockquote><p>после чего текст можно переводить (при этом номера в квадратных скобках не будут затрагиваться)</p></blockquote></div><p>Для заменяемых тегов лучше всего использовать <strong>%3F</strong>, иногда удаляя пробелы между. Всё остальное после перевода частично изменяется или удаляется.</p>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2020-05-05T01:38:48Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=139328#p139328</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: текст с форматированием + без форматирования в clipboard]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=139216#p139216" />
			<content type="html"><![CDATA[<p>Вот<br /></p><div class="codebox"><pre><code>Loop, Parse, tags_list, `n, `r
{
   tag_line := A_LoopField
   If NOT InStr(tag_line, &quot;[&quot;)
      break
   num := RegExReplace(tag_line, &quot;(\[\d{10}\])((&lt;[^&gt;]*&gt;)+)&quot;, &quot;$1&quot;)
   tag := RegExReplace(tag_line, &quot;(\[\d{10}\])((&lt;[^&gt;]*&gt;)+)&quot;, &quot;$2&quot;)

   StringReplace, html, html, %num%, %tag%, All
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2020-04-29T01:56:33Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=139216#p139216</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: текст с форматированием + без форматирования в clipboard]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=139215#p139215" />
			<content type="html"><![CDATA[<p>Для перевода с форматированием, подумалось сделать следующее: во взятом на перевод фрагменте текста, перед всеми тегами расставляются последовательные числа в квадратных скобках, потом из номеров с тегами составляется список, а теги в самом фрагменте удаляются, после чего текст можно переводить (при этом номера в квадратных скобках не будут затрагиваться) и следом — вернуть теги в текст, заменив из сохранённого списка. В коде ниже сделал первые два шага. Каким будет дополнение для замены номеров из текста — на теги из сохранённого списка?</p><div class="codebox"><pre><code>html = 
( 
&lt;p&gt;El cadáver y los gusanos.
Las convulsiones que preceden al colapso institucional  que tienen como telón de fondo y causa primera la vida religiosa – se traducen en:&lt;span id=&quot;more-11512&quot;&gt;&lt;/span&gt; una crisis económica y monetaria, la quiebra de la Unión Europea en respuesta a la transferencia de la soberanía de las naciones a las instituciones supranacionales, la deslegitimación del poder político en Francia y en el resto de Europa la intensidad y frecuencia de las sacudidas sísmicas están aumentando constantemente y las apelaciones a la reforma de las instituciones europeas &lt;a href=&quot;#1&quot; name=&quot;n1&quot;&gt;[1]&lt;/a&gt; y de la República francesa &lt;a href=&quot;#2&quot; name=&quot;n2&quot;&gt;[2]&lt;/a&gt; para salvarlas se multiplican desde hace una quincena de años.&amp;#8211;&lt;/p&gt; 

)

;ВСТАВКА ПОСЛЕДОВАТЕЛЬНЫХ НОМЕРОВ ПЕРЕД ТЕГАМИ
match := &quot;&quot;
while RegExMatch(html, &quot;iO)((&lt;[^&gt;]*&gt;)+)&quot;, match, match ? match.Pos + match.Len + 14 : 1)
{
   n := Format(&quot;{:0&quot; . 10 . &quot;u}&quot;, a_index)
   html := RegExReplace(html, match[0], &quot;[&quot; . n . &quot;]&quot; . match[0],, 1, match.Pos)
}
MsgBox % html 

;ПОЛУЧЕНИЕ СПИСКА НОМЕР+ТЕГ
Pos = 1
While ( Pos := RegExMatch(html, &quot;(\[\d{10}\](&lt;[^&gt;]*&gt;)+)&quot;, Found, Pos + StrLen(Found)) )
    tags_list .= Found . &quot;`n&quot;

MsgBox % tags_list</code></pre></div>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2020-04-29T01:19:06Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=139215#p139215</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: текст с форматированием + без форматирования в clipboard]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=137807#p137807" />
			<content type="html"><![CDATA[<p>Получилось такой формат получить,&nbsp; это очень удобный вариант.</p><p>Проблема в том, что делается он двумя этапами.<br />1. Выделяется область, хоткей, ждём встраивания перевода в интернет страницу.<br />Проблема - выделение текста сбилось.<br />2. Выделяется область уже с переводом, хоткей, и через пару секунд на компе лежит файл для важных текстов.</p><p>Первая часть с помощью дополнения <a href="https://addons.mozilla.org/ru/firefox/addon/imtranslator">https://addons.mozilla.org/ru/firefox/a … translator</a><br />Вторая часть с помощью <a href="https://addons.mozilla.org/ru/firefox/addon/single-file">https://addons.mozilla.org/ru/firefox/addon/single-file</a></p><p>Было бы здорово, чтобы не нужно было выделять текст дважды, ну и хоткей нажимать единожды.<br />Как такое реализовать пока не понимаю((<br /><span class="postimg"><img src="https://i.ibb.co/qR9ytDr/Ascorbic-acid-Real-Bread-Campaign-www-sustainweb-org-realbread-ascorbic-acid-Mozilla-Firefox-02-12-2020-17-43-19.png" alt="https://i.ibb.co/qR9ytDr/Ascorbic-acid-Real-Bread-Campaign-www-sustainweb-org-realbread-ascorbic-acid-Mozilla-Firefox-02-12-2020-17-43-19.png" /></span></p>]]></content>
			<author>
				<name><![CDATA[OmTatSat]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33453</uri>
			</author>
			<updated>2020-02-12T15:43:59Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=137807#p137807</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: текст с форматированием + без форматирования в clipboard]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=137806#p137806" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>serzh82saratov пишет:</cite><blockquote><p>DOC поддерживает. А зачем он нужен?</p></blockquote></div><p> docx тоже? Как отправить документ на перевод гуглу? В принципе doc тоже наверно сойдёт, но лучше docx, для него у меня уже есть код сохранения выделенного в документ.</p>]]></content>
			<author>
				<name><![CDATA[OmTatSat]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33453</uri>
			</author>
			<updated>2020-02-12T14:56:33Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=137806#p137806</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: текст с форматированием + без форматирования в clipboard]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=137805#p137805" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><p>А о каком документе вопрос, html или Word?</p></blockquote></div><p> word подойдёт, научился его сохранять с форматированием правда без цветного раскрашивания.</p>]]></content>
			<author>
				<name><![CDATA[OmTatSat]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33453</uri>
			</author>
			<updated>2020-02-12T14:53:04Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=137805#p137805</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: текст с форматированием + без форматирования в clipboard]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=137727#p137727" />
			<content type="html"><![CDATA[<p>По последнему коду <strong>serzh82saratov</strong> видно, что все равно пробелы расставляются в тегах.</p>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2020-02-08T14:01:15Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=137727#p137727</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: текст с форматированием + без форматирования в clipboard]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=137726#p137726" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Malcev пишет:</cite><blockquote><p>Заменяйте html entities и отпраляйте на перевод - гугл не переводит таги.</p></blockquote></div><p>Он таки лезет в теги и иногда переводит ссылки и расставляет в них пробелы и тп. Причем, помню был какой-то спец тег из документации (вроде, &lt;no-translate&gt;), обёрнутое в который якобы не переводилось, но это тоже не работало. Но если предварительно убрать &quot;=&quot; из ссылок, тогда такие ссылки не трогались.</p>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2020-02-08T13:51:34Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=137726#p137726</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: текст с форматированием + без форматирования в clipboard]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=137707#p137707" />
			<content type="html"><![CDATA[<p>Что то получилось. <br /></p><div class="codebox"><pre><code>

html = 
( 
&lt;h2 style=&quot;box-sizing: border-box; font-family: &amp;quot;Work Sans&amp;quot;, sans-serif; font-weight: 500; line-height: 1.1; color: rgb(51, 51, 51); margin-top: 20px; margin-bottom: 10px; font-size: 30px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial;&quot;&gt;What function does ascorbic acid perform in baking?&lt;/h2&gt;&lt;p style=&quot;box-sizing: border-box; margin: 0px 0px 10px; color: rgb(51, 51, 51); font-family: &amp;quot;Work Sans&amp;quot;, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial;&quot;&gt;Industrial loaf fabricators categorise ascorbic acid as a flour ‘improver’ or dough conditioner.  In the presence of oxygen, ascorbic acid becomes an oxidising agent and the ‘improvements’ to which it contributes include:&lt;/p&gt;&lt;ul style=&quot;box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; color: rgb(51, 51, 51); font-family: &amp;quot;Work Sans&amp;quot;, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial;&quot;&gt;&lt;li style=&quot;box-sizing: border-box;&quot;&gt;Strengthened gluten&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box;&quot;&gt;Greater loaf volume&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box;&quot;&gt;Finer crumb (i.e. smaller, more even cells/bubbles)&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box;&quot;&gt;Increased tenderness of the crumb&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box;&quot;&gt;Reduced crust thickness&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box;&quot;&gt;Faster rising&lt;/li&gt;&lt;/ul&gt;&lt;p style=&quot;box-sizing: border-box; margin: 0px 0px 10px; color: rgb(51, 51, 51); font-family: &amp;quot;Work Sans&amp;quot;, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial;&quot;&gt;‘The net result of AA is to improve the ability of dough to retain gas (as seen by increased oven spring) and to yield bread with a finer (smaller average cell size) crumb cell structure. These changes also result in bread crumb that is softer to the touch yet has the resiliency to recover much of its original shape after compression. This helps to convey the impression of proved freshness to the consumer.’  Baking Problems Solved, p 55, S. Cauvain &amp;amp; L. Young, Woodhead Publishing (2001)&lt;/p&gt;
)
 
MsgBox % html := TransformHTML(html)

MsgBox % html := GoogleTranslate(html, &quot;auto&quot;, &quot;ru&quot;)
MsgBox % ClipBoard := html := RegExReplace(html, &quot;&lt;\s*/\s*(.*?)\s*&gt;&quot;, &quot;&lt;/$1&gt;&quot;)

FileDelete, %A_Desktop%\test.html
FileAppend, %html%, %A_Desktop%\test.html
Run %A_Desktop%\test.html
ExitApp



TransformHTML(str) { 
	StringReplace, str, str, &amp;quot;, &quot;, 1
	StringReplace, str, str, &amp;amp;, &amp;, 1
	Return str
}



GoogleTranslate(str, from := &quot;auto&quot;, to := &quot;en&quot;)  {
   static JS := CreateScriptObj(), _ := JS.( GetJScript() ) := JS.(&quot;delete ActiveXObject; delete GetObject;&quot;)
   
   json := SendRequest(JS, str, to, from, proxy := &quot;&quot;)
   oJSON := JS.(&quot;(&quot; . json . &quot;)&quot;)

   if !IsObject(oJSON[1])  {
      Loop % oJSON[0].length
         trans .= oJSON[0][A_Index - 1][0]
   }
   else  {
      MainTransText := oJSON[0][0][0]
      Loop % oJSON[1].length  {
         trans .= &quot;`n+&quot;
         obj := oJSON[1][A_Index-1][1]
         Loop % obj.length  {
            txt := obj[A_Index - 1]
            trans .= (MainTransText = txt ? &quot;&quot; : &quot;`n&quot; txt)
         }
      }
   }
   if !IsObject(oJSON[1])
      MainTransText := trans := Trim(trans, &quot;,+`n &quot;)
   else
      trans := MainTransText . &quot;`n+`n&quot; . Trim(trans, &quot;,+`n &quot;)

   from := oJSON[2]
   trans := Trim(trans, &quot;,+`n &quot;)
   Return trans
}

SendRequest(JS, str, tl, sl, proxy) {
   ComObjError(false)
   http := ComObjCreate(&quot;WinHttp.WinHttpRequest.5.1&quot;)
   ( proxy &amp;&amp; http.SetProxy(2, proxy) )
   http.open( &quot;POST&quot;, &quot;https://translate.google.com/translate_a/single?client=webapp&amp;sl=&quot;
      . sl . &quot;&amp;tl=&quot; . tl . &quot;&amp;hl=&quot; . tl
      . &quot;&amp;dt=at&amp;dt=bd&amp;dt=ex&amp;dt=ld&amp;dt=md&amp;dt=qca&amp;dt=rw&amp;dt=rm&amp;dt=ss&amp;dt=t&amp;ie=UTF-8&amp;oe=UTF-8&amp;otf=0&amp;ssel=0&amp;tsel=0&amp;pc=1&amp;kc=1&quot;
      . &quot;&amp;tk=&quot; . JS.(&quot;tk&quot;).(str), 1 )

   http.SetRequestHeader(&quot;Content-Type&quot;, &quot;application/x-www-form-urlencoded;charset=utf-8&quot;)
   http.SetRequestHeader(&quot;User-Agent&quot;, &quot;Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:47.0) Gecko/20100101 Firefox/47.0&quot;)
   http.send(&quot;q=&quot; . URIEncode(str))
   http.WaitForResponse(-1)
   Return http.responsetext
}

URIEncode(str, encoding := &quot;UTF-8&quot;)  {
   VarSetCapacity(var, StrPut(str, encoding))
   StrPut(str, &amp;var, encoding)

   While code := NumGet(Var, A_Index - 1, &quot;UChar&quot;)  {
      bool := (code &gt; 0x7F || code &lt; 0x30 || code = 0x3D)
      UrlStr .= bool ? &quot;%&quot; . Format(&quot;{:02X}&quot;, code) : Chr(code)
   }
   Return UrlStr
}

GetJScript()
{
   script =
   (
      var TKK = ((function() {
        var a = 561666268;
        var b = 1526272306;
        return 406398 + &#039;.&#039; + (a + b);
      })());

      function b(a, b) {
        for (var d = 0; d &lt; b.length - 2; d += 3) {
            var c = b.charAt(d + 2),
                c = &quot;a&quot; &lt;= c ? c.charCodeAt(0) - 87 : Number(c),
                c = &quot;+&quot; == b.charAt(d + 1) ? a &gt;&gt;&gt; c : a &lt;&lt; c;
            a = &quot;+&quot; == b.charAt(d) ? a + c &amp; 4294967295 : a ^ c
        }
        return a
      }

      function tk(a) {
          for (var e = TKK.split(&quot;.&quot;), h = Number(e[0]) || 0, g = [], d = 0, f = 0; f &lt; a.length; f++) {
              var c = a.charCodeAt(f);
              128 &gt; c ? g[d++] = c : (2048 &gt; c ? g[d++] = c &gt;&gt; 6 | 192 : (55296 == (c &amp; 64512) &amp;&amp; f + 1 &lt; a.length &amp;&amp; 56320 == (a.charCodeAt(f + 1) &amp; 64512) ?
              (c = 65536 + ((c &amp; 1023) &lt;&lt; 10) + (a.charCodeAt(++f) &amp; 1023), g[d++] = c &gt;&gt; 18 | 240,
              g[d++] = c &gt;&gt; 12 &amp; 63 | 128) : g[d++] = c &gt;&gt; 12 | 224, g[d++] = c &gt;&gt; 6 &amp; 63 | 128), g[d++] = c &amp; 63 | 128)
          }
          a = h;
          for (d = 0; d &lt; g.length; d++) a += g[d], a = b(a, &quot;+-a^+6&quot;);
          a = b(a, &quot;+-3^+b+-f&quot;);
          a ^= Number(e[1]) || 0;
          0 &gt; a &amp;&amp; (a = (a &amp; 2147483647) + 2147483648);
          a `%= 1E6;
          return a.toString() + &quot;.&quot; + (a ^ h)
      }
   )
   Return script
}

CreateScriptObj() {
   static doc
   doc := ComObjCreate(&quot;htmlfile&quot;)
   doc.write(&quot;&lt;meta http-equiv=&#039;X-UA-Compatible&#039; content=&#039;IE=9&#039;&gt;&quot;)
   Return ObjBindMethod(doc.parentWindow, &quot;eval&quot;)
}
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2020-02-07T11:31:35Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=137707#p137707</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: текст с форматированием + без форматирования в clipboard]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=137706#p137706" />
			<content type="html"><![CDATA[<p>Понятное дело.<br />Тебе надо&nbsp; 	&amp;quot; перевести в &quot;, а ты этой командой делаешь в точности наоборот.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2020-02-07T10:54:33Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=137706#p137706</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: текст с форматированием + без форматирования в clipboard]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=137705#p137705" />
			<content type="html"><![CDATA[<p>Так не работает.<br /></p><div class="codebox"><pre><code>html = 
( 

&lt;h2 style=&quot;box-sizing: border-box; font-family: &amp;quot;Work Sans&amp;quot;, sans-serif; font-weight: 500; line-height: 1.1; color: rgb(51, 51, 51); margin-top: 20px; margin-bottom: 10px; font-size: 30px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial;&quot;&gt;What function does ascorbic acid perform in baking?&lt;/h2&gt;&lt;p style=&quot;box-sizing: border-box; margin: 0px 0px 10px; color: rgb(51, 51, 51); font-family: &amp;quot;Work Sans&amp;quot;, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial;&quot;&gt;Industrial loaf fabricators categorise ascorbic acid as a flour ‘improver’ or dough conditioner.  In the presence of oxygen, ascorbic acid becomes an oxidising agent and the ‘improvements’ to which it contributes include:&lt;/p&gt;&lt;ul style=&quot;box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; color: rgb(51, 51, 51); font-family: &amp;quot;Work Sans&amp;quot;, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial;&quot;&gt;&lt;li style=&quot;box-sizing: border-box;&quot;&gt;Strengthened gluten&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box;&quot;&gt;Greater loaf volume&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box;&quot;&gt;Finer crumb (i.e. smaller, more even cells/bubbles)&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box;&quot;&gt;Increased tenderness of the crumb&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box;&quot;&gt;Reduced crust thickness&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box;&quot;&gt;Faster rising&lt;/li&gt;&lt;/ul&gt;&lt;p style=&quot;box-sizing: border-box; margin: 0px 0px 10px; color: rgb(51, 51, 51); font-family: &amp;quot;Work Sans&amp;quot;, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial;&quot;&gt;‘The net result of AA is to improve the ability of dough to retain gas (as seen by increased oven spring) and to yield bread with a finer (smaller average cell size) crumb cell structure. These changes also result in bread crumb that is softer to the touch yet has the resiliency to recover much of its original shape after compression. This helps to convey the impression of proved freshness to the consumer.’  Baking Problems Solved, p 55, S. Cauvain &amp;amp; L. Young, Woodhead Publishing (2001)&lt;/p&gt;

)
 
MsgBox % html := TransformHTML(html)

MsgBox % GoogleTranslate(html, &quot;auto&quot;, &quot;ru&quot;)


TransformHTML(str) {
	Transform, str, HTML, %str%, 3 
	Return str
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2020-02-07T10:51:18Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=137705#p137705</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: текст с форматированием + без форматирования в clipboard]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=137704#p137704" />
			<content type="html"><![CDATA[<p><a href="https://www.w3schools.com/html/html_entities.asp">https://www.w3schools.com/html/html_entities.asp</a><br />Но тут не все, можно погуглить и найти весь список.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2020-02-07T10:45:59Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=137704#p137704</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: текст с форматированием + без форматирования в clipboard]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=137703#p137703" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Malcev пишет:</cite><blockquote><p>Я заменил в блокноте html entities</p></blockquote></div><p>Если по русски, то это как?</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2020-02-07T10:44:33Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=137703#p137703</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: текст с форматированием + без форматирования в clipboard]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=137702#p137702" />
			<content type="html"><![CDATA[<p>Простым Replace.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2020-02-07T10:35:32Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=137702#p137702</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: текст с форматированием + без форматирования в clipboard]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=137701#p137701" />
			<content type="html"><![CDATA[<p>А как это в блокноте делать?</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2020-02-07T10:33:46Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=137701#p137701</id>
		</entry>
</feed>
