Fork me on GitHub
#clojure-europe
<
2023-12-06
>
dharrigan08:12:15

Good Morning!

ray08:12:03

Good morning

❤️ 1
thomas08:12:56

mud!

💯 1
Mario Trost11:12:14

Finally trying out overarch today between other tasks, thank you for creating it 🙏

❤️ 1
Ludger Solbach14:12:49

Feedback on your experience is very welcome. Overarch is still in active development (as time permits) and I really love to have some external input. Also discussions with clojure minded users will be really helpful.

1
Mario Trost05:12:48

I’m taking some notes and will send them your way when I’m done. Right now nothing’s blocking me, so that’s cool 🙂

Ludger Solbach08:12:20

actually looking into the source, I've already implemented a no-legend option. 🤫 Add a {:spec {:no-legend true}} in the view definition.

😄 1
Mario Trost09:12:26

I won’t tell anyone 😄

Mario Trost09:12:45

And to tell you a bit more about my use case: The diagrams are part of a pitch and the potential customer doesn’t like English words. It’s great being able to define some elements with English names and descriptions and then overriding them with German translations in other places. As I didn’t dig into how to change the legend, I figured I could just hide it. And it wasn’t blocking because cropping the resulting diagrams was quick enough (only 4 diagrams).

Ludger Solbach09:12:18

Clojure to the rescue. 😀 Overriding some information in the views is really useful. I use it for example to render parts of the internal system as external, when they are not the current focus of the view.

1
🙌 1
simongray11:12:02

I have a rather annoying issue. I have a bunch of XML that needs to be displayed as HTML on separate pages. The XML is not structured as pages, though; rather, page breaks are randomly inserted inside every possible element, so in order to restructure this properly, I think I will have to zip through the tree structure doing a depth-first search and then split it every time I encounter a page break element, copying the entire structure all the way to the top every time for every split… Sorry for rubber-ducking….

Mario Trost11:12:41

No need to say sorry, that's one of the things this channel is for (plus other stuff)

jackrusher11:12:26

Might there be any other (initially inobvious) structural invariants that would make this task easier?

emilaasa11:12:59

Does it work to stupid-string-split it?

emilaasa11:12:42

Doesnt sound like it 🙂

simongray11:12:39

@U07SQTAEM doesn't seem so. The page break elements will literally occur anywhere, including in the middle of words. The XML seems to have been created in a single pass. The page break elements correspond exactly to where the source texts are split, so they are inserted in the right places, it's just inconvenient to recreate as anything other than a single page.

simongray11:12:20

Anyway, if I can create some kind of Hiccup/XML split-with function, then I'm sure it can be reused in future projects... Guess I need to get to work.

simongray11:12:50

@U6T7M9DBR Nope, there is an undefined depth at any page break point, so structural information and styling needs to be preserved, e.g. if the split occurs in the middle of a word, in the middle of a sentence, in the middle of a paragraph, and so on, the entire tree up to the root needs to split and elements before and after copied into left-right.

Ludger Solbach14:12:17

I hope, you can make something better than garbage in, garbage out.

otfrom18:12:38

we do get good sunsets here occasionally https://photos.app.goo.gl/GBkoJqtCxR8kiaYZ8

😃 3
👍 2
😍 2