dear lazyweb, pandoc 🐼⚕️ 

To save me having to write/adapt one, anyone know if there's a #Pandoc filter to turn *raw* utf8 #emoji into appropriately fonted {Xe, #Lua} #LaTeX for PDF generation? I know about gist.github.com/zr-tex8r/a5410 and it does a good job for +emoji and :sequences_like_this: that pandoc knows about

if not, I'll just need to learn pandoc filters I guess, and bodge it into that thing

Also, a regex or codepoint sequence matcher for emojos :twilightfacehoof:

@g1comics I've been reeeally close to trying to learn Lua... not for anything emulation-related like I thought I would, but for design work that Pandoc would be perfect to help with.

@ElectricKeet heh. It's a simple enough language, but it turns out that emoji matching needs a fairly complex regex, and Lua utf8 processing is a massive pain generally.

Also the :walk() method I need to support mixed topdown and typewise traversal needs near-bleeding-edge pandoc (by Debian standards), and I don't want to develop for things in unstable really :ponenerd: So I guess I'll be using a Python module instead and going the JSON pipeline route for the filter. Oh well

@g1comics I keep seeing that Lua's Unicode support is kinda terrible, but the pandoc documentation also seems to consider the Python and Haskell filters to be the worse options for many other reasons, so... *shrug* I think they've undervalued UTF-8 support. :)

· · SubwayTooter · 0 · 0 · 1
Sign in to participate in the conversation
Awoo Space

Awoo.space is a Mastodon instance where members can rely on a team of moderators to help resolve conflict, and limits federation with other instances using a specific access list to minimize abuse.

While mature content is allowed here, we strongly believe in being able to choose to engage with content on your own terms, so please make sure to put mature and potentially sensitive content behind the CW feature with enough description that people know what it's about.

Before signing up, please read our community guidelines. While it's a very broad swath of topics it covers, please do your best! We believe that as long as you're putting forth genuine effort to limit harm you might cause – even if you haven't read the document – you'll be okay!