Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

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)
You can’t perform that action at this time.