aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Krewinkel <albert@zeitkraut.de>2020-04-09 15:31:54 +0200
committerAlbert Krewinkel <albert@zeitkraut.de>2020-04-09 16:21:45 +0200
commitc09a3448d148baec94ba9feb67b209ef584f9678 (patch)
tree3b0704b088c10b4f793ed0768064d376b659894b
parent11df2a3c0f2b1b8e351ad8caaa7cdf583e1b3b2e (diff)
downloadpandoc-c09a3448d148baec94ba9feb67b209ef584f9678.tar.gz
Jira reader: improve icon conversion
Icons are now converted as follows: `(/)` to ✔, `(x)` to ❌, `(!)` to ❗, `(+)` to ➕, `(-)` to ➖, `(off)` to 🌙, and `(*)` to ☆. The new icons render well in most fonts. Furthermore, the UTF-8 characters all fit into 4-bytes. Closes: #6264
-rw-r--r--src/Text/Pandoc/Readers/Jira.hs24
-rw-r--r--test/jira-reader.native2
2 files changed, 13 insertions, 13 deletions
diff --git a/src/Text/Pandoc/Readers/Jira.hs b/src/Text/Pandoc/Readers/Jira.hs
index 46723f944..d0900fd08 100644
--- a/src/Text/Pandoc/Readers/Jira.hs
+++ b/src/Text/Pandoc/Readers/Jira.hs
@@ -182,18 +182,18 @@ iconUnicode = \case
Jira.IconThumbsUp -> "👍"
Jira.IconThumbsDown -> "👎"
Jira.IconInfo -> "ℹ"
- Jira.IconCheckmark -> "✓"
- Jira.IconX -> "🅇"
- Jira.IconAttention -> "⚠"
- Jira.IconPlus -> "⊞"
- Jira.IconMinus -> "⊟"
- Jira.IconQuestionmark -> "﹖"
+ Jira.IconCheckmark -> "✔"
+ Jira.IconX -> "❌"
+ Jira.IconAttention -> "❗"
+ Jira.IconPlus -> "➕"
+ Jira.IconMinus -> "➖"
+ Jira.IconQuestionmark -> "❓"
Jira.IconOn -> "💡"
- Jira.IconOff -> "💡"
- Jira.IconStar -> "★"
- Jira.IconStarRed -> "★"
- Jira.IconStarGreen -> "★"
- Jira.IconStarBlue -> "★"
- Jira.IconStarYellow -> "★"
+ Jira.IconOff -> "🌙"
+ Jira.IconStar -> "⭐"
+ Jira.IconStarRed -> "⭐"
+ Jira.IconStarGreen -> "⭐"
+ Jira.IconStarBlue -> "⭐"
+ Jira.IconStarYellow -> "⭐"
Jira.IconFlag -> "⚑"
Jira.IconFlagOff -> "⚐"
diff --git a/test/jira-reader.native b/test/jira-reader.native
index 618ff225b..fd9c21480 100644
--- a/test/jira-reader.native
+++ b/test/jira-reader.native
@@ -113,7 +113,7 @@ Pandoc (Meta {unMeta = fromList []})
,HorizontalRule
,Header 1 ("",[],[]) [Str "Dashes,",Space,Str "and",Space,Str "emoticons"]
,Para [Str "Some",Space,Str "dashes:",Space,Str "one",Space,Str "\8211",Space,Str "two",Space,Str "\8212",Space,Str "three."]
-,Para [Str "Sure",Space,Str "\10003",LineBreak,Str "Nope",Space,Str "\127303"]
+,Para [Str "Sure",Space,Str "\10004",LineBreak,Str "Nope",Space,Str "\10060"]
,Para [Str "Nice",Space,Str "\128515"]
,Para [Str "Capital",Space,Str "d:D"]
,HorizontalRule