From bb628a215b51b8960f25f645c81d6cfe79125170 Mon Sep 17 00:00:00 2001 From: Alexander Dyuzhev Date: Fri, 13 Dec 2024 00:40:56 +0300 Subject: [PATCH] JIS xslt refactored for horizontal digits, metanorma/metanorma-jis#257, metanorma/metanorma-jis#226 --- xslt_src/common.xsl | 110 ++++++++++--------- xslt_src/jis.international-standard.core.xsl | 52 ++++++++- 2 files changed, 104 insertions(+), 58 deletions(-) diff --git a/xslt_src/common.xsl b/xslt_src/common.xsl index b826b3c9e..3288160bf 100644 --- a/xslt_src/common.xsl +++ b/xslt_src/common.xsl @@ -21224,7 +21224,7 @@ - + \u0028 \u0029 \u007B @@ -21234,6 +21234,7 @@ \u005B \u005D + [ @@ -21297,60 +21298,65 @@ - + + - - - 0.5em - 7% - - - - 90 - - - 0 - - - - -90 - - - - 0.5em - - - - - - - + + + + 7% + + + + + + + + 90 + + + 0 + + + + -90 + + + + - - - - - - + + + + + - - - - - - - - + + + + + + + + + @@ -21363,13 +21369,13 @@ false + text-indent="0mm" last-line-end-indent="0mm" start-indent="0mm" end-indent="0mm" role="SKIP"> 90 - - + + diff --git a/xslt_src/jis.international-standard.core.xsl b/xslt_src/jis.international-standard.core.xsl index 9d09d5cfe..e72149aad 100644 --- a/xslt_src/jis.international-standard.core.xsl +++ b/xslt_src/jis.international-standard.core.xsl @@ -2368,6 +2368,7 @@ + + + + + + + + + + + + + + \u00A0\u2002-\u200B\u3000-\u9FFF\uF900-\uFFFF @@ -2584,17 +2598,43 @@ - - + + (^|[^\d])(\d{2,3})($|[^\d]) + + + - - - + + + - + + + + + + + + + + + + + + + + + + + + + + + +