From 7e8fd76cb354e05f2f5ad48eb647ebb00fd1ab9d Mon Sep 17 00:00:00 2001 From: Georgy Litvinov Date: Fri, 29 Oct 2021 00:51:03 +0200 Subject: [PATCH] Fix diacritic characters combination --- Redaction/Clean.xba | 13 +++++++++---- Redaction/Configuration.xba | 2 +- cleanandvalidate.update.xml | 4 ++-- description.xml | 2 +- gradle.properties | 2 +- 5 files changed, 14 insertions(+), 9 deletions(-) diff --git a/Redaction/Clean.xba b/Redaction/Clean.xba index 3fc9741..cff21ec 100644 --- a/Redaction/Clean.xba +++ b/Redaction/Clean.xba @@ -1,6 +1,6 @@ -Sub mark95 +Sub mark96 End Sub @@ -2177,8 +2177,13 @@ Function isFirstCharDiacritic(portion As Object) As Boolean End Function Sub moveFirstCharacter(portion As Object, prevPortion As Object) - prevPortion.String = prevPortion.String & Left(portion.String,1) - portion.String = Right(portion.String,Len(portion.String) - 1) + Dim prevEnd As Object + Dim nextStart As Object + prevEnd = prevPortion.getEnd() + prevEnd.String = Left(portion.String,1) + nextStart = portion.Text.createTextCursorByRange(portion.Start) + nextStart.goRight(1,true) + nextStart.setString("") End Sub - + \ No newline at end of file diff --git a/Redaction/Configuration.xba b/Redaction/Configuration.xba index a69134b..5819383 100644 --- a/Redaction/Configuration.xba +++ b/Redaction/Configuration.xba @@ -1,7 +1,7 @@ Public Const redactionExtensionName = "cleanAndValidate" -Public Const redactionExtensionVersion = "0.10.8" +Public Const redactionExtensionVersion = "0.10.10" Public Const template_name_monography = "Монография" Public Const template_name_pj = "Философский журнал" Public Const template_name_pq = "Вопросы философии" diff --git a/cleanandvalidate.update.xml b/cleanandvalidate.update.xml index 23f5439..dece4d5 100644 --- a/cleanandvalidate.update.xml +++ b/cleanandvalidate.update.xml @@ -2,9 +2,9 @@ - + - + diff --git a/description.xml b/description.xml index 825899d..c242639 100644 --- a/description.xml +++ b/description.xml @@ -21,7 +21,7 @@ - + diff --git a/gradle.properties b/gradle.properties index bc92a10..d9371f5 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1 +1 @@ -version=0.10.8 +version=0.10.10