Re: A simple Lua filter for Pandoc

2022-01-07 Thread Juan Manuel Macías
Max Nikulin writes: > Form my point of view it is not worse than "\slash{}" entities. Yes, I also use macros a lot, especially for more complex constructions. Macros, entities and other tricks have their pros and cons, but they allow me to have a certain group of characters under control. >> htt

Re: A simple Lua filter for Pandoc

2022-01-07 Thread Max Nikulin
On 06/01/2022 00:08, Juan Manuel Macías wrote: Max Nikulin writes: It seems, lightweight markup is more annoyance than advantage for you. Tom posted some thoughts on more rigorous syntax in the following message: It's generally the opposite: working in Org is a pleasant journey for me... exce

Re: A simple Lua filter for Pandoc

2022-01-05 Thread Juan Manuel Macías
Max Nikulin writes: > It seems, lightweight markup is more annoyance than advantage for you. > Tom posted some thoughts on more rigorous syntax in the following message: It's generally the opposite: working in Org is a pleasant journey for me... except when there are dozens of "/" and "*" in a d

Re: A simple Lua filter for Pandoc

2022-01-05 Thread Max Nikulin
On 04/01/2022 22:06, Juan Manuel Macías wrote: Max Nikulin writes: Ideally it should be done pandoc and only if it causes incorrect parsing of org markup. NBSP, probably, should be replaced by some exporters, I do not think, it is a problem e.g. in HTML files. The reason for this filter is my

Re: A simple Lua filter for Pandoc

2022-01-04 Thread Thomas S. Dye
Juan Manuel Macías writes: Hi, Very often I need to convert docx documents to Org. There are a series of characters that I prefer to be passed to Org as Org entities and not literally, so I have written this little filter in Lua for Pandoc. I share it here in case it could be useful to so

Re: A simple Lua filter for Pandoc

2022-01-04 Thread Juan Manuel Macías
Max Nikulin writes: > Ideally it should be done pandoc and only if it causes incorrect > parsing of org markup. NBSP, probably, should be replaced by some > exporters, I do not think, it is a problem e.g. in HTML files. The reason for this filter is my own comfort. Linguistics texts contains a lo

Re: A simple Lua filter for Pandoc

2022-01-04 Thread Juan Manuel Macías
Hi Timothy: Timothy writes: > I’m quite interested in this, thanks for sharing. In fact, I’ll probably add > this to . Interesting package. Until now I used a number of homemade functions to convert docx/odt files from Dired, but I think your packag

Re: A simple Lua filter for Pandoc

2022-01-04 Thread Max Nikulin
On 04/01/2022 17:14, Juan Manuel Macías wrote: Very often I need to convert docx documents to Org. ... local chars = {["/"] = "\\slash{}", ["*"] = "\\lowast{}", ["<"] = "\\lt{}", [">"] = "\\gt{}", ["†"] = "\\dagger{}", [utf8.char(0x00A0)] = "\\nbsp{}"} ... pandoc -f markdown -t or

Re: A simple Lua filter for Pandoc

2022-01-04 Thread Timothy
Hi Juan, > Very often I need to convert docx documents to Org. There are a series > of characters that I prefer to be passed to Org as Org entities and not > literally, so I have written this little filter in Lua for Pandoc. I > share it here in case it could be useful to someone. Of course, the >

A simple Lua filter for Pandoc

2022-01-04 Thread Juan Manuel Macías
Hi, Very often I need to convert docx documents to Org. There are a series of characters that I prefer to be passed to Org as Org entities and not literally, so I have written this little filter in Lua for Pandoc. I share it here in case it could be useful to someone. Of course, the associative ta