Hello,
Sometime ago Nikola’s emoji plugin became unusable since the site which
was provided emojis went down, I was exploring other possiblities since
in one site we are using emojis a lot…
The only real competitor to Nikola is, imho, Hugo and I’ve discovered
that it curently provides two features which I’d like to see in Nikola.[1]
One feature is emoji plugin itself - in Nikola one cannot use them
elegantly, while Hugo solves it by using the package defining map[2]
between emoji names (as defined by Emoji cheat sheet[3]) and Unicode
characters, so my proposal that something like that would be better
option in the long run…
I tried to use something like:
.. |smile| unicode:: U+1f604
This is smile |smile| emoji.
in Nikola/rst, but, similar to the current emoji plugin, its scope is
onlyas role for restructured text, so probably better option would be to
have it as shortcode?
Another nice option which has recently landed in Hugo is direct support
for using Emacs’ org-mode markup for writing content by using native Go
parser[4] for org-mode. This enables one to have correct org-mode markup
for the whole content - similarly to the case when one uses rst in
Nikola when content’s metadata are valid rst markup.
So, I wonder if something similar could be done when using org-mode with
Nikola?[5]
One option is to use Pandoc for converting orgmode –> rst or org-mode’s
ox-publish mechanism[6]…
The question remains whether rst is still the best markup to be used for
Nikola in order to have content written in valid (rst) markup which is
not ’spoiled’ by front-matter data?[7]
Sincerely,
Gour
Footnotes:
[1] In order to contribute to Hugo, I’d have to learn Go, but I
consider that Python is nicer language to code in and also much more
useful to have in my arsenal considering that several important programs
I use are Python-powered.
[2]
https://github.com/kyokomi/emoji/blob/master/emoji_codemap.go
[3]
https://www.webpagefx.com/tools/emoji-cheat-sheet/
[4]
https://github.com/chaseadamsio/goorgeous
[5] The only python tools related to org-mode which I’ve found is
https://github.com/bjonnh/PyOrgMode, but no idea if it could help for
Nikola & org-mode support?
[6] by using
https://github.com/masayuko/ox-nikola
[7] I’m regular Emacs/org-mode user, so ability to use it for my other
writings as well would reduce the need of ’changing gears’ between
several markups…
--
One who works in devotion, who is a pure soul, and who controls
his mind and senses is dear to everyone, and everyone is dear to
him. Though always working, such a man is never entangled.