Conversions for combination of еЕ + \u308 to ёЁ and И + \u306 to Й

This commit is contained in:
Georgy Litvinov 2020-03-05 18:13:14 +01:00
parent e0e6c5dbf2
commit 2a2cf8bb5c
3 changed files with 7 additions and 3 deletions

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd">
<script:module xmlns:script="http://openoffice.org/2000/script" script:name="Clean" script:language="StarBasic">Sub mark20
<script:module xmlns:script="http://openoffice.org/2000/script" script:name="Clean" script:language="StarBasic">Sub mark21
End Sub
@ -262,6 +262,9 @@ Private Sub fixFrequentMistakes
&apos;Между угловой закрывающейся скобкой и буквой должен быть пробел
AskAndReplace(&quot;(?&lt;=&lt;…)&gt;(?=[:alpha:])&quot;,&quot;&gt;&quot; &amp; space)
AskAndReplace(&quot;[ий][\u0306]+&quot;,&quot;й&quot;)
AskAndReplace(&quot;[ИЙ][\u0306]+&quot;,&quot;Й&quot;)
AskAndReplace(&quot;[её][\u0308]+&quot;,&quot;ё&quot;)
AskAndReplace(&quot;[ЕЁ][\u0308]+&quot;,&quot;Ё&quot;)
End Sub
Private Sub loadArticleStyles

View file

@ -3,7 +3,7 @@
xmlns:dep="http://openoffice.org/extensions/description/2006"
xmlns:xlink="http://www.w3.org/1999/xlink">
<identifier value="pro.litvinovg.Redaction" />
<version value="0.4.7" />
<version value="0.4.8" />
<platform value="all" />
<display-name>
<name lang="en">Cleaning and validation documents for publishing in html and epub with pagination</name>

View file

@ -1,4 +1,5 @@
0.4.7 Added conversion for и + \u0306 в й
0.4.8 Added conversion for И + \u0306 to Й and еЕ + \u308 to ёЁ
0.4.7 Added conversion for и + \u0306 to й
0.4.3 Fixed bad regexps
0.4.2 Fixed subscript/superscript conversion, added finish message
0.4.1 Improved conversion for diacritic marks