Skip to content

Adds support for Emojis and HTML, LaTeX, Unicode entities to StrLiterals

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE.md
Notifications You must be signed in to change notification settings

JuliaString/StrEntities.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StrEntities

contributions welcome

Julia Version Unit Tests Coverage
Julia Latest

StrEntities extends the string literals provided by the StrLiterals package. It adds support for HTML, LaTeX, Unicode and Emoji entities, provided by the packages:

This adds four ways of representing characters in the literal string, \:emojiname:, \<latexname>, \&htmlname; and \N{UnicodeName}. This makes life a lot easier when you want to keep the text of a program in ASCII, and also to be able to write programs using those characters that might not even display correctly in their editor.

  • \< followed by a LaTeX entity name followed by > outputs that character or sequence if the name is valid.
  • \: followed by an Emoji name followed by : outputs that character or sequence (if a valid name)
  • \& followed by an HTML entity name followed by ; outputs that character or sequence (if a valid name)
  • \N{ followed by a Unicode entity name (case-insensitive!) followed by a } outputs that Unicode character (if a valid name)