logo

9utils

Collection of utilities inspired by Plan9 git clone https://anongit.hacktivis.me/git/9utils.git/

unicode.1 (1247B)


  1. .\" Collection of utilities inspired by Plan9
  2. .\" Copyright 2023 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
  3. .\" SPDX-License-Identifier: MPL-2.0
  4. .Dd 2023-08-31
  5. .Dt UNICODE 1
  6. .Os
  7. .Sh NAME
  8. .Nm unicode
  9. .Nd Encode/Decode unicode characters
  10. .Sh SYNOPSIS
  11. .Nm
  12. .Ar hexmin Ns - Ns Ar hexmax
  13. .Nm
  14. .Fl n
  15. .Ar characters ...
  16. .Nm
  17. .Op Fl t
  18. .Ar codepoints ...
  19. .Sh DESCRIPTION
  20. .Bl -tag -width Ds
  21. .It Nm Ar hexmin Ns - Ns Ar hexmax
  22. prints a table of unicode characters,
  23. .Ar hexmin
  24. and
  25. .Ar hexmax
  26. specifies respectively the first and last characters of the table,
  27. each in hexadecimal.
  28. .It Nm Fl n Ar characters ...
  29. prints each character's codepoint on a separated line.
  30. .It Nm Oo Fl t Oc Ar codepoints ...
  31. encodes each given codepoint, written in hexadecimal and prints them out.
  32. Separated by newlines unless
  33. .Fl t
  34. is specified.
  35. .El
  36. .Sh EXIT STATUS
  37. .Ex -std
  38. .Sh EXAMPLES
  39. .Bl -tag -width Ds
  40. .It Ql unicode -n hello
  41. Print unicode values of characters in the string "hello"
  42. .It Ql unicode 2200-22f1
  43. Print a table of miscellaneous mathematical symbols.
  44. .It Ql unicode -t 03b3 03b5 03b9 03b1
  45. Prints
  46. .Ql γεια
  47. (with no newline,
  48. .Ql 0a
  49. wasn't given)
  50. .El
  51. .Sh SEE ALSO
  52. .Xr unicode 7
  53. .Sh AUTHORS
  54. .An Haelwenn (lanodan) Monnier Aq Mt contact+9utils@hacktivis.me