Posts

Using Visual Studio Code to write scores in LilyPond.

Image
title: "Using Visual Studio Code to write scores in LilyPond." date: 2024-02-11 slug: vscode-lilypond categories: Blog tags: VSCode LilyPond image: placement: 3 preview_only: false caption: 'LilyPond and Visual Studio Code' Abstract: Visual Studio Code is an excellent integrated environment for writing programming codes, but can it also be used as an editor for the LilyPond language dedicated to writing music? 1. Previous articles on editors for LilyPond. 2. Original Visual Studio Code or Code - OSS? 3. Installation of the VSLilyPond extension. 4. Using VSCode with the VSLilyPond plugin as an IDE for LilyPond. 5. Concluding remarks on VSCode as an IDE For LilyPond. 1. Previous articles on editors for LilyPond. On the subject of writing musical scores using LilyPond, a markup language equivalent to LaTeX for lyrics, I recall my previous articles devoted to Emacs and Vim , respectively: Using Emacs to...

Automatic generation of hyperlinks in LaTeX environment, using Vim's Regular Expressions, between PDF documents.

Image
Vim is an editor with endless capabilities. It can also generate hyperlinks in LaTeX language to other locally stored documents, thanks to its built-in Regular Expressions. For lawyers, this means linking a legal document with its related evidentiary materials. This is the analysis of the procedure. 1. Subject of this article. 2. Main document configuration. 3. RegEx formula for automatic link generation. 4. Explanation of the RegEx formula. 5. Management of "underline character". 6. Links within the text 6.1. "Indirect linkage" solution: 6.2. "Direct link" solution: 1. Subject of this article. Sometimes it is necessary to include in a main PDF document a list of documents to be retrieved with specific hyperlinks dedicated to each item in the list. For example: judicial acts with reference to related document productions. In this article I deal with the automatic generation of hyperlinks in LaTeX by Vim using...

From Text Objects in Vim to Text Blocks in Gutenberg for WordPress.

Image
1 Examples of “text objects” in Vim. 2 Examples of text blocks in Gutenberg. 3 Vim and Gutenberg together. 4 In conclusion. {{% toc %}} ## About Vim and Gutenberg . Vim is a command-line editor . Gutenberg for WordPress is a visual editor. Vim was created in 1987, as an evolution from the earlier Vi. Gutenberg has become the default editor for WordPress since version 5.0 of the CMS, released on November 27, 2018 . They are chronologically and structurally very distant writing tools. But despite the differences, there are also some similarities. Vim allows writing by treating text as an “object.” Gutenberg allows writing by treating text as a “block.” Vim’s “text objects” can be edited or moved “in bulk.” The same happens, of course, with Gutenberg’s “text blocks.” The principle of “block writing” has origins far back in time: Vim is the first example. Gutenberg the last. 1 Examples of “text objects” in Vim. Text objects ca...

Linux: rename, rename.ul, prename, perl-rename: what a confusion!

Image
1 Summary of this article. 2 One for all: mv . 3 The rename command: this is where the problems begin! 4 How does the rename command behave that is NOT compatible with regular expressions? 5 The regular expressions compatible commands. 6 The “ sed ” command in GNU/Linux. 7 Using regular expression compatible commands. 1 Summary of this article. In this article I report some observations on how to rename documents in GNU/Linux using text commands, clarifying some differences between various distributions. The rename command does not, in fact, have unique behavior in distributions derived from Debian versus those derived from Fedora and Arch. I will try to clarify the content of different commands and the different behavior of commands that have the same name. All steps were personally tried during the writing of the article. If you find inaccuracies or errors, please let me know. 2 One for a...

Two open-source solutions for framing images

Image
1 What is the topic of this article? 2 The “digiKam” application: from single to serial decoration. 3 Decorating from the command line with ImageMagick. 4 Batch framing with ImageMagick. 1 What is the topic of this article? In this article, I describe two simple methods for decorating both single and multiple images with an outline frame, using two open-source resources in the GNU/Linux operating environment. The first solution uses a graphics application. The second, on the other hand, is command-line. Adding a frame to images is very useful in excerpts of documents published on sites and blogs. In these cases, in fact, adding a border serves to “detach” documents published as images from the base document in which they are published. The following are some of my articles with documents published as images and decorated with borders: Notes on resolving differences between two documents with the built-in ...

LaTeX: some considerations on font size

Image
1 LaTeX: class definition, standard classes and font sizes. 2 What are the font-sizing commands in LaTeX? 3 When are character sizing commands used in LaTeX? 4 How do you use the character sizing commands in LaTeX? 5 The alternative classes of the KOMA-Script project. 1 LaTeX: class definition, standard classes and font sizes. In LaTeX, the term “class” refers to a predefined or custom document type that determines the general layout , style, and options available for formatting a document. The classes in LaTeX are identified by the file extension .cls and provide the basic instructions for document structure. The main features of a class in LaTeX relate to the page format as well as the style of the title, of the sections and text. The standard LaTeX classes are article , report , book and letter . To use a class in LaTeX, it is necessary to declare it in the preamble of the document using the command ...

Powerful OCR system under GNU/Linux for PDF documents managed from command line and with refinement by Vim.

Image
1 Introduction. 2 The installation of components. 3 OCR of PDF documents with “tesseract”: description of steps. 4 The single steps. 5 Everything in one command! 6 And now: Vim with RegEx. 7 In Conclusion. {{% toc %}} 1 Introduction. The idea came from reading this article about optical character recognition (OCR) in the GNU/Linux environment from images and PDF, managed from the command line. Obviously, PDF documents are those scanned from paper original, i.e., not obtained by direct saving of document in digital format. For the latter, no OCR is needed. The article is very well written and the end result is very good. I wondered if it would be possible to aggregate all the steps into a single text command. In this article I report my solution. Next, then, I added some con RegEx steps by Vim to reformat the raw result of optical recognition. Again, I tried to combine several separate formula...

Notes on resolving differences between two documents with the built-in resources of Vim and Emacs

Image
1 What are we talking about? 2 The test documents. 3 Vim and the vimdiff function. 4 The “vimdiff” interface. 5 Emacs and the “ediff” function. 6 How do you use ediff ? 7 The “ediff” Interface. 8 Summary table. 1 What are we talking about? In this article, I report my practical experience on how to use the built-in resources of Vim and Emacs to resolve and undo differences between two documents. In fact, I’ve occasionally updated two documents in such a “messy” way that I could no longer remember which updates to keep on one and the other. Both Vim and Emacs offer very simple and effective built-in tools for checking and resolving such differences. All operations were performed in a GNU/Linux environment, specifically Ubuntu and Arch. I do not mention any additional plugins in the article, although they exist, and I do not address the issue of version control with git . There is no “merit opinion” on the two writing systems, just a concise exposition of t...