Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sun 23 Sep 2018, 00:16
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
Make Concurrent Copies (and optionally label the versions)
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [17 Posts]   Goto page: 1, 2 Next
Author Message
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1564
Location: nyc

PostPosted: Wed 27 Jan 2016, 01:47    Post subject:  Make Concurrent Copies (and optionally label the versions)
Subject description: now also a tiny word processor (12-99 kb depending on version)
 

new subtitle to reflect update, this is the thread formerly subtitled "now as a pet and with more options and icons (lightweight labels)"
___________

i've changed the thread title from Easily Add Multi-Copy Ability To Your Pup to match the pet and avoid confusion with SFR's MultiCopyPaste-2.2; this is the thread originally subtitled Rox right-click, drag and drop, call through a terminal, add to a script) and then now (somewhat) improved as Make_Concurrent_Copies. see the pet in the linked/last post for current version.

_________

new and improved /shiny (older)


The following script will allow you to easily make multiple copies of files or directories and edit their count, and to some degree, the wording of the copies (presets are for sets of three and five starting as file2X.1--the dummy extension is so you can easily swap in actual extensions or delete them (easier to delete from the template than add the extension after the fact). rox's built in bulk rename function (access with a right click) will allow text replacement, positional addition, and selective deletion, but you can further fine tune the final names with SFR's Multi-Rename or whatever bulk renamer comes with your pup (usually gfnrename or prename)).
Code:

#!/bin/sh
echo $'
#!/bin/sh

echo $\'

#!/bin/sh


for f in "$@"{2..6}.X ; do cp -fRu "$@" $f ; done
#replace the .X with an extension or delete it.
#eg: {x..y[..incr]}{AA..ZZ..5}{x..a} {x..a..-2}

\' > ./Make_Copies


echo $\'
#!/bin/sh
 leafpad ./Make_Copies
\' > ./Make_Copies--edit_range

chmod 755 ./Make_Copies--edit_range ./Make_Copies

' > /root/my-applications/bin/5ce

chmod 755 /root/my-applications/bin/5ce


echo $'
[Desktop Entry]
Encoding=UTF-8
Name=
Icon=/root/puppy-reference/mini-icons/mini-pencil.xpm
Comment=make multiple copies of a file by drag and drop
Exec=/root/my-applications/bin/5ce
Terminal=false
Type=Application
GenericName=
Version=1.0
Categories=Utility
' > /root/.config/rox.sourceforge.net/Templates/5ce
echo $'
[Desktop Entry]
Encoding=UTF-8
Name=
Icon=/root/puppy-reference/mini-icons/mini-penguin.xpm
Comment=make multiple copies of a file by drag and drop
Exec=/root/my-applications/bin/5c
Terminal=false
Type=Application
GenericName=
Version=1.0
Categories=Utility
' > /root/.config/rox.sourceforge.net/SendTo/5c
echo $'
[Desktop Entry]
Encoding=UTF-8
Name=
Icon=/root/puppy-reference/mini-icons/mini-penguin.xpm
Comment=make multiple copies of a file by drag and drop
Exec=/root/my-applications/bin/3c
Terminal=false
Type=Application
GenericName=
Version=1.0
Categories=Utility
' > /root/.config/rox.sourceforge.net/SendTo/3c

echo $'
#!/bin/sh
for f in "$@"{2..6}.X ; do cp -fRu "$@" $f ; done
#replace the .X with an extension or delete it.
#eg: {x..y[..incr]}{AA..ZZ..5}{x..a} {x..a..-2}
' > /root/my-applications/bin/5c

echo $'
#!/bin/sh
for f in "$@"{2..4}.X ; do cp -fRu "$@" $f ; done
#replace the .X with an extension or delete it.
#eg: {x..y[..incr]}{AA..ZZ..5}{x..a} {x..a..-2}
' > /root/my-applications/bin/3c

chmod 755 /root/my-applications/bin/3c /root/my-applications/bin/5c


The script places three desktop files in two folders used by rox for right click functions. the one that's accessible in the New menu will create two files in whatever folder it's clicked or activated. one is Make_Copies--edit_range, which opens the drag and drop file (Make_Copies) for you to edit. they're disposable and can be renamed and modified for portable use. the other two are in the Open With menu, which allows them to function as right click utilities--right click an item (file of folder--it updates and overwrites recursively so make sure you don't have identically oddly named files hanging about when you activate it if you want to keep older versions) and pick either 3 or 5c, both of which you can access for editing (or copy and alter to add other presets) by right click > Open With... > Customise. 5c (or 3c) /path/to/file will make multiple copies of the file according to the presets. entering 5ce (5c, edit) into a terminal will create the scripts Make_Copies and Make_Copies--edit_range in your current directory. "edit range" is set to open the other document in leafpad--you can adjust the script and watch it create the files, altering as necessary. if you edit the desktop files in geany, you can right click open (or shift plus control plus o) the target (which isn't as convenient as 5ce).

it's working well. wish i needed to copy more stuff.

Laughing

Last edited by Puppus Dogfellow on Wed 30 Aug 2017, 02:29; edited 7 times in total
Back to top
View user's profile Send private message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 13013
Location: Arizona USA

PostPosted: Wed 27 Jan 2016, 21:22    Post subject:  

Could you give us a screen capture of it in action so we can see what it does?
Back to top
View user's profile Send private message 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1564
Location: nyc

PostPosted: Thu 28 Jan 2016, 12:41    Post subject:  

Flash wrote:
Could you give us a screen capture of it in action so we can see what it does?







it was actually more difficult than i anticipated (photobucket froze on the second gif--the google drive shots are apparently not in a forum friendly format?), but, sure, no problem, Flash.

shots show the editable version being called through the terminal of a gexec/pexec type launcher (flashed off too quick, but that's why the two scripts appear in the top gif--5ce is the code for it) and desktop icon version that does the same thing--autogenerate two scripts in your current directory. stuff is dragged to the script and instantly copied, the file gets edited to make eight copies, the thing is rerun, the copies appear. the second gif shows me moving around the cursor like an imbecile, but it may add a bit more detail to the overall picture.

hth

(upon review, my timing of the shots was worse than i thought). Confused

Very Happy


forgot to expand the windows so you could better see the copies, but you can tell the folders are expanding by the scroll bar grab handles' shrinking.
Back to top
View user's profile Send private message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 13013
Location: Arizona USA

PostPosted: Thu 28 Jan 2016, 21:51    Post subject:  

Thanks. Smile
Back to top
View user's profile Send private message 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1564
Location: nyc

PostPosted: Tue 03 May 2016, 22:52    Post subject: Make_Concurrent_Copies--the folder or presets version
Subject description: seems like an improvement to me
 

Flash wrote:
Thanks. Smile


you're welcome, Flash.

here's another version of more or less the same thing (though i think it may be a little more user friendly).

Make_Concurrent_Copies.tar.xz

from the info file:
Quote:

to use Make_Concurrent_Copies, give a shortcut key to the mcc script in the compressed folder and/or place it in /root/my-applications/bin, and move or copy the /mc directory to /root/my-applications (clicking the install script will do the moving, but it won't set a shortcut key for you). rather than generating an editable script in the working directory like the previous version, the newer one pops open a rox folder (you could edit "mcc" to open the file manager of your choice) with 66 make-copy presets (file types listed below--it's 33 set for 5 copies made when a file or files are dragged and dropped and 33 set for 3 copies). if you're happy with the number and file type, just symlink the correct item from the popup to the directory containing the file(s) to be copied, then drag and drop. if you need to adjust either the number or extension/name, you'll have to copy the file into the directory before the editing and activation (unless you want to give the new file a more permanent home in /root/my-applications/mc/mcc so that in the future it presents itself along with the other defaults). the compressed folder (12kb) includes mcc (script for the mcc folder popup), this info page, the install script, and mc, which contains a folder of icons and a folder of scripts:

3avi 3gif 3mp4 3ppt 3text 3xlsx 5doc 5mkv 5odf 5san 5wav
3bmp 3html 3mpeg 3pptx 3tiff 3xml 5docx 5mon 5odt 5ser 5wmv
3dir 3jpg 3mpg 3rtf 3txt 3xpm 5flv 5mp3 5png 5svg 5xls
3doc 3mkv 3odf 3san 3wav 5avi 5gif 5mp4 5ppt 5text 5xlsx
3docx 3mon 3odt 3ser 3wmv 5bmp 5html 5mpeg 5pptx 5tiff 5xml
3flv 3mp3 3png 3svg 3xls 5dir 5jpg 5mpg 5rtf 5txt 5xpm


the icon folder contains over six times as many icons as the script folder contains scripts. this is to give you a way to further customize and differentiate the items in the pop-up. the 6 color schemes (black on white, white on black, gray on purple, purple on gray, light and dark pink, those pinks reversed, and purple on green) for the most part have both a capital and lowercase version, which i suppose could help when it comes to picking icons that somewhat reflect the number of copies produced. the larger and smaller repeated sequences (colons, periods, pound signs, empty spaces) are for directories, blanks, and as yet unrepresented file types.

to assign one of the icons to a script, right click the script, choose set icon, and then drag the icon of your choice to the box that popped open.


enjoy


p.dogfellow, 5/3/16

____________
install script consists of:

#!/bin/sh

cp -fRu ./mcc /root/my-applications/bin
chmod 755 /root/my-applications/bin/mcc
cp -fRu ./mc /root/my-applications/
chmod 755 /root/my-applications/mc/mcc/*

____________
mcc script:
#swap out rox for file manager of your choice
rox /root/my-applications/mc/mcc


i think over time, the customizability/portability of the folder ultimately makes it more useful than the edit-as-you-go version. it's also easier to keep track of the various presets that may amass this way.
Back to top
View user's profile Send private message 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1564
Location: nyc

PostPosted: Thu 05 May 2016, 17:03    Post subject: use the "dir" version for extensionless file types
Subject description: also, here's the script that made the scripts (so you can easily create/modify versions in batches)
 

the 5dir and 3dir scripts in the folder don't add an extension to the numbered copies and so are also suitable for extensionless or extension-indifferent file types.
here's the script i used to make the scripts in the pop up:
Code:

#!/bin/sh
#both scripts make the same two directories in /root/my-applications/. copy template and adjust paths (i.e. add subdirectories) to sort versions before they're made.
mkdir -p /root/my-applications/mc/icons/
mkdir -p /root/my-applications/mc/mcc/

#make the launcher and set its permissions:
echo $'
#!/bin/sh
rox /root/my-applications/mc/mcc/
' > /root/my-applications/bin/mcc
chmod 755 /root/my-applications/bin/mcc
#activate with a shortcut key or "mcc" in a terminal

#the "dir" presets can also be used for extensionless/extension-indifferent files. swap the "dir" for "blank" or similar if you want a file named "blank" or similar.
echo $'
#!/bin/sh
for f in "$@"{2..6} ; do cp -fRu "$@" $f ; done
#dir
' >   /root/my-applications/mc/mcc/5dir

#find-and-replace run on the extension bit will also change the script's name to reflect its new function.
#individual chunks coming up are each scripts this script makes. modify the count and/or numbering convention by swapping the {#..#} part that sets the sequence and the #(extension) part that comprises the name. use "whole document" or "selection" to make/modify batches. paste sections into a terminal or run the script as a whole when you want to update your mcc (Make Concurrent Copies) folder. some examples of how you can use brace expansion to set the name and number of the copies (from comments in the earlier script): {x..y[..incr]}.extension:  {AA..ZZ..5}  {x..a}.ext {x..a..-2}

echo $'
#!/bin/sh
for f in "$@"{2..6}.mp3 ; do cp -fRu "$@" $f ; done
#mp3
' >   /root/my-applications/mc/mcc/5mp3
echo $'
#!/bin/sh
for f in "$@"{2..6}.wav ; do cp -fRu "$@" $f ; done
#wav
' >   /root/my-applications/mc/mcc/5wav
echo $'
#!/bin/sh
for f in "$@"{2..6}.mp4 ; do cp -fRu "$@" $f ; done
#mp4
' >   /root/my-applications/mc/mcc/5mp4
echo $'
#!/bin/sh
for f in "$@"{2..6}.flv ; do cp -fRu "$@" $f ; done
#flv
' >   /root/my-applications/mc/mcc/5flv
echo $'
#!/bin/sh
for f in "$@"{2..6}.mpg ; do cp -fRu "$@" $f ; done
#mpg
' >   /root/my-applications/mc/mcc/5mpg
echo $'
#!/bin/sh
for f in "$@"{2..6}.avi ; do cp -fRu "$@" $f ; done
#avi
' >   /root/my-applications/mc/mcc/5avi
echo $'
#!/bin/sh
for f in "$@"{2..6}.mpeg ; do cp -fRu "$@" $f ; done
#mpeg
' >   /root/my-applications/mc/mcc/5mpeg
echo $'
#!/bin/sh
for f in "$@"{2..6}.mkv ; do cp -fRu "$@" $f ; done
#mkv
' >   /root/my-applications/mc/mcc/5mkv
echo $'
#!/bin/sh
for f in "$@"{2..6}.wmv ; do cp -fRu "$@" $f ; done
#wmv
' >   /root/my-applications/mc/mcc/5wmv
echo $'
#!/bin/sh
for f in "$@"{2..6}.xpm ; do cp -fRu "$@" $f ; done
#xpm#
' >   /root/my-applications/mc/mcc/5xpm
echo $'
#!/bin/sh
for f in "$@"{2..6}.bmp ; do cp -fRu "$@" $f ; done
#bmp
' >   /root/my-applications/mc/mcc/5bmp
echo $'
#!/bin/sh
for f in "$@"{2..6}.jpg ; do cp -fRu "$@" $f ; done
#jpg
' >   /root/my-applications/mc/mcc/5jpg
echo $'
#!/bin/sh
for f in "$@"{2..6}.gif ; do cp -fRu "$@" $f ; done
#gif
' >   /root/my-applications/mc/mcc/5gif
echo $'
#!/bin/sh
for f in "$@"{2..6}.svg ; do cp -fRu "$@" $f ; done
#svg         
' >   /root/my-applications/mc/mcc/5svg
echo $'
#!/bin/sh
for f in "$@"{2..6}.png ; do cp -fRu "$@" $f ; done
#png
' >   /root/my-applications/mc/mcc/5png
echo $'
#!/bin/sh
for f in "$@"{2..6}.tif ; do cp -fRu "$@" $f ; done
#tiff
' >   /root/my-applications/mc/mcc/5tiff
echo $'
#!/bin/sh
for f in "$@"{2..6}.odt ; do cp -fRu "$@" $f ; done
#odt
' >   /root/my-applications/mc/mcc/5odt
echo $'
#!/bin/sh
for f in "$@"{2..6}.doc ; do cp -fRu "$@" $f ; done
#doc
' >   /root/my-applications/mc/mcc/5doc
echo $'
#!/bin/sh
for f in "$@"{2..6} ; do cp -fRu "$@" $f ; done
#dir
' >   /root/my-applications/mc/mcc/5dir
echo $'
#!/bin/sh
for f in "$@"{2..6}.docx ; do cp -fRu "$@" $f ; done
#docx
' >   /root/my-applications/mc/mcc/5docx
echo $'
#!/bin/sh
for f in "$@"{2..6}.rtf ; do cp -fRu "$@" $f ; done
#rtf
' >   /root/my-applications/mc/mcc/5rtf
echo $'
#!/bin/sh
for f in "$@"{2..6}.xml ; do cp -fRu "$@" $f ; done
#xml
' >   /root/my-applications/mc/mcc/5xml
echo $'
#!/bin/sh
for f in "$@"{2..6}.html ; do cp -fRu "$@" $f ; done
#html
' >   /root/my-applications/mc/mcc/5html
echo $'
#!/bin/sh
for f in "$@"{2..6}.txt ; do cp -fRu "$@" $f ; done
#txt
' >   /root/my-applications/mc/mcc/5txt
echo $'
#!/bin/sh
for f in "$@"{2..6}.odf ; do cp -fRu "$@" $f ; done
#odf
' >   /root/my-applications/mc/mcc/5odf
echo $'
#!/bin/sh
for f in "$@"{2..6}.mon ; do cp -fRu "$@" $f ; done
#mon
' >   /root/my-applications/mc/mcc/5mon
echo $'
#!/bin/sh
for f in "$@"{2..6}.ser ; do cp -fRu "$@" $f ; done
#ser
' >   /root/my-applications/mc/mcc/5ser
echo $'
#!/bin/sh
for f in "$@"{2..6}.san ; do cp -fRu "$@" $f ; done
#san
' >   /root/my-applications/mc/mcc/5san
echo $'
#!/bin/sh
for f in "$@"{2..6}.text ; do cp -fRu "$@" $f ; done
#text
' >   /root/my-applications/mc/mcc/5text

echo $'
#!/bin/sh
for f in "$@"{2..6}.xml ; do cp -fRu "$@" $f ; done
#xml
' >   /root/my-applications/mc/mcc/5xml

echo $'
#!/bin/sh
for f in "$@"{2..6}.ppt ; do cp -fRu "$@" $f ; done
#ppt
' >   /root/my-applications/mc/mcc/5ppt

echo $'
#!/bin/sh
for f in "$@"{2..6}.pptx ; do cp -fRu "$@" $f ; done
#pptx
' >   /root/my-applications/mc/mcc/5pptx
echo $'
#!/bin/sh
for f in "$@"{2..6}.xls ; do cp -fRu "$@" $f ; done
#pptx
' >   /root/my-applications/mc/mcc/5xls
echo $'
#!/bin/sh
for f in "$@"{2..6}.xlsx ; do cp -fRu "$@" $f ; done
#pptx
' >   /root/my-applications/mc/mcc/5xlsx
#set permissions for the popup folder and any files or directories you put in it:
chmod 755 /root/my-applications/bin/mcc
chmod 755   /root/my-applications/mc/mcc/*
Back to top
View user's profile Send private message 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1564
Location: nyc

PostPosted: Thu 05 May 2016, 17:21    Post subject: here's the icon making script
Subject description: (actually second half of original script)
 

Code:
#!/bin/sh
#substitute 7txpm for the name of your custom copy of txt2xpm (by technosaurus)
#substitute "7.xpm" to something that won't conflict with earlier versions (i generally set it to reflect the icon theme/txt2xpm script that set it)
#see  http://www.murga-linux.com/puppy/viewtopic.php?p=898358#898358 and http://www.murga-linux.com/puppy/viewtopic.php?p=561822#561822 for more

mkdir -p /root/my-applications/bin/mc/icons/
mkdir -p /root/my-applications/bin/mc/mcc/
7txpm "MP3" >/root/my-applications/bin/mc/icons/mp3c7.xpm
7txpm "WAV" >/root/my-applications/bin/mc/icons/wavc7.xpm
7txpm "MP4" >/root/my-applications/bin/mc/icons/mp4c7.xpm
7txpm "FLV" >/root/my-applications/bin/mc/icons/flvc7.xpm
7txpm "MPG" >/root/my-applications/bin/mc/icons/mpgc7.xpm
7txpm "AVI" >/root/my-applications/bin/mc/icons/avic7.xpm
7txpm "MPEG" >/root/my-applications/bin/mc/icons/mpeg7.xpm
7txpm "MKV" >/root/my-applications/bin/mc/icons/mkvc7.xpm
7txpm "WMV" >/root/my-applications/bin/mc/icons/wmvc7.xpm
7txpm "XPM" >/root/my-applications/bin/mc/icons/xpmc7.xpm
7txpm "BMP" >/root/my-applications/bin/mc/icons/bmpc7.xpm
7txpm "JPG" >/root/my-applications/bin/mc/icons/jpgc7.xpm
7txpm "GIF" >/root/my-applications/bin/mc/icons/gifc7.xpm
7txpm "SVG" >/root/my-applications/bin/mc/icons/svgc7.xpm         
7txpm "PNG" >/root/my-applications/bin/mc/icons/pngc7.xpm
7txpm "TIF" >/root/my-applications/bin/mc/icons/tifff7.xpm
7txpm "ODT" >/root/my-applications/bin/mc/icons/odtc7.xpm
7txpm "DOC" >/root/my-applications/bin/mc/icons/docc7.xpm
7txpm "    " >/root/my-applications/bin/mc/icons/dirc7.xpm
7txpm ":::" >/root/my-applications/bin/mc/icons/3cc7.xpm
7txpm "[    ]" >/root/my-applications/bin/mc/icons/9brrdlk.xpm
7txpm "------" >/root/my-applications/bin/mc/icons/dss7.xpm
7txpm "DOCX" >/root/my-applications/bin/mc/icons/docx7.xpm
7txpm "RTF" >/root/my-applications/bin/mc/icons/rtfc7.xpm
7txpm "XML" >/root/my-applications/bin/mc/icons/xmlc7.xpm
7txpm "HTML" >/root/my-applications/bin/mc/icons/html7.xpm
7txpm "TXT" >/root/my-applications/bin/mc/icons/txtc7.xpm
7txpm "ODF" >/root/my-applications/bin/mc/icons/odfc7.xpm
7txpm "MON" >/root/my-applications/bin/mc/icons/monc7.xpm
7txpm "SER" >/root/my-applications/bin/mc/icons/serc7.xpm
7txpm "SAN" >/root/my-applications/bin/mc/icons/sanc7.xpm
7txpm "TEXT" >/root/my-applications/bin/mc/icons/text7.xpm
7txpm "DIR" >/root/my-applications/bin/mc/icons/dir2c7.xpm
7txpm "mp3" >/root/my-applications/bin/mc/icons/mp37.xpm
7txpm "wav" >/root/my-applications/bin/mc/icons/wav7.xpm
7txpm "mp4" >/root/my-applications/bin/mc/icons/mp47.xpm
7txpm "flv" >/root/my-applications/bin/mc/icons/flv7.xpm
7txpm "mpg" >/root/my-applications/bin/mc/icons/mpg7.xpm
7txpm "avi" >/root/my-applications/bin/mc/icons/avi7.xpm
7txpm "mpeg" >/root/my-applications/bin/mc/icons/mpeg7.xpm
7txpm "mkv" >/root/my-applications/bin/mc/icons/mkv7.xpm
7txpm "wmv" >/root/my-applications/bin/mc/icons/wmv7.xpm
7txpm "xpm" >/root/my-applications/bin/mc/icons/xpm7.xpm
7txpm "bmp" >/root/my-applications/bin/mc/icons/bmp7.xpm
7txpm "jpg" >/root/my-applications/bin/mc/icons/jpg7.xpm
7txpm "gif" >/root/my-applications/bin/mc/icons/gif7.xpm
7txpm "svg" >/root/my-applications/bin/mc/icons/svg7.xpm         
7txpm "png" >/root/my-applications/bin/mc/icons/png7.xpm
7txpm "tif" >/root/my-applications/bin/mc/icons/tifff7.xpm
7txpm "odt" >/root/my-applications/bin/mc/icons/odt7.xpm
7txpm "doc" >/root/my-applications/bin/mc/icons/doc7.xpm
7txpm "    " >/root/my-applications/bin/mc/icons/dir7.xpm
7txpm ":::" >/root/my-applications/bin/mc/icons/3c7.xpm
7txpm "[    ]" >/root/my-applications/bin/mc/icons/9brrdlk.xpm
7txpm "------" >/root/my-applications/bin/mc/icons/dss7.xpm
7txpm "docx" >/root/my-applications/bin/mc/icons/docx7.xpm
7txpm "rtf" >/root/my-applications/bin/mc/icons/rtf7.xpm
7txpm "xml" >/root/my-applications/bin/mc/icons/xml7.xpm
7txpm "html" >/root/my-applications/bin/mc/icons/html7.xpm
7txpm "txt" >/root/my-applications/bin/mc/icons/txt7.xpm
7txpm "odf" >/root/my-applications/bin/mc/icons/odf7.xpm
7txpm "mon" >/root/my-applications/bin/mc/icons/mon7.xpm
7txpm "ser" >/root/my-applications/bin/mc/icons/ser7.xpm
7txpm "san" >/root/my-applications/bin/mc/icons/san7.xpm
7txpm "text" >/root/my-applications/bin/mc/icons/text7.xpm
7txpm "dir" >/root/my-applications/bin/mc/icons/dir27.xpm

#i made the sets of icons by repeatedly swapping the 7s to reflect other versions of the script (it was part of something else at the time), but save-as works and allows you to get back a lost set more quickly.



more on icons, versioning, etc: http://www.murga-linux.com/puppy/viewtopic.php?p=898358#898358
text2xpm thread: http://www.murga-linux.com/puppy/viewtopic.php?p=561822#561822
Back to top
View user's profile Send private message 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1564
Location: nyc

PostPosted: Wed 19 Oct 2016, 23:06    Post subject: now improved as mcc.pet..."mcc" in a terminal or click the
Subject description: desktop file. improved choices, additional labels (1100--script in quar deletes its folder).
 

mcc.pet --46k





46k even with the 1100 labels. turns out you don't need to drag the scripts to the target directory--copies are made in the folder from which they were dragged. if you don't want the labels (mostly blank or word processing related), the script in quar will save you a click or two deleting it. overwrites previous version so rename yours and copy back the customizations if you've done some modding without renaming. set icons/versioning labels by right clicking in rox (i'm not familiar with methods for other file managers). activate by clicking the desktop file (or giving it a shortcut--also a rox right click function (on Edit pop up box)) or entering mcc in a terminal.

cursor's normally visible during the drag (i must've not set the shot correctly in TAS). file(s) being copied are copied in their original folder despite the drag-to.


edit: it appears the pet i upped didn't have the rm -fr line/script in quar and that i misremembered the original icon path--your icons won't get overwritten and you'll end up with some duplicates. if you don't want to make custom sets using text2xpm, you can use mtpaint's fill function or palette editor and some zooming to swap foreground/background to whatever you like. use the quar folder for the icons you end up keeping or copy functions you want out of the way but not entirely gone.
Back to top
View user's profile Send private message 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1564
Location: nyc

PostPosted: Wed 26 Oct 2016, 00:05    Post subject: added back 5ce and the right click functions, added
Subject description: more icons and made the lot a separate pet.
 

mcc-1.pet

mcc-icon_pack1.pet

3c, 4c, and 5c plus the path of a file in a terminal or script (a return for 3 and 5; four's new) will make 3, 4, or 5 copies of your file(s) (with numbers appended starting with 2 (i.e. 4c copies yourfile as yourfile2 yourfile3 yourfile4 yourfile5)). 5ce in a terminal creates two files--a default five copy drag-to script and a clickable companion script that allows you to quickly adjust it.

5ce is also on the right click > new menu (alternate way to add itself to a folder), and 3c-5c are on the right click > SendTo/OpenWith menus (right click a folder or file (or a batch of either and/or) and instantly (more or less) make 3, 4, or 5 copies of it.

4k for the main pet, 51k for the icon pack.
Back to top
View user's profile Send private message 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1564
Location: nyc

PostPosted: Wed 26 Oct 2016, 01:52    Post subject: a lighter alternative to the icon pack
Subject description: text2xpm variety pack and mcc (icon for main pet) template example
 

i ended up using a console label (>_) for the desktop icon, but since i had the templates from the last batch still handy, i felt i should do something with it, so here's a pet of all the variations of technosaurus's text2xpm script i've been using, along with a template script (alter and click) for your own sets.

tx2xpm_variety_pack.pet
Code:

#!/bin/sh
#thanks to technosaurus for text2xpm: http://www.murga-linux.com/puppy/viewtopic.php?p=561822#561822
#template example for txt2xpm scripts i used to make the icons--this one's set up for "mcc" in both lowercase and caps--change the file name (bit just before the .xpm since the rest identifies the creating script and that the content).

#odt txt doc docx pdf mon san ser pwn lpx nwp vtg rtf [h] [x] [p] [o] [d] bae mae n n1 n2 n3 n4 ae-p >x<  >d<  >o< [   ] {   } |  |  | 1 2 3 4 5 6 7 8 9 0 !# >_  [=] () )(  [!] [...] [.] [..] (/) ( / )  ODT TXT DOC DOCX PDF MON SAN SER PWN LPX NWP VTG RTF [H] [X] [P] [O] [D] BAE MAE N N1 N2 N3 N4 AE-P >X<  >D<  >O<
mkdir -p /usr/share/applications/icons-alt/lab
0artxpm "mcc" >/usr/share/applications/icons-alt/lab/0artlmcc.xpm
0atxpm "mcc" >/usr/share/applications/icons-alt/lab/0atlmcc.xpm
0rwtxpm "mcc" >/usr/share/applications/icons-alt/lab/0rwtlmcc.xpm
0txpm "mcc" >/usr/share/applications/icons-alt/lab/0tlmcc.xpm
1txpm "mcc" >/usr/share/applications/icons-alt/lab/1tlmcc.xpm
2txpm "mcc" >/usr/share/applications/icons-alt/lab/2tlmcc.xpm
3txpm "mcc" >/usr/share/applications/icons-alt/lab/3tlmcc.xpm
4txpm "mcc" >/usr/share/applications/icons-alt/lab/4tlmcc.xpm
5txpm "mcc" >/usr/share/applications/icons-alt/lab/5tlmcc.xpm
6txpm "mcc" >/usr/share/applications/icons-alt/lab/6tlmcc.xpm
7txpm "mcc" >/usr/share/applications/icons-alt/lab/7tlmcc.xpm
8txpm "mcc" >/usr/share/applications/icons-alt/lab/8tlmcc.xpm
9txpm "mcc" >/usr/share/applications/icons-alt/lab/9tlmcc.xpm
bltxpm "mcc" >/usr/share/applications/icons-alt/lab/bltlmcc.xpm
botxpm "mcc" >/usr/share/applications/icons-alt/lab/botlmcc.xpm
btxpm "mcc" >/usr/share/applications/icons-alt/lab/btlmcc.xpm
bwtxpm "mcc" >/usr/share/applications/icons-alt/lab/bwtlmcc.xpm
deftxpm "mcc" >/usr/share/applications/icons-alt/lab/deftlmcc.xpm
defxpm "mcc" >/usr/share/applications/icons-alt/lab/deflmcc.xpm
gbtxpm "mcc" >/usr/share/applications/icons-alt/lab/gbtlmcc.xpm
gwtxpm "mcc" >/usr/share/applications/icons-alt/lab/gwtlmcc.xpm
kwtxpm "mcc" >/usr/share/applications/icons-alt/lab/kwtlmcc.xpm
lbtxpm "mcc" >/usr/share/applications/icons-alt/lab/lbtlmcc.xpm
lotxpm "mcc" >/usr/share/applications/icons-alt/lab/lotlmcc.xpm
obtxpm "mcc" >/usr/share/applications/icons-alt/lab/obtlmcc.xpm
oltxpm "mcc" >/usr/share/applications/icons-alt/lab/oltlmcc.xpm
prtext2xpm "mcc" >/usr/share/applications/icons-alt/lab/prtext2lmcc.xpm
prtxpm "mcc" >/usr/share/applications/icons-alt/lab/prtlmcc.xpm
ptxpm "mcc" >/usr/share/applications/icons-alt/lab/ptlmcc.xpm
rdbltxpm "mcc" >/usr/share/applications/icons-alt/lab/rdbltlmcc.xpm
rdltxpm "mcc" >/usr/share/applications/icons-alt/lab/rdltlmcc.xpm
rldtxpm "mcc" >/usr/share/applications/icons-alt/lab/rldtlmcc.xpm
rrdbltxpm "mcc" >/usr/share/applications/icons-alt/lab/rrdbltlmcc.xpm
text2xpm "mcc" >/usr/share/applications/icons-alt/lab/text2lmcc.xpm
wbtxpm "mcc" >/usr/share/applications/icons-alt/lab/wbtlmcc.xpm
wgtxpm "mcc" >/usr/share/applications/icons-alt/lab/wgtlmcc.xpm
wktxpm "mcc" >/usr/share/applications/icons-alt/lab/wktlmcc.xpm
wtxpm "mcc" >/usr/share/applications/icons-alt/lab/wtlmcc.xpm
wtxt2xpm "mcc" >/usr/share/applications/icons-alt/lab/wtxt2lmcc.xpm
0artxpm "MCC" >/usr/share/applications/icons-alt/lab/0artmcc.xpm
0atxpm "MCC" >/usr/share/applications/icons-alt/lab/0atmcc.xpm
0rwtxpm "MCC" >/usr/share/applications/icons-alt/lab/0rwtmcc.xpm
0txpm "MCC" >/usr/share/applications/icons-alt/lab/0tmcc.xpm
1txpm "MCC" >/usr/share/applications/icons-alt/lab/1tmcc.xpm
2txpm "MCC" >/usr/share/applications/icons-alt/lab/2tmcc.xpm
3txpm "MCC" >/usr/share/applications/icons-alt/lab/3tmcc.xpm
4txpm "MCC" >/usr/share/applications/icons-alt/lab/4tmcc.xpm
5txpm "MCC" >/usr/share/applications/icons-alt/lab/5tmcc.xpm
6txpm "MCC" >/usr/share/applications/icons-alt/lab/6tmcc.xpm
7txpm "MCC" >/usr/share/applications/icons-alt/lab/7tmcc.xpm
8txpm "MCC" >/usr/share/applications/icons-alt/lab/8tmcc.xpm
9txpm "MCC" >/usr/share/applications/icons-alt/lab/9tmcc.xpm
bltxpm "MCC" >/usr/share/applications/icons-alt/lab/bltmcc.xpm
botxpm "MCC" >/usr/share/applications/icons-alt/lab/botmcc.xpm
btxpm "MCC" >/usr/share/applications/icons-alt/lab/btmcc.xpm
bwtxpm "MCC" >/usr/share/applications/icons-alt/lab/bwtmcc.xpm
deftxpm "MCC" >/usr/share/applications/icons-alt/lab/deftmcc.xpm
defxpm "MCC" >/usr/share/applications/icons-alt/lab/defmcc.xpm
gbtxpm "MCC" >/usr/share/applications/icons-alt/lab/gbtmcc.xpm
gwtxpm "MCC" >/usr/share/applications/icons-alt/lab/gwtmcc.xpm
kwtxpm "MCC" >/usr/share/applications/icons-alt/lab/kwtmcc.xpm
lbtxpm "MCC" >/usr/share/applications/icons-alt/lab/lbtmcc.xpm
lotxpm "MCC" >/usr/share/applications/icons-alt/lab/lotmcc.xpm
obtxpm "MCC" >/usr/share/applications/icons-alt/lab/obtmcc.xpm
oltxpm "MCC" >/usr/share/applications/icons-alt/lab/oltmcc.xpm
prtext2xpm "MCC" >/usr/share/applications/icons-alt/lab/prtext2mcc.xpm
prtxpm "MCC" >/usr/share/applications/icons-alt/lab/prtmcc.xpm
ptxpm "MCC" >/usr/share/applications/icons-alt/lab/ptmcc.xpm
rdbltxpm "MCC" >/usr/share/applications/icons-alt/lab/rdbltmcc.xpm
rdltxpm "MCC" >/usr/share/applications/icons-alt/lab/rdltmcc.xpm
rldtxpm "MCC" >/usr/share/applications/icons-alt/lab/rldtmcc.xpm
rrdbltxpm "MCC" >/usr/share/applications/icons-alt/lab/rrdbltmcc.xpm
text2xpm "MCC" >/usr/share/applications/icons-alt/lab/text2mcc.xpm
wbtxpm "MCC" >/usr/share/applications/icons-alt/lab/wbtmcc.xpm
wgtxpm "MCC" >/usr/share/applications/icons-alt/lab/wgtmcc.xpm
wktxpm "MCC" >/usr/share/applications/icons-alt/lab/wktmcc.xpm
wtxpm "MCC" >/usr/share/applications/icons-alt/lab/wtmcc.xpm
wtxt2xpm "MCC" >/usr/share/applications/icons-alt/lab/wtxt2mcc.xpm


pet is 9k

_____

screenshot:



i suppose this way makes more sense (not such a happy reflection Laughing )
Back to top
View user's profile Send private message 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1564
Location: nyc

PostPosted: Wed 30 Aug 2017, 02:23    Post subject: a small restructuring and some added functions
Subject description: (it's now also a tiny browser based word processor (complete with keyboard tweaker))
 

from http://murga-linux.com/puppy/viewtopic.php?p=965905#965905, update and a fix: more keyboard tweaks, f36/"f36" fix, bbwp now works as a right click (and then drag file(s) to browser function); bbwp 4 chrom-/moz-) (ran out of space for the subtitle, but that last part means support for both chromium and mozilla based browsers--originally it looked like only save to pdf worked for the mozilla family:

Puppus Dogfellow wrote:
the updated help/info file for the xmodmap add-ins (available separately as xmod84.1pet):
Quote:

click to activate, edit the reset script to suit your layout, edit the runs scripts to suit your preferences, drag run script to startup to have one of the following active by default:

run8287 -- Caps_Lock is Modeswitch, Scroll_Lock is Caps_Lock; additional Function keys added to
Modeswitch+F1-F12 for second twelve and Modeswitch+ the number row for the 12 after that (F series only goes up to F35 but the key pad has an additional four (KP_F#) for a total of 39. "F37-F39" are Modeswitch plus q,w, and e; Hyper_R is added as mod3 (works in JWM but not Rox) and the key put on Pause ond Escape; Modeswitch + Escape is Escape; Modeswitch + either Tab or Backspace is the Menu key. Menu, for keyboards that have it, is usually keycode 117 (and can be repurposed).

run82 -- Caps_Lock is Modeswitch, Pause is Caps_Lock, Menu is Modeswitch+q.

run82m -- Caps_Lock is Modeswitch, Pause is Hyper_R (mod 3), multimedia key under F2 (check your setup with xev) is Caps_Lock, Menu is Modeswitch+q.

run84 -- Caps_Lock is Modeswitch, Scroll_Lock is Caps_Lock, Menu is Modeswitch+q.

run84c -- Caps_Lock is Control_L, Pause is Modeswitch, Scroll_Lock is Caps_Lock

run84m -- Caps_Lock is Modeswitch, Pause is Hyper_R (mod 3), Scroll_Lock is Caps_Lock, Menu is Modeswitch+q.

run87 -- Caps_Lock is Modeswitch, Scroll_Lock is Caps_Lock

run87m -- Caps_Lock is Modeswitch, Pause is Hyper_R (mod 3), Scroll_Lock is Caps_Lock

------
you may need to disable or reassign some jwm defaults (like screen shot and the global volume controls, or the root and windows menus) to be able to customize the whole set (key often won't show up as a key or otherwise assignable entity if there's a windows manager function that grabs it first. use xev to check keycodes (these keysyms and keycodes are consistent on all my machines, but the multimedia keys almost never are).
add
<Include>/root/my-applications/xmodmaps/no10m/jwmmod3</Include>
or
<Include>/root/my-applications/xmodmaps/no10m/jwmmod3f</Include>
(swap and experiment)
to /root/.jwm/jwmrc-personal
to be able to use the templates in no10m (all function keys and the alphabet plus a little more for mod3 on the larger of the two. mostly just the alphabet under mod3 for the other)

ktab ktabm kset kreset added as nwp shortcuts (open the key table in geany, open the modifier map in geany, open the xmodmap folder in /root/my-applications/, reset the keyboard (set for u.s. layout--edit to suit yours or copy to make (more) toggles)).

see more:
http://murga-linux.com/puppy/viewtopic.php?p=958657#958657

------
added colemak and dvorak as reset button options (you can just toggle to them...maybe i do have a use for five extra keyboards...)


---puppus dogfellow, 7/29/17

newest additions:
run8287-1 -- Menu and Escape are Mod3(Hyper_R), Modeswitch is Caps_Lock and Pause, Caps_Lock is Scroll_Lock, Modeswitch plus Tab is Escape, Modeswitch plus Backspace is the Menu key. has function keys f13-f39 (f35..kp_4) added in the same way as run8287.

84-1 is 8287-1 for keyboards without a menu key for hyper-r--it goes on pause and escape (you lose the second Modeswitch key but keep the second hyper r key. all else is the same). version .1 fixes an error that broke kp_f1/f36 in run8287 and run8287-1.

justf is just the function ke[/url]ys (f13-f39 (f35..kp_4)) being activated by Pause as (the) Modeswitch



desktop entry under utilities simply opens to the xmod map folder now in /root/my-applications/bin. click to add the keyboard layouts/tweaks of your choice.

________________________

________________________

xmod84.1pet 7kb
tx2xmp_variety_pack.1.pet 10kb
mccc_deluxe.pet 98kb
mcc-bbwp-xmod84.pet 16kb
mcc-bbwp.pet 12kb
mmc2.pet 20kb
mcc-icon_pack1.pet 51kb
bbwp2.pet 16kb

______

______

from the updated Styles(/grab formatting/how-to) template in bbwp/html:

_____________

Quote:
[...]seems saving to pdf works in mozilla based browsers after all, and i need to take back some of my hedging on its usability as a word processor--it will save the changes you make in the editable tab if you save it as a pdf through the print dialog, but the same file downloaded through the same interface doesn't show your changes if you save it as an html file.

(both functions work as expected in chromium based browsers, and either can use bookmarking to return to previous work. drag and drop the file to an open browser; use the rox new templates to start a project wherever you like.)

--p. dogfellow, 8/22/17

edit: save as webpage complete as opposed to html only and the mozlilla based family works fine. saving as plain text also works through the ctrl+s function and file menu.

sorry for all the unnecessary drama--it works, it's a word processor.

(enjoy).


mcc_deluxe is the updated mcc pet (some restructuring, the addition of the mini icons, a slimmer version of blankpet at right click (basepet), and the improved bbwp) plus the 1302 mini icons and text2xpm variety pack that made them. (whole thing is 20 kb smaller than just the libreoffice desktop files and five icons that go with them under the same compression (98 vs 118kb according to google; rox add a kb to the readings...)).

mcc2, bbwp2 are the same thing gz compressed. the mcc-bbwp-xmod pet is xz compressed and is the same thing (also the same thing as bbwp2, which is in the repo's word processing and related section rather than utilities (both function as updates to the spins here or for the anuupus suite in general)).

updated pet(s) makes a second html folder inside both /root/my-applications/bbwp/html and /nwp/wp/bbwp/html. originally there was supposed to be a nwp and non-nwp version (mcc2/bbwp2), but it's easy just to delete /nwp if you don't want it, and this way doesn't overwrite any changes you may've made to the original two sets of templates.

paste formatting from any source, including a template made from a sample page of your favorite or often used formatting (including justification, centering, right/left align, font style and size, etc) from your favorite word processor, application, or web site into the Styles tab and copy when needed. use f11 for a wide open, clutter free writing environment.

enjoy/etc.

Very Happy




more on the bbwp (Styles sheet is also scrap, history, howto, and credits) starting here:
http://www.murga-linux.com/puppy/viewtopic.php?p=959394&sid=05614e8e6725fbe84dff796523608c6d#959394
(Posted: Sat 01 Jul 2017, 16:19    Post subject: bbwp: a tiny browser-based word processor (5k w/o browser)
Subject description: upgrade pet that functions as a stand alone [aside from web browser] word processor and text editor)

and more on the xmodmap/keyboard layout tweaks here:

http://www.murga-linux.com/puppy/viewtopic.php?p=959394&sid=05614e8e6725fbe84dff796523608c6d#959394
Posted: Tue 01 Aug 2017, 00:07    Post subject: some keyboard tweaks as a pet
Subject description: mod3, modeswitch giving 28 additional function keys, click to reset or for dvorak, colemak, etc
Back to top
View user's profile Send private message 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1564
Location: nyc

PostPosted: Fri 06 Oct 2017, 12:15    Post subject: a couple of small updates
Subject description: including one for a function i forgot to mention last time
 

here's mcc-wp.pet

first the new bit (from the info file in /root/my-applications/xmodmaps):
Quote:

[...]
justf is just the function keys (f13-f39 (f35..kp_4)) being activated by Pause as (the) Modeswitch
justf2 reverses F1-F12 and F13-24 (your customized bank of keys is on top; you'll need Modeswitch plus Function to access your multimedia keys (whether original or modified).

i decided i would rather have my own custom key set (can't think of any programs that out of the box use anything above F12) as the top rung, so i reversed f1-f12 and f13-f24 (for example, to have cut, copy, paste (use xdotool and your windows manager) as easily accessible single button presses). you can run either justf or justf2 after the others to modify them.

the feature i forgot to mention and then added a bit to is a pet-making function. an improvement over the nwp's "blankpet" (on which it's based), "basepet" contains fewer unnecessary directories and i find i've been using it to the exclusion of the other. it can be seen in the excerpted (and selectively expanded) pinstall.sh below (the drag-to script it places in templates (so you can easily make "workshops") isn't included in most of the previous versions (but may exist in your pup as a right click utility)).


Code:

#---------------------------
#mkdir -p /root/my-applications/mc/icons/pref
#puppy reference/preferences/defaults (a separate folder so you can ditch the majority of what the batch text2xpm scripts call)
#mkdir -p /root/my-applications/mc/icons/mcc
#mkdir -p /root/my-applications/mc/icons/bbwp
#rdltxpm "mcc" > /root/my-applications/mc/icons/mcc/rdltlmcc.xpm
# alternately, use the puppy reference folder in root

mkdir -p /root/.config/rox.sourceforge.net/Templates/basepet/usr/share/applications
mkdir -p /root/.config/rox.sourceforge.net/Templates/basepet/root/my-applications/bin
mkdir -p /root/.config/rox.sourceforge.net/Templates/basepet/root/puppy-reference/mini-icons

echo $'
#!/bin/sh

' > /root/.config/rox.sourceforge.net/Templates/basepet/pinstall.sh
chmod 755 /root/.config/rox.sourceforge.net/Templates/basepet/pinstall.sh
#use parchive (radky), right click utilites (don570), or packit(SFR) to convert the folder you filled with contents and commands into a pet or sfs.
#or (late addition to pinstall):

echo $'
#!/bin/sh

exec makepet "$@"

' > /root/.config/rox.sourceforge.net/Templates/drag2makepet
chmod 755 /root/.config/rox.sourceforge.net/Templates/drag2makepet

#puts a script in your working directory that will turn the structure and contents of your "basepet" (rename it to suit its contents) directory into a .pet when one is dragged to another. grab a .desktop file from /usr/share/applications that's roughly where you want your program or script to appear on the menu, rename it, and fill out the slots to match your executable and icon locations (you could use mtpaint and save a work as xpm, then open that as text and surround with the nwp's cnt (content) command, and add those to your pets/system through the pinstall.sh script. (similar is done with the mcc icon above and the same method could be used to add new .desktop files to /usr/share/applications (sometimes i find it's easier to add the text to a file, sometimes it's easier to add the file and icon to their respective folders.)))


here's an example of the icon through the terminal:
Code:


echo $'
/* XPM */
static char *tmp_xpm[] = {
"21 13 4 1",
"    c None",
".    c #E8B3CC",
",   c #00FF00",
"#   c #FF0074",
".....................",
".....................",
".....................",
".....................",
"..##.#...####...####.",
"..#.#.#.#....#.#....#",
"..#.#.#.#......#.....",
"..#.#.#.#......#.....",
"..#.#.#.#......#.....",
"..#.#.#.#....#.#....#",
"..#...#..####...####.",
".....................",
".....................",
""};
' > /root/puppy-reference/mini-icons/mcc.xpm


here's an example of that being done for the desktop entry (not part of the pet's pinstall.sh, and the comments are a bit longer in this post than in the actual pet):
Code:

echo $'
[Desktop Entry]
Encoding=UTF-8
Name=mcc--make concurrent copies
Icon=/root/puppy-reference/mini-icons/mcc.xpm
Comment=make concurrent copies by dragging file(s) to script selection
Exec=/root/my-applications/bin/mcc
Terminal=false
Type=Application
GenericName=
Version=1.0
Categories=Utility
' > /usr/share/applications/mcc.desktop



the last thing i used it for was to make pets of the latest syncthing--copied some stuff from the older pet, copied in the new binary, renamed "extra" to "/root/syncthing-help" (it has pdfs explaining what it is and how to set it up, but i find it's as easy to use as dropbox--browser becomes interface and first choice to sync across your network is /root/Sync, which gets installed by default. it's not difficult to change or add folders or computers to the syncing being done), "petted" the directory with a drag to.

enjoy.

____
here's Mike Walsh's syncthing thread:
http://murga-linux.com/puppy/viewtopic.php?t=111026
here's a link to my older and newer pets (part of the same thread):
http://murga-linux.com/puppy/viewtopic.php?p=961058#961058
Back to top
View user's profile Send private message 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1564
Location: nyc

PostPosted: Tue 20 Mar 2018, 21:48    Post subject: a small utility/update for the mini word processor aspect
Subject description: inserting special characters through copy and paste (another basepet howto)
 

despite being browser based, the word processor function is supposed to work without an internet connection, so here's a way to get special characters into your documents without one (that you can use the internet to augment--the list is relatively limited, but the package is relatively small compared to a utility like guchar, and it's very easy to use and customizable).

hat tip to Mike Walsh for his Enter special Unicode characters in Puppy thread, which provided this link and some of the pasted in characters:

Puppus Dogfellow wrote:
Mike Walsh wrote:
Afternoon, all.

This was brought to my attention by some research carried out for answering a question posed by a member on BleepingComputer.com.

I hadn't realised this until now, but it's essentially the Unix/Linux equivalent of the Alt/number keycodes in Windows.

There's a complete list of all the available Unicode characters to be found here:-

http://www.tamasoft.co.jp/en/general-info/unicode.html

It is a huge list, too...

--------------------------------------------

For instance, say you want to enter the heart symbol ( ) into your text. You look through that list, and locate the heart symbol. You then look to the far left of that line, which gives you "2660". You then look at the top of that column where the heart symbol is, which gives you "05". You add these two values together.....which gives you "2665".

Now; this is where the 'magic' happens. Press Shift + Ctrl together, and hold. Enter u (which tells the keyboard to expect a hexadecimal Unicode value), followed by 2665 (the value you've just obtained). Now, release the Shift + Ctrl keys. Voilà!

e.g hold Shift + Ctrl, enter u, 2665, then release.

That's all there is to it. Keyboards are, of course, capable of generating far more characters than you can see actually printed on the keys. This is the Linux way to do it..!

Have fun. ⌨ = ☺ ✔

Mike. Wink


cool find. thanks, Mike.

copying and pasting works fine, too (middle click after a select is also pretty linuxy, i think).

i copied a bunch to a text file for leafpad to open--much smaller utility than guchar.

thanks again.



i found the instructions too involved to use (if i'm going to look up the code, i may as well copy the character while i'm there--it's quicker). searching for another alternative, i found guchar, which was large and didn't install right in the 64 bit pup (tahr spin) i tried it in (although missing some characters, the package installed (with deps) in a xenial 32 spin).

so here's a mini update to the mcc-wp (et al), a way to paste in special characters. to make the prototype, i made a text file of a select bunch of characters (a 28k swath--bigger than most of the other versions in their entirety), saved it in /root/applications/bin pet, and altered the gfontselect desktop file (i remembered it uses a text character for an icon) to point leafpad to that file. after saving the altered .desktop as speshal-c., i reloaded jwm. works, so here's the pet version (pinstall updates nwp with a shortcut--won't affect non nwp pups):

___
made with basepet: added the special character text file to /root/my-applications/bin and added the rest through the pinstall.sh originally:


Code:

#!/bin/sh


echo $'
[Desktop Entry]
Encoding=UTF-8
Name=speshalcy
Icon=mini-font.xpm
Comment=copy paste and collect special characters
Exec=leafpad /root/my-applications/bin/speci
Terminal=false
Type=Application
Categories=X-DocumentUtility
GenericName=Paste_Special_Characters
' > /usr/share/applications/speshal-c.desktop
 
 
echo $'
#!/bin/sh
leafpad /root/my-applications/bin/speci
' > /nwp/speci
chmod 755 /nwp/speci

echo $'
#!/bin/sh
geany /root/my-applications/bin/speci
' > /nwp/specig
chmod 755 /nwp/specig
fixmenus
jwm -restart



second (renamed) version below adds the desktop file through the pet install:

specil.pet

see
http://www.doc.ic.ac.uk/~svb/chars.html
and
http://www.yourhtmlsource.com/text/specialcharacters.html

for more you can add to your file.

(for pups with the nwp: use the nwp's "cnt" command for the file generating code (or a template thereof--the echo to > /path/file bit)).

pet is 16k

geany's extend select function made short work of cutting the numbered codes from the character charts (though obviously you can keep them for reference in your own copy if you like).
Back to top
View user's profile Send private message 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1564
Location: nyc

PostPosted: Thu 03 May 2018, 22:23    Post subject: an update of the bbwp mini word processor function
Subject description: colors, fonts, special characters, backups, and launching improvements
 

from http://murga-linux.com/puppy/viewtopic.php?p=990597#990597 (PostPosted: Today, at 02:48 Post subject: bbwp updated as bwp
Subject description: 1.3 now available)



Puppus Dogfellow wrote:
no change to any of the keyboard configuration sets, but the browser word processor itself gets templates and help/paste-formatting files that waste less screen space (pdf download/print preview (content is scalable) is unaffected by working settings). from the vtg thread:
(
subject: bwp 1.3: some new backup and formatting shortcuts,
Subject description: better use of screen real estate, and a mini version of the duals folder from the nwp
)

Puppus Dogfellow wrote:
bwp1.3.pet upped.


if you're working in the default templates and styles/info/scrap sheets, run
Code:
mkdir -p /file/wp/
cp -au /root/my-applications/bbwp/html /usr/local/bwp/ /nwp/wp/bbwp/ /file/wp/
or something similar before upgrading so your stuff doesn't get overwritten (it'll be in /file/wp as described below. change the locations to suit your preferences--code is also the new ark and arc nwp shortcuts (ll (or gl, since this is after all the geany thread version of all this) in main (p) launcher followed by the name of the file to quickly edit it after installation in full nwp installs).

more from that Styles,Scrap2/bwp help and info file:

Quote:

[...]
5/1

will probably have 1.3 up by the morning (unless the mcc version ends up getting merged into it). here's the new pinstall script so far:
Code:

#!/bin/sh
#bwp, a version of bbwp, a fragment of anuupus...
#right click templates for spell check and no spell check were backwards last time.
#updated version gives support for more fonts, colors, and paragraph alignment (through styles,scrap2; see the other styles sheet for credits and links. in short, you edit in a browser tab and save through your browser's file (html) and print (pdf) menus. bookmark individual files or folders as tabs or groups thereof. use the vtg and geany as additional means of launching or backing up your work. copy in formatting from the styles tabs to the spellcheck/no spellcheck blanks. default is left aligned serif.
cp -f /root/my-applications/bbwp/html/bbwp-2-nospchk /root/.config/rox.sourceforge.net/Templates/bwp-2-nospchk
cp -f /root/my-applications/bbwp/html/bbwp-1-spchk /root/.config/rox.sourceforge.net/Templates/bwp-1-spchk
cp -f /root/my-applications/bbwp/html/Styles,Scrap2.html /root/.config/rox.sourceforge.net/Templates/bwp-3-Styles,Scrap2.html
cp -fRu /root/my-applications/bbwp/html /root/.config/rox.sourceforge.net/Templates/bwp-0
#since i never made a /nwp/wp specific launcher, it makes more sense to call the codes from /nwp itself:
cp -f /root/my-applications/bin/bbch /nwp/bbch
echo $'
#!/bin/sh
defaultbrowser /nwp/bbwp/html/bbwp-1-spchk /nwp/bbwp/html/Styles,Scrap2.html /nwp/bbwp/html/bbwp-2-nospchk /nwp/bbwp/html/box1 /nwp/bbwp/html/Untitled2 /nwp/bbwp/html/Untitled1 /nwp/bbwp/html/Styles

' > /nwp/bbwp
chmod 755 /nwp/bbwp
#run line below to have the nwp call bbdef from my/apps-bin
#cp -f /root/my-applications/bin/bbdef /nwp/bbdef
cp -f /root/my-applications/bin/bbfir /nwp/bbfir
cp -f /root/my-applications/bin/bbg /nwp/bbg
cp -f /root/my-applications/bin/bb-iron /nwp/bb-iron
cp -f /root/my-applications/bin/bbpm /nwp/bbpm
cp -f /root/my-applications/bin/bbwpe /nwp/bbwpe
cp -f /root/my-applications/bin/bbwpr /nwp/bbwpr
cp -f /root/my-applications/bin/dil2 /nwp/dil2
#add html folder to nwp/wp/bbwp---it's just missing the launchers (menu items call to ~/my-apps/bin)
#mkdir -p /nwp/wp/bbwp/
cp -fRu /root/my-applications/bbwp/html /nwp/wp/bbwp/
cp -fRu /root/my-applications/bbwp/html /usr/local/bwp/

#[...]the codes above (without the path) would work in either terminal or nwp/pwn launcher. you can also copy the desktop files and replace your default browser with a supplemental (possibly with its own sessions and folders of bookmarks to work with apart from your main bwp/bbwp setup).
#to activate in document (vtg/full nwp versions), place cursor at
#makepet path/to/document
#(give it a separate line, possibly with a mv line to save your backups elsewhere).
echo $'
#!/bin/sh
exec makepet "$@"
' > /root/.config/rox.sourceforge.net/Templates/drag2makepet
chmod 755 /root/.config/rox.sourceforge.net/Templates/drag2makepet
#dragging a folder to the makepet script is a convenient way to make a quick archive/backup of it. if you're using the pet function for archiving, rename (and/or relocate) as you go because each new pet will overwrite the older one.
#also in the last version, but since this update should work as a standalone word processor, i included it so as not to offer an unnecessarily limited version.

#1.2 to 1.3 adds the following and makes better use of screen real estate (smaller margins and less padding. return line width to 60 and padding to 4 for the older look, something in between for something in between).

#arc and ark are backup utilities for the default folders and identical. modify one or both. run before each new bwp, bbwp, or mmcwp upgrade.
echo $'#!/bin/sh
mkdir -p /file/wp/
cp -au /root/my-applications/bbwp/html /usr/local/bwp/ /nwp/wp/bbwp/ /file/wp/
' > /nwp/ark
chmod 755 /nwp/ark
echo $'#!/bin/sh
mkdir -p /file/wp/
cp -au /root/my-applications/bbwp/html /usr/local/bwp/ /nwp/wp/bbwp/ /file/wp/
' > /nwp/ark
chmod 755 /nwp/arc
#launcher shortcuts for tab, en, em, and non breaking space
#when in text editor mode (faster saving is one benefit), entering line breaks, tab spaces, and blank space in general is non-intuitive. here are some launcher shortcuts to try and make up for that:
echo $'#!/bin/sh
xdotool type "&nbsp;&nbsp;&nbsp;&nbsp;"
' > /nwp/tab
chmod 755 /nwp/tab
echo $'#!/bin/sh
xdotool type " &nbsp;"
' > /nwp/spc
chmod 755 /nwp/spc
echo $'#!/bin/sh
xdotool type "&emsp;"
' > /nwp/em
chmod 755 /nwp/em
echo $'#!/bin/sh
xdotool type "&ensp;"
' > /nwp/en
chmod 755 /nwp/en
echo $'#!/bin/sh
xdotool type "<br>"
' > /nwp/br
chmod 755 /nwp/br
#repair broken horizontal rule shortcut. paw and pbw (to force page breaks (after and before) are also useful in text editor mode (but don't need repair--just mentioning them as a tip)).
echo $'
#!/bin/sh
xdotool type \'<hr size="2" align="left" width="60%" color="grey">\'
' > /nwp/hrl
chmod 755 /nwp/hrl
#to do: add a version of the dual launchers folder for an mcc version of the upgrade
#(though it's already an upgrade of the word processor offered in that thread). run
#mkdir -p /file/wp/
#cp -au /root/my-applications/bbwp/html /usr/local/bwp/ /nwp/wp/bbwp/ /file/wp/
#first if you've been working in the files but haven't been renaming them.
#additional info: the same print window you use to download your work as pdf can also scale it,
#so using the default size plus the heading (h1-h5) tags rather than the font size choices to set relative text size may make more sense (it would also reduce the overall size of the package considerably).
#the wider editing view set in the browser window doesn't affect the print preview display--if you like post its and other files in the margins, set the line width to something even less than 60 ("column view").
fixmenus
jwm -reload

change in shade for the new stuff. as the comments say, run
Code:
mkdir -p /file/wp/
cp -au /root/my-applications/bbwp/html /usr/local/bwp/ /nwp/wp/bbwp/ /file/wp/

#first if you've been working in the files but haven't been renaming them
(that's both arc and ark--two new (customizable) nwp launch codes (talking full nwp installs; after installation, gl or ll in the launcher and then either ark or arc in the next launcher (geany or leafpad) and you can edit the paths or set others for easy backups (a good place to add a "cp -au /file/wp /path/and/folder/you/pick #(use the mkdir -p command if it doesn't already exist)" as mentioned earlier.


the "duals" mentioned is just a folder of drag-to scripts for opening the bwp's (and earlier versions') files (individually or in batches) in a browser and text editor simultaneously. seems to fit with the drag to copy and drag to pet scripts it already has. anyway, it's just a dozen or so variations on:

Code:

#!/bin/sh
exec defaulttexteditor "$@"| exec defaultbrowser "$@"


the four possible variations for text editor part were the above, geany, geany -i, and leafpad. did a bunch of substitution in geany with the cnt code (
Code:
echo $'
(content--script spits out a sample create-file-with-content template)
' > (path to file)


(see above for the fixed broken hrl tag version--it'll show you what to do if your 'content' has the symbols (& ') the code needs to use as the beginning and end of what you want it to make. if only single quotes (an apostrophe), use doubles (real quotes), or use backslashes any time you need to show a (ex:) \& or \' in what gets printed out to > .../(filename)

(i think you may need to \ \'s, but i'm not sure; it may be just a character without something to "escape.")(look up "escaping characters" for more).(in a search engine, not here).

...

and ended with with what appears to be about three dozen (i luckily have little
memory of doing it). as you can see, i gave the desktop files (never got through with making icons for all of them) the same cryptic names as the launcher shortcuts they also point to.
anything with a gi is going to have a new instance of geany launched. same for anything that's got a "geani" in it. defaults x2 is "def" in the launcher (you can drag the files to the running programs instead of the scripts), which is also you'd name them for vtg use. see the shortcuts list in any of the linked threads for more of that sort of stuff.

….seems i ranted myself away from some continuity regarding the screenshot below…

(newer version of the pinstall for 1.3 will add something like:
Code:


#for now i'll just put copies of the drag2pet script and 2 of the
#simultaneous browser-text editor launch scripts in the bwp/bbwp and mcc folders (nwp and /root/my-apps)
#drag either gip or def to the make copies scripts to make a set of templates
#to fit your apps and preferences
echo $'#!/bin/sh
exec defaulttexteditor "$@"| exec defaultbrowser "$@"
' > /root/my-applications/bin/def
chmod 755 /root/my-applications/bin/def
cp -f /root/my-applications/bin/def /nwp/mc/mcc/def
cp -f /root/my-applications/bin/def /root/my-applications/mc/mcc/def
cp -f /root/my-applications/bin/def /root/my-applications/bbwp/html/def
echo $'#!/bin/sh
exec geany -i "$@"| exec palemoon "$@"
' > /root/my-applications/bin/gip
chmod 755 /root/my-applications/bin/gip
cp -f /root/.config/rox.sourceforge.net/Templates/drag2makepet /root/my-applications/mc/mcc/drag2makepet
cp -f /root/my-applications/bin/gip /nwp/mc/mcc/gip
cp -f /root/my-applications/bin/gip /root/my-applications/mc/mcc/gip
cp -f /root/my-applications/bin/gip /root/my-applications/bbwp/html/gip
cp -f /root/.config/rox.sourceforge.net/Templates/drag2makepet /nwp/mc/mcc/drag2makepet



here's that pic i mentioned:
[...]

here's the contents of that "to decryptify.." file:

one of the drawback to the quick launch codes is that sometimes they're a bit too cryptic to be of use.
here's what the things in the folder open:
(geany with an i indicates it will open a new instance of geany if there's already an instance (or more) running. leaf is leafpad. g by itself is geany. l by itself indicates leafpad is the text editor part of the dual launch. p is pale moon. ff is firefox. c is chromium (ll in leafpad if you're using chrome and you want to give it rather than chromium the quicker launch call.)

defaultsx2.desktop -- opens your default text editor and your default browser
geany-opera.desktop
leaf-dillo.desktop -- dillo leafpad
dlll.desktop -- dillo leafpad
ged.desktop -- geany dillo
leaf-slimjet.desktop -- leafpad slimjet
gc.desktop -- geany chromium
gep.desktop -- geany palemoon
leafy.desktop -- leafpad, seamonkey
geani-chrome.desktop -- chrome, geany new instance
ges.desktop -- geany seamonkey
lec.desktop -- leafpad chromium
geanifirefox.desktop -- geany new instance firefox
gib.desktop -- [seems as though i never actually made the file this one directs you to]
lep.desktop -- leafpad palemoon
geani-opera.desktop -- geany new instance
gic.desktop -- geany new instance
lff.desktop -- leafpad firefox
geany-chrome.desktop -- geany chrome
gid.desktop -- geany new instance
lop.desktop -- leafpad opera
geanydefbrowser.desktop -- geany default browser
gip.desktop -- geany new instance

geany-firefox.desktop -- geany firefox
gis.desktop -- geany new instance seamonkey
txt-ed-ff.desktop -- default text editor firefox
geany-jet.desktop -- geany slimjet
leaf-chrome.desktop -- leafpad google chrome

(still a little cross referencing to do, but this should make it easier (though not every browser listed (i.e. dillo, older operas, …) may be able to use the content editable code the browser view hinges upon.



some new launcher codes:

arc -- backup bwp
ark -- backup bwp (dup)
em -- type out html emspace
en -- type out html en space
tab -- type out html tab space
spc -- type out non breaking space (in text editor mode, html removes breaks and spaces you don't explicitly tag.)
br -- type out line break tags <br>

^(until you remember to remember it at least; <p> tags ("paragraph") are less reliable for this (as the name perhaps suggests. seems to work sometimes though).



if you don't have the nwp and the launch code cheat sheet it provides, and you want the benefits of the text editor's quick saves and text manipulation tools, you could always make a cheat sheet directly on the page and sandwich it with
Code:


<!--  -->



(put all the tags and crib notes between arrows like that (cmt in the launcher) and you'll have something that only shows up in text editor view--neither the browser tab nor the print preview/output/pdf file show that as part of your content).

...

bwp1.3.pet now up. it's up to 23k (240 installed, most of it the original styles sheet copied three times).

contents/ingredients (tree -h):

├── [ 89] pet.specs
├── [6.7K] pinstall.sh
├── [ 80] root
│ ├── [ 80] my-applications
│ │ ├── [ 60] bbwp
│ │ │ └── [ 200] html
│ │ │ ├── [ 589] bbwp-1-spchk
│ │ │ ├── [ 578] bbwp-2-nospchk
│ │ │ ├── [ 11K] box1
│ │ │ ├── [ 11K] box2.html
│ │ │ ├── [ 82K] Styles
│ │ │ ├── [ 37K] Styles,Scrap2.html
│ │ │ ├── [ 586] Untitled1
│ │ │ └── [ 582] Untitled2
│ │ └── [ 240] bin
│ │ ├── [ 366] bbch
│ │ ├── [ 371] bbdef
│ │ ├── [ 364] bbfir
│ │ ├── [ 370] bbg
│ │ ├── [ 361] bb-iron
│ │ ├── [ 364] bbpm
│ │ ├── [ 394] bbwpe
│ │ ├── [ 85] bbwpr
│ │ ├── [ 372] bwp
│ │ └── [ 244] dil2
│ └── [ 60] puppy-reference
│ └── [ 40] mini-icons
└── [ 60] usr
└── [ 60] share
└── [ 160] applications
├── [ 313] bbwp-conf2.desktop
├── [ 327] bbwp-conf.desktop
├── [ 279] bbwp-def2.desktop
├── [ 294] bbwp-def.desktop
├── [ 284] bbwp-geani.desktop
└── [ 276] bwp.desktop

10 directories, 26 files

conf2.desktop opens the folders containing the templates, which should help with dragging and dropping onto the dual launchers in bwp, mcc, nwp-wp, etc. (those folders are also the default location ark and arc look to backup).




if you're using the text editor to brainstorm and the browser view to add formatting (font faces and line breaks), make sure to hit refresh on the right windows and in the right order or you may end up overwriting some of your changes with some of your other changes (a second browser's window (separate program--bwp doesn't use much resources) with unrefreshed stages could help. alternately, doing something like \n for <br> in the search and replace boxes (with Use regular expressions ticked) will swap out all your natural line breaks for ones that will show in your pdf and in the browser view that more or less is the one that counts (you could send the pdf, the text file, or the html (i.e that same text file but understood by the machines to be opened in a browser tab), but only two are really comfortably readable for most people). if you want the views between the programs to be more consistent, you could instead substitute the line breaks for line breaks plus the break tag: \n for \n<br>



if the new browser view is too wide, adjust the line width back to 60 or whatever suits your preferences and habits best (you can view it as a thin column in between stacks of post it notes and the pdf/browser/ultimate layout isn't affected).

careful with the browser refreshes and geany reloads and the order you do them; a careless browser refresh can wipe out a lot of work, though backup views in other tabs, windows, or browsers (or geany windows for that matter) may add additional safeguards.

as always, enjoy, have fun, report problems.

--pd

____

after further consideration, i think the br substitution deal discussed above is a bit dopey (though perhaps useful in other scenarios). since pasting your natural (typed rather than coded) tab spaces, non breaking spaces, and line breaks from from a plain text file works with those empty spaces preserved, there's really no reason to fiddle with the matter in geany view. said another way, for brainstorming, plain text files (leafpad or geany) pasted into a master document of sorts (one of your browser view versions or templates) may make more sense and save time in the long run (and also produce more readable rough/text editor mode drafts); the browser window can handle the formatting more intuitively, the text windows save quicker and have better text manipulation tools available, and if you've already got the nwp or mcc pet installed, there's now makepet backup capability coming from the mcc drag to make copies folder, which can now also dual launch your template files (and you can deposit a bunch of those templates there or anywhere else on your system with a right click if you're using rox).



the earlier post has some background and discusses the vtg, batch launches, and the first sets of improvements. from
PostPosted: Sat 28 Apr 2018, 04:47 Post subject: 19k mini word processor that uses the vtg as a start center
Subject description: and for backups; big improvement over earlier version (puup):

Puppus Dogfellow wrote:
bwp1.2.pet

earlier in the thread (http://murga-linux.com/puppy/viewtopic.php?p=860364#860364) i go on about geany as a word processor, or at least start to make an issue of it. here's a version that's actually good enough to use (though in the end, most of your editing may end up being done in your browser windows, and the organization through your browsers' bookmarks).

see
Styles,Scrap2/bwp help and info,
[...] an update to the bbwp/mcc-wp mini word processor, and another update of the mini word processor for more, but to possibly save you a click or two, or at least show you a somewhat practical use for the thing, here's most of the second half (the more vtg-heavy half) of that help file (same as spin update post above):

Puppus Dogfellow wrote:
bwp1.2.pet

more color, font, and special character options, more support (documentation) for the vtg (backups, launching variations of sets with multiple browsers, general review), and now you can launch the templates from the styles or box tabs. the Styles,Scrap2/bwp help and info in the vtg folder mentioned a post up attempts to explain the changes and how to further customize and use the bwp.

from Part Two of Styles,Scrap2/bwp help and info

Quote:

[...]__

added some special characters to the original styles sheet:

______________
this may be the legacy styles sheet, but it's as good a place as any to offer more special characters for your copy and pasting enjoyment or needs:

[...]
___
yet another source:
https://www.copypastecharacter.com/all-characters
(april update introduces colors and additional formatting options, as well as allowing for a reduced initial launch (bwp regulates some of it to the "box" files)).


and here's the newer pinstall.sh:

#!/bin/sh
#bwp, a version of bbwp, a fragment of anuupus...
#right click templates for spell check and no spell check were backwards last time.
#updated version gives support for more fonts, colors, and paragraph alignment (through styles,scrap2; see the other styles sheet for credits and links. in short, you edit in a browser tab and save through your browser's file (html) and print (pdf) menus. bookmark individual files or folders as tabs or groups thereof. use the vtg and geany as additional means of launching or backing up your work. copy in formatting from the styles tabs to the spellcheck/no spellcheck blanks. default is left aligned serif.

[...]


--

most of the changes come from the box files/tabs, which now allow you to launch the templates from startup links (not all the links carry over with the copy-paste; the text box and upload functions unsurprisingly don't work from this document:

[...]


use the styles templates to grab (select or copy) formatting (colors, font, paragraph, etc) to paste
(ctrl+v) or middle click into your working document. copy the u, i, and b from the underline, bold, and
italics bits to have them available from the clipboard (less moving about between tabs to format your
document--those shortcuts vary by clipboard, but the cut, copy, paste, redo and undo all work as expected).
download your working template/s as html, open and bookmark it/them, and use the print menu to save your work as pdf.

thanks to http://https://thiscouldbebetter.wordpress.com/2012/12/18/loading-editing-and-saving-a-text-file-in-html5-using-javascrip/
for this page's download box, and thanks to this pcworld article for the editable tab code (data:text/html, <html contenteditable>)
the whole thing depends upon. (paste it (without the parentheses) into the address bar of your browser for a wider page view.


______
some of my related projects and threads down at what i find to be a friendly and helpful forum, http://murga-linux.com/puppy/index.php:

[...]

____

that's pretty much it. vtg'ing the launches through a start center (browserofchoice /paths/to/files as sessions) may be easier and allow more control in the long run.

p. dogfellow, 4/19/18

***

Part 3:

_ to 1--cleanup.
1 to 1.1 cleanup.

bwp1.1.pet

19k

(think it's okay. only thing to add, which would be separate (so part three may as well've read epilogue), would be a vtg launch sheet of some kind (easier and faster to use and customize than a window manager menu or a browser interface)).


_____


sample vtg entries (alt+z or click the cauliflower)(not part of base bwp, but you can always dump the codes you hone into a terminal if you haven't installed the full nwp)

geany /path/to/file /path/toooo/file (etc)

leafpad /file/6| leafpad /file/7| leafpad /file/8| leafpad /file/9| leafpad /file/10

geany -i /path/to/file /path/toooo/file (etc)

defaultbrowser /root/my-applications/bbwp/html/bbwp-1-spchk /root/my-applications/bbwp/html

rox /your/stuff_that's_here/ /and/there /etc/stuff

(copy and paste as templates and substitute your files and their locations; rearrange combinations, swap in other browsers (most will take the above syntax it seems. leafpad has to be asked as above rather than the more convenient way rox and geany can carry it out (you can grab your files by selecting them physically then pasting their highlight into a text document--instant batch launch for most everything except leafpad)...

anyway, like i said, apart from the basically separate issue vtg stuff (if it were part of the pinstall i'd just've noted the dual use in the comments), bwp1.1 is done and contains its own help file (the bulk of its size and also the way it handles your formatting choices).

bbwpe gives a sample of all the bwp's files set up for easy copy, paste, or launching:


#!/bin/sh
geany -i /root/my-applications/bbwp/html/Styles,Scrap2.html /root/my-applications/bbwp//html/box1 /root/my-applications/bbwp/html/Untitled2 /root/my-applications/bbwp/html/Untitled1 /root/my-applications/bbwp/html/Styles /root/my-applications/bbwp/html/bbwp-1-spchk /root/my-applications/bbwp/html/bbwp-2-nospchk /root/my-applications/bbwp/html/box2.html /root/my-applications/bin/bwp

___

puppus dogfellow, 4/23/18

(gave a makeshift vtg launch sheet a shot)

----

4/27

upped 1.2. (insert tab support, more readable box content (box1 and 2 are both the same, and the old styles sheet grew from 17 to 82k, but the pet is still 19k). here's the description and the older folder's version of this file:

bwp to 1.1 cleaned mostly broken or misguided links. for the upcoming 1.2 box 1 and 2 are improved but identical (and so even more redundant (experiment with no fear!) given the copies that get made in usr/local and the nwp/wp (and the templates folder, now that i think of it--it's also just occurred to me i may not have mentioned the right click function version of the process in these pages--just right click it into existence, drag that file (or folder, if you chose the whole bwp-0 directory) to a browser, and you can run it from wherever you like, using the templates mostly for scrap (reload rather than save and you can start over til you get the hang of grabbing it the right way).

(i'm still kind of surprised it works this well).

vtg sheet will have backup functions via rsync -au and or cp -au (not that i know what the difference between au and a is--they both seem to work at least as well as cp -fRu, and update metadata better--not much experience or knowledge in this regard (and many others), but was using cp --fRu to update the nwp before i learned how to make pets. i think rsync is newer and cp is an ancient unix built-in that comes as a given with every kernel (which in my newbie state i take as the core of a current linux, with everything else on top being how developers make it usable for people who aren't developers) (and sometimes for those who are). you may not have rsync, but you probably do and it may be better. it's designed for networks, but
cp --help > /tmp/cph; geany /tmp/cph
rsync --help > /tmp/rsynch; geany /tmp/rsync
will give a sheet you can play around with as you learn more
(more vtg issue stuff, but you can always work out what you want from the help file and, once settled on the right code, dump it into the terminal for basically the same experience.)

...

so a little rambling to say i've updated the box scripts in the html folder (everything's got a newer date but i believe that's all i changed since the last upload).


___
bwp files, but google drive can't display the html the same way ibiblio (for example) does (or appears to to me).

might be easier to just install or extract the pet for a peek.

main change over bwp0 is the ability to call the templates from box tab itself.

more special characters and external links added (related projects).

___

p.dogfellow, 4/26

(original styles sheet updated to include variations on some of the formatting options in styles2 and some additional (mostly latin diacritic stuff) special characters) (also a really good link for that). it's in the online help folder as large,optional(82k), but it'll be the main version of the old styles/help/scrap sheet and the 17k version will be here for you to swap in if you like (backup code coming for the vtg will have something in it to automate this).

pd



pet is 19k under the same compression i used before.

(now up)



, which i'll now link back to here and try to remember is defunct.

***

________

vtg stuff:


1. basic backups

change the /file/wp bit at the end of each line to a place on your system you'd like for the backups. this will make the copies at usr/local/bwp the bwp folder, the html folder is your stuff launched from /root/my-applications/bbwp, and your bbwp folder from nwp comes over with that name. this backup is on the same partition as the other stuff (unless you've symlinked up your system otherwise), so a safer place may be another drive entirely (for which you could also do cp -a /file/wp /path/and/folder/you/pick (use the mkdir -p command if it doesn't already exist).

mkdir -p /file/wp/
cp -au /root/my-applications/bbwp/html /usr/local/bwp/ /nwp/wp/bbwp/ /file/wp/

make versions of line above to use your start center to also run backups. similar to the [program] --help >/tmp/progh; geany /tmp/progh type command discussed earlier for cp and rsync, you can use it for tar, which may be a better vtg way of doing backups than makepet, which will force you to use the message window to complete the action (better/quicker to use the right click drag2pet for that, but the bit below below starts the process. use ctrl+7 to toggle in and out of the message window (terminal tab if you're doing it through the menus) to name or otherwise label your pet (you can just hit enter for all the questions and each new archive will overwrite the last. otherwise name them through the popup and window to preserve earlier versions)).
makepet /root/my-applications/bbwp/html/
makepet /nwp/wp/bbwp/
makepet /usr/local/bwp/

right clicking to make a template in a given location will give you access to the drag-to version of makepet. it'll pop open the same little gui (in this capacity, it's something to help you label the pets(backups) of the directories in your archives).

substitute the copy (cp -a) command for a file manager (in puppy, typically rox), and you can open the folders you're copying and fine tune a launch protocol with that:

rox /root/my-applications/bbwp/html /usr/local/bwp/ /nwp/wp/bbwp/ /file/wp/

if you select some of the files from the folders that opened and then middle click into a text editor with a mouse, you get something like these results for the bwp folder in /usr/local:

/usr/local/bwp/bbwp-1-spchk /usr/local/bwp/bbwp-2-nospchk /usr/local/bwp/box1 /usr/local/bwp/box2.html /usr/local/bwp/Styles /usr/local/bwp/Styles,Scrap2.html /usr/local/bwp/Untitled1 /usr/local/bwp/Untitled2

just add a launcher (browser or text editor) and a space before the list. add other files' whole paths to the list (separating each you add by a space--there's no limit, but you may want to divide your files and folders into more manageable (and possibly redundant (for convenience's sake, of course) chunks), and you've got a start center line. place the cursor, click the cauliflower, and your choices will launch. launch with more than one browser to keep versions of a live document available as you work on it. set up how you'll ultimately like your sessions ("bookmark all tabs" in most browsers) to be saved--it's much quicker than doing it one by one through the file-open dialog.

(snuck in 2 and 3, basic start center and vtg as an organizational tool)

-------

NB: backup your stuff before installing any updates. most of this assumes a bbwp in the nwp folder (ignore this for non nwp installations, and ignore the vtg stuff for not vtg installations (though the former becomes a lesson on how to modify the box templates for your own stuff and the the latter is still relevant as "dump your stuff into the terminal instead of striking the cauliflower." (vtg=one line of code, click the cauliflower icon or alt+z; more than one line of code, highlight it then do the same. dumping into a terminal requires highlighting it in its entirety (regardless of how many lines it is) and then middle clicking it into a terminal (and sometimes hitting enter if it didn't automatically run/grab the last "carriage" return)).

highlight groups of files, paste them, arrange them, give them a launch command. that's the vtg start center for bwp, the browser word processor.


p. dogfellow 4/27/18

(this page has now become help, info, and development log).


….

more help and templates:

the difference between

geany -i /root/my-applications/bbwp/html/Styles,Scrap2.html /root/my-applications/bbwp//html/box1 /root/my-applications/bbwp/html/Untitled2 /root/my-applications/bbwp/html/Untitled1 /root/my-applications/bbwp/html/Styles /root/my-applications/bbwp/html/bbwp-1-spchk
/root/my-applications/bbwp/html/bbwp-2-nospchk /root/my-applications/bbwp/html/box2.html /root/my-applications/bin/bwp

and

geany /root/my-applications/bbwp/html/Styles,Scrap2.html /root/my-applications/bbwp//html/box1 /root/my-applications/bbwp/html/Untitled2 /root/my-applications/bbwp/html/Untitled1 /root/my-applications/bbwp/html/Styles /root/my-applications/bbwp/html/bbwp-1-spchk
/root/my-applications/bbwp/html/bbwp-2-nospchk /root/my-applications/bbwp/html/box2.html /root/my-applications/bin/bwp

is that the -i conveys you wish the files opened in a new instance of geany. for most things, the launch code is as i described, but as you'll see if you do the [program] --help >/tmp/progh; geany /tmp/progh bit for things like firefox and palemoon, there are usually many more options available. to use the vtg start sheet/center for libreoffice, use libreoffice6.0 --writer /paths/2 /your/files /yadda /shae or something similar.


this one's messed up because it's been installed on top of itself too many times--copy from your own actual file locations if you've got the nwp version of the bwp bbwp going.

firefox /nwp/wp/bbwp/html/html/bbwp-1-spchk /nwp/wp/bbwp/html/html/bbwp-2-nospchk /nwp/wp/bbwp/html/html/box1 /nwp/wp/bbwp/html/html/Styles /nwp/wp/bbwp/html/html/Styles,Scrap2.html /nwp/wp/bbwp/html/html/Styles,Scrap(2).html /nwp/wp/bbwp/html/html/Untitled1 /nwp/wp/bbwp/html/html/Untitled2

(the launch from nwp section of your box file may not work correctly even if you have the nwp installed because of this. on the bright side, it means if you're using the thing but keeping the default names for the blanks, or saving your work in the formatting styles sheets, it's less likely the last upgrade just overwrote your work).
(backup your stuff or rename the originals/these are the bits that will be a how to on customizing the box and styles tabs (basically look for the address bits, change those and the associated titles; look for the color bits, use gcolor2 (in most pups) or the geany color chooser to customize yours (queens and keyboards and six digit codes in the styles2 sheet); most things can be pasted in directly; fonts are tricky because just because your machine has it, doesn't mean your audience does on theirs. sizes are sizes, but serif supercalifragilistic may get rendered as plain serif in the end.))

never given a desktop file (the menu entry calls from /root/my apps/bin but is essentially):

defaultbrowser /usr/local/bwp/bbwp-1-spchk /usr/local/bwp/bbwp-2-nospchk /usr/local/bwp/box1 /usr/local/bwp/box2.html /usr/local/bwp/Styles /usr/local/bwp/Styles,Scrap2.html /usr/local/bwp/Untitled1 /usr/local/bwp/Untitled2

use the geany versions (the geany -i code is bbwpe in the terminal and on the menu) to change the tab titles or otherwise overhaul the files, templates, or boxes (there are a few things can't be edited through the editable window itself. alt+1 or n in the launcher in nwp installs gives you paste and place or highlight and select html codes you may find useful).

copy your own files or base your projects on these templates. check the desktop files in /usr/share/applications for an installed applications launch command if it's not the name itself (rare but happens).


______

(you could also launch music or hissing with the vtg if you like:

vlc /path/2/some_song (or playlist)
zensound; xdotool key f10 down down enter
(think the last bit is really F10 Down Down Return))
.

general tip: put quotation marks around paths that have spaces in them (prog "/path/2/spaced name").
***


here's an example of the color mod lines to look for (you're just replacing the D41B75 part with a six digit code you grabbed from one of the color wheels mentioned or some other of your choosing):

<p style="margin-bottom: 0in; line-height: 100%" align="justify"><font color="#D41B75">⌨</font></p>

you can also try swapping in fonts by duplicating any lines that name one and just changing that bit to something you know is an official font name (use gfontsel to pick some (the more common, the more likely your viewer will see what you think you're putting before them).

here's an example of the address/link lines in the file you can customize:

<a href="file:///nwp/wp/bbwp/html/bbwp-1-spchk" target="_blank">spchk</a><p>

use http:// instead of file:/// for web addresses. (this is also on the n and alt+1 menus as paste and place nwp commands (versions of link and table of contents entries)).





n menu refers to the shift plus spacebar popup menus (enter "n" in the p(wn) launcher). most of those formatting items have individual launch codes (check the lists above) assigned (which is generally a much faster way of getting them or doing most things).


short version: paste in formatting from the styles tabs and be sure to download your work to save it if using browser mode. edit the titles, customize the colors, and brainstorm in geany; fine tune stuff, type a tab space without jumping through a hoop (next version)--the main disadvantage of browser view mode is a slower save process.

it's light and quick and can be pared down further. middle click paste highlighted groups of files into a geany document to set up batch launches. launch from multiple sources to have many versions of a draft going at the same time. bookmark tabs as sessions. have fun.

--p. dogfellow


the "specil" popup for the special character cutting and pasting is rendered less useful with the new version, but you can use it to paste notes or formatting code for the geany view of the html side of things.

newest version is 23k (but doesn't include the mcc (make concurrent copies) or xmod (keyboard configuration presets) folders. it will however put the drag2makepet backup utility and a couple of versions of the dual launcher scripts in that folder if you've got it, and it'll put the two dual launch scripts in the bbwp folder in /root/my-applications/bin (you can use this as a stand alone word processor without the nwp, but as discussed above, the text paste and place and other utilities may come in useful). right click templates get updated, and you can now launch your files from the box an styles tabs (customize those files in a text editor)).

-p.dogfellow

here's the pet again:

bwp1.3.pet

(and my apologies if arranging those last two quoted posts as strata confuses the issue.)


overall size (23k) is still less than the specil pet "plugin" from a post ago.

enjoy
Back to top
View user's profile Send private message 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1564
Location: nyc

PostPosted: Thu 03 May 2018, 23:33    Post subject: some more on text editor mode versus browser mode, comments,
Subject description: saves, reloads, refreshes, updating, and drag2makepet
 

from

http://murga-linux.com/puppy/viewtopic.php?p=990673#990673
( a bit more on the bwp)

Puppus Dogfellow wrote:
Quote:

[…]if you don't have the nwp and the launch code cheat sheet it provides, and you want the benefits of the text editor's quick saves and text manipulation tools, you could always make a cheat sheet directly on the page and sandwich it with
Code:


<!--  -->   



(put all the tags and crib notes between arrows like that (cmt in the launcher) and you'll have something that only shows up in text editor view--neither the browser tab nor the print preview/output/pdf file show that as part of your content).




Quote:

careful with the browser refreshes and geany reloads and the order you do them; a careless browser refresh can wipe out a lot of work, though backup views in other tabs, windows, or browsers (or geany windows for that matter) may add additional safeguards.


if you've decided to work in the html document in geany mode rather than in browser view for the quick saves because you've discovered that putting your text between the arrows (
Code:
<!-- (i.e. here and this can go on indefinitely and be repeated (i.e. additional sets of arrows placed elsewhere in the document) as often as you like) -->
) is a good way to have an invisible draft going while preserving your spaces and tabs and visual poetry for some later paste in, make sure to refresh the browser version before the paste in that turns the comments contents into the working/formattable/browser/pdf draft or the download will overwrite the (now presumably backup) comments and all the other changes made since the browser view was loaded or last refreshed (despite the saves you may have made in geany or leafpad in the interim--sometimes it's easy to lose track of the sometimes invisible content).

...

pasting in page breaks from either line below in html view is perhaps easier than grabbing the page break line in the styles2 sheet, so future word processing templates will likely include
Code:

 <!--
<par style="font-size: 11pt; color:white; page-break-after: always"></par>
<par style="font-size: 11pt; color:white; page-break-before: always"></par>

-->


and something similar to this post as commented out comments on comments, saves, refreshes and reloads in the bwp.


install bwp 1.3 after whichever other versions of the mcc utility you choose and back up your bbwp folder if you've been saving your work in the default templates without renaming them (anything else in the folders is safe).

you could install the backup drag2 pets you make as pets, but i personally think of them as insta-archives and just extract them when i need what's in them (has actually saved some work for me that would've been otherwise lost, which is why i decided to offer it this way--since you're not making a duplicate file system inside the pet/directory you're compressing (a pet is basically a .gz compressed archive), it'll install as top level directories, which may not be what you want (though it makes locating the stuff generally easier, especially if you're in another pup running on the computer, and you need to go into old installations to check for some of your old files, or want to migrate your work over).

main changes over older version is better view in browser mode, an ability to launch your files from the box tabs, and the expanded styles sheets mentioned earlier.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [17 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2862s ][ Queries: 12 (0.0145s) ][ GZIP on ]