MyNixOS website logo
Description

Format Text Using Unicode.

Format text (bold, italic, ...) and numbers using UTF-8. Offers functions to search for emojis and include them in your text.

utf8ify

With {utf8ify} you can easily...

1๏ธโƒฃ ๐—ณ๐—ผ๐—ฟ๐—บ๐—ฎ๐˜ ๐˜๐—ฒ๐˜…๐˜ 2๏ธโƒฃ ๐Ÿ๐จ๐ซ๐ฆ๐š๐ญ ๐ญ๐ž๐ฑ๐ญ 3๏ธโƒฃ ๐˜ง๐˜ฐ๐˜ณ๐˜ฎ๐˜ข๐˜ต ๐˜ต๐˜ฆ๐˜น๐˜ต 4๏ธโƒฃ ๐’‡๐’๐’“๐’Ž๐’‚๐’• ๐’•๐’†๐’™๐’• 5๏ธโƒฃ ๐“ฏ๐“ธ๐“ป๐“ถ๐“ช๐“ฝ ๐“ฝ๐“ฎ๐”๐“ฝ 6๏ธโƒฃ ๐–‹๐–”๐–—๐–’๐–†๐–™ ๐–™๐–Š๐–๐–™ 7๏ธโƒฃ โ“•โ“žโ“กโ“œโ“โ“ฃ โ“ฃโ“”โ“งโ“ฃ

... using UTF8 characters! ๐Ÿ˜Ž ๐Ÿš€

library(utf8ify)
text <- " format text "
cat(paste0(
  utf8_number_box(1), utf8_text_bold(text),
  utf8_number_box(2), utf8_text_bold2(text),
  utf8_number_box(3), utf8_text_italic(text),
  utf8_number_box(4), utf8_text_bolditalic(text),
  utf8_number_box(5), utf8_text_cursive(text),
  utf8_number_box(6), utf8_text_gothic(text),
  utf8_number_box(7), utf8_text_circle(text),
  "\n... using UTF8 characters!\n",
  utf8_collection()$fav$sunglasses,
  utf8_collection()$fav$rocket
))

Or use utf8_collection() to access one of the preselected UTF8 characters (organised as lists)... ๐Ÿ‘๐Ÿ˜€

fav: โžก โฌ… ๐Ÿบ ๐Ÿ’ก โœ”๏ธ ๐Ÿ‘ โ˜• โŒ ๐Ÿ“ง ๐Ÿ‘€ ๐Ÿ”ฅ ๐Ÿ‘‰ ๐Ÿ‘ˆ ๐Ÿ˜€ โค๏ธ ๐Ÿ˜‚ ๐Ÿ”‘ ๐Ÿ’ฐ ๐Ÿ’ฏ ๐ŸŽ‰ ๐Ÿ’ฉ โ“ ๐Ÿ˜ฎ ๐Ÿ˜… ๐Ÿš€ ๐Ÿ’ฌ โญ ๐Ÿ˜Ž ๐ŸŽฏ ๐Ÿ™ ๐Ÿค” ๐Ÿ‘ ๐Ÿ‘Ž ๐Ÿคญ ๐Ÿ‘‹ ๐Ÿค animal: ๐Ÿ ๐Ÿ‚ ๐Ÿˆ ๐Ÿ„ ๐Ÿ• ๐Ÿฌ ๐ŸŸ ๐ŸŽ ๐Ÿฆ™ ๐Ÿ’ ๐Ÿ– ๐Ÿ€ ๐Ÿ‡ ๐ŸŒ ๐Ÿ… celebrate: ๐ŸŽ ๐ŸŽ‚ ๐ŸŽ‰ ๐ŸŽˆ ๐ŸŽƒ ๐ŸŽ„ ๐ŸŽ… ๐ŸŽ† ๐ŸŽ“ clock: ๐Ÿ• ๐Ÿ•‘ ๐Ÿ•’ ๐Ÿ•“ ๐Ÿ•” ๐Ÿ•• ๐Ÿ•– ๐Ÿ•— ๐Ÿ•˜ ๐Ÿ•™ ๐Ÿ•š ๐Ÿ•› eat: ๐Ÿ ๐Ÿฐ ๐Ÿ’ ๐Ÿช ๐ŸŸ ๐Ÿ” ๐Ÿ‹ ๐Ÿ• ๐Ÿฝ ๐Ÿฟ drink: ๐Ÿบ ๐Ÿป ๐Ÿพ โ˜• ๐Ÿธ ๐Ÿท list: โžก โ—‹ โœ”๏ธ โœ… โ—† ๐Ÿ”น ๐Ÿ”ธ โšซ ๐Ÿ”ต ๐ŸŸข ๐ŸŸ  ๐Ÿ”ด โ— office: ๐Ÿ—“ ๐Ÿ“ˆ ๐Ÿ“‰ ๐Ÿ–ฅ ๐Ÿ“‚ ๐Ÿ’ป ๐Ÿ“Ž ๐Ÿ“„ ๐Ÿ–Š ๐Ÿ–จ ๐Ÿ“Œ ๐Ÿ“ โœ‚ ๐Ÿ—‘ person: ๐Ÿ‘ฉ ๐Ÿ‘จ ๐Ÿ‘ง ๐Ÿ‘ฆ ๐Ÿ‘ซ ๐Ÿ‘ฌ ๐Ÿ‘ญ ๐Ÿ‘ช ๐Ÿ‘ต ๐Ÿ‘ด smiley: ๐Ÿ˜€ ๐Ÿ˜‚ ๐Ÿ˜Ž ๐Ÿ˜ฎ ๐Ÿ˜… ๐Ÿค” ๐Ÿคญ ๐Ÿค sport: ๐Ÿ€ ๐ŸฅŠ ๐Ÿšด ๐Ÿˆ ๐Ÿ… ๐Ÿ ๐Ÿƒ ๐Ÿ„ ๐ŸŽพ ๐Ÿ† travel: โœˆ ๐Ÿšฒ ๐Ÿš— ๐Ÿš ๐Ÿงณ ๐Ÿš‡ ๐Ÿš€ โ›ต ๐Ÿ›ด ๐Ÿšข ๐Ÿšœ ๐Ÿš†

u <- utf8_collection()
cat(u$fav$thumbs_up, u$smiley$happy)
for (i in seq(1, length(u))) {
  cat(paste0(
    "\n", names(u[i]), ":\n",
    paste(unlist(u[i]), collapse = " ")
  ))
}
Metadata

Version

0.1.0

License

Unknown

Platformsย (77)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-freebsd
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64-windows
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows