News for hackers. Stuff that matters.
Re:Libre Desktop Publishing by JasonFruit on Tuesday April 05, 2022 @07:06PM (#30926297)
I compiled and typeset a hymnal of over 800 hymns using Lilypond, SQLite and Scribus, and the ability to automate the rough setup with Python scripts and then polish the layout by hand saved me probably a year's work. I would absolutely use Scribus if I ever again launched into such an impossibly huge project. It was a great experience, and the result was all I could have hoped.
Re:Libre Desktop Publishing by filmor on Wednesday April 06, 2022 @06:59AM (#30930661)
Ha, I did a (much smaller) project combining Lilypond and Scribus as well. My patch for this (https://bugs.scribus.net/view.php?id=14723) is still stuck in limbo, doesn't look like they are going to apply it any time soon.

In what format did you embed the Lilypond output? I tried it first as EPS, but the print result was really disappointing because Scribus (at the time at least) rasterised EPS instead of actually embedding the vector graphics.

Re:Libre Desktop Publishing by JasonFruit on Thursday April 07, 2022 @07:56PM (#30951755)
I don't recall. I do remember that the build script included a format conversion.
Re:Libre Desktop Publishing by themodelplumber on Tuesday April 05, 2022 @08:05PM (#30926763)
Was the automation done using some kind of Scribus-supported layout format?
Re:Libre Desktop Publishing by JasonFruit on Tuesday April 05, 2022 @08:39PM (#30926998)
I'm honestly not quite sure what you're asking; there were a few (almost literally) stereotyped page layouts, which I was able to fill from a database, setting typefaces and sizes. That way, I got pages with the layout, tune image, and text, and I only had to adjust hyphenation to my liking and slug the text to fit the columns nicely.
Re:Libre Desktop Publishing by themodelplumber on Tuesday April 05, 2022 @08:43PM (#30927024)
Database --> ? --> Layout with data in it

Could you clarify those middle steps? Or even just name the technologies or formats used. Thank you.

Re:Libre Desktop Publishing by JasonFruit on Wednesday April 06, 2022 @12:39AM (#30928542)
I see what you're asking. Scribus exposes an API (Scripter) that can do, though not everything Scribus' UI provides, a whole lot.
Re:Libre Desktop Publishing by timClicks on Tuesday April 05, 2022 @11:25PM (#30928147)
Scribus uses XML as its native file format. So anything that can produce text can produce a file that can be understood by Scribus.
Re:Libre Desktop Publishing by silvershell on Tuesday April 05, 2022 @08:16PM (#30926833)
Very interesting. I had thought of going that route when thinking of compiling a songbook, but wondered if simply going with LaTeX, would be better. Anyway, my project never materialized. From what I've read, the python scripting is very empowering... I'm curious to learn more details about how you got this project done. You can private message me if you prefer.
Re:Libre Desktop Publishing by JasonFruit on Tuesday April 05, 2022 @08:35PM (#30926969)
My email is in my profile information, and I'd be glad to give more detail if you write me.