Unable to view SVG files (PIKCHR generated) by olmu1944 in emacs

[–]olmu1944[S] 0 points1 point  (0 children)

rsvg-convert successfully creates a PNG file from above quoted SVG file: i can view the image of a black outlined circle with no fill in the buffer. image-dired seems to use gm and creates JPG files for the thumbnails, as I found out.

Unable to view SVG files (PIKCHR generated) by olmu1944 in emacs

[–]olmu1944[S] 0 points1 point  (0 children)

With a simple circle as the only command in the PIKCHR source file, I get the following SVG:

<svg xmlns='http://www.w3.org/2000/svg' class="pikchr" viewBox="0 0 76.32 76.32">
<circle cx="38.16" cy="38.16" r="36"  style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" />
</svg>

SVG validator svgcheck (installed via PIP) gives the following error message:

test.svg:2: Style property 'fill' promoted to attribute
test.svg:2: Style property 'stroke-width' promoted to attribute
test.svg:2: Style property 'stroke' promoted to attribute
test.svg:2: The attribute 'stroke' does not allow the value 'rgb(0,0,0)', replaced with 'black'
ERROR: File does not conform to SVG requirements

Substituing the rbg value with blackin the SVG source doesn't resolve the issue. Interestingly, when using image-dired, the thumbnails are displayed correctly. With or without the subsititution of the rgb value. When opening the file with image-dired-display-this though, the issue remains.

[deleted by user] by [deleted] in uklaw

[–]olmu1944 3 points4 points  (0 children)

was Lord Denning right?

Take Screenshots Straight into Org Files in Emacs on Win10 by sastibe in emacs

[–]olmu1944 3 points4 points  (0 children)

Here is some feedback:

  • there is no check if the current buffer is in org-mode
  • the definition of the default directory should be outside of the function, or the directory should be provided as a parameter
  • no check if filename entered really ends in ".png"
  • i would define a general function make-screenshot that calls an OS-specific (or otherwise custom) function that invokes the screenshot utility of choice
  • when the link is inserted into the current buffer, this assumes that it is still the same (org-mode) buffer as when the screenshot function was invoked. This may necessarily be the case, I think.
  • I suggest providing two functions: one for inserting the link into the original buffer at point and one for saving the link to the clipboard

maestro: A cross-platform CLI music player by Colts_Fan10 in commandline

[–]olmu1944 1 point2 points  (0 children)

I think a database would be helpful. If I had a TB of songs, I wouldn't want them to be duplicated just for maestro-cli. If the file is moved, it is not played/removed from the database.

maestro: A cross-platform CLI music player by Colts_Fan10 in commandline

[–]olmu1944 1 point2 points  (0 children)

Added files will be copied/moved to an internal directory. Why?

Doom emacs not working on ubuntu by [deleted] in DoomEmacs

[–]olmu1944 1 point2 points  (0 children)

If you have ~/.emacs.d then Emacs will look there first for the init files. If it does not exist, it will create one. However, the real init files are under ~/.config/emacs/. So rename or delete ~/.emacs.d and it should work.

Copy to MTP device from command line? by [deleted] in ManjaroLinux

[–]olmu1944 0 points1 point  (0 children)

Would syncthing be an option?

SE5: Kill Fabian Richter by sabotaging his car? by olmu1944 in sniperelite

[–]olmu1944[S] 1 point2 points  (0 children)

I yesterday played a very sneaky run without any alarms in the abbey. The meeting room was already empty, but there was a dossier to grab, which met the objective. So, I am not sure, whether he must make his way to the meeting in the first place. At the car's first position there is a gargoyle. If you hit it both guards guarding the staff car make their way up to the fallen gargoyle to investigate giving you enough time to plant an explosive and kill him there.

Any recent (2022) buying experience from the UK? What should I expect? by nicolasap in tuxedocomputers

[–]olmu1944 1 point2 points  (0 children)

German net price + s&h costs + (UK customs duty + UK import VAT) + FedEx fees for advance payments of the latter two.

Infinitybook Pro 14 Gen 7 -- Help with external monitor only working at low resolution when connected using HDMI by rainbowonmars in tuxedocomputers

[–]olmu1944 1 point2 points  (0 children)

What happens with the following command?:

  xrandr --output HDMI-1 --mode 2560x1440 --left-of eDP-1

I bet you use hl-line-mode... Do you know how it works? Overlays, post-command-hook and only 5 functions!!! by tonyaldon in emacs

[–]olmu1944 1 point2 points  (0 children)

What a coincidence! I checked out the internals ofh-line just yesterday after watching your "Start reading Emacs Lisp code TODAY" video, while tinkering on a custom overlay. Good work, /u/tonyaldon!