lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


2018-08-01 1:55 GMT+02:00 dyngeccetor8 <dyngeccetor8@disroot.org>:

> * string.reverse() (anyone used it?)

The project I am currently working on (reverse-engineering a PDF file
via XML to Markdown) uses it.

It has a routine that converts text formatted this way:

<text font=font7>The quick brown fox jumps over the lazy dog</text>

to this:

**_`The quick brown fox jumps over the lazy dog`_**

I assemble the starting markdown sequence from the font information
and then the ending is done by string.reverse.