[ANN] Emacs org-mode to gemini export back-end

1. Γ‰tienne Deparis (etienne (a) depar.is)

Hi all

I?ve just pushed a first version of an org-mode export back-end for
gemini. It is based on the Markdown export back-end, but also requires
some functions from the Ascii back-end, both being provided by default
by org-mode.

The canonical repository is at https://git.umaneti.net/ox-gmi.el/
however, I also open a mirror on https://github.com/milouse/ox-gmi.el if
you prefer.

As always, all feedbacks will be welcomed, per email or on github :)

Have a nice day,

--
?tienne

gemini://alltext.umaneti.net/

Link to individual message.

2. cage (cage-dev (a) twistfold.it)

On Mon, Nov 30, 2020 at 12:56:40PM +0100, ?tienne Deparis wrote:
> Hi all

Hi!

> I?ve just pushed a first version of an org-mode export back-end for
> gemini. It is based on the Markdown export back-end, but also requires
> some functions from the Ascii back-end, both being provided by default
> by org-mode.

Wow, this  is just  great! I  already use org-mode  to export  my html
site, i could try to do the same in gemini format! :)

Any change this could be added to "official" org package?

Anyway, thank you for writing this! :)

Bye!
C.

Link to individual message.

3. Justin Abrahms (justin (a) abrah.ms)


?tienne Deparis writes:
> I?ve just pushed a first version of an org-mode export back-end for
> gemini. It is based on the Markdown export back-end, but also requires
> some functions from the Ascii back-end, both being provided by default
> by org-mode.


Very cool. I had a similar idea when I wrote ox-gemini which you can
find here: https://git.sr.ht/~abrahms/ox-gemini

I'll poke around on yours. I'd love to figure out how we can have one
package instead of two. :)

 -abrahms

Link to individual message.

4. Γ‰tienne Deparis (etienne (a) depar.is)

lun. 30 nov. 2020 ? 19:17, cage-dev at twistfold.it a ?crit?:

> On Mon, Nov 30, 2020 at 12:56:40PM +0100, ?tienne Deparis wrote:
>
> Wow, this  is just  great! I  already use org-mode  to export  my html
> site, i could try to do the same in gemini format! :)

Thank you very much for your warm comment!

>
> Any change this could be added to "official" org package?

I don?t think so: there is a lot of other export backend in the wild, it
would not make much sense to have one more than another and it would be
a pain for the org mode maintainer to always make sure a back-end is
still supported or not.

The best way to improve its distribution would be to make it available
on MELPA. I?m willing to do it at some point, but I?d prefer to have
some feedback before: there is no point to push an alpha-quality piece
of code on MELPA.

>
> Anyway, thank you for writing this! :)

Thanks to you!

--
?tienne

Link to individual message.

5. Γ‰tienne Deparis (etienne (a) depar.is)

mar. 01 d?c. 2020 ? 06:39, justin at abrah.ms a ?crit?:
> Very cool. I had a similar idea when I wrote ox-gemini which you can
> find here: https://git.sr.ht/~abrahms/ox-gemini

Thank you for your quick reply. I must admit I quickly searched around
the internet to look for some previous attempt, but didn?t find yours
(didn?t find any in fact).

>
> I'll poke around on yours. I'd love to figure out how we can have one
> package instead of two. :)

Yep, I?ll do the same to see if we can converge at some point or if both
approach are worth to exist :)

--
?tienne

Link to individual message.

6. Justin Abrahms (justin (a) abrah.ms)


>> I'll poke around on yours. I'd love to figure out how we can have one
>> package instead of two. :)
>
> Yep, I?ll do the same to see if we can converge at some point or if both
> approach are worth to exist :)

I spent a bit of time with yours yesterday. Mostly taking my gemini site
and seeing how ours compare. Here were my thoughts:


1. I link all of my documents with file: directives. Your links appear
to add `(file)` to the end of the link, which doesn't make a lot of
sense to me.

2. I like my linking behavior a little better (bias alert!)

3. I don't like how either of us output lists of links.

Source:
 ```org

 ```

Yours:

 ```gemini


=> example.org [1] link text
 ```

Mine:

 ```gemini


=> example.org link text
 ```

Ideal:

 ```gemini
=> example.org link text
 ```

4. Your renders dates oddly.

If I have `<2020-11-11 Wed>` in a post (org timestamp), it shows up as:

 ```gemini
<span class="timestamp-wrapper"><span class="timestamp">&lt;2020-11-11
Wed&gt;</span></span>
 ```

I'm guessing this is because you inherit from markdown and it pulls in
some unhelpful html escaping. Mine, by comparison, renders it as the
plaintext string `<2020-11-11 Wed>`.

That's what I got so far. Would love to hear your impression of mine.

 -abrahms

Link to individual message.

---

Previous Thread: Heads up about a Gemini client @ 198.12.83.123

Next Thread: Suggestion: ABNF in spec