SSTE (Super Simple Text Editor)

versatile 64-bit multi-user Linux distribution


Moderators: kirk, jamesbond, p310don, JakeSFR, step, Forum moderators

User avatar
stemsee
Posts: 894
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 201 times
Been thanked: 159 times
Contact:

Re: SSTE (Super Simple Text Editor)

Post by stemsee »

For the Markup function I will add format presets along the header of the document preview. These can be coppied to any part of the document to allow the user to edit with formatting. This means there will be a limited number of presets. However these can be defined by the user in markup options. The initial formatting will be saved in /root/sste/text and the text will be piped back into the main SSTE text editor for saving and for printing. While the user can also take a screenshot of the formatted text preview to print as an image or pdf (raw).

sstex-20250318T085915.png
sstex-20250318T085915.png (61.51 KiB) Viewed 1310 times

Edit: Ooh! I just had an idea ... explains the headache! :lol: ... the pango markup formatting is hidden from view in the preview, but in the main text editor it can be viewed and edited, then for re-combining markup and text, which get separated on save, the text for each different formatting section can be simply stored in a variable, $A $B $C $D $F $G $H .... etc and recombined on opening. Where $A='title' is underlined large bold text as in 'title', $B='body of text', etc. Formatting can also be stored in variables,

Code: Select all

TITLESPAN='<span font=\"$tfont\" fgcolor=\"$tfcol\" bgcolor=\"$tbcol\">'
BODYSPAN='<span font=\"$bodfont\" fgcolor=\"$bodfcol\" bgcolor=\"$bodbcol\">'
SMALLITALICSPAN='<span font=\"$sifont\" fgcolor=\"$sifcol\" bgcolor=\"$sibcol\">'
ENDSPAN='</span>'

"${TITLESPAN}${A}${ENDSPAN}"
"${BODYSPAN}${B}${ENDSPAN}"
User avatar
stemsee
Posts: 894
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 201 times
Been thanked: 159 times
Contact:

Re: SSTE (Super Simple Text Editor)

Post by stemsee »

Editable Markup Previewer

sstex-20250324T161026.png
sstex-20250324T161026.png (304.28 KiB) Viewed 1227 times

opens in a yad --form --field=:txt

User avatar
stemsee
Posts: 894
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 201 times
Been thanked: 159 times
Contact:

Re: SSTE (Super Simple Text Editor)

Post by stemsee »

update
fake .gz

SSTE.gz
(24.06 KiB) Downloaded 6 times

image list refreshes properly.
markup with presets is functional. text saves to /root/sste/text/markup-$date.txt

User avatar
stemsee
Posts: 894
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 201 times
Been thanked: 159 times
Contact:

Re: SSTE (Super Simple Text Editor)

Post by stemsee »

This adds move line up or down.
fake .gz

SSTE.sh.gz
(24.16 KiB) Downloaded 4 times
User avatar
stemsee
Posts: 894
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 201 times
Been thanked: 159 times
Contact:

Re: SSTE (Super Simple Text Editor)

Post by stemsee »

This adds a delete function and button for selected item in the list.

SSTE.sh.gz
(22.59 KiB) Downloaded 9 times
User avatar
stemsee
Posts: 894
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 201 times
Been thanked: 159 times
Contact:

Re: SSTE (Super Simple Text Editor)

Post by stemsee »

This update adds two features.
1) Checkbox added to preferences. 'image on right' - text editor on left and image list on the right!
2) A dual image column list. Side by side image list (screenshots). If you want text (image of text) and image arranged side by side or one above the other, just to display in a convenient, clear way, this might do it for you. File selector adds preview. You can load as many pairs as you like for a manual slideshow effect (auto adding later).
3) with gm (graphicsmagic) installed screenshots will be scaled according to the prefs field image scale max size which is the width, aspect ratio is maintained. This can be changed anytime using the Prefs dialogue. This function is available at the bottom of The Column. The selected images will be saved in an 'arrangement-$date.dl file in /root/sste/ . On activating the function a yad entry gui opens, input a number which sets the limit of the number of 2x1 rows to allow. If the number of entered is less than 5 ie 4 or less manual selection of each image is necessary (x2 for each row). If the number entered is 5 or above then an 'arrangement' file must be selected for auto line1 line2 loading. line1 is left image and line2 is right image. So, you could manually prepare an arrangement of images to load as needed. I will improve this function.

EDIT: gm import for screen grab creates blacked-out areas in the image, so switched back to xscreenshot.

SSTE.sh.gz
(24.66 KiB) Downloaded 5 times
sste-250415071625.png
sste-250415071625.png (285.11 KiB) Viewed 889 times
User avatar
stemsee
Posts: 894
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 201 times
Been thanked: 159 times
Contact:

Re: SSTE (Super Simple Text Editor)

Post by stemsee »

This update adds screenshot button to markup gui and side-by-side image viewer.
Fixes a bug in markupfn which yadi instead of yadu.
Side-by-side image viewer has some new code, including a dnd pane to drag and drop images to build a list which auto displays. In fact there are three modes. 1) open the dnd list. 2) open some other list. 3) select images one by one. The latter depends on rows being 4 or less. 2 depends on rows being 5 or more. 1 depends on whether or no images are dropped on the dnd to create the list in tmp.

SSTE.sh.gz
(26.38 KiB) Downloaded 4 times
User avatar
stemsee
Posts: 894
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 201 times
Been thanked: 159 times
Contact:

Re: SSTE (Super Simple Text Editor)

Post by stemsee »

Added a thumbnail viewer ... big thumbnails! 4x columns. Uses graphicsmagic to mogrify images to 400x.

sste-20250417T090600.png
sste-20250417T090600.png (191.84 KiB) Viewed 584 times
User avatar
stemsee
Posts: 894
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 201 times
Been thanked: 159 times
Contact:

Re: SSTE (Super Simple Text Editor)

Post by stemsee »

This thumbnailer and image viewer with dnd is working very fluidly on the fly. Even in the 4 columns gui images can load one by one across the width.
When viewing already made thumbnails drag one image file from the thumbnails or thumbs directory onto the dnd, the files will be viewed. Also for directories containing images that need to be thumbnailed, just dnd one image file. Thumbnails will be created in a subdirectory named thumbs.

Together with SSTE main gui, selecting an image in the list sends it to the thumbnail viewer. Or the side by side viewer for 2x A4 images .... this depends on your screen real estate I guess.

SSTE.sh.gz
(24.62 KiB) Downloaded 79 times
4row.thumbnails.png
4row.thumbnails.png (416.01 KiB) Viewed 543 times
User avatar
stemsee
Posts: 894
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 201 times
Been thanked: 159 times
Contact:

Re: SSTE (Super Simple Text Editor)

Post by stemsee »

I have set the uri handler to yad --html --browser
Together with tailscale vpn, I host a shared drive 'funnel' just a directory to the public web, if i symlink documents, images, gifs or videos into the funnel directory I can then get the links from the browser and include them in SSTE documents, just click to open. Otherwise yad --text-info docs cannot have links to local media files.

EDIT: I created a script called resolver. I set the uri handler in yad to /usr/sbin/resolver. Resolver finds the linked file in /mnt/sda2/funnel and opens it with whatever i put in resolver script ... any local file can be given a fake link prefix, which can be substituted out for the local path.

Code: Select all

#!/bin/sh
cd /mnt
File=$(echo "$1" | sed -e 's|https:/|/mnt/sda2/funnel/|')
vlc "$File"
Attachments
sste-20250429T095247.png
sste-20250429T095247.png (98.12 KiB) Viewed 381 times
User avatar
stemsee
Posts: 894
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 201 times
Been thanked: 159 times
Contact:

Re: SSTE (Super Simple Text Editor)

Post by stemsee »

SSTE text editor was getting messy with the code adding text which got repetitive ... sorry about that!

Now SSTE has four modes
1) TH text ed left and html pane right.
2) TL text left images list right
3) TP text left single image List on right
4) HH 2x html browser panes side by side.

yad --html handles pdf video websites images audio text docs ... so much, and very well. As a file explorer just drag a directory onto it.

TP text and single image - with dnd box which formats files with EDIT: files with (file:// are also functional as links to local files if file exists).... https:/ prefix, which is the minimum to get link functionality in text-info. The 'link' is then sent to the text editor, where it is recognised as a uri link. the link resolver script is builtin. - redundant - already supported :oops:

On clicking the link the image is viewed in the right pane. The image is re-scaled in /tmp with ffmpeg . Videos and other files open in a floating yad --html.

Attachments
sste-20250430T043559.png
sste-20250430T043559.png (71.33 KiB) Viewed 343 times
sste-20250430T042028.png
sste-20250430T042028.png (240.46 KiB) Viewed 343 times
Last edited by stemsee on Sat May 03, 2025 5:07 am, edited 1 time in total.
User avatar
stemsee
Posts: 894
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 201 times
Been thanked: 159 times
Contact:

Re: SSTE (Super Simple Text Editor)

Post by stemsee »

Screen grab of working file links.

grab-20250430151205.mp4-20250430151300.gif
grab-20250430151205.mp4-20250430151300.gif (443.45 KiB) Viewed 304 times

This makes for a compelling option for a simple presentation tool, presenting audio, video, text and images or web.

Attachments
image.png
image.png (227.54 KiB) Viewed 307 times
User avatar
stemsee
Posts: 894
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 201 times
Been thanked: 159 times
Contact:

Re: SSTE (Super Simple Text Editor)

Post by stemsee »

SSTE now provides math in text and code in text.
Screen Recording with audio.
Removed GraphicsMagick dependency, and instead achieves the same functions with ffmpeg.
Preferences set uri link color.

Attachments
sste-20250502T124027.png
sste-20250502T124027.png (42.21 KiB) Viewed 223 times
sste-20250502T123152.png
sste-20250502T123152.png (140.75 KiB) Viewed 223 times
User avatar
stemsee
Posts: 894
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 201 times
Been thanked: 159 times
Contact:

Re: SSTE (Super Simple Text Editor)

Post by stemsee »

Removed xscreenshot (fatdog) dependency.

Screenshot is now taken with ffmpeg. I am looking at options to make this work with wayland, i guess xwayland should be ok....or?

Navi-Pad has three more buttons. These are dictionary lookup and grammar - moved from The Column. Also Evaluate for math and code in text.

Added an icon/logo.

Attachments
sste-250503145612.png
sste-250503145612.png (39.96 KiB) Viewed 130 times
sste-20250503T030332.png
sste-20250503T030332.png (5 KiB) Viewed 130 times
Post Reply

Return to “FatDog64”