summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorDaeHyun Sung <sungdh86+git@gmail.com>2021-08-15 22:44:23 +0900
committerMiklos Vajna <vmiklos@collabora.com>2021-08-26 17:42:43 +0200
commitc216777e8add833be5ee49bc98197ea21cbb4da0 (patch)
tree93b687abda61b52269797e33534b649b508209d4 /filter
parent2ca522fa2d3d1f80a9f12826f76028264be1dfa1 (diff)
tdf#143526 Korean numbering import/export support
add support for the new NUMBER_LEGAL_KO(korean-legal) numbering format to various import and export filters. fix support for the HANGUL_SYLLABLE_KO(korean-counting) numbering format. Change-Id: I7b7dafe7305da910784ae537e307f9bfd05319a9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120509 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'filter')
-rw-r--r--filter/source/xslt/export/wordml/ooo2wordml_list.xsl6
-rw-r--r--filter/source/xslt/export/wordml/ooo2wordml_settings.xsl8
2 files changed, 9 insertions, 5 deletions
diff --git a/filter/source/xslt/export/wordml/ooo2wordml_list.xsl b/filter/source/xslt/export/wordml/ooo2wordml_list.xsl
index 4b30aef6823c..5ebf0e6ac460 100644
--- a/filter/source/xslt/export/wordml/ooo2wordml_list.xsl
+++ b/filter/source/xslt/export/wordml/ooo2wordml_list.xsl
@@ -281,8 +281,10 @@
<w:nfc w:val="21"/>
</xsl:when>
<xsl:when test="$number-format = '일, 이, 삼, ...'">
- <!-- '일, 이, 삼, ...' also seems: korean-counting -->
- <w:nfc w:val="41"/>
+ <w:nfc w:val="42"/>
+ </xsl:when>
+ <xsl:when test="$number-format = '하나, 둘, 셋, ...'">
+ <w:nfc w:val="43"/>
</xsl:when>
<xsl:when test="$number-format = 'ㄱ, ㄴ, ㄷ, ...' or $number-format = '㉠, ㉡, ㉢, ...'">
<!-- mapping circled to uncircled -->
diff --git a/filter/source/xslt/export/wordml/ooo2wordml_settings.xsl b/filter/source/xslt/export/wordml/ooo2wordml_settings.xsl
index c3ab20eebd4f..2130db508b22 100644
--- a/filter/source/xslt/export/wordml/ooo2wordml_settings.xsl
+++ b/filter/source/xslt/export/wordml/ooo2wordml_settings.xsl
@@ -244,8 +244,10 @@
<w:numFmt w:val="iroha"/>
</xsl:when>
<xsl:when test="$number-format = '일, 이, 삼, ...'">
- <!-- '일, 이, 삼, ...' also seems: korean-counting -->
- <w:numFmt w:val="korean-digital"/>
+ <w:numFmt w:val="korean-counting"/>
+ </xsl:when>
+ <xsl:when test="$number-format = '하나, 둘, 셋, ...'">
+ <w:numFmt w:val="korean-legal"/>
</xsl:when>
<xsl:when test="$number-format = 'ㄱ, ㄴ, ㄷ, ...' or $number-format = '㉠, ㉡, ㉢, ...'">
<!-- mapping circled to uncircled -->
@@ -297,7 +299,7 @@
</xsl:choose>
</xsl:when>
<!-- unsupported: ordinal, cardinal-text, ordinal-text, hex, chicago, bullet, ideograph-zodiac-traditional,
- chinese-not-impl, korean-legal -->
+ chinese-not-impl -->
<xsl:otherwise>
<w:numFmt w:val="decimal"/>
</xsl:otherwise>