Poetry in Gemini
acdw acdw at acdw.net
Tue Jan 26 15:41:38 GMT 2021
On 2021-01-25 (Monday) at 21:23, Miguel de Luis Espinosa <enteka at fastmail.com> wrote:
> In HTML, out of desperation, I created my own tags <verso> and <estrofa>
> and some CSS for quite basic stuff. Not saying it's kosher, though.
>
> But the thing is that amphora (haven't tested elsewhere) does respect
> the spacing
> even when it's at the beginning of the line, even in regular gemini
> text (i.e not
> preformated). However the proxis fail at this.
>
> I feel like the web forgot poetry, perhaps Gemini could do better. The
> potential is there.
Despite the danger of throwing this off-topic, here's how I mark-up poetry on my website (mostly; I'm correcting some things here):
```html
<p class="verse">
<span class="line">Twinkle, twinkle little star</span>
<span class="line">how I wonder what you are</span>
...
</p>
```
```css
.verse .line {
text-indent: 1ch;
margin-left: -1ch;
position: relative;
left: 1ch;
display: block;
white-space: pre-wrap;
}
```
I like having each line in a <span> because it feels more ... semantic, that way.
--
~ acdw
acdw.net | breadpunk.club/~breadw
Archive home | About this archive