The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.

utf8ify

Roland Krasser

2025-01-07

Format text

Use utf8_text_*() functions to format text (using Utf8)

library(utf8ify)
text <- "\nHello World"

cat(
  text,
  utf8_text_bold(text),
  utf8_text_bold2(text),
  utf8_text_italic(text),
  utf8_text_bolditalic(text),
  utf8_text_cursive(text),
  utf8_text_gothic(text),
  utf8_text_circle(text)
)
## 
## Hello World 
## ๐—›๐—ฒ๐—น๐—น๐—ผ ๐—ช๐—ผ๐—ฟ๐—น๐—ฑ 
## ๐‡๐ž๐ฅ๐ฅ๐จ ๐–๐จ๐ซ๐ฅ๐ 
## ๐˜๐˜ฆ๐˜ญ๐˜ญ๐˜ฐ ๐˜ž๐˜ฐ๐˜ณ๐˜ญ๐˜ฅ 
## ๐‘ฏ๐’†๐’๐’๐’ ๐‘พ๐’๐’“๐’๐’… 
## ๐“—๐“ฎ๐“ต๐“ต๐“ธ ๐“ฆ๐“ธ๐“ป๐“ต๐“ญ 
## ๐•ณ๐–Š๐–‘๐–‘๐–” ๐–‚๐–”๐–—๐–‘๐–‰ 
## โ’ฝโ“”โ“›โ“›โ“ž โ“Œโ“žโ“กโ“›โ““

Not all characters can be formatted. In this example the letter รถis not formatted bold (as there is no corresponding Utf8 bold character)

utf8_text_bold("Heute ist ein schรถner Tag")
## [1] "๐—›๐—ฒ๐˜‚๐˜๐—ฒ ๐—ถ๐˜€๐˜ ๐—ฒ๐—ถ๐—ป ๐˜€๐—ฐ๐—ตรถ๐—ป๐—ฒ๐—ฟ ๐—ง๐—ฎ๐—ด"

Format number

utf8_number_box(123.45)
## [1] "1๏ธโƒฃ2๏ธโƒฃ3๏ธโƒฃ.4๏ธโƒฃ5๏ธโƒฃ"

Collection

{utf8ify} comes with a collection of Utf8 symbols & emojis. They are structured as a list.

u <- utf8_collection()

fav (favorites)

u$fav |> unlist()
## arrow_right  arrow_left        beer        bulb       check    clapping 
##         "โžก"         "โฌ…"        "๐Ÿบ"        "๐Ÿ’ก"         "โœ”๏ธ"        "๐Ÿ‘" 
##      coffee       cross       email        eyes        fire point_right 
##        "โ˜•"        "โŒ"        "๐Ÿ“ง"        "๐Ÿ‘€"        "๐Ÿ”ฅ"        "๐Ÿ‘‰" 
##  point_left       happy       heart         joy         key       money 
##        "๐Ÿ‘ˆ"        "๐Ÿ˜€"         "โค๏ธ"        "๐Ÿ˜‚"        "๐Ÿ”‘"        "๐Ÿ’ฐ" 
##  onehundret       party         poo    question    surprise       sweat 
##        "๐Ÿ’ฏ"        "๐ŸŽ‰"        "๐Ÿ’ฉ"        "โ“"        "๐Ÿ˜ฎ"        "๐Ÿ˜…" 
##      rocket      speech        star  sunglasses      target      thanks 
##        "๐Ÿš€"        "๐Ÿ’ฌ"        "โญ"        "๐Ÿ˜Ž"        "๐ŸŽฏ"        "๐Ÿ™" 
##       think   thumbs_up thumbs_down         ups        wink      zipper 
##        "๐Ÿค”"        "๐Ÿ‘"        "๐Ÿ‘Ž"        "๐Ÿคญ"        "๐Ÿ‘‹"        "๐Ÿค"

animal

u$animal |> unlist()
##     bee    bull     cat     cow     dog dolphin    fish   horse   llama  monkey 
##    "๐Ÿ"    "๐Ÿ‚"    "๐Ÿˆ"    "๐Ÿ„"    "๐Ÿ•"    "๐Ÿฌ"    "๐ŸŸ"    "๐ŸŽ"    "๐Ÿฆ™"    "๐Ÿ’" 
##     pig     rat  rabbit   snake   tiger 
##    "๐Ÿ–"    "๐Ÿ€"    "๐Ÿ‡"    "๐ŸŒ"    "๐Ÿ…"

celebrate

u$celebrate |> unlist()
##      present         cake party_popper      balloon      pumpkin    xmas_tree 
##         "๐ŸŽ"         "๐ŸŽ‚"         "๐ŸŽ‰"         "๐ŸŽˆ"         "๐ŸŽƒ"         "๐ŸŽ„" 
##        santa    fireworks   graduation 
##         "๐ŸŽ…"         "๐ŸŽ†"         "๐ŸŽ“"

clock

u$clock |> unlist()
## clock_01 clock_02 clock_03 clock_04 clock_05 clock_06 clock_07 clock_08 
##     "๐Ÿ•"     "๐Ÿ•‘"     "๐Ÿ•’"     "๐Ÿ•“"     "๐Ÿ•”"     "๐Ÿ••"     "๐Ÿ•–"     "๐Ÿ•—" 
## clock_09 clock_10 clock_11 clock_12 
##     "๐Ÿ•˜"     "๐Ÿ•™"     "๐Ÿ•š"     "๐Ÿ•›"

eat

u$eat |> unlist()
##     apple      cake    cherry    cookie     fries hamburger     lemon     pizza 
##      "๐Ÿ"      "๐Ÿฐ"      "๐Ÿ’"      "๐Ÿช"      "๐ŸŸ"      "๐Ÿ”"      "๐Ÿ‹"      "๐Ÿ•" 
##     plate   popcorn 
##       "๐Ÿฝ"      "๐Ÿฟ"

drink

u$drink |> unlist()
##     beer    beer2   bottle   coffee cocktail     wine 
##     "๐Ÿบ"     "๐Ÿป"     "๐Ÿพ"     "โ˜•"     "๐Ÿธ"     "๐Ÿท"

list

u$list |> unlist()
##    arrow_right         circle          check      check_box        diamond 
##            "โžก"            "โ—‹"            "โœ”๏ธ"           "โœ…"            "โ—†" 
##   diamond_blue diamond_orange      dot_black       dot_blue      dot_green 
##           "๐Ÿ”น"           "๐Ÿ”ธ"           "โšซ"           "๐Ÿ”ต"           "๐ŸŸข" 
##     dot_orange        dot_red      dot_small 
##           "๐ŸŸ "           "๐Ÿ”ด"            "โ—"

office

u$office |> unlist()
##   calendar   chart_up chart_down    desktop     folder     laptop  paperclip 
##        "๐Ÿ—“"       "๐Ÿ“ˆ"       "๐Ÿ“‰"        "๐Ÿ–ฅ"       "๐Ÿ“‚"       "๐Ÿ’ป"       "๐Ÿ“Ž" 
##       page        pen    printer    pushpin   pushpin2   scissors      trash 
##       "๐Ÿ“„"        "๐Ÿ–Š"        "๐Ÿ–จ"       "๐Ÿ“Œ"       "๐Ÿ“"        "โœ‚"        "๐Ÿ—‘"

person

u$person |> unlist()
##       woman         man        girl         boy   couple_fm   couple_mm 
##        "๐Ÿ‘ฉ"        "๐Ÿ‘จ"        "๐Ÿ‘ง"        "๐Ÿ‘ฆ"        "๐Ÿ‘ซ"        "๐Ÿ‘ฌ" 
##   couple_ff      family older_woman   older_man 
##        "๐Ÿ‘ญ"        "๐Ÿ‘ช"        "๐Ÿ‘ต"        "๐Ÿ‘ด"

Block

Use utf8_block() to show a complete Utf8 block:

utf8_block(from = "0x1F600", to = "0x1F64F", show_names = FALSE)
##  [1] "๐Ÿ˜€" "๐Ÿ˜" "๐Ÿ˜‚" "๐Ÿ˜ƒ" "๐Ÿ˜„" "๐Ÿ˜…" "๐Ÿ˜†" "๐Ÿ˜‡" "๐Ÿ˜ˆ" "๐Ÿ˜‰" "๐Ÿ˜Š" "๐Ÿ˜‹" "๐Ÿ˜Œ" "๐Ÿ˜" "๐Ÿ˜Ž"
## [16] "๐Ÿ˜" "๐Ÿ˜" "๐Ÿ˜‘" "๐Ÿ˜’" "๐Ÿ˜“" "๐Ÿ˜”" "๐Ÿ˜•" "๐Ÿ˜–" "๐Ÿ˜—" "๐Ÿ˜˜" "๐Ÿ˜™" "๐Ÿ˜š" "๐Ÿ˜›" "๐Ÿ˜œ" "๐Ÿ˜"
## [31] "๐Ÿ˜ž" "๐Ÿ˜Ÿ" "๐Ÿ˜ " "๐Ÿ˜ก" "๐Ÿ˜ข" "๐Ÿ˜ฃ" "๐Ÿ˜ค" "๐Ÿ˜ฅ" "๐Ÿ˜ฆ" "๐Ÿ˜ง" "๐Ÿ˜จ" "๐Ÿ˜ฉ" "๐Ÿ˜ช" "๐Ÿ˜ซ" "๐Ÿ˜ฌ"
## [46] "๐Ÿ˜ญ" "๐Ÿ˜ฎ" "๐Ÿ˜ฏ" "๐Ÿ˜ฐ" "๐Ÿ˜ฑ" "๐Ÿ˜ฒ" "๐Ÿ˜ณ" "๐Ÿ˜ด" "๐Ÿ˜ต" "๐Ÿ˜ถ" "๐Ÿ˜ท" "๐Ÿ˜ธ" "๐Ÿ˜น" "๐Ÿ˜บ" "๐Ÿ˜ป"
## [61] "๐Ÿ˜ผ" "๐Ÿ˜ฝ" "๐Ÿ˜พ" "๐Ÿ˜ฟ" "๐Ÿ™€" "๐Ÿ™" "๐Ÿ™‚" "๐Ÿ™ƒ" "๐Ÿ™„" "๐Ÿ™…" "๐Ÿ™†" "๐Ÿ™‡" "๐Ÿ™ˆ" "๐Ÿ™‰" "๐Ÿ™Š"
## [76] "๐Ÿ™‹" "๐Ÿ™Œ" "๐Ÿ™" "๐Ÿ™Ž" "๐Ÿ™"
utf8_block(from = "0x2600", to = "0x26FF", show_names = FALSE)
##   [1] "โ˜€"  "โ˜"  "โ˜‚"  "โ˜ƒ"  "โ˜„"  "โ˜…"  "โ˜†"  "โ˜‡"  "โ˜ˆ"  "โ˜‰"  "โ˜Š"  "โ˜‹"  "โ˜Œ"  "โ˜"  "โ˜Ž" 
##  [16] "โ˜"  "โ˜"  "โ˜‘"  "โ˜’"  "โ˜“"  "โ˜”" "โ˜•" "โ˜–"  "โ˜—"  "โ˜˜"  "โ˜™"  "โ˜š"  "โ˜›"  "โ˜œ"  "โ˜" 
##  [31] "โ˜ž"  "โ˜Ÿ"  "โ˜ "  "โ˜ก"  "โ˜ข"  "โ˜ฃ"  "โ˜ค"  "โ˜ฅ"  "โ˜ฆ"  "โ˜ง"  "โ˜จ"  "โ˜ฉ"  "โ˜ช"  "โ˜ซ"  "โ˜ฌ" 
##  [46] "โ˜ญ"  "โ˜ฎ"  "โ˜ฏ"  "โ˜ฐ"  "โ˜ฑ"  "โ˜ฒ"  "โ˜ณ"  "โ˜ด"  "โ˜ต"  "โ˜ถ"  "โ˜ท"  "โ˜ธ"  "โ˜น"  "โ˜บ"  "โ˜ป" 
##  [61] "โ˜ผ"  "โ˜ฝ"  "โ˜พ"  "โ˜ฟ"  "โ™€"  "โ™"  "โ™‚"  "โ™ƒ"  "โ™„"  "โ™…"  "โ™†"  "โ™‡"  "โ™ˆ" "โ™‰" "โ™Š"
##  [76] "โ™‹" "โ™Œ" "โ™" "โ™Ž" "โ™" "โ™" "โ™‘" "โ™’" "โ™“" "โ™”"  "โ™•"  "โ™–"  "โ™—"  "โ™˜"  "โ™™" 
##  [91] "โ™š"  "โ™›"  "โ™œ"  "โ™"  "โ™ž"  "โ™Ÿ"  "โ™ "  "โ™ก"  "โ™ข"  "โ™ฃ"  "โ™ค"  "โ™ฅ"  "โ™ฆ"  "โ™ง"  "โ™จ" 
## [106] "โ™ฉ"  "โ™ช"  "โ™ซ"  "โ™ฌ"  "โ™ญ"  "โ™ฎ"  "โ™ฏ"  "โ™ฐ"  "โ™ฑ"  "โ™ฒ"  "โ™ณ"  "โ™ด"  "โ™ต"  "โ™ถ"  "โ™ท" 
## [121] "โ™ธ"  "โ™น"  "โ™บ"  "โ™ป"  "โ™ผ"  "โ™ฝ"  "โ™พ"  "โ™ฟ" "โš€"  "โš"  "โš‚"  "โšƒ"  "โš„"  "โš…"  "โš†" 
## [136] "โš‡"  "โšˆ"  "โš‰"  "โšŠ"  "โš‹"  "โšŒ"  "โš"  "โšŽ"  "โš"  "โš"  "โš‘"  "โš’"  "โš“" "โš”"  "โš•" 
## [151] "โš–"  "โš—"  "โš˜"  "โš™"  "โšš"  "โš›"  "โšœ"  "โš"  "โšž"  "โšŸ"  "โš "  "โšก" "โšข"  "โšฃ"  "โšค" 
## [166] "โšฅ"  "โšฆ"  "โšง"  "โšจ"  "โšฉ"  "โšช" "โšซ" "โšฌ"  "โšญ"  "โšฎ"  "โšฏ"  "โšฐ"  "โšฑ"  "โšฒ"  "โšณ" 
## [181] "โšด"  "โšต"  "โšถ"  "โšท"  "โšธ"  "โšน"  "โšบ"  "โšป"  "โšผ"  "โšฝ" "โšพ" "โšฟ"  "โ›€"  "โ›"  "โ›‚" 
## [196] "โ›ƒ"  "โ›„" "โ›…" "โ›†"  "โ›‡"  "โ›ˆ"  "โ›‰"  "โ›Š"  "โ›‹"  "โ›Œ"  "โ›"  "โ›Ž" "โ›"  "โ›"  "โ›‘" 
## [211] "โ›’"  "โ›“"  "โ›”" "โ›•"  "โ›–"  "โ›—"  "โ›˜"  "โ›™"  "โ›š"  "โ››"  "โ›œ"  "โ›"  "โ›ž"  "โ›Ÿ"  "โ› " 
## [226] "โ›ก"  "โ›ข"  "โ›ฃ"  "โ›ค"  "โ›ฅ"  "โ›ฆ"  "โ›ง"  "โ›จ"  "โ›ฉ"  "โ›ช" "โ›ซ"  "โ›ฌ"  "โ›ญ"  "โ›ฎ"  "โ›ฏ" 
## [241] "โ›ฐ"  "โ›ฑ"  "โ›ฒ" "โ›ณ" "โ›ด"  "โ›ต" "โ›ถ"  "โ›ท"  "โ›ธ"  "โ›น"  "โ›บ" "โ›ป"  "โ›ผ"  "โ›ฝ" "โ›พ" 
## [256] "โ›ฟ"
utf8_block(from = "0x16A0", to = "0x16F0", show_names = FALSE)
##  [1] "แš " "แšก" "แšข" "แšฃ" "แšค" "แšฅ" "แšฆ" "แšง" "แšจ" "แšฉ" "แšช" "แšซ" "แšฌ" "แšญ" "แšฎ" "แšฏ" "แšฐ" "แšฑ" "แšฒ"
## [20] "แšณ" "แšด" "แšต" "แšถ" "แšท" "แšธ" "แšน" "แšบ" "แšป" "แšผ" "แšฝ" "แšพ" "แšฟ" "แ›€" "แ›" "แ›‚" "แ›ƒ" "แ›„" "แ›…"
## [39] "แ›†" "แ›‡" "แ›ˆ" "แ›‰" "แ›Š" "แ›‹" "แ›Œ" "แ›" "แ›Ž" "แ›" "แ›" "แ›‘" "แ›’" "แ›“" "แ›”" "แ›•" "แ›–" "แ›—" "แ›˜"
## [58] "แ›™" "แ›š" "แ››" "แ›œ" "แ›" "แ›ž" "แ›Ÿ" "แ› " "แ›ก" "แ›ข" "แ›ฃ" "แ›ค" "แ›ฅ" "แ›ฆ" "แ›ง" "แ›จ" "แ›ฉ" "แ›ช" "แ›ซ"
## [77] "แ›ฌ" "แ›ญ" "แ›ฎ" "แ›ฏ" "แ›ฐ"

Inspect

If you found an Utf8 character on the internet, you can inspect it using utf8_inspect()

utf8_inspect("โค๏ธ")
## chr = โค๏ธ 
## int = 10084 65039 
## hex = 2764 fe0f

Here you can see, that this heard symbol is a combination of two Utf8 characters.

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.