norden.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Moin! Dies ist die Mastodon-Instanz für Nordlichter, Schnacker und alles dazwischen. Folge dem Leuchtturm.

Administered by:

Server stats:

3.5K
active users

#pandoc

0 posts0 participants0 posts today

Verflixt und zugenäht noch eins …

Ich möchte doch nur, dass #pacman auf einem Schlag alle #haskell-Pakete entfernt. Aber offensichtlich bin ich unfähig, den richtigen Befehl einzugeben. Zumal sich #fish beim * immer als zickige Diva aufführt. Aber selbst beim Wechsel zu #bash beschwert sich pacman, nichts finden zu können.

sudo pacman -Rns haskell-\*
sudo pacman -Rns haskell\*

sind zumindest falsch. Mich nervt aber auch, dass haskell bei der Installation von #pandoc aufs System kam und "sudo pacman -Rns pandoc-cli" zwar einige haskell-Pakete entfernte, aber eben nicht alle. #Arch #ArchLinux

Hmmm, unexpected Pandoc issue: when converting from ODT to HTML, single words in italics are correctly carried over, but entire paragraphs in italics are not.

No idea why; the content.xml inside the .odt assigns each paragraph its own style inside the <office:automatic-styles> tag, and the styles for the italicised paragraphs correctly say <style:text-properties fo:font-style="italic" and all that. But Pandoc converts them into <p> elements without a style, and no <i> or <em> elements.

As a book translator I spend my days working with texts. Also it means I have to deal with user-hostile file formats like docx. Because editors, designers...
My long-time friend was LibreOffice. I used it since version 5.something. It's a great alternative to Microsoft Office. But in other respects you have to put up with this huge bulky piece of legacy code that probably still has Sun engineers' souls trapped inside.
And I want to boast with my little personal victory. I have finally finished a book fully typed in #vim and #emacs (for the glory of both editors) in Markdown format and later processed via #pandoc to docx (with all required styles and formatting). I used LibreOffice only on the last stage to iron out some quirks and typos. It seems this workflow works.
Which means I don't have to use this huge and unhandy LibreOffice suite every day.
Now I want to figure out if I can use org format for my translations or should I stay with Markdown. Because it seems I like it here with Emacs.

🆕 #pandoc release 3.6.4
• The `--citeproc` option now automatically disables the `citations` extension in the writer
• Better error reporting when YAML block parsing fails in Markdown
• Fewer space characters when writing Markdown lists
• Many other fixes and improvements

github.com/jgm/pandoc/releases

GitHubRelease pandoc 3.6.4 · jgm/pandocClick to expand changelog Disable citations extension in writers if --citeproc is used (#10662). Otherwise we get undesirable results, as the format’s native citation mechanism is used instead of...

TeXLive 2024 was frozen a few days ago, and this always leads to issues with the pandoc/latex Docker images. We have pushed new images for the currently supported pandoc versions 3.5 and 3.6.3, and are in the process of updating 3.2.1, too.
#pandoc #docker

I think any large interesting program you might write could well have an embedded language within it, in which the user can write stuff that is just as good, and just as deep as built-in functionality. You want this. It’s a thing that makes programs compelling.

In #Vim, that embedded language is #VimScript. In #emacs, that’s #elisp (which in fact, I think the whole thing is written in). In a #smalltalk environment, you control the entire environment with Smalltalk, just as elisp applies to Emacs. For many, many things, that language is #lua ( #NeoVim, many games, #pandoc, #redis, this list goes on).

I used to think there were really two reasonable mainstream languages you could use here: #Python or #javascript. Between those two, for a long time I felt that JavaScript was the winner. I think that has changed as Python has gotten faster, more powerful, and better known. But also, I think the answer might actually not be either of these two. It might be Lua. Lua is simpler and faster than either JavaScript or Python. It’s more embeddable. It’s designed specifically for this purpose. It’s in much wider use as an embedded scripting language. I don’t want Lua to be the answer. I like Python better. But I think Lua actually is the right answer.

I'm happy to announce #notesbash v1.1.0 📑! New features include:
- A customizable export system to export your #markdown #notes using e.g. #pandoc
- a preview feature using the new term-open script, a #xdg-open like utility, but for the terminal
- a `.desktop` file for your favorite app-launcher
- completion scripts for #bash and #zsh
- the default extension set in the config is now used for all notes
codeberg.org/carmatani/notesba
#opensource #tui #terminal #foss

Codeberg.orgv1.1.0 - carmatani/notesbash## Changelog [notesbash v1.1.0](https://codeberg.org/carmatani/notesbash) ### New features - There is now a customizable export system to export your notes using e.g. pandoc, but you can write your own exporter if you like ([demo](https://codeberg.org/carmatani/notesbash#export-your-notes)...

@SimonRoyHughes Ah, that makes sense since most people today would probably just export to PDF.

I like EPUB since it lets me export to markdown to wikicode for personal annotations in #mediawiki via #pandoc.

If this were academia, I would suggest a LaTeX or TeXmacs source with macros that could handle the annotations and let readers export their own format to their liking.

Congratulations on assembling your books, though!

Das #Pandoc-Plugin ergänzt #Obsidian um einige wichtige Exportfunktionen. Die Installation ist etwas ungewöhnlich und erfordert zudem ein wenig Geduld ...

#ObsidianMD #PKM

mathoi.at/2025/03/03/das-pando

THOMAS MATHOI · Das Pandoc-Plugin für Obsidian - THOMAS MATHOIObsidian kann die damit erzeugten Markdown-Dateien lediglich als PDF-Datei ausgeben. Andere Exportfunktionen gibt es in der App nicht. Es besteht jedoch die Möglichkeit, Markdown-Dateien aus Obsidian mittels Pandoc in andere Text- und Dateiformate zu konvertieren. Alles was man dazu benötigt, sind eine externe Erweiterung für Obsidian und ein wenig Geduld. Pandoc ist ein quelloffener, universeller, bidirektionaler Konverter zwischen verschiedenen Textformaten. Dazu zählen unter anderem Markdown, HTML, LaTeX, EPUB, sowie das Open Document-Format oder das Word-Format. In Summe beherrscht Pandoc an die fünfzig Text- bzw. Dateiformate. Mit Pandoc ist es also möglich, ein in der Markdown-Syntax verfasstes Dokument via LaTeX in eine PDF-Datei umzuwandeln, oder im Open Document-Format auszugeben. Umgekehrt können mit Pandoc beispielsweise auch mit Microsoft Word erzeugte Dokumente in das Markdown-Format konvertiert werden, oder als E-Book im EPUB-Format ausgegeben werden. Pandoc ist allerdings keine App im gewöhnlichen Sinn. Es hat keine grafische Benutzeroberfläche, sondern läuft auf der Kommandozeile im Terminal. Für Obsidian gibt es eine externe Erweiterung, die wesentliche Pandoc-Funktionen zum Exportieren von Markdown-Dateien in andere Dateiformate direkt aus der App heraus und ohne …
Continued thread

Auch zu empfehlen ist übrigens die open source Software #Calibre (calibre-ebook.com). Damit kann man eBooks auch auf dem Desktop lesen, katalogisieren, konvertieren und bearbeiten.

Auch gut ist #Pandoc (pandoc.org/epub.html), damit kann man ebooks aus Ellen möglichen Formaten erstellen, aus Text, Markdown etc. Auch #opensource.

Und läuft natürlich auch unter #Linux.

calibre-ebook.comcalibre - E-book managementcalibre: The one stop solution for all your e-book needs. Comprehensive e-book software.

🆕 pandoc release 3.6.3! This is a bugfix release, but it comes with minor behavior changes:

• The way wikilinks are represented internally changed (marked via a "wikilinks" class instead of a title attribute).
• Babel support in the LaTeX writer changed in a way that should better support most European languages. Users of custom LaTeX templates may need to revise those.

Please see the changelog for more info.

github.com/jgm/pandoc/releases

GitHubRelease pandoc 3.6.3 · jgm/pandocClick to expand changelog Track wikilinks with a class instead of a title (Evan Silberman). Previously wikilinks were distinguished by giving them the title wikilink. Now that we have link attrib...

If you want to export a table out of #joplin into, for example, an .odt document, don't:

- export to PDF from Joplin, libreoffice will open the PDF as a drawing
- try to copy things with the mouse and right click — it doesn't work
- make a screenshot (people can't copy-paste text from it)

What I opted for was: copy (or export) the markdown into a markdown file, let #pandoc do the conversion directly:

pandoc -o output.odt input.md

Presto.