<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: текст с форматированием + без форматирования в clipboard]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=15163</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=15163&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: текст с форматированием + без форматирования в clipboard».]]></description>
		<lastBuildDate>Tue, 05 May 2020 01:38:48 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: текст с форматированием + без форматирования в clipboard]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=139328#p139328</link>
			<description><![CDATA[<div class="quotebox"><cite>DD пишет:</cite><blockquote><p>после чего текст можно переводить (при этом номера в квадратных скобках не будут затрагиваться)</p></blockquote></div><p>Для заменяемых тегов лучше всего использовать <strong>%3F</strong>, иногда удаляя пробелы между. Всё остальное после перевода частично изменяется или удаляется.</p>]]></description>
			<author><![CDATA[null@example.com (DD)]]></author>
			<pubDate>Tue, 05 May 2020 01:38:48 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=139328#p139328</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: текст с форматированием + без форматирования в clipboard]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=139216#p139216</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (DD)]]></author>
			<pubDate>Wed, 29 Apr 2020 01:56:33 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=139216#p139216</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: текст с форматированием + без форматирования в clipboard]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=139215#p139215</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (DD)]]></author>
			<pubDate>Wed, 29 Apr 2020 01:19:06 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=139215#p139215</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: текст с форматированием + без форматирования в clipboard]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=137807#p137807</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (OmTatSat)]]></author>
			<pubDate>Wed, 12 Feb 2020 15:43:59 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=137807#p137807</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: текст с форматированием + без форматирования в clipboard]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=137806#p137806</link>
			<description><![CDATA[<div class="quotebox"><cite>serzh82saratov пишет:</cite><blockquote><p>DOC поддерживает. А зачем он нужен?</p></blockquote></div><p> docx тоже? Как отправить документ на перевод гуглу? В принципе doc тоже наверно сойдёт, но лучше docx, для него у меня уже есть код сохранения выделенного в документ.</p>]]></description>
			<author><![CDATA[null@example.com (OmTatSat)]]></author>
			<pubDate>Wed, 12 Feb 2020 14:56:33 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=137806#p137806</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: текст с форматированием + без форматирования в clipboard]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=137805#p137805</link>
			<description><![CDATA[<div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><p>А о каком документе вопрос, html или Word?</p></blockquote></div><p> word подойдёт, научился его сохранять с форматированием правда без цветного раскрашивания.</p>]]></description>
			<author><![CDATA[null@example.com (OmTatSat)]]></author>
			<pubDate>Wed, 12 Feb 2020 14:53:04 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=137805#p137805</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: текст с форматированием + без форматирования в clipboard]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=137727#p137727</link>
			<description><![CDATA[<p>По последнему коду <strong>serzh82saratov</strong> видно, что все равно пробелы расставляются в тегах.</p>]]></description>
			<author><![CDATA[null@example.com (DD)]]></author>
			<pubDate>Sat, 08 Feb 2020 14:01:15 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=137727#p137727</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: текст с форматированием + без форматирования в clipboard]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=137726#p137726</link>
			<description><![CDATA[<div class="quotebox"><cite>Malcev пишет:</cite><blockquote><p>Заменяйте html entities и отпраляйте на перевод - гугл не переводит таги.</p></blockquote></div><p>Он таки лезет в теги и иногда переводит ссылки и расставляет в них пробелы и тп. Причем, помню был какой-то спец тег из документации (вроде, &lt;no-translate&gt;), обёрнутое в который якобы не переводилось, но это тоже не работало. Но если предварительно убрать &quot;=&quot; из ссылок, тогда такие ссылки не трогались.</p>]]></description>
			<author><![CDATA[null@example.com (DD)]]></author>
			<pubDate>Sat, 08 Feb 2020 13:51:34 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=137726#p137726</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: текст с форматированием + без форматирования в clipboard]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=137707#p137707</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Fri, 07 Feb 2020 11:31:35 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=137707#p137707</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: текст с форматированием + без форматирования в clipboard]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=137706#p137706</link>
			<description><![CDATA[<p>Понятное дело.<br />Тебе надо&nbsp; 	&amp;quot; перевести в &quot;, а ты этой командой делаешь в точности наоборот.</p>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Fri, 07 Feb 2020 10:54:33 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=137706#p137706</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: текст с форматированием + без форматирования в clipboard]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=137705#p137705</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Fri, 07 Feb 2020 10:51:18 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=137705#p137705</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: текст с форматированием + без форматирования в clipboard]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=137704#p137704</link>
			<description><![CDATA[<p><a href="https://www.w3schools.com/html/html_entities.asp">https://www.w3schools.com/html/html_entities.asp</a><br />Но тут не все, можно погуглить и найти весь список.</p>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Fri, 07 Feb 2020 10:45:59 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=137704#p137704</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: текст с форматированием + без форматирования в clipboard]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=137703#p137703</link>
			<description><![CDATA[<div class="quotebox"><cite>Malcev пишет:</cite><blockquote><p>Я заменил в блокноте html entities</p></blockquote></div><p>Если по русски, то это как?</p>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Fri, 07 Feb 2020 10:44:33 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=137703#p137703</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: текст с форматированием + без форматирования в clipboard]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=137702#p137702</link>
			<description><![CDATA[<p>Простым Replace.</p>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Fri, 07 Feb 2020 10:35:32 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=137702#p137702</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: текст с форматированием + без форматирования в clipboard]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=137701#p137701</link>
			<description><![CDATA[<p>А как это в блокноте делать?</p>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Fri, 07 Feb 2020 10:33:46 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=137701#p137701</guid>
		</item>
	</channel>
</rss>
