A NWP/A NWPUS--A Noob's Word Processor and Utilities Suite

Word processors, spreadsheets, presentations, translation, etc.
Message
Author
User avatar
Puppus Dogfellow
Posts: 1667
Joined: Tue 08 Jan 2013, 01:39
Location: nyc

nwp32/64.4 --set run actions and icons for your files, some

#76 Post by Puppus Dogfellow »

nwp64.4.pet

nwp32.4.pet
post is long enough but in short, the main feature of the upgrade is the ability to set run actions for your word processing files (or any other, though it was put together in part to a geany-vtg type start center). from the comments on a picture in a folder in my repo:
Quote:

another use for the mcc (make concurrent copies) function is assigning text files to pairs of programs (browser-text editor) by having the copies carry an extension that will set them apart from everything else. right click in rox to set both a run action (pick something from the duals folder, to continue on the word processing bent, though that's not strictly necessary) and icon. screen shot shows...
from

Post subject: ~572.64.1/6t4.1: a 64 bit version based on tahrpup64_6.0.5
Subject description: 2 versions are essentially the same--something's up with something's compression settings somewhere
, which has no subtitle but is part of Rattlehead's set run action quickly thread):

Puppus Dogfellow wrote:

Code: Select all

#!/bin/sh
#nwp64.4
echo application/x-def:*.mon >> /usr/share/mime/globs
echo 50:application/x-def:*.mon >> /usr/share/mime/globs2
echo application/x-def text/xml >> /usr/share/mime/subclasses
echo application/x-def >> /usr/share/mime/types
echo application/x-def:*.san >> /usr/share/mime/globs
echo 50:application/x-def:*.san >> /usr/share/mime/globs2
echo application/x-def:*.ser >> /usr/share/mime/globs
echo 50:application/x-def:*.ser >> /usr/share/mime/globs2
echo application/x-def:*.pwn >> /usr/share/mime/globs
echo 50:application/x-def:*.pwn >> /usr/share/mime/globs2
echo application/x-def:*.nwp >> /usr/share/mime/globs
echo 50:application/x-def:*.nwp >> /usr/share/mime/globs2
echo application/x-def:*.mono >> /usr/share/mime/globs
echo 50:application/x-def:*.mono >> /usr/share/mime/globs2
echo application/x-def:*.def >> /usr/share/mime/globs
echo 50:application/x-def:*.def >> /usr/share/mime/globs2
echo application/x-def2:*.def2 >> /usr/share/mime/globs
echo 50:application/x-def2:*.def2 >> /usr/share/mime/globs2
echo application/x-def2 text/xml >> /usr/share/mime/subclasses
echo application/x-def2 >> /usr/share/mime/types
echo application/x-def3:*.def3 >> /usr/share/mime/globs
echo 50:application/x-def3:*.def3 >> /usr/share/mime/globs2
echo application/x-def3 text/xml >> /usr/share/mime/subclasses
echo application/x-def3 >> /usr/share/mime/types
echo application/x-pwp:*.mons >> /usr/share/mime/globs
echo 50:application/x-pwp:*.mons >> /usr/share/mime/globs2
echo application/x-pwp text/xml >> /usr/share/mime/subclasses
echo application/x-pwp >> /usr/share/mime/types
echo application/x-pwp:*.sans >> /usr/share/mime/globs
echo 50:application/x-pwp:*.sans >> /usr/share/mime/globs2
echo application/x-pwp:*.sers >> /usr/share/mime/globs
echo 50:application/x-pwp:*.sers >> /usr/share/mime/globs2
#(copy in def pwp desktop files); fixmenus jwm -restart
#set run action:
mkdir -p /root/.config/rox.sourceforge.net/MIME-types
ln -s /usr/share/applications/pwp /root/.config/rox.sourceforge.net/MIME-types/application_x-pwp
ln -s /usr/share/applications/def /root/.config/rox.sourceforge.net/MIME-types/application_x-def
#set icon:
cp -f //usr/share/applications/icons-alt/inpare9.xpm /root/.config/rox.sourceforge.net/MIME-icons/application_x-def.png
cp -f /usr/share/applications/icons-alt/p2e0.xpm  /root/.config/rox.sourceforge.net/MIME-icons/application_x-pwp.png
[...]
Posted: Tue 06 Sep 2016, 20:23 Post subject: alternate version of above
Subject description: untested but i think it will work. am i overlooking something?
had the names on the icons wrong for one thing (left out a -x), but that method of setting them works so inconsistently (or i confused something by repeatedly swapping back and forth so many times) i ended up putting an alt-icons folder in usr//share/applications just so i could easily right-click assign them--it's a useless part of the script. :lol:

maybe messing with that /root/.config/rox.sourceforge.net/ROX-Filer/globicons file is a better way?(
Rattlehead
Posted: Wed 07 Sep 2016, 17:44 Post subject:
Speaking of icons...
[...]...
)

anyway, i used it in a pinstall script for a pet that was making most of a remaster and the copies all have the four extensions register as unique entities that can get their own programs and icon assignments (which is cool/i'm over the disappointment and inconvenience). :D
http://www.murga-linux.com/puppy/viewto ... 025#923025


nwp64.4.pet

nwp32.4.pet

from
fixing a bug with the auxiliary launchers or keycuts
pruning or setting drive arrays
:
that emboldened bit of gibberish was meant to say "as an alternative to a geany-vtg type start center." (any of the dual launcher codes prefacing a list of files will open them up in both a browser and editor. other than dragging and dropping files or groups of files onto the scripts or their .desktop representations, this seemed like the easiest way to process words (so to speak, so to speak) with the anuupuus (Word Processor (U..)Utilities Suite). now you get another way and some (i think) relatively nifty icons.

will have a bug fix pet to get rid of the ghost drives on the alternate pinboards and fix up the edit store port scripts (for now, don't use--just had the edpin wig out geany...---had to actually reboot to get out of the loop actually. lost a post and everything.)

there's no reason to issue a pet fix for the edpin problem--just use the auxiliary launchers or built-in keycuts to fix it. method one: main launcher (shift+spacebar), gl (opens the file in geany; use ll if you want to open the file in leafpad), enter, edpin, enter.

this opens up "edpin" for editing (if the file didn't exist, it would make a blank file with that name for you to save in the location of choice--gl and ll are word processing functions at least as much as configuration and maintenance tools) and presents

Code: Select all

#!/bin/sh 
geany /root/Choices/ROX-Filer/Pup* 
/nwp/edpin 
 

to fix it, add a pound sign to or delete the last line, making it

Code: Select all

#!/bin/sh 
geany /root/Choices/ROX-Filer/Pup* 
#/nwp/edpin #--this was supposed to have been commented out
 
had i just left the /nwp/part off (comment mark would've made it the title), no real harm would've been done--it would've just made a file called "edpin" that had no set location for its contentlessness (beyond /root/edpin--root seems to be geany's default location for files made this way. the ones you create through the file > new dialog i believe get made in /tmp...). as it stood, the file as command continually reactivated itself as the last step. comment makes it back into a tile, and brings up another error, this time in documentation.

maybe i was still in shock at having to reboot (such a simple script (when done right) and geany is normally so reliable...), but i should've pointed out that the bare dual launcher codes need to be prefaced with their full path (/nwp/) because the codes aren't part of the PATH (those that are can be bare. i.e. geany -i /root/1 /etc/2 will open up those files when you activate the vtg (either through the keyboard (alt+z), the menus (vtg or the cauliflower), the tray (cauliflower)...)). so, for example, if you want geany and pale moon to open the files, use

Code: Select all

/nwp/gp /path/to/file /path(s)/to/file(s) 
method one: main launcher (shift+spacebar), gl (opens the file in geany; use ll if you want to open the file in leafpad), enter, edpin, enter.
modifier(s)=Alt KEY=h -- /nwp/k
modifier(s)=Alt KEY=j -- /nwp/rl
modifier(s)=Alt KEY=k -- /nwp/gl
modifier(s)=Alt KEY=l -- /nwp/ll

default shortcuts for most recent spins/nwps use the above, so method two is alt+k (or l, if if you want the file opened in leafpad), add the pound sign, save. that will fix the script so that "edpin" in the launcher opens up the six new pins. (index finger gets k for key launcher because i at one time believed it would see more use, or, if used at all, would be used somewhat heavily). if you want driveless pins, or more control over their placement than normally holds in Puppy, look for the bit that has "args" in it. those are your drive icons (i.e. <icon x="32" y="836" label="sda1" args="drive ext4">/root/.pup_event/drive_sda1</icon>)

delete the lot for driveless, copy your extant set over from PuppyPin (no extra number) to have it on each of the alternate pins. since they are now frozen with the text file, they'll remain in (odd, if you so choose) position(s) even after the auto redrawing of icons that occurs at boot and X restarts.

if you want to automount all your drives, you could drag musher0's monter5 script out of quar in Startup. since alt plus spacebar is root, one of the first things i do on a new install is activate that shortcut, then navigate to startup adn /my-applications/bin and make those (by use of ctrl plus number) rox speed dials 2 and 3. if you want to automount at a click and your discretion, leave monter5 in /quar (alt+t spacebar then 2 to get to its parent folder if you followed the quick links howto above).

rox is cool. :D

(rl, the last launcher in that bank, is rox opened at /nwp/--the short names of the mostly blank directories are to provide quick cover for you and your creations--d plus enter in that one gets you a blank directory, nwp's version of My Documents, my-documents (though there's also a "docs"), etc).

have fun with it.
:D
not sure if this will help clarify things, or from where you need to enter the discussion to be in need of clarification, but this update and bugfix also seems to me to be a howto and an explanation of some more of the nwp's features.

further, while it does get documents created and saved and arguably sorted and stored, and all very quickly, the formatting is best kept for pasting into more proper word processors like google docs, libreoffice, or even notecase (which can also export to html (and therefore pdf)). the print view will give you a scalable interface, but lately isn't heeding the viewport, at least not in 64 bit. haven't tested on 32 bit lately, but it doesn't seem to work as consistently (is it a browser issue?) as i remembered. for my own use, i use the nwp((as in (A NWP/A NWPUS) primarily for document creation and modification and the utilities side of things. if i need to edit more formally, i paste into libre or google. i'll make a return to the minimal versions (under 50k) in a release or two, but these last two are relatively monstrous--14mb. there may be a weight reduction pet in the future to reduce this--there's some redundant documentation and many icons that can be autogenerated if needed...)
the newer tiny noop will be in at least two versions, both smaller than the original: http://www.murga-linux.com/puppy/viewto ... 360#860360. i'm thinking at least one version should incorporate the new Quasi-Proprietary File Type feature, possibly as an offshoot of the mcc (make concurrent copies) feature.

mcc: http://www.murga-linux.com/puppy/viewto ... 287#902287 (attachment at the end shows it being used for this purpose)




32/64.4 pet puts the alt-icons folder in your usr/share/applications diretory. it contains the drag and drop dual launchers for word processing use and some icons--right click a file to which you added one of those extensions (pwn, pwp, sans, ser, def3, def4, mons, mon...) to set an icon and run action for it. you've got four new categories, none of which have to be actually set for word processor use.

Image

the six choices (pp1-6 in the launcher) are really the same 2 three times each. one's more minimal and the other's got some tools useful for getting you first set up, though it's hard for me to say which i'd choose to mod--easier to drag to one or delete from the other...

shown are some of the suggested icons for the word processor (or libre--i actually prefer that odt icon to the regular one as it sets it apart from the docx files better). [...]
Attachments
mimetype-icon_change (1).gif
mcc function (indirectly) setting run action (not shown) and icon
(26.14 KiB) Downloaded 1244 times

User avatar
Puppus Dogfellow
Posts: 1667
Joined: Tue 08 Jan 2013, 01:39
Location: nyc

update--nwp32/64.5 and .6 (mostly bugfixes) though there's

#77 Post by Puppus Dogfellow »

general and update info:
from http://www.murga-linux.com/puppy/viewto ... 569#926569:
Puppus Dogfellow wrote:[...]fixed that along with errors that prevented MochiMoppel's WinSwitcherfrom running correctly from either the ctrl+spacebar keycut or the upper tray. fixes as an update are in the nwp pets below, which are also updates for the 32 bit spins.

nwp32.6
nwp32.5
nwp64.6
nwp64.5

geany32+some3264deps.tar.xz

.5 has geany1.25 and plugins for both 127 and 125 (a few 32 bit, a few 64 bit). .6 makes that stuff a separate package (the .xz above). [...] reduced size is mostly from the removal of the redundant (nwp.5) geany packages and some uneeded documentation (nwp appears to work in Slacko as of the 700 release (pretty sure it would work on 5.7 and below but i've never tested it) so i ditched some of the workarounds for the 6 series--it's still there, just not as often)[...]

still in the air--haven't yet played around with focuswriter or ted, but if i include a word processor beyond the nwp/vtg combo and what notecase can do (export to html, which your browser can then save as pdf) or what google docs (haven't tried the apparently chrome/chromium-based only sync feature yet, but it's one of the reasons i'm thinking of keeping a big browser as default in the precise spins) or other online services provide, my first pick would likely be the former (i.e. if it includes ted i failed to get focuswriter working without the 32bit compatibility pack).
from launcher shortcuts:
___
the only real way to further develop the word processing capabilities would be to use css and make something along the lines of http://alistapart.com/article/boom

i just wanted the look and feel of what an rtf processor like RoughDraft (http://www.salsbury.f2s.com/) does in windows (works in linux with wine but the interface is somewhat similar to geany's (which can do tabs and splits, so why the entire environment for the 3k proggie)--all the formatting and hype (so to type) are unnecessary--three fonts, a few sizes, italics, bold, underline, strikethrough--holy crap, this [stuff] can do links and tee oh cees with ease--and suddenly i'm not completely ignorant of code, and even have picked up a little html knowledge (mostly from [messing] around with joe's windows manager, which kind of gives you the gist and the knowledge makes your environment more livable, personalized, arguably efficient as you learn and get comfortable--

so yeah, i can't code for [beans] really--which is the point. it's not as alien and horrific as you might first think--"geany open these things" is like texting the most agreeable friend you have, and it's code: geany /here/smyfile,son

(that would open up "smyfile,son" if you had it in a folder named "here"--it'd make the file if it didn't exist but the folder did, and it would cock its head and balk if you asked it to make the file in a folder that didn't exist (although elsewhere that would be considered its unique name--location plus name is name plus, sorta.

i think i'm done with .5, but there was never supposed to be the forgotten things, but it's nice to have an installation pretty much the way i want it in a click and a two minute wait (idea is you customize your nwp and reap the same benefits. for word processing--well, i'll leave that for your processing.).

newest nwp (will) have some custom pinboards preset (see threads for screenies), but mostly it's just bugfixes--Winswitcher had the wrong code assigned its key (which is ctrl plus spacebar) in all seven key configs, edpin was a loop rather than a help, cr didn't work in 64bit (none of the close all scripts do but this. now.), but now it closes all rox windows and the blue-green X on the trays and menus should work…


it's excellent with file generation and navigation, the utilities side works almost without fail in both in both 32and64 (64 doesn't like some wmctrl commands and there are bugs i'm sure i've not yet found)--and you could do cut up stuff with the rectangular select feature.

if (that enclosed by) "div" (tags) could take formatting i'd be done with this thing…

____

...i think it was div--gave me a reshapable box i could drag around the screen to resize margins, but no formatting--and remembering "here's a break, a carriage return"--not a happy realization that i'm old enough to remember carriage returns.


anyway, through no fault of my own, some progress has been made on the slacko front (and in celebration i deleted half the workaround documentation for the 6 series--most of it's still there in jaewm!1 documentation (in /nwp/c, i think--notecase file (which can be natively formatted and exported to pdf, more or less obviating my word processing efforts, at least word processor wise))). so, as of the 700 series, the nwp works, or at least it did when i tested in the 64bit version. only deps were xdotool and yad from the ppm, and the only glitch appears to be with theming--pop ups don't change the settings--maybe you have to "my39" it to get back the default interface, change colors and such, then my1 back into the nwp interface (by verbing the my command i mean entering that in the main launcher (though preceding it with /nwp/ will allow it to be called from the terminal...ctrl plus d closes the terminal (almost four years of playing around with linux and i found that out about two weeks ago).


User avatar
Puppus Dogfellow
Posts: 1667
Joined: Tue 08 Jan 2013, 01:39
Location: nyc

nwp32/64.8

#78 Post by Puppus Dogfellow »

nwp32.8ns.pet

nwp32.8.pet

nwp64.8.pet


from where things are, where it's at (,or maybe just what it is)
updates to the nwp and the workshop folder
Puppus Dogfellow wrote:
Puppus Dogfellow wrote: [...]
nwp8 (32 and 64 bit--ns is new syntax (32 bit pups after slacko 5.7)) cleans up the root one menu, fixes some permissions problems, adds a few scripts (33/66 (bounce the mouse cursor out and down (default positions for popups (etc) sometimes interfere with functions and i find these two scripts help), and icono/iconsesame, which should make it easier to customize your icons, mime types and file labeling), some custom configs for the urxvt terminal…) and takes the recommended add-ins out (see nwprecs1 and nwprecs2, which add folders by those names in /root. included in each is an install and a remove script, the contents of which are shown below). nwp8 also includes the improvements made to the mcc (make concurrent copies (and optionally label them) utility: http://murga-linux.com/puppy/viewtopic.php?t=102846 ).
[...]

pm installer is already part of the nwp (i should've removed it). thanks to aragon, radky, RSH, SFR, rerwin, don570, 01micko, Barry Kauler, shinobar, trio, rcrsn51, disciple, technosaurus, step, musher0, Geoffrey, Corvus, OscarTalks, mavrothal, gyro, watchdog, MochiMoppel, peebee, Whitesnow, 666philb,...

clicking the install script will give you a popup asking you if you want to install each item. the remove script just empties its respective folder of the pets.
[...]
pets are down to about 8mb. version 7 (slightly more busy root1/left click menu) also comes as an SFS (same 3 variations).

----

pdogfellow 12/16


it is what it does, so see launcher shortcuts and keyboard shortcuts for (perhaps) a better idea.



(barring that, it uses short commands, the keys, screen artifacts (stuff you click or activate with a mouse or finger), and/or popup menus to launch files, programs, text strings, commands (including resizing, moving, and/or reshaping windows) or mimic the menus (or select aspects thereof arranged to your tastes) of more or less any programs you choose, in a way better suited to you and your habits than stock/default…---; use a minimalistic or limited text editor plus a browser as a full word processor, have nine more menus than most stock jwm pup setups, and for my part, i'd so much rather have it than not that i document all the changes i make to it and make sure it's available to me as soon as i fire up a new pup (often i use woofy to install it before i actually boot a pup for the first time, which is incidentally the original reason for the external pet installs--don's right click package and Whitesnow's (oops, thanks, Whitesnow--big omission (now fixed)--your dropbox package is awesome--been using it for pretty much as long as i've been using puppy/linux--it's much better than what i tried to put together for megasync (though, granted, you know what you're doing and i'm a noob (NWP--Noob's Word Processor/Ultimatesque Utility Pack)) mydbox require choices that are better left unautomated; this will turn out to be easier to upgrade for future builds anyway so no real setback...)--so much for brevity.

[...]

the custom root2 menu (exists also as a submenu/sample template on 0 and 9) requires some additional plugins over base pup. i mostly use geany 125 and 127, the latter my only 32 bit version going at the moment. the folders containing the geany plugins (and/or geany; upgrade precise (this and the 125 plugins courtesy of Corvus) from 123 to 125, which is why the 32 version is so much larger) contain scripts similar to those for the rec'd pet installs:

Code: Select all

#!/bin/sh
#install these plugins-125-64
#nwp's root2 menu only requires first two
petget ./geany-plugin-extrasel_1.25+dfsg-1_amd64.deb
petget ./geany-plugin-spellcheck_1.25+dfsg-1_amd64.deb
petget ./geany-plugin-macro_1.25+dfsg-1_amd64.deb
petget ./geany-plugin-markdown_1.25+dfsg-1_amd64.deb
petget ./geany-plugin-miniscript_1.25+dfsg-1_amd64.deb
petget ./geany-plugin-multiterm_1.25+dfsg-1_amd64.deb
petget ./geany-plugin-numberedbookmarks_1.25+dfsg-1_amd64.deb
petget ./geany-plugin-overview_1.25+dfsg-1_amd64.deb
petget ./geany-plugin-pairtaghighlighter_1.25+dfsg-1_amd64.deb
petget ./geany-plugin-prettyprinter_1.25+dfsg-1_amd64.deb
petget ./geany-plugin-shiftcolumn_1.25+dfsg-1_amd64.deb
petget ./geany-plugin-xmlsnippets_1.25+dfsg-1_amd64.deb


#!/bin/sh
#nwp's root2 menu only requires first three
petget ./geany-plugin-spellcheck_1.27+dfsg-2.pet
petget ./geany-plugin-treebrowser_1.27+dfsg-2.pet
petget ./geany-plugin-extrasel_1.27+dfsg-2.pet
petget ./geany-plugin-multiterm_1.27+dfsg-2.pet
petget ./geany-plugin-overview_1.27+dfsg-2.pet
#install these plugins-127-32


#!/bin/sh
petget ./geany-plugins-1.25-i686.pet
petget ./geany-1.25-i686.pet
petget ./geany_DOC-1.25-i686.pet
#install-125+plugins

___

yet to be addressed:

alternate file system and navigation in general (keep out of root, make it easier to find and link to your stuff across pups)
the virtual keypad(s) (relates in part back to the custom program menus on some of the jwm and aemenu popus…)
settings, file, and config porting/backup (see /nwp/pet folder, the links above, or the main support thread for more. there's also a bit of it now as part of the rox right click menu.)
panel frame and pinboard switching
the vtg (part of the nwp (noop) installation. link is (was) to
Geany as Launcher, Bookmarks Manager, and Word Processor
open programs, files, folders and web sites; reshape and resize windows; process words
)
lpx...
(...no point in making this as long as the support threads--launcher shortcuts file explains much of it and keyboard and menu config files are heavily commented)...

[...]

add/remove packages and alter the install script to reflect custom choices for future installations (or delete the whole thing when you're done. sometimes it's convenient, sometimes it's not. usually a combo).
[...]


other known issues: the wmctrl close all instances scripts don't work in 64bit, two or three tray settings could use some tweaking (will be part of the update script from .6 (6t4 plus update1) to .9)...you may have to reinstall xdotool through your PPM if using 64 bit (generally if alt+arrow squirts your window across the screen, the xdotool that came over with the pet's okay. next step would be to test some of the autotext scripts in the launcher (i usually test with scz ("make this text file a script", i.e. it autotexts out (tada! (if you're watching me write this live)) #!/bin/sh) in the launcher)).


seems i forgot to add woofy to the recs as well:

http://murga-linux.com/puppy/viewtopic. ... 229#429229
https://drive.google.com/file/d/0ByUDhE ... sp=sharing

(woofy-0.91.pet mirrored in the mostly_common_32 folder/thanks to sc0ttman)


i had been manually adding the configs, folders, and files that comprise the nwp pets, then resquashing the file system, but it turns out making pets and then installing them through woofy is for the most part easier (same goes for manually reconfiguring a running pup--using pets for the new files and configs (and optionally activating what's generally just a few simple copy and backup scripts--the pinstall.sh(punistall.sh) script(s) and whatever, if anything, it (they) call (calls--last of parentheticalling out the uninstall part of the combo--good practice suggests you fill it with the countermeasures to your install script and pet installation, but i view the nwp as concrete with regards to its place in respins so am a bit remiss with this, the rather large (and apparently functioning) uninstall scripts circa nwp32/64.4 that you can find in the main nwp thread (and postdated pets) notwithstanding) is easier than repeating the process for each installation/update).

***

some more on pinstall/uninstall in general and as it relates to nwp installation, configuring, and removal:

Puppus Dogfellow
Joined: 07 Jan 2013
Posts: 1420
Location: nyc


PostPosted: Sat 27 Aug 2016, 02:33 Post subject: update simplifies installation, customization, portability
Subject description: (your original configs become my39 in the launcher--full nwp and functions by default.
(but you can now uninstall aspects of it individually through the piecemeal submenu on mae (launcher code or in your applications folder) or the scripts in /nwp/c)
from minor nwp update (two lines on the pinstall script that lead
into this how-to on the jwm configuration quickswitches:
[...]

only changes since the last batch are an update of the elp help file and the following two lines added to the pinstall scripts (that activate after the pet installation moves in the files you're adding to your system):
Code:

Code: Select all

cp -f /root/.jwm/jwmrc-personal /nwp/root3/root39menu/jwmrc-personal
cp -f /etc/xdg/templates/_root_.jwmrc /nwp/root3/root39menu/_root_.jwmrc    

these lines make your current jwm configuration (current as of the time of this nwp.pet install) your my39 quickswitch (i.e. "my39" in the launcher activates that particular set of configuration files); my39r reverses it, but only to the previous configuration. this is to say, installing, playing around with the configuration switches, and then getting back to your preinstall config while leaving the rest of the functions in tact may lead to some unfortunate backtracking--making the originals a quickswitch avoids any headaches and brings up a point about customizing your own (or sets of your own) wm features--anything you do to the contents of the root#menus folders in /nwp/root3 and their associated files will stick as a quickswitch and the feature mod (the tray, key, and menu config files for the nine extra menus (x3), the 6 keycentric configs, the thirty or so trays are all there) will be a part of the swapped in customizations, but you must mod the files in nwp/root3/, not the ones in their system-active places in root/.jwm and /etc/xdg/templates to make them portable (though you could always run the above two lines adjusted to the destination folder of your choice (or drag and drop manually--rl in the launcher then c gets you there...there's a keycut...my guess is alt plus j...(woo hoo)(rung is h for keys launcher, j for rox launcher, k for geany, l for leafpad)...---make changes, restart jwm to see if you like them, copy them to those folders in nwp/root3 if you want to make them swappable. the new menus on scroll up and down and mae (ae menu launched by that code in main launcher) have the quickswitches plus links to edit or activate the keys, trays, menus, etc. you can edit the files to include menus from elsewhere, but all the presets are fed from that folder. make a file of the above repeated for menus30-49 and you could vtg in your current settings at any time with a click of the cauliflower (etc).

from http://www.murga-linux.com/puppy/viewto ... 289#920289, a post in A NWP/A NWPUS--A Nooby Word Processor and Utilities Suite (http://www.murga-linux.com/puppy/viewto ... 270#850270).

(installation and removal still as above). 64 bit does all the tweaks automatically, 32 bit has you activate the geany and rox tweaks separately.)
[...]
nwp32.8ns.pet

nwp32.8.pet

nwp64.8.pet

nwprecs2.pet

nwprecs1.pet

recs5p.xz

geany4nwp-125,7-32.tar.xz

geany-nwp-plugins-64-125.tar.xz


[...]

____

for more on customizing your JWM setup, see Joe's site and/or the thread that bore the thread that hosts/develops the spins (and the nwp/vtg combo--their threads are more or less updates/announcements):


Add A JWM Bookmarks Menu or Submenu/Messing Around With JWM
button, menu, key, and tray tweaking


____


{
where things are, where it's at (,or maybe just what it is)
updates to the nwp and the workshop folder

(the forum post will have better links so i'll copy/paste that back here as an improved version of the original).
}

***
eventually i became familiar enough with Puppy Linux that hours of customization and tinkering became portable and one click installable--most of the delays with spin making come from keeping the system generic enough to (re)offer the public (the nwp is the approximatic). anyway, here's a link to the main, as yet unupdated nwp (A Noob's Word Processor/Ultimatesque Utilities (UU/W) Pack(/NWP/nwp/noop/anubis/anuupus/,etc)) thread:
http://murga-linux.com/puppy/viewtopic. ... 270#850270

NWP/A NWPUS--A Noob's Word Processor and Utilities Suite
nwp32/64.8

this is the thread (which will eventually be) formerly known as

A NWP/A NWPUS--A Nooby Word Processor and Utilities Suite
robust, extensible, and superseded in ministrosity by pu(/)up!

--------------
posts starting midway down the previous page give a decent overview (including the launcher and keyboard codes minus what's mentioned at the start of this document):

http://murga-linux.com/puppy/viewtopic. ... 471#918471


will update the quick links and repost the updated launcher codes and keyboard stuff before the next release. new nwp cleans up the left click menu the same as the earlier firefox pet. when nwp.9 comes out i'll offer a patch pet for whatever the last version of 6t4 is at the time (other spins should just (back up your customizations or personal files first) reinstall the newer nwp over the older one (your old nwp configs will get ported by the new one, but personal files stored in the nwp file system should probably be petted or otherwise backed up when installing a new one. same goes for any scripts you've altered).

renaming the old nwp directory before petting in the new one is probably the fastest and easiest way to preserve your customizations (if there are many, the fastest and easiest way is probably to pet them back over the incoming rewrites (/nwp/pets, the rox right menu, and the mae menu have options for doing this).


launcher shortcuts
keyboard shortcuts


nwp32.8ns.pet

nwp32.8.pet

nwp64.8.pet


nwp+vtg support folder has the .7 sfses

geany4nwp-125,7-32.tar.xz

geany-nwp-plugins-64-125.tar.xz
___
updated 3/23/18:

http://murga-linux.com/puppy/viewtopic. ... 459#986459
Last edited by Puppus Dogfellow on Fri 23 Mar 2018, 21:49, edited 1 time in total.

User avatar
Puppus Dogfellow
Posts: 1667
Joined: Tue 08 Jan 2013, 01:39
Location: nyc

mouse functions on the keyboard and other small kb tweaks

#79 Post by Puppus Dogfellow »

from http://murga-linux.com/puppy/viewtopic. ... 943#955943

Puppus Dogfellow wrote:more keyboard fun:

Cherry lost its patent on the mx mechanical keyboard switches in 2014 (or so i think i remember reading), and now you can pick up knockoffs pretty cheap--if the tenkeyless brown switch item i just got for 24 bucks shipped is any indication, they're way better than what normally comes with the machine.

anyway, dump the code below in a terminal to get the cap locks button made into an additional control button, the scroll lock button turned into a caps lock button, and a file set up for you to add to /root/.jwm/jwmrc-personal in case you want to use the pause break button for up to 16 functions (i suppose you could make one function pause break and another scroll lock--don't think i've ever used either of those).

Code: Select all

echo $'! backup your original map with xmodmap -pke > root/xmodmap-original.
! run xmodmap /root/xmodmap-original to undo the changes.
! move capslock to scroll lock and make the original capslock ctrl:
remove Lock = Caps_Lock
remove Control = Control_L
keycode 78 = Caps_Lock
keycode 66 = Control_L
add Lock = Caps_Lock
add Control = Control_L

' > /root/tklv1.xmodmap
echo $'#!/bin/sh
xmodmap /root/tklv1.xmodmap
#scroll lock=caps lock, caps lock=control; modify 110 key (pause break) through your wm.
' > /root/Startup/xmodtkl
chmod 755 /root/Startup/xmodtkl
/root/Startup/xmodtkl

echo $'<JWM>
<!--
add Include line below to /root/.jwm/jwmrc-personal
<Include>/root/jwmpausekey</Include>

Key bindings  
on this tenkeyless Velocifire, Pau is keycode 110. some examples:-->

<Key keycode="110">exec:xdotool key alt+ctrl+shift+super+F16</Key>
<Key mask="A" keycode="110">exec:xdotool key alt+ctrl+shift+super+F18</Key>
<Key mask="C" keycode="110">exec:leafpad</Key>
<Key mask="S" keycode="110">exec:/nwp/lpx</Key>
<Key mask="CA" keycode="110">escape</Key>
<Key mask="CS" keycode="110">select</Key>
<Key mask="AS" keycode="110">move</Key>
<Key mask="CAS" keycode="110">window</Key> 
<Key mask="4" keycode="110">exec:defaultbrowser</Key>
<Key mask="4A" keycode="110">root:2</Key>
<Key mask="4C" keycode="110">root:3</Key>
<Key mask="4S" keycode="110">exec:/nwp/n</Key>
<Key mask="4CA" keycode="110">exec:rox</Key>
<Key mask="4CS" keycode="110">exec:/nwp/aef</Key>
<Key mask="4AS" keycode="110">exec:vlc</Key>
<Key mask="4CAS" keycode="110">exec:/nwp/mae</Key> 

<!--
pulling a few from the /nwp/root3/9/jag menu (root2 on the last nwps):
<Program label="set anchor" icon="/nwp/keys/icons/icons-sup/as22.png">xdotool key alt+ctrl+shift+super+F16</Program>
<Program label="rectangular select to anchor" icon="/nwp/keys/icons/icons-sup/a2s.png">xdotool key alt+ctrl+shift+super+F18</Program>
<Program label="select to anchor" icon="/nwp/keys/icons/icons-sup/as222.png">xdotool key alt+ctrl+shift+super+F17</Program>
-->
</JWM>
' > /root/jwmpausekey
geany /root/jwmpausekey /root/.jwm/jwmrc-personal in a terminal to open the keyfile and the file you're adding the "includes" line to.

-----

just tested it on a more typical 101 (or so--logitech cheapo model and i didn't count--almost always 101-104 keys if it's got a number pad) key keyboard--works just the same (scroll lock, caps lock, and pause break appear to be named fairly consistently so the xmodmap part of the code should work in most things. use xev to double check or find more keycodes)

if you're thinking of getting one, 84 key models usually rely on Fn to get scroll and pause--the xmodmap part should still work fine, but you may need an extra key press for the other stuff (or it may not work at all. still have a couple in the mail--will check eventually).

xmodmap changes will take place as soon as you run the code. to incorporate your pause key tweaks into the system, you must run jwm -restart (or click it from the menu).

enjoy.
:D

________
(note: to get a backup of your current keymap, xmodmap -pke > /root/xmodmap-original. to activate it, xmodmap /root/xmodmap-original.)
________
________

code below adds "mou" as another launcher shortcut to a launcher--this one will allow you to move the mouse around with the keyboard--just enter the x and y coordinates separated by a space. i suggest the following added to /root/jwmrc.personal so that it and the mouse clicks are on the keyboard regardless of what keybank you swap in:
<Key mask="4" key="1">exec:xdotool click 1</Key>
<Key mask="4" key="2">exec:xdotool click 2</Key>
<Key mask="4" key="3">exec:xdotool click 3</Key>
<Key mask="4" key="4">exec:/nwp/mou</Key>



(none of the key shortcuts use the windows key by default iirc. you could also use some more of the space bar (though i think the above makes more sense, here:

<Key mask="4" key="space">exec:/nwp/mou</Key>
<Key mask="4A" key="space">exec:xdotool click 1</Key>
<Key mask="4C" key="space">exec:xdotool click 2</Key>
<Key mask="4S" key="space">exec:xdotool click 3</Key>



here's the code for the launcher and xmodmap files and scripts for the mini keyboards (dump into a terminal):

Code: Select all

echo $'
#!/bin/sh
CMDLINE=$(yad --width=350 --skip-taskbar --center --on-top --fixed --sticky \
              --title="" --window-icon="/nwp/icons/purwup.png" \
              --entry --entry-label="Run command:"  \
              --column="command" --entry-text "xdotool mousemove ")
[ -z "$CMDLINE" ] && exit 0

$CMDLINE &
exit 0

' > /nwp/mous
# example: xdotool mousemove 110 550 click 1
echo $'
#!/bin/sh
/nwp/mous| xdotool sleep .3 key Right
' > /nwp/mou
chmod 755 /nwp/mou /nwp/mous

echo $'
#!/bin/sh
xmodmap /nwp/81.xmodmap
#scroll lock=caps lock, caps lock=control; modify 110 through wm.
' > /nwp/xmod81

echo $'
remove Lock = Caps_Lock
remove Control = Control_L
keycode 78 = Caps_Lock
keycode 66 = Control_L
add Lock = Caps_Lock
add Control = Control_L
keycode 129 = Menu
! fn + media player (F1) does nothing on my machine out of the box so that's the one i'm purposing
' > /nwp/81.xmodmap
chmod 755 /nwp/xmod81

echo $'
#!/bin/sh
xmodmap /nwp/81b.xmodmap
#scroll lock=caps lock, caps lock=control; modify 110 through wm.
' > /nwp/xmod81b

echo $'
remove Lock = Caps_Lock
keycode 78 = Caps_Lock
keycode 66 = Menu
add Lock = Caps_Lock
! caps lock becomes menu, scroll lock becomes caps lock
' > /nwp/81b.xmodmap
chmod 755 /nwp/xmod81b

echo $'
remove Lock = Num_Lock
remove Lock = Caps_Lock
remove Control = Control_L
keycode 78 = Caps_Lock
keycode 66 = Control_L
add Lock = Caps_Lock
add Control = Control_L
keycode 77 = Menu
! make numlock menu, caps lock control, scroll lock caps lock
' > /nwp/84.xmodmap

echo $'
#!/bin/sh
' > /nwp/xmod84
chmod 755 /nwp/xmod84

#cp -f nwp/xmod84 /root/Startup/xmod84
#cp -f nwp/xmod81 /root/Startup/xmod81
#cp -f nwp/xmod81b /root/Startup/xmod81b
#/root/Startup/xmod81b
#/root/Startup/xmod81
#/root/Startup/xmod84
#copy your xmod settings to startup and run

i couldn't get jwm to run "xdotool key Menu" from a key (works fine from a terminal), so to get it back on the abbreviated keyboards (most of my boards don't have it, just recently noticed it on a few, and have grown to like having it in a relatively short time), i opted for either the caps lock key, the number key, or a dead function key (the three variations above). next nwp will have this upgrade included.

win+1--click 1, win+2--click2, win+3--click3, win+4--mouse move launcher, mou in the launcher--mousemove launcher.

User avatar
Puppus Dogfellow
Posts: 1667
Joined: Tue 08 Jan 2013, 01:39
Location: nyc

a few shortcuts and a workaround for wordgrinder

#80 Post by Puppus Dogfellow »

from the wordgrinder thread:
Puppus Dogfellow wrote:wordgrinder_0.3.3-1_i386.deb.pet

wordgrinder_0.3.3-1_amd64.pet

32 bit contains relevant files from:
liblua5.1-0_5.1.5-4+deb7u1_i386.deb lua-filesystem_1.5.0+16+g84f1af5-1_i386.deb wordgrinder_0.3.3-1_i386.deb

64 bit contains:
liblua5.1-0_5.1.5-4+deb7u1_amd64.deb lua-filesystem_1.5.0+16+g84f1af5-1_amd64.deb wordgrinder_0.3.3-1_amd64.deb

both contain:
wordgrinder.desktop (wordgrinder launched with urxvt), wordgrinder-rxvt.desktop, wordgrinder-sk.desktop (wordgrinder launched with sakura)

64 bit tested in tahr64-605, 32 bit in xenial32-704

_______

i made some launchers shortcuts for the packages to make up for for the fact that the the nwp's alt plus arrow key interferes with the main menu shortcut in Wordgrinder (alt+down, which may lack the slight delay of Escape, which i think works well enough to leave the window scoot shortcut in tact). run the following in a terminal to get wg, wgs, and wgr shortcuts added to the nwp launcher (requires the appropriate wordgrinder pet above):

Code: Select all

 
  echo $'
#!/bin/sh
/usr/bin/sakura -e wordgrinder
' > /nwp/wgs
echo $'
#!/bin/sh
/usr/bin/rxvt -e wordgrinder
' > /nwp/wgr
echo $'
#!/bin/sh
/usr/bin/urxvt -e wordgrinder 
' > /nwp/wg
chmod 755 /nwp/wg /nwp/wgr /nwp/wgs
#alt plus down arrow "move active window down" shortcut interferes with the program's built-in "alt+down arrow accesses main menu" shortcut--use escape button to open and arrow back to close in pups that use the nwp/anuupus suite.   
reminds me of those old Brother and Magnavox word processors (electric typewriters with screens and storage). runs in a terminal, and the sakura "version" gives right click ability. interesting and under 300kb.

enjoy.
:D

User avatar
Puppus Dogfellow
Posts: 1667
Joined: Tue 08 Jan 2013, 01:39
Location: nyc

bbwp: a tiny browser-based wordprocessor (5k w/o browser)

#81 Post by Puppus Dogfellow »

bbwp.pet

screenshots/gifs:
bbwp2
bbwp1
bbwp3


PostPosted: Thu 13 Aug 2015, 23:17 Post subject: now with puup....an even more minimalistic word processor
Subject description: that's an improvement pack but also functions stand alone.
puup!.tar.gz (19kb)
also in xz flavor: puup!.tar.xz(17kb)
from the readme:


"good to know: most browsers can save as pdf it seems."
http://www.murga-linux.com/puppy/viewto ... 360#860360


which i forgot about, so the included documentation/grab-some-formatting file talks of only saving in html or plain text. anyway, here's a tiny stand alone (apart from your browser) word processor that was originally supposed to be an upgrade pack for the nwp--it works well enough that i'm thinking about making it its own thread (but i'm going to be busy for a while so rushing off a few updates while i can). works with all the browsers discussed in this thread, which is close to just about all those commonly discussed. whole thing is 5k compressed as a pet, but most of that's scrap/help/formatting samples. you get five tabs opened in a browser--one's a blank slate with spell check enabled, one's a formatting sampler with spell check enabled (you could delete/modify the template or make it a second blank and just use websites to copy and paste sample text/sample formatting, but this makes it a bit more self sufficient and makes the sloppy on-the-fly how-to and what-is-it notes more useful).


the styles/notes/formatting/scrap page that's the majority of it (uncompressed 11k file, but if you're actually online, you can grab formatting from anything, so you can open it in geany or leafpad and ditch the prefab) is linked below. mouse shortcuts and keyboard shortcuts all seem to work, and the open/close plain text dialog boxes also get added to the dil dillo reference popup, giving it a note-taker/file browser abilities as well (dil2 in the nwp/pwn/main launcher--formatting tabs didn't display in dillo, but they may have registered the locations of the photos, etc you paste in much as they do in the other browsers).


new launcher shortcuts:
defbb -- open bbwp with your default browser (five tabs--same code in ll or gl launcher(alt+l,alt+k are leafpad and geany launchers) to adjust)
firbb -- with firefox
chbb -- with chromium
pmbb -- with palemoon
gbb -- with google chrome
dil2 -- dillo reference/notetaker
wpebb -- open config files in geany

___

well, it appears the most of the formatting highlights are missing from the (gif) reel so moving on,

thanks to/more info/here's the content of the Styles file:

Code: Select all

 
<!--
   nwp00.html
   
   Copyright 2017 root <root@puppypc>
   
   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 2 of the License, or
   (at your option) any later version.
   
   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
   
   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
   MA 02110-1301, USA.
   
   
-->
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 
<head>
    <title>Styles</title>
    <meta http-equiv="content-type" content="text/html;charset=utf-8" />
    <meta name="generator" content="Geany 1.25" />
</head>
 
<body>
    
<title>styles-notes-scrap</title><body contenteditable style="font-size:2rem;font-family:serif;line-height:1.5;max-width:60rem;margin:0 auto;padding:4rem;" spellcheck="true">
	Formatting and Info
01 has no spell check but it's enabled in the 00 tab. copy text from the styles/scrap/help file (this file) or any browser window to change the formatting.<p>
	
	use your browser's open, close, and save menus and short cuts--if you don't save what's in the tab you'll lose your changes. <p> 
		
pasting into the Styles tab will format the text; copy it back in underline, bold, h5, etc. copying the the sample text from there and editing it here preserves formatting as well.
    
overwrite and/or copy to grab formatting<p>    
(get rid of this help file's on screen contents and you also have a default set for spellcheck)<p>

control plus a,x,c,y,z all appear to work well in the editable window....right click copy and middle click paste work...select to copy works...

you can grab pictures and other formatting, and presumably videos as well (though i haven't tried)---you aren't limited to the Styles tab for formatting, but i wanted to make the dil nwp shortcut a full word processor--i think it is with these three tabs. first pet should go up by the first of july...

could also be used to grab the locations and formatting behind things since that's what shows up in the text editor view of the file.

enjoy.<p>

---Puppus Dogfellow, July 1, 2017<p>
	
	
	rox /my-applications/bin/bbwp<p>

 bbwp-def -- launch the bbwp with your default browser<p>
 bbwp-fir -- with firefox<p>
 bbwp-g -- with chrome<p>
 bbwp-pm -- with palemoon <p>
 bbwp-ch --  with chromium<p>
 dil2 -- dillo notetaker and reference popup<p>
 editconfig-geany-bbwp<p>
	
	
	
	

thanks to/more info:     <p>
	https://coderwall.com/p/lhsrcq/one-line-browser-notepad: make any tab a notetaker/wp with :
data:text/html, <html contenteditable><p>

http://www.pcworld.com/article/2360940/turn-any-browser-tab-into-a-basic-text-editor.html<p>
https://www.dropboxforum.com/t5/Dropbox/edit-text-file-in-browser-window/idi-p/19795/page/2#comments<p>
	
https://thiscouldbebetter.wordpress.com/2012/12/18/loading-editing-and-saving-a-text-file-in-html5-using-javascrip/<p>
the formatted version doesn't work in dillo, but the code from the above source was added to all the word processor "start centers" (browser pop up with a bunch of editable tabs opened) and makes the dillo reference popup a better notetaker, and a better wordprocessor as far as interplay with the anuupus utilities suite/word processor goes. the box also allows you to work with the raw html side of things, though you don't need to touch code to use this word processor (you just need a browser as capable as firefox/palemoon/chrome/...). <p>
 <p> <p>
overwrite/paste-in and/or copy to grab/change formatting <p>
overwrite/paste-in and/or copy to grab/change formatting<p>
overwrite/paste-in and/or copy to grab/change formatting 
overwrite/paste-in and/or copy to grab/change formatting
<p>
    <b>Formatting and Info</b><p><p>
    <i>Formatting and Info</i><p><p>
    <u>Formatting and Info</u><p>	
	
	text below is probably inaccurate--check the line atop near the title or do a search in this document for spellcheck--first result on the page is the one that's part of the code that answers the question (change it if you like so that both templates are the same)
    
    <h5>odd numbers have spellcheck disabled</h5><p><p>(this refers to something defunct--format your notes with it)
		
		spellcheck enables on Styles tab...
		
		
paste formatted text into google docs, zoho or similar to save as something other than text or html.		
		print through your browser/it's a word processor 
   
<pre>
<span style="font-size: 14pt; color:black; font-weight:normal; font-family: monospace">
print through your browser/it's a word processor 
(but use libreoffice or similar to save as something other than text or html)

		preotry
mono 14 pyaw 
pyaw preotry



	
	
	pre tags preserve dead space
	


pyaw preotry
pyaw preotry

    <b>Formatting and Info</b><p><p>
    <i>Formatting and Info</i><p><p>
    <u>Formatting and Info</u><p>
<h6>h6--copy and paste formatting</h6><p>
 
<h5>h5--copy and paste formatting</h5><p>
<h4>h4--copy and paste formatting</h4><p>
<h3>h3--copy and paste formatting</h3><p>
<h2>h2--copy and paste formatting</h2><p>    
<h1>h1--copy and paste formatting</h1><p>

</span>
</pre>

print through your browser/it's a word processor 
(but use libreoffice or similar to save as something other than text or html)

		preotry
mono 14 pyaw 
pyaw preotry

pyaw preotry
pyaw preotry

    <b>Formatting and Info</b><p><p>
    <i>Formatting and Info</i><p><p>
    <u>Formatting and Info</u><p>
<h6>h6--copy and paste formatting</h6><p>
 
<h5>h5--copy and paste formatting</h5><p>
<h4>h4--copy and paste formatting</h4><p>
<h3>h3--copy and paste formatting</h3><p>
<h2>h2--copy and paste formatting</h2><p>    
<h1>h1--copy and paste formatting</h1><p>
(same as above but without the pre tag. edit the code itself with a text editor or the note/scrap boxes (may be quicker than the browser's open menu. doesn't display formatting but may store it (haven't checked yet but anything you paste into the formattable tabs gets its hidden code revealed if you download it and view it in a text editor or as text (if your browser has that option or you use the boxes at either end of the bbwp popup))))


<pre>
<span style="font-size: 14pt; color:black; font-weight:normal; font-family: sans">

sans 14sans 14sans 14
sans 14sans 14sans 14


    <b>Formatting and Info</b><p><p>
    <i>Formatting and Info</i><p><p>
    <u>Formatting and Info</u><p>
<h6>h6--copy and paste formatting</h6><p>
 
<h5>h5--copy and paste formatting</h5><p>
<h4>h4--copy and paste formatting</h4><p>
<h3>h3--copy and paste formatting</h3><p>
<h2>h2--copy and paste formatting</h2><p>    
<h1>h1--copy and paste formatting</h1><p>

</span>
</pre>



<pre>
<span style="font-size: 14pt; color:black; font-weight:normal; font-family: serif">

serif 14
serif 14
serif 14
serif 14
serif 14


    <b>Formatting and Info</b><p><p>
    <i>Formatting and Info</i><p><p>
    <u>Formatting and Info</u><p>

<h6>h6--copy and paste formatting</h6><p>
 
<h5>h5--copy and paste formatting</h5><p>
<h4>h4--copy and paste formatting</h4><p>
<h3>h3--copy and paste formatting</h3><p>
<h2>h2--copy and paste formatting</h2><p>    
<h1>h1--copy and paste formatting</h1><p>
	
	
</span>
</pre>

<pre>
<span style="font-size: 12pt; color:black; font-weight:normal; font-family: monospace">

mono 12 pyaw preotry
pyaw preotry

pyaw preotry
pyaw preotry



    <b>Formatting and Info</b><p><p>
    <i>Formatting and Info</i><p><p>
    <u>Formatting and Info</u><p>
<h6>h6--copy and paste formatting</h6><p>
 
<h5>h5--copy and paste formatting</h5><p>
<h4>h4--copy and paste formatting</h4><p>
<h3>h3--copy and paste formatting</h3><p>
<h2>h2--copy and paste formatting</h2><p>    
<h1>h1--copy and paste formatting</h1><p>

</span>
</pre>




<pre>
<span style="font-size: 12pt; color:black; font-weight:normal; font-family: sans">

sans 12sans 12sans 12
sans 12sans 12sans 12


    <b>Formatting and Info</b><p><p>
    <i>Formatting and Info</i><p><p>
    <u>Formatting and Info</u><p>
<h6>h6--copy and paste formatting</h6><p>
 
<h5>h5--copy and paste formatting</h5><p>
<h4>h4--copy and paste formatting</h4><p>
<h3>h3--copy and paste formatting</h3><p>
<h2>h2--copy and paste formatting</h2><p>    
<h1>h1--copy and paste formatting</h1><p>

</span>
</pre>



<pre>
<span style="font-size: 12pt; color:black; font-weight:normal; font-family: serif">

serif 12
serif 12
serif 12
serif 12
serif 12


    <b>Formatting and Info</b><p><p>
    <i>Formatting and Info</i><p><p>
    <u>Formatting and Info</u><p>

<h6>h6--copy and paste formatting</h6><p>
 
<h5>h5--copy and paste formatting</h5><p>
<h4>h4--copy and paste formatting</h4><p>
<h3>h3--copy and paste formatting</h3><p>
<h2>h2--copy and paste formatting</h2><p>    
<h1>h1--copy and paste formatting</h1><p>
	
	
</span>
</pre>
<h6>h6--copy and paste formatting</h6><p>
 
<h5>h5--copy and paste formatting</h5><p>
<h4>h4--copy and paste formatting</h4><p>
<h3>h3--copy and paste formatting</h3><p>
<h2>h2--copy and paste formatting</h2><p>    
<h1>h1--copy and paste formatting</h1><p>
<b>bold  --copy and paste formatting</b><p>
<u>underline  --copy and paste formatting</u><p>
<i>italics --copy and paste formatting</i><p> 
<!--
<title>EDIT</title><textarea style="font-size: 1.5em; width: 100%; height: 100%; border: none; outline: none" spellcheck="false" autofocus />    
      -->
    <b>Formatting and Info</b><p><p>
    <b>Formatting and Info</b><p><p>
    <i>Formatting and Info</i><p><p>
    <u>Formatting and Info </u><p><p>
     <p> <p>
overwrite/paste-in and/or copy to grab/change formatting 
overwrite/paste-in and/or copy to grab/change formatting
overwrite/paste-in and/or copy to grab/change formatting 
overwrite/paste-in and/or copy to grab/change formatting
<p>
    <b>Formatting and Info</b><p><p>
    <i>Formatting and Info</i><p><p>
    <u>Formatting and Info</u><p>




    
</body>
 
</html>

link in the thanks to portion is for the dialog box notetaker tab. here's that code(which has the original source as a comment):

Code: Select all



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<html>
<body>
 
<table>
    <tr><td>Text to Save:</td></tr>
    <tr>
        <td colspan="3">
            <textarea id="inputTextToSave" cols="80" rows="25"></textarea>
        </td>
    </tr>
    <tr>
        <td>Filename to Save As:</td>
        <td><input id="inputFileNameToSaveAs"></input></td>
        <td><button onclick="saveTextAsFile()">Save Text to File</button></td>
    </tr>
    <tr>
        <td>Select a File to Load:</td>
        <td><input type="file" id="fileToLoad"></td>
        <td><button onclick="loadFileAsText()">Load Selected File</button><td>
    </tr>
</table>
 
<script type="text/javascript">
 
function saveTextAsFile()
{
    var textToSave = document.getElementById("inputTextToSave").value;
    var textToSaveAsBlob = new Blob([textToSave], {type:"text/plain"});
    var textToSaveAsURL = window.URL.createObjectURL(textToSaveAsBlob);
    var fileNameToSaveAs = document.getElementById("inputFileNameToSaveAs").value;
 
    var downloadLink = document.createElement("a");
    downloadLink.download = fileNameToSaveAs;
    downloadLink.innerHTML = "Download File";
    downloadLink.href = textToSaveAsURL;
    downloadLink.onclick = destroyClickedElement;
    downloadLink.style.display = "none";
    document.body.appendChild(downloadLink);
 
    downloadLink.click();
}
 
function destroyClickedElement(event)
{
    document.body.removeChild(event.target);
}
 
function loadFileAsText()
{
    var fileToLoad = document.getElementById("fileToLoad").files[0];
 
    var fileReader = new FileReader();
    fileReader.onload = function(fileLoadedEvent)
    {
        var textFromFileLoaded = fileLoadedEvent.target.result;
        document.getElementById("inputTextToSave").value = textFromFileLoaded;
    };
    fileReader.readAsText(fileToLoad, "UTF-8");
}
 
</script>
 
</body>
</html>
<!--  
from
 
https://thiscouldbebetter.wordpress.com/2012/12/18/loading-editing-and-saving-a-text-file-in-html5-using-javascrip/

-->
i've been using the pinstall script to make it--it's making files that are already there apart from the nwp shortcuts, but this shows the contents of the rest of the pet minus the content of the two primary wordprocessing tabs:

Code: Select all

#!/bin/sh

#!/bin/sh
#pinstall bbwp11111


echo $'
#!/bin/sh
palemoon /root/my-applications/bbwp/html/box1.html /root/my-applications/bbwp/html/nwp00.html /root/my-applications/bbwp/html/nwp01.html /root/my-applications/bbwp/html/Styles.html /root/my-applications/bbwp/html/box2.html 
' > /root/my-applications/bbwp/bbwp-pm
chmod 755 /root/my-applications/bbwp/bbwp-pm
echo $'
#!/bin/sh
defaultbrowser /root/my-applications/bbwp/html/box1.html /root/my-applications/bbwp/html/nwp00.html /root/my-applications/bbwp/html/nwp01.html /root/my-applications/bbwp/html/Styles.html /root/my-applications/bbwp/html/box2.html
' > /root/my-applications/bbwp/bbwp-def
chmod 755 /root/my-applications/bbwp/bbwp-def

echo $'
#!/bin/sh
google-chrome /root/my-applications/bbwp/html/box1.html /root/my-applications/bbwp/html/nwp00.html /root/my-applications/bbwp/html/nwp01.html /root/my-applications/bbwp/html/Styles.html /root/my-applications/bbwp/html/box2.html
' > /root/my-applications/bbwp/bbwp-g
chmod 755 /root/my-applications/bbwp/bbwp-g
echo $'
#!/bin/sh
dillo file:///root/my-applications/OEWP/html/box1.html www.google.com www.dictionary.com www.murga-linux.com/puppy http://www.etymonline.com/ https://duckduckgo.com/?q=nyc+weather+hourly&t=h_&ia=weather file:///root/my-applications/OEWP/html/box2.html
' > /root/my-applications/bbwp/dil2
chmod 755 /root/my-applications/bbwp/dil2
echo $'
#!/bin/sh
firefox /root/my-applications/bbwp/html/box1.html /root/my-applications/bbwp/html/box2.html /root/my-applications/bbwp/html/nwp00.html /root/my-applications/bbwp/html/nwp01.html /root/my-applications/bbwp/html/Styles.html
' > /root/my-applications/bbwp/bbwp-fir
chmod 755 /root/my-applications/bbwp/bbwp-fir
echo $'
#!/bin/sh
chromium /root/my-applications/bbwp/html/box1.html /root/my-applications/bbwp/html/box2.html /root/my-applications/bbwp/html/nwp00.html /root/my-applications/bbwp/html/nwp01.html /root/my-applications/bbwp/html/Styles.html
' > /root/my-applications/bbwp/bbwp-ch
chmod 755 /root/my-applications/bbwp/bbwp-ch

echo $'
#!/bin/sh
geany -i /root/my-applications/bbwp/html/box1.html /root/my-applications/bbwp/html/box2.html /root/my-applications/bbwp/html/nwp00.html /root/my-applications/bbwp/html/nwp01.html /root/my-applications/bbwp/html/Styles.html
' > /root/my-applications/bbwp/editconfig-geany-bbwp
chmod 755 /root/my-applications/bbwp/editconfig-geany-bbwp

cp -f /root/my-applications/bbwp/editconfig-geany-bbwp /nwp/wpebb
cp -f /root/my-applications/bbwp/bbwp-ch /nwp/chbb
cp -f /root/my-applications/bbwp/bbwp-fir /nwp/firbb
cp -f /root/my-applications/bbwp/dil2 /nwp/dil2
cp -f /root/my-applications/bbwp/bbwp-g /nwp/gbb
cp -f /root/my-applications/bbwp/bbwp-pm /nwp/pmbb
cp -f /root/my-applications/bbwp/bbwp-def /nwp/defbb

chmod 755 /nwp/defbb /nwp/wpebb /nwp/pmbb /nwp/gbb /nwp/dil2 /nwp/firbb /nwp/chbb

 
echo $'
[Desktop Entry]
Encoding=UTF-8
Name=bbwp-conf
Icon=/root/puppy-reference/mini-icons/mini-pencil.xpm
Comment=browser based word processor and note taker --configure
Exec=rox /root/my-applications/bbwp/
Terminal=false
Type=Application
GenericName=
Version=1.0
Categories=WordProcessor
' >/usr/share/applications/bbwp-conf.desktop

echo $'
[Desktop Entry]
Encoding=UTF-8
Name=bbwp-def
Icon=/root/puppy-reference/mini-icons/mini-pencil.xpm
Comment=browser based word processor and note taker--configure
Exec=/root/my-applications/bbwp/bbwp-def
Terminal=false
Type=Application
GenericName=bbwp-def
Version=1.0
Categories=WordProcessor
' > /usr/share/applications/bbwp-def.desktop



styles/help file also fails to mention pandoc (but i added the info to the third gif).


content of the two blank (w,w/o spellcheck) primary templates that pop up as tabs when you activate the bbwp:

Code: Select all

   nwp01.html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 
<head>
    <title>nwp01</title>
    <meta http-equiv="content-type" content="text/html;charset=utf-8" />
    <meta name="generator" content="Geany 1.25" />
</head>
 
<body>
    
<title>bbwp01</title><body contenteditable style="font-size:2rem;font-family:serif;line-height:1.5;max-width:60rem;margin:0 auto;padding:4rem;" spellcheck="false">
    


    
</body>
 
</html>

Code: Select all

 
<!--
   nwp00.html
   
[...]
-->
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 
<head>
    <title>00-s</title>
    <meta http-equiv="content-type" content="text/html;charset=utf-8" />
    <meta name="generator" content="Geany 1.25" />
</head>
 
<body>
    
<title>nwp00</title><body contenteditable style="font-size:2rem;font-family:serif;line-height:1.5;max-width:60rem;margin:0 auto;padding:4rem;" spellcheck="true">
    

    
</body>
 
</html>


User avatar
Puppus Dogfellow
Posts: 1667
Joined: Tue 08 Jan 2013, 01:39
Location: nyc

bbwp with improvements and a little clean up. launch one

#82 Post by Puppus Dogfellow »

run as a script or dump into a terminal:

Code: Select all


#!/bin/sh
#bbwpmk2-nwp section
#run as a script or dump in a terminal
#makes the Browser Based Word Processor in my-applications-bbwp and nwp/wp/bbwp
mkdir -p /nwp/wp/bbwp/html/
echo $'
#!/bin/sh
xdotool type \'data:text/html, <html contenteditable>\'

' > /nwp/wide
chmod 755 /nwp/wide

echo $'
#!/bin/sh
rox /root/my-applications/bbwp/ /nwp/wp/bbwp
' > /root/my-applications/bin/bbwprx

echo $'
#!/bin/sh
rox /root/my-applications/bbwp/ /nwp/wp/bbwp
' > /nwp/bbwprx
chmod 755 /nwp/bbwprx /root/my-applications/bin/bbwprx

echo $'

<!--
   nwp00.html
   
   Copyright 2017 root <root@puppypc>
   
   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 2 of the License, or
   (at your option) any later version.
   
   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
   
   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
   MA 02110-1301, USA.
   
   
-->
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 
<head>
    <title>Styles</title>
    <meta http-equiv="content-type" content="text/html;charset=utf-8" />
    <meta name="generator" content="Geany 1.25" />
</head>
 
<body>
   
<title>styles-notes-scrap</title><body contenteditable style="font-size:2rem;font-family:serif;line-height:1.5;max-width:60rem;margin:0 auto;padding:4rem;" spellcheck="true">
   Formatting and Info
01 has no spell check but it\'s enabled in the 00 tab. copy text from the styles/scrap/help file (this file) or any browser window to change the formatting.<p>
   
   use your browser\'s open, close, and save menus and short cuts--if you don\'t save what\'s in the tab you\'ll lose your changes. <p>
      
pasting into the Styles tab will format the text; copy it back in underline, bold, h5, etc. copying the the sample text from there and editing it here preserves formatting as well.
   
overwrite and/or copy to grab formatting<p>   
(get rid of this help file\'s on screen contents and you also have a default set for spellcheck)<p>

control plus a,x,c,y,z all appear to work well in the editable window....right click copy and middle click paste work...select to copy works...

you can grab pictures and other formatting, and presumably videos as well (though i haven\'t tried)---you aren\'t limited to the Styles tab for formatting, but i wanted to make the dil nwp shortcut a full word processor--i think it is with these three tabs. first pet should go up by the first of july...

could also be used to grab the locations and formatting behind things since that\'s what shows up in the text editor view of the file.

enjoy.<p>

---Puppus Dogfellow, July 1, 2017<p>
   
   
   rox /my-applications/bin/bbwp<p>

 bbwp-def -- launch the bbwp with your default browser<p>
 bbwp-fir -- with firefox<p>
 bbwp-g -- with chrome<p>
 bbwp-pm -- with palemoon <p>
 bbwp-ch --  with chromium<p>
 dil2 -- dillo notetaker and reference popup<p>
 editconfig-geany-bbwp<p>
   
   
   
   
thanks to/more info:     <p>
   https://coderwall.com/p/lhsrcq/one-line-browser-notepad: make any tab a notetaker/wp with :<p>

<pre><code>data:text/html, <html contenteditable></code></pre><p>

http://www.pcworld.com/article/2360940/turn-any-browser-tab-into-a-basic-text-editor.html<p>
https://www.dropboxforum.com/t5/Dropbox/edit-text-file-in-browser-window/idi-p/19795/page/2#comments<p>
   
https://thiscouldbebetter.wordpress.com/2012/12/18/loading-editing-and-saving-a-text-file-in-html5-using-javascrip/<p>
the formatted version doesn\'t work in dillo, but the code from the above source was added to all the word processor "start centers" (browser pop up with a bunch of editable tabs opened) and makes the dillo reference popup a better notetaker, and a better wordprocessor as far as interplay with the anuupus utilities suite/word processor goes. the box also allows you to work with the raw html side of things, though you don\'t need to touch code to use this word processor (you just need a browser as capable as firefox/palemoon/chrome/...). <p>
 <p> <p>
overwrite/paste-in and/or copy to grab/change formatting <p>
overwrite/paste-in and/or copy to grab/change formatting<p>
overwrite/paste-in and/or copy to grab/change formatting
overwrite/paste-in and/or copy to grab/change formatting
<p>
    <b>Formatting and Info</b><p><p>
    <i>Formatting and Info</i><p><p>
    <u>Formatting and Info</u><p>   
   
   text below is probably inaccurate--check the line atop near the title or do a search in this document for spellcheck--first result on the page is the one that\'s part of the code that answers the question (change it if you like so that both templates are the same)
   
    <h5>odd numbers have spellcheck disabled</h5><p><p>(this refers to something defunct--format your notes with it)
      
      spellcheck enabled on Styles tab...
      
      
paste formatted text into google docs, zoho or similar to save as something other than pdf (usually available through your browser\'s print dialog), plain text or html (save as dialog/file menu).      

      print through your browser/it\'s a word processor
   
<pre>
<span style="font-size: 14pt; color:black; font-weight:normal; font-family: monospace">
print through your browser/it\'s a word processor
(but use libreoffice, pandoc, or similar to save as something other than text, pdf, or html)
https://pandoc.org/
      preotry
mono 14 pyaw
pyaw preotry

   
   pre tags preserve dead space
   

pyaw preotry
pyaw preotry

    <b>Formatting and Info</b><p><p>
    <i>Formatting and Info</i><p><p>
    <u>Formatting and Info</u><p>
<h6>h6--copy and paste formatting</h6><p>
 
<h5>h5--copy and paste formatting</h5><p>
<h4>h4--copy and paste formatting</h4><p>
<h3>h3--copy and paste formatting</h3><p>
<h2>h2--copy and paste formatting</h2><p>   
<h1>h1--copy and paste formatting</h1><p>

</span>
</pre>

print through your browser/it\'s a word processor
(but use libreoffice, pandoc, or similar to save as something other than text, pdf, or html)

      preotry
mono 14 pyaw
pyaw preotry

pyaw preotry
pyaw preotry

    <b>Formatting and Info</b><p><p>
    <i>Formatting and Info</i><p><p>
    <u>Formatting and Info</u><p>
<h6>h6--copy and paste formatting</h6><p>
 
<h5>h5--copy and paste formatting</h5><p>
<h4>h4--copy and paste formatting</h4><p>
<h3>h3--copy and paste formatting</h3><p>
<h2>h2--copy and paste formatting</h2><p>   
<h1>h1--copy and paste formatting</h1><p>
(same as above but without the pre tag. edit the code itself with a text editor or the note/scrap boxes (may be quicker than the browser\'s open menu. doesn\'t display formatting but may store it (haven\'t checked yet but anything you paste into the formattable tabs gets its hidden code revealed if you download it and view it in a text editor or as text (if your browser has that option or you use the boxes at either end of the bbwp popup))))

<pre>
<span style="font-size: 14pt; color:black; font-weight:normal; font-family: sans">

sans 14sans 14sans 14
sans 14sans 14sans 14

    <b>Formatting and Info</b><p><p>
    <i>Formatting and Info</i><p><p>
    <u>Formatting and Info</u><p>
<h6>h6--copy and paste formatting</h6><p>
 
<h5>h5--copy and paste formatting</h5><p>
<h4>h4--copy and paste formatting</h4><p>
<h3>h3--copy and paste formatting</h3><p>
<h2>h2--copy and paste formatting</h2><p>   
<h1>h1--copy and paste formatting</h1><p>

</span>
</pre>

<pre>
<span style="font-size: 14pt; color:black; font-weight:normal; font-family: serif">

serif 14
serif 14
serif 14
serif 14
serif 14

    <b>Formatting and Info</b><p><p>
    <i>Formatting and Info</i><p><p>
    <u>Formatting and Info</u><p>

<h6>h6--copy and paste formatting</h6><p>
 
<h5>h5--copy and paste formatting</h5><p>
<h4>h4--copy and paste formatting</h4><p>
<h3>h3--copy and paste formatting</h3><p>
<h2>h2--copy and paste formatting</h2><p>   
<h1>h1--copy and paste formatting</h1><p>
   
   
</span>
</pre>

<pre>
<span style="font-size: 12pt; color:black; font-weight:normal; font-family: monospace">

mono 12 pyaw preotry
pyaw preotry

pyaw preotry
pyaw preotry

    <b>Formatting and Info</b><p><p>
    <i>Formatting and Info</i><p><p>
    <u>Formatting and Info</u><p>
<h6>h6--copy and paste formatting</h6><p>
 
<h5>h5--copy and paste formatting</h5><p>
<h4>h4--copy and paste formatting</h4><p>
<h3>h3--copy and paste formatting</h3><p>
<h2>h2--copy and paste formatting</h2><p>   
<h1>h1--copy and paste formatting</h1><p>

</span>
</pre>

<pre>
<span style="font-size: 12pt; color:black; font-weight:normal; font-family: sans">

sans 12sans 12sans 12
sans 12sans 12sans 12

    <b>Formatting and Info</b><p><p>
    <i>Formatting and Info</i><p><p>
    <u>Formatting and Info</u><p>
<h6>h6--copy and paste formatting</h6><p>
 
<h5>h5--copy and paste formatting</h5><p>
<h4>h4--copy and paste formatting</h4><p>
<h3>h3--copy and paste formatting</h3><p>
<h2>h2--copy and paste formatting</h2><p>   
<h1>h1--copy and paste formatting</h1><p>

</span>
</pre>

<pre>
<span style="font-size: 12pt; color:black; font-weight:normal; font-family: serif">

serif 12
serif 12
serif 12
serif 12
serif 12

    <b>Formatting and Info</b><p><p>
    <i>Formatting and Info</i><p><p>
    <u>Formatting and Info</u><p>

<h6>h6--copy and paste formatting</h6><p>
 
<h5>h5--copy and paste formatting</h5><p>
<h4>h4--copy and paste formatting</h4><p>
<h3>h3--copy and paste formatting</h3><p>
<h2>h2--copy and paste formatting</h2><p>   
<h1>h1--copy and paste formatting</h1><p>
   
   
</span>
</pre>
<h6>h6--copy and paste formatting</h6><p> 
<h5>h5--copy and paste formatting</h5><p>
<h4>h4--copy and paste formatting</h4><p>
<h3>h3--copy and paste formatting</h3><p>
<h2>h2--copy and paste formatting</h2><p>   
<h1>h1--copy and paste formatting</h1><p>
<b>bold  --copy and paste formatting</b><p>
<u>underline  --copy and paste formatting</u><p>
<i>italics --copy and paste formatting</i><p>

for wide screen, paste <p>
  
<pre><code>data:text/html, <html contenteditable></code></pre><p>

into the address bar <p>
(from  <p>  https://thiscouldbebetter.wordpress.com/2012/12/18/loading-editing-and-saving-a-text-file-in-html5-using-javascrip/
) <p>
Untitled2 Spellcheck=True <p>
Untitled1 Spellcheck=False <p>
(no distracting red lines. use the wide screen code above to lose the distraction of margins.)

bookmark your templates, versions, and documents with your browser\'s interface, save your changes or you will lose them, use the print dialog to save in pdf (ctrl+s usually just gives you options for html or plain text)...pasting in video gives you the link but not an embedded video (you can opt for a thumbnail or covershot or otherwise mask/decorate the link). pandoc is a command line converter for those who want to save in odt, docx, doc, etc but don\'t want to use a larger processor like zoho, google docs/drive, libre office, or open office.<p>

edit the launcher scripts to preload files in batches. make copies of templates or just repaste the address into blank tabs to make them usable.<p>

terminal and launcher shortcuts:<p>

bbdef --  launch the bbwp with your default browser<p>
bbpm --  with palemoon <p>
bbg --  with chrome<p>
bbfir -- with firefox <p>
bbch -- with chromium<p>
dil2 --  dillo notetaker and reference popup<p>
bbwprx -- open both the /nwp and /root/my-apps/bin bbwp folders for tweaking<p>
bbwpe -- edit-configs-geany<p>


launch the bbwp with your default browser -- bbdef<p>
with palemoon  -- bbpm<p>
with chrome -- bbg<p>
with firefox -- bbfir<p>
with chromium -- bbch<p>
editconfig-geany -- bbwpe<p>
dillo notetaker and reference popup -- dil2<p>

(updated 7/11/17)<p>
    <p>
</body>

</html>
' > /nwp/wp/bbwp/html/Styles

echo $'
<!--  
   nwp01.html
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 
<head>
    <title>nwp01</title>
    <meta http-equiv="content-type" content="text/html;charset=utf-8" />
    <meta name="generator" content="Geany 1.25" />
</head>
 
<body>
   
<title>bbwp01</title><body contenteditable style="font-size:2rem;font-family:serif;line-height:1.5;max-width:60rem;margin:0 auto;padding:4rem;" spellcheck="false">
   

   
</body>
 
</html>

' > /nwp/wp/bbwp/html/Untitled1 

echo $'

 
<!--
   nwp00.html
   
[...]
-->
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 
<head>
    <title>00-s</title>
    <meta http-equiv="content-type" content="text/html;charset=utf-8" />
    <meta name="generator" content="Geany 1.25" />
</head>
 
<body>
   
<title>nwp00</title><body contenteditable style="font-size:2rem;font-family:serif;line-height:1.5;max-width:60rem;margin:0 auto;padding:4rem;" spellcheck="true">
   
   
</body>
 
</html>

' > /nwp/wp/bbwp/html/Untitled2 

echo $'

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<html>
<body>
 
<table>
    <tr><td>Text to Save:</td></tr>
    <tr>
        <td colspan="3">
            <textarea id="inputTextToSave" cols="80" rows="25"></textarea>
        </td>
    </tr>
    <tr>
        <td>Filename to Save As:</td>
        <td><input id="inputFileNameToSaveAs"></input></td>
        <td><button onclick="saveTextAsFile()">Save Text to File</button></td>
    </tr>
    <tr>
        <td>Select a File to Load:</td>
        <td><input type="file" id="fileToLoad"></td>
        <td><button onclick="loadFileAsText()">Load Selected File</button><td>
    </tr>
</table>
 
<script type="text/javascript">
 
function saveTextAsFile()
{
    var textToSave = document.getElementById("inputTextToSave").value;
    var textToSaveAsBlob = new Blob([textToSave], {type:"text/plain"});
    var textToSaveAsURL = window.URL.createObjectURL(textToSaveAsBlob);
    var fileNameToSaveAs = document.getElementById("inputFileNameToSaveAs").value;
 
    var downloadLink = document.createElement("a");
    downloadLink.download = fileNameToSaveAs;
    downloadLink.innerHTML = "Download File";
    downloadLink.href = textToSaveAsURL;
    downloadLink.onclick = destroyClickedElement;
    downloadLink.style.display = "none";
    document.body.appendChild(downloadLink);
 
    downloadLink.click();
}
 
function destroyClickedElement(event)
{
    document.body.removeChild(event.target);
}
 
function loadFileAsText()
{
    var fileToLoad = document.getElementById("fileToLoad").files[0];
 
    var fileReader = new FileReader();
    fileReader.onload = function(fileLoadedEvent)
    {
        var textFromFileLoaded = fileLoadedEvent.target.result;
        document.getElementById("inputTextToSave").value = textFromFileLoaded;
    };
    fileReader.readAsText(fileToLoad, "UTF-8");
}
 
</script>
 
</body>
</html>
<!-- 
from
 
https://thiscouldbebetter.wordpress.com/2012/12/18/loading-editing-and-saving-a-text-file-in-html5-using-javascrip/

--> 

' > /nwp/wp/bbwp/html/box1

echo $'
#!/bin/sh
palemoon /nwp/wp/bbwp/html/box1 /nwp/wp/bbwp/html/Untitled2 /nwp/wp/bbwp/html/Untitled1   /nwp/wp/bbwp/html/Styles 
' > /nwp/wp/bbwp/bbpm
chmod 755 /nwp/wp/bbwp/bbpm
echo $'
#!/bin/sh
defaultbrowser /nwp/wp/bbwp/html/box1 /nwp/wp/bbwp/html/Untitled2 /nwp/wp/bbwp/html/Untitled1 /nwp/wp/bbwp/html/Styles 
' > /nwp/wp/bbwp/bbdef
chmod 755 /nwp/wp/bbwp/bbdef

echo $'
#!/bin/sh
google-chrome /nwp/wp/bbwp/html/box1 /nwp/wp/bbwp/html/Untitled2 /nwp/wp/bbwp/html/Untitled1 /nwp/wp/bbwp/html/Styles 
' > /nwp/wp/bbwp/bbg
chmod 755 /nwp/wp/bbwp/bbg
echo $'
#!/bin/sh
dillo  /nwp/wp/bbwp/html/box1 www.google.com www.dictionary.com www.murga-linux.com/puppy http://www.etymonline.com/ https://duckduckgo.com/?q=nyc+weather+hourly&t=h_&ia=weather 
' > /nwp/wp/bbwp/dil2
chmod 755 /nwp/wp/bbwp/dil2
echo $'
#!/bin/sh
firefox /nwp/wp/bbwp/html/box1 /nwp/wp/bbwp/html/Untitled2 /nwp/wp/bbwp/html/Untitled1 /nwp/wp/bbwp/html/Styles 
' > /nwp/wp/bbwp/bbfir
chmod 755 /nwp/wp/bbwp/bbfir
echo $'
#!/bin/sh
chromium /nwp/wp/bbwp/html/box1 /nwp/wp/bbwp/html/Untitled2 /nwp/wp/bbwp/html/Untitled1   /nwp/wp/bbwp/html/Styles 
' > /nwp/wp/bbwp/bbch
chmod 755 /nwp/wp/bbwp/bbch

echo $'
#!/bin/sh
geany -i /nwp/wp/bbwp/html/box1 /nwp/wp/bbwp/html/Untitled2 /nwp/wp/bbwp/html/Untitled1   /nwp/wp/bbwp/html/Styles 
' > /nwp/wp/bbwp/bbwpe
chmod 755 /nwp/wp/bbwp/bbwpe

chmod 755 /nwp/bbdef /nwp/bbwpe /nwp/bbpm /nwp/bbg /nwp/dil2 /nwp/bbfir /nwp/bbch

 
echo $'
[Desktop Entry]
Encoding=UTF-8
Name=bbwp-conf
Icon=/root/puppy-reference/mini-icons/mini-pencil.xpm
Comment=browser based word processor and note taker --configure
Exec=rox /nwp/wp/bbwp/ /root/my-applications/bbwp
Terminal=false
Type=Application
GenericName=
Version=1.0
Categories=WordProcessor
' >/usr/share/applications/bbwp-conf2.desktop

echo $'
[Desktop Entry]
Encoding=UTF-8
Name=bbwp-def
Icon=/root/puppy-reference/mini-icons/mini-pencil.xpm
Comment=browser based word processor and note taker--configure
Exec=/nwp/bbwp/bbwp-def
Terminal=false
Type=Application
GenericName=bbwp-def
Version=1.0
Categories=WordProcessor
' > /usr/share/applications/bbwp-def2.desktop

#-------------------
#-------------------
#-------------------
#bbwpmk2-myappsbin section

mkdir -p /root/my-applications/bbwp/html/
echo $'
#!/bin/sh
xdotool type \'data:text/, <html contenteditable>\'
' > /root/my-applications/bin/wide
chmod 755 /root/my-applications/bin/wide

echo $'
#!/bin/sh
rox /root/my-applications/bbwp/ /nwp/wp/bbwp
' > /root/my-applications/bin/bbwprx

echo $'
#!/bin/sh
rox /root/my-applications/bbwp/ /nwp/wp/bbwp
' > /nwp/bbwprx
chmod 755 /nwp/bbwprx /root/my-applications/bin/bbwprx

echo $'

<!--
   nwp00.html
   
   Copyright 2017 root <root@puppypc>
   
   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 2 of the License, or
   (at your option) any later version.
   
   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
   
   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
   MA 02110-1301, USA.
      
-->
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 
<head>
    <title>Styles</title>
    <meta http-equiv="content-type" content="text/;charset=utf-8" />
    <meta name="generator" content="Geany 1.25" />
</head>
 
<body>
   
<title>styles-notes-scrap</title><body contenteditable style="font-size:2rem;font-family:serif;line-height:1.5;max-width:60rem;margin:0 auto;padding:4rem;" spellcheck="true">
   Formatting and Info
01 has no spell check but it\'s enabled in the 00 tab. copy text from the styles/scrap/help file (this file) or any browser window to change the formatting.<p>
   
   use your browser\'s open, close, and save menus and short cuts--if you don\'t save what\'s in the tab you\'ll lose your changes. <p>
      
pasting into the Styles tab will format the text; copy it back in underline, bold, h5, etc. copying the the sample text from there and editing it here preserves formatting as well.
   
overwrite and/or copy to grab formatting<p>   
(get rid of this help file\'s on screen contents and you also have a default set for spellcheck)<p>

control plus a,x,c,y,z all appear to work well in the editable window....right click copy and middle click paste work...select to copy works...

you can grab pictures and other formatting, and presumably videos as well (though i haven\'t tried)---you aren\'t limited to the Styles tab for formatting, but i wanted to make the dil nwp shortcut a full word processor--i think it is with these three tabs. first pet should go up by the first of july...

could also be used to grab the locations and formatting behind things since that\'s what shows up in the text editor view of the file.

enjoy.<p>

---Puppus Dogfellow, July 1, 2017<p>
   
   
   rox /my-applications/bin/bbwp<p>

 bbwp-def -- launch the bbwp with your default browser<p>
 bbwp-fir -- with firefox<p>
 bbwp-g -- with chrome<p>
 bbwp-pm -- with palemoon <p>
 bbwp-ch --  with chromium<p>
 dil2 -- dillo notetaker and reference popup<p>
 editconfig-geany-bbwp<p>
   
   
   
   
thanks to/more info:     <p>
   https://coderwall.com/p/lhsrcq/one-line-browser-notepad: make any tab a notetaker/wp with :<p>

<pre><code>data:text/html, <html contenteditable></code></pre><p>
http://www.pcworld.com/article/2360940/turn-any-browser-tab-into-a-basic-text-editor.html<p>
https://www.dropboxforum.com/t5/Dropbox/edit-text-file-in-browser-window/idi-p/19795/page/2#comments<p>
   
https://thiscouldbebetter.wordpress.com/2012/12/18/loading-editing-and-saving-a-text-file-in-html5-using-javascrip/<p>
the formatted version doesn\'t work in dillo, but the code from the above source was added to all the word processor "start centers" (browser pop up with a bunch of editable tabs opened) and makes the dillo reference popup a better notetaker, and a better wordprocessor as far as interplay with the anuupus utilities suite/word processor goes. the box also allows you to work with the raw html side of things, though you don\'t need to touch code to use this word processor (you just need a browser as capable as firefox/palemoon/chrome/...). <p>
 <p> <p>
overwrite/paste-in and/or copy to grab/change formatting <p>
overwrite/paste-in and/or copy to grab/change formatting<p>
overwrite/paste-in and/or copy to grab/change formatting<p>
overwrite/paste-in and/or copy to grab/change formatting<p>
<p>
    <b>Formatting and Info</b><p><p>
    <i>Formatting and Info</i><p><p>
    <u>Formatting and Info</u><p>   
   
   text below is probably inaccurate--check the line atop near the title or do a search in this document for spellcheck--first result on the page is the one that\'s part of the code that answers the question (change it if you like so that both templates are the same)
   
    <h5>odd numbers have spellcheck disabled</h5><p><p>(this refers to something defunct--format your notes with it)
      
      spellcheck enabled on Styles tab...
      
      

paste formatted text into google docs, zoho or similar to save as something other than pdf (usually available through your browser\'s print dialog), plain text or html (save as dialog/file menu).      

      print through your browser/it\'s a word processor
   
<pre>
<span style="font-size: 14pt; color:black; font-weight:normal; font-family: monospace">
print through your browser/it\'s a word processor
(but use libreoffice, pandoc, or similar to save as something other than text, pdf, or html)
https://pandoc.org/
      preotry
mono 14 pyaw
pyaw preotry

   
   pre tags preserve dead space
   

pyaw preotry
pyaw preotry

    <b>Formatting and Info</b><p><p>
    <i>Formatting and Info</i><p><p>
    <u>Formatting and Info</u><p>
<h6>h6--copy and paste formatting</h6><p>
 
<h5>h5--copy and paste formatting</h5><p>
<h4>h4--copy and paste formatting</h4><p>
<h3>h3--copy and paste formatting</h3><p>
<h2>h2--copy and paste formatting</h2><p>   
<h1>h1--copy and paste formatting</h1><p>

</span>
</pre>

print through your browser/it\'s a word processor
(but use libreoffice, pandoc, or similar to save as something other than text, pdf, or html)

      preotry
mono 14 pyaw
pyaw preotry

pyaw preotry
pyaw preotry

    <b>Formatting and Info</b><p><p>
    <i>Formatting and Info</i><p><p>
    <u>Formatting and Info</u><p>
<h6>h6--copy and paste formatting</h6><p>
 
<h5>h5--copy and paste formatting</h5><p>
<h4>h4--copy and paste formatting</h4><p>
<h3>h3--copy and paste formatting</h3><p>
<h2>h2--copy and paste formatting</h2><p>   
<h1>h1--copy and paste formatting</h1><p>
(same as above but without the pre tag. edit the code itself with a text editor or the note/scrap boxes (may be quicker than the browser\'s open menu. doesn\'t display formatting but may store it (haven\'t checked yet but anything you paste into the formattable tabs gets its hidden code revealed if you download it and view it in a text editor or as text (if your browser has that option or you use the boxes at either end of the bbwp popup))))

<pre>
<span style="font-size: 14pt; color:black; font-weight:normal; font-family: sans">

sans 14sans 14sans 14
sans 14sans 14sans 14

    <b>Formatting and Info</b><p><p>
    <i>Formatting and Info</i><p><p>
    <u>Formatting and Info</u><p>
<h6>h6--copy and paste formatting</h6><p>
 
<h5>h5--copy and paste formatting</h5><p>
<h4>h4--copy and paste formatting</h4><p>
<h3>h3--copy and paste formatting</h3><p>
<h2>h2--copy and paste formatting</h2><p>   
<h1>h1--copy and paste formatting</h1><p>

</span>
</pre>

<pre>
<span style="font-size: 14pt; color:black; font-weight:normal; font-family: serif">

serif 14
serif 14
serif 14
serif 14
serif 14

    <b>Formatting and Info</b><p><p>
    <i>Formatting and Info</i><p><p>
    <u>Formatting and Info</u><p>

<h6>h6--copy and paste formatting</h6><p>
 
<h5>h5--copy and paste formatting</h5><p>
<h4>h4--copy and paste formatting</h4><p>
<h3>h3--copy and paste formatting</h3><p>
<h2>h2--copy and paste formatting</h2><p>   
<h1>h1--copy and paste formatting</h1><p>
   
   
</span>
</pre>

<pre>
<span style="font-size: 12pt; color:black; font-weight:normal; font-family: monospace">

mono 12 pyaw preotry
pyaw preotry

pyaw preotry
pyaw preotry

    <b>Formatting and Info</b><p><p>
    <i>Formatting and Info</i><p><p>
    <u>Formatting and Info</u><p>
<h6>h6--copy and paste formatting</h6><p>
 
<h5>h5--copy and paste formatting</h5><p>
<h4>h4--copy and paste formatting</h4><p>
<h3>h3--copy and paste formatting</h3><p>
<h2>h2--copy and paste formatting</h2><p>   
<h1>h1--copy and paste formatting</h1><p>

</span>
</pre>

<pre>
<span style="font-size: 12pt; color:black; font-weight:normal; font-family: sans">

sans 12sans 12sans 12
sans 12sans 12sans 12

    <b>Formatting and Info</b><p><p>
    <i>Formatting and Info</i><p><p>
    <u>Formatting and Info</u><p>
<h6>h6--copy and paste formatting</h6><p>
 
<h5>h5--copy and paste formatting</h5><p>
<h4>h4--copy and paste formatting</h4><p>
<h3>h3--copy and paste formatting</h3><p>
<h2>h2--copy and paste formatting</h2><p>   
<h1>h1--copy and paste formatting</h1><p>

</span>
</pre>

<pre>
<span style="font-size: 12pt; color:black; font-weight:normal; font-family: serif">

serif 12
serif 12
serif 12
serif 12
serif 12

    <b>Formatting and Info</b><p><p>
    <i>Formatting and Info</i><p><p>
    <u>Formatting and Info</u><p>

<h6>h6--copy and paste formatting</h6><p>
 
<h5>h5--copy and paste formatting</h5><p>
<h4>h4--copy and paste formatting</h4><p>
<h3>h3--copy and paste formatting</h3><p>
<h2>h2--copy and paste formatting</h2><p>   
<h1>h1--copy and paste formatting</h1><p>
   
   
</span>
</pre>
<h6>h6--copy and paste formatting</h6><p> 
<h5>h5--copy and paste formatting</h5><p>
<h4>h4--copy and paste formatting</h4><p>
<h3>h3--copy and paste formatting</h3><p>
<h2>h2--copy and paste formatting</h2><p>   
<h1>h1--copy and paste formatting</h1><p>
<b>bold  --copy and paste formatting</b><p>
<u>underline  --copy and paste formatting</u><p>
<i>italics --copy and paste formatting</i><p>

for wide screen, paste <p>
  
<pre><code>data:text/html, <html contenteditable></code></pre><p>

into the address bar
(from<p>   https://thiscouldbebetter.wordpress.com/2012/12/18/loading-editing-and-saving-a-text-file-in-html5-using-javascrip/
) <p>
Untitled2 Spellcheck=True <p>
Untitled1 Spellcheck=False <p>
(no distracting red lines. use the wide screen code above to lose the distraction of margins). <p>

bookmark your templates, versions, and documents with your browser\'s interface, save your changes or you will lose them, use the print dialog to save in pdf (ctrl+s usually just gives you options for html or plain text)...pasting in video gives you the link but not an embedded video  (you can opt for a thumbnail or covershot or otherwise mask/decorate the link). pandoc is a command line converter for those who want to save in odt, docx, doc, etc but don\'t want to use a larger processor like zoho, google docs/drive, libre office, or open office. <p>

edit the launcher scripts to preload files in batches. make copies of templates or just repaste the address into blank tabs to make them usable.<p>


terminal and launcher shortcuts:<p>
bbdef --  launch the bbwp with your default browser<p>
bbpm --  with palemoon <p>
bbg --  with chrome<p>
bbfir -- with firefox <p>
bbch -- with chromium <p>
dil2 --  dillo notetaker and reference popup <p>
bbwprx -- open both the /nwp and /root/my-apps/bin bbwp folders for tweaking <p>
bbwpe -- edit-configs-geany <p>


launch the bbwp with your default browser -- bbdef <p>
with palemoon  -- bbpm <p>
with chrome -- bbg <p>
with firefox -- bbfir <p>
with chromium -- bbch <p>
editconfig-geany -- bbwpe <p>
dillo notetaker and reference popup -- dil2 <p>

(updated 7/11/17)<p>

</body>

</>
' > /root/my-applications/bbwp/html/Styles

echo $'
<!--  
   nwp01.html
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 
<head>
    <title>nwp01</title>
    <meta http-equiv="content-type" content="text/;charset=utf-8" />
    <meta name="generator" content="Geany 1.25" />
</head>
 
<body>
   
<title>bbwp01</title><body contenteditable style="font-size:2rem;font-family:serif;line-height:1.5;max-width:60rem;margin:0 auto;padding:4rem;" spellcheck="false">
   
  
</body>
 
</>

' > /root/my-applications/bbwp/html/Untitled1 

echo $'

 
<!--
   nwp00.html
   
[...]
-->
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 
<head>
    <title>00-s</title>
    <meta http-equiv="content-type" content="text/;charset=utf-8" />
    <meta name="generator" content="Geany 1.25" />
</head>
 
<body>
   
<title>nwp00</title><body contenteditable style="font-size:2rem;font-family:serif;line-height:1.5;max-width:60rem;margin:0 auto;padding:4rem;" spellcheck="true">
   
   
</body>
 
</>

' > /root/my-applications/bbwp/html/Untitled2 

echo $'

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<html>
<body>
 
<table>
    <tr><td>Text to Save:</td></tr>
    <tr>
        <td colspan="3">
            <textarea id="inputTextToSave" cols="80" rows="25"></textarea>
        </td>
    </tr>
    <tr>
        <td>Filename to Save As:</td>
        <td><input id="inputFileNameToSaveAs"></input></td>
        <td><button onclick="saveTextAsFile()">Save Text to File</button></td>
    </tr>
    <tr>
        <td>Select a File to Load:</td>
        <td><input type="file" id="fileToLoad"></td>
        <td><button onclick="loadFileAsText()">Load Selected File</button><td>
    </tr>
</table>
 
<script type="text/javascript">
 
function saveTextAsFile()
{
    var textToSave = document.getElementById("inputTextToSave").value;
    var textToSaveAsBlob = new Blob([textToSave], {type:"text/plain"});
    var textToSaveAsURL = window.URL.createObjectURL(textToSaveAsBlob);
    var fileNameToSaveAs = document.getElementById("inputFileNameToSaveAs").value;
 
    var downloadLink = document.createElement("a");
    downloadLink.download = fileNameToSaveAs;
    downloadLink.innerHTML = "Download File";
    downloadLink.href = textToSaveAsURL;
    downloadLink.onclick = destroyClickedElement;
    downloadLink.style.display = "none";
    document.body.appendChild(downloadLink);
 
    downloadLink.click();
}
 
function destroyClickedElement(event)
{
    document.body.removeChild(event.target);
}
 
function loadFileAsText()
{
    var fileToLoad = document.getElementById("fileToLoad").files[0];
 
    var fileReader = new FileReader();
    fileReader.onload = function(fileLoadedEvent)
    {
        var textFromFileLoaded = fileLoadedEvent.target.result;
        document.getElementById("inputTextToSave").value = textFromFileLoaded;
    };
    fileReader.readAsText(fileToLoad, "UTF-8");
}
 
</script>
 
</body>
</>
<!-- 
from
 
https://thiscouldbebetter.wordpress.com/2012/12/18/loading-editing-and-saving-a-text-file-in-html5-using-javascrip/

--> 

' > /root/my-applications/bbwp/html/box1

echo $'
#!/bin/sh
palemoon /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/bbpm
chmod 755 /root/my-applications/bbwp/bbpm
echo $'
#!/bin/sh
defaultbrowser /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/bbdef
chmod 755 /root/my-applications/bbwp/bbdef

echo $'
#!/bin/sh
google-chrome /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/bbg
chmod 755 /root/my-applications/bbwp/bbg
echo $'
#!/bin/sh
dillo  /root/my-applications/bbwp/html/box1 www.google.com www.dictionary.com www.murga-linux.com/puppy http://www.etymonline.com/ https://duckduckgo.com/?q=nyc+weather+hourly&t=h_&ia=weather 
' > /root/my-applications/bbwp/dil2
chmod 755 /root/my-applications/bbwp/dil2
echo $'
#!/bin/sh
firefox /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/bbfir
chmod 755 /root/my-applications/bbwp/bbfir
echo $'
#!/bin/sh
chromium /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/bbch
chmod 755 /root/my-applications/bbwp/bbch

echo $'
#!/bin/sh
geany -i /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/bbwpe
chmod 755 /root/my-applications/bbwp/bbwpe

chmod 755 /root/my-applications/bbdef /root/my-applications/bbwpe /root/my-applications/bbpm /root/my-applications/bbg /root/my-applications/dil2 /root/my-applications/bbfir /root/my-applications/bbch

 
echo $'
[Desktop Entry]
Encoding=UTF-8
Name=bbwp-conf
Icon=/root/puppy-reference/mini-icons/mini-pencil.xpm
Comment=browser based word processor and note taker --configure
Exec=rox /root/my-applications/bbwp/ /nwp/wp/bbwp
Terminal=false
Type=Application
GenericName=
Version=1.0
Categories=WordProcessor
' >/usr/share/applications/bbwp-conf2.desktop

echo $'
[Desktop Entry]
Encoding=UTF-8
Name=bbwp-def
Icon=/root/puppy-reference/mini-icons/mini-pencil.xpm
Comment=browser based word processor and note taker--configure
Exec=/root/my-applications/bbwp/bbwp-def
Terminal=false
Type=Application
GenericName=bbwp-def
Version=1.0
Categories=WordProcessor
' > /usr/share/applications/bbwp-def.desktop

#make a pair of desktop files and a couple of icons for them
#launch the bbwp with palemoon from my-applications/bbwp and/or from nwp/wp/bbwp:

mkdir -p /usr/share/applications/icons-alt/bbwp/
echo $'/* XPM */
static char *artlbbwp_xpm[] = {
"32 15 4 1",
" 	c None",
"1	c #DADADA",
"2	c #00FF00",
"3	c #6B3EA3",
"11111111111111111111111111111111",
"13111111131111111111111111111111",
"13111111131111111111111111111111",
"13111111131111111111111111111111",
"13111111131111111111111111111111",
"13133331131333311131111313133331",
"13311113133111131131111313311113",
"13111113131111131131131313111113",
"13111113131111131131131313111113",
"13111113131111131131131313111113",
"13311113133111131131131313311113",
"13311113133111131131131313311113",
"13133331131333311113313113133331",
"11111111111111111111111113111111",
"11111111111111111111111113111111"
};
' >/usr/share/applications/icons-alt/bbwp/0artlbbwp.xpm

echo $'/* XPM */
static char *tmp_xpm[] = {
"28 13 4 1",
" 	c None",
". 	c #5171CD",
",	c #00FF00",
"#	c #FFFFFF",
"............................",
".#......#...................",
".#......#...................",
".#......#...................",
".#.###..#.###...#...#.#.###.",
".##...#.##...#..#...#.##...#",
".#....#.#....#..#.#.#.#....#",
".#....#.#....#..#.#.#.#....#",
".#....#.#....#..#.#.#.#....#",
".##...#.##...#..#.#.#.##...#",
".#.###..#.###....#.#..#.###.",
"......................#.....",
"......................#.....",
""};
' >/usr/share/applications/icons-alt/bbwp/wbtlbbwp.xpm

echo $'
[Desktop Entry]
Encoding=UTF-8
Name=bbpm
Icon=/usr/share/applications/icons-alt/bbwp/wbtlbbwp.xpm
Comment=browser based word processor and note taker--launch with pale moon
Exec=/root/my-applications/bbwp/bbpm
Terminal=false
Type=Application
GenericName=bbwp-pm
Version=1.0
Categories=WordProcessor
' >/usr/share/applications/bbpm.desktop

echo $'
[Desktop Entry]
Encoding=UTF-8
Name=bbpm
Icon=/usr/share/applications/icons-alt/bbwp/0artlbbwp.xpm
Comment=browser based word processor and note taker--launch with pale moon
Exec=/nwp/wp/bbwp/bbpm
Terminal=false
Type=Application
GenericName=bbwp-pm
Version=1.0
Categories=WordProcessor
' >/usr/share/applications/bbpm-nwp.desktop

makes the "paste into the browser to make any tab editable" code visible in the Styles tab and makes a some icons for the palemoon version (others just use the stock mini-pencil script. thanks to technosaurus for the script that generated that file--versions of it comprise the nwp's icon-making function.)

http://murga-linux.com/puppy/viewtopic. ... 059#930059
http://www.murga-linux.com/puppy/viewto ... 358#898358
http://www.murga-linux.com/puppy/viewto ... 822#561822
^more on the icon-generating aspect--next post will have the script that uses the mcc labeling/icon batch making functions.

User avatar
Puppus Dogfellow
Posts: 1667
Joined: Tue 08 Jan 2013, 01:39
Location: nyc

a wider array of icons for your bbwp

#83 Post by Puppus Dogfellow »

Code: Select all

#make icons (works if you've already got the nwp or 
#txttoxpm variety pack  installed: http://murga-linux.com/puppy/viewtopic.php?p=930059#930059
mkdir -p /usr/share/applications/icons-alt/bbwp
0artxpm "bbwp" >/usr/share/applications/icons-alt/bbwp/0artlbbwp.xpm
0atxpm "bbwp" >/usr/share/applications/icons-alt/bbwp/0atlbbwp.xpm
0rwtxpm "bbwp" >/usr/share/applications/icons-alt/bbwp/0rwtlbbwp.xpm
0txpm "bbwp" >/usr/share/applications/icons-alt/bbwp/0tlbbwp.xpm
1txpm "bbwp" >/usr/share/applications/icons-alt/bbwp/1tlbbwp.xpm
2txpm "bbwp" >/usr/share/applications/icons-alt/bbwp/2tlbbwp.xpm
3txpm "bbwp" >/usr/share/applications/icons-alt/bbwp/3tlbbwp.xpm
4txpm "bbwp" >/usr/share/applications/icons-alt/bbwp/4tlbbwp.xpm
5txpm "bbwp" >/usr/share/applications/icons-alt/bbwp/5tlbbwp.xpm
6txpm "bbwp" >/usr/share/applications/icons-alt/bbwp/6tlbbwp.xpm
7txpm "bbwp" >/usr/share/applications/icons-alt/bbwp/7tlbbwp.xpm
8txpm "bbwp" >/usr/share/applications/icons-alt/bbwp/8tlbbwp.xpm
9txpm "bbwp" >/usr/share/applications/icons-alt/bbwp/9tlbbwp.xpm
bltxpm "bbwp" >/usr/share/applications/icons-alt/bbwp/bltlbbwp.xpm
botxpm "bbwp" >/usr/share/applications/icons-alt/bbwp/botlbbwp.xpm
btxpm "bbwp" >/usr/share/applications/icons-alt/bbwp/btlbbwp.xpm
bwtxpm "bbwp" >/usr/share/applications/icons-alt/bbwp/bwtlbbwp.xpm
deftxpm "bbwp" >/usr/share/applications/icons-alt/bbwp/deftlbbwp.xpm
defxpm "bbwp" >/usr/share/applications/icons-alt/bbwp/deflbbwp.xpm
gbtxpm "bbwp" >/usr/share/applications/icons-alt/bbwp/gbtlbbwp.xpm
gwtxpm "bbwp" >/usr/share/applications/icons-alt/bbwp/gwtlbbwp.xpm
kwtxpm "bbwp" >/usr/share/applications/icons-alt/bbwp/kwtlbbwp.xpm
lbtxpm "bbwp" >/usr/share/applications/icons-alt/bbwp/lbtlbbwp.xpm
lotxpm "bbwp" >/usr/share/applications/icons-alt/bbwp/lotlbbwp.xpm
obtxpm "bbwp" >/usr/share/applications/icons-alt/bbwp/obtlbbwp.xpm
oltxpm "bbwp" >/usr/share/applications/icons-alt/bbwp/oltlbbwp.xpm
prtext2xpm "bbwp" >/usr/share/applications/icons-alt/bbwp/prtext2lbbwp.xpm
prtxpm "bbwp" >/usr/share/applications/icons-alt/bbwp/prtlbbwp.xpm
ptxpm "bbwp" >/usr/share/applications/icons-alt/bbwp/ptlbbwp.xpm
rdbltxpm "bbwp" >/usr/share/applications/icons-alt/bbwp/rdbltlbbwp.xpm
rdltxpm "bbwp" >/usr/share/applications/icons-alt/bbwp/rdltlbbwp.xpm
rldtxpm "bbwp" >/usr/share/applications/icons-alt/bbwp/rldtlbbwp.xpm
rrdbltxpm "bbwp" >/usr/share/applications/icons-alt/bbwp/rrdbltlbbwp.xpm
text2xpm "bbwp" >/usr/share/applications/icons-alt/bbwp/text2lbbwp.xpm
wbtxpm "bbwp" >/usr/share/applications/icons-alt/bbwp/wbtlbbwp.xpm
wgtxpm "bbwp" >/usr/share/applications/icons-alt/bbwp/wgtlbbwp.xpm
wktxpm "bbwp" >/usr/share/applications/icons-alt/bbwp/wktlbbwp.xpm
wtxpm "bbwp" >/usr/share/applications/icons-alt/bbwp/wtlbbwp.xpm
wtxt2xpm "bbwp" >/usr/share/applications/icons-alt/bbwp/wtxt2lbbwp.xpm
0artxpm "BBWP" >/usr/share/applications/icons-alt/bbwp/0artbbwp.xpm
0atxpm "BBWP" >/usr/share/applications/icons-alt/bbwp/0atbbwp.xpm
0rwtxpm "BBWP" >/usr/share/applications/icons-alt/bbwp/0rwtbbwp.xpm
0txpm "BBWP" >/usr/share/applications/icons-alt/bbwp/0tbbwp.xpm
1txpm "BBWP" >/usr/share/applications/icons-alt/bbwp/1tbbwp.xpm
2txpm "BBWP" >/usr/share/applications/icons-alt/bbwp/2tbbwp.xpm
3txpm "BBWP" >/usr/share/applications/icons-alt/bbwp/3tbbwp.xpm
4txpm "BBWP" >/usr/share/applications/icons-alt/bbwp/4tbbwp.xpm
5txpm "BBWP" >/usr/share/applications/icons-alt/bbwp/5tbbwp.xpm
6txpm "BBWP" >/usr/share/applications/icons-alt/bbwp/6tbbwp.xpm
7txpm "BBWP" >/usr/share/applications/icons-alt/bbwp/7tbbwp.xpm
8txpm "BBWP" >/usr/share/applications/icons-alt/bbwp/8tbbwp.xpm
9txpm "BBWP" >/usr/share/applications/icons-alt/bbwp/9tbbwp.xpm
bltxpm "BBWP" >/usr/share/applications/icons-alt/bbwp/bltbbwp.xpm
botxpm "BBWP" >/usr/share/applications/icons-alt/bbwp/botbbwp.xpm
btxpm "BBWP" >/usr/share/applications/icons-alt/bbwp/btbbwp.xpm
bwtxpm "BBWP" >/usr/share/applications/icons-alt/bbwp/bwtbbwp.xpm
deftxpm "BBWP" >/usr/share/applications/icons-alt/bbwp/deftbbwp.xpm
defxpm "BBWP" >/usr/share/applications/icons-alt/bbwp/defbbwp.xpm
gbtxpm "BBWP" >/usr/share/applications/icons-alt/bbwp/gbtbbwp.xpm
gwtxpm "BBWP" >/usr/share/applications/icons-alt/bbwp/gwtbbwp.xpm
kwtxpm "BBWP" >/usr/share/applications/icons-alt/bbwp/kwtbbwp.xpm
lbtxpm "BBWP" >/usr/share/applications/icons-alt/bbwp/lbtbbwp.xpm
lotxpm "BBWP" >/usr/share/applications/icons-alt/bbwp/lotbbwp.xpm
obtxpm "BBWP" >/usr/share/applications/icons-alt/bbwp/obtbbwp.xpm
oltxpm "BBWP" >/usr/share/applications/icons-alt/bbwp/oltbbwp.xpm
prtext2xpm "BBWP" >/usr/share/applications/icons-alt/bbwp/prtext2bbwp.xpm
prtxpm "BBWP" >/usr/share/applications/icons-alt/bbwp/prtbbwp.xpm
ptxpm "BBWP" >/usr/share/applications/icons-alt/bbwp/ptbbwp.xpm
rdbltxpm "BBWP" >/usr/share/applications/icons-alt/bbwp/rdbltbbwp.xpm
rdltxpm "BBWP" >/usr/share/applications/icons-alt/bbwp/rdltbbwp.xpm
rldtxpm "BBWP" >/usr/share/applications/icons-alt/bbwp/rldtbbwp.xpm
rrdbltxpm "BBWP" >/usr/share/applications/icons-alt/bbwp/rrdbltbbwp.xpm
text2xpm "BBWP" >/usr/share/applications/icons-alt/bbwp/text2bbwp.xpm
wbtxpm "BBWP" >/usr/share/applications/icons-alt/bbwp/wbtbbwp.xpm
wgtxpm "BBWP" >/usr/share/applications/icons-alt/bbwp/wgtbbwp.xpm
wktxpm "BBWP" >/usr/share/applications/icons-alt/bbwp/wktbbwp.xpm
wtxpm "BBWP" >/usr/share/applications/icons-alt/bbwp/wtbbwp.xpm
wtxt2xpm "BBWP" >/usr/share/applications/icons-alt/bbwp/wtxt2bbwp.xpm



echo $'
[Desktop Entry]
Encoding=UTF-8
Name=bbpm
Icon=/usr/share/applications/icons-alt/bbwp/bwtlbbwp.xpm
Comment=browser based word processor and note taker--launch with pale moon
Exec=/root/my-applications/bbwp/bbpm
Terminal=false
Type=Application
GenericName=bbwp-pm
Version=1.0
Categories=WordProcessor
' >/usr/share/applications/bbpm.desktop
echo $'
[Desktop Entry]
Encoding=UTF-8
Name=bbpm
Icon=/usr/share/applications/icons-alt/bbwp/0artlbbwp.xpm
Comment=browser based word processor and note taker--launch with pale moon
Exec=/nwp/wp/bbwp/bbpm
Terminal=false
Type=Application
GenericName=bbwp-pm
Version=1.0
Categories=WordProcessor
' >/usr/share/applications/bbpm-nwp.desktop
(you don't need to make desktop files for your scripts/programs as you can just right click the association in Rox, but if you want to do it through a terminal, this works better than copying into the mime-types folder.)

User avatar
Puppus Dogfellow
Posts: 1667
Joined: Tue 08 Jan 2013, 01:39
Location: nyc

some keyboard tweaks as a pet

#84 Post by Puppus Dogfellow »

xmod8287.1.2.pet

from the info file:
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. ... 657#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 addition:
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_f4) added in the same way as run8287.
adds an xmodmaps folder in /root/my-applications and a link to it in the utilities menu. scripts/buttons therein run alternate keyboard layouts and aim to make keyboard tweaking easier overall. next version will include the bbwp as the pinstall script with the small addition of an iron launcher--only the chromium based browsers (chrome, min (only 40 mb but takes some getting used to), slimjet, chromium (as a guess--haven't actually tried that one or vivaldi), and iron) seem to be able to save the pdfs and "webpages" the Browser Based Word Processor generates--use mozilla browsers only for notes or to have multiple versions of a text--they save the dual launcher generated files (generated off the original nwp templates), but any changes i've tried in firefox, palemoon, and tor (all basically firefox) with the editable html pages are lost....well, never tested firefox itself, or seamonkey, but i'd be surprised if the saving function worked in those.
:? /enjoy.

:)

here's a screen shot of the folder:
Attachments
xmod8287.1.2.jpg
(48.57 KiB) Downloaded 936 times

User avatar
Puppus Dogfellow
Posts: 1667
Joined: Tue 08 Jan 2013, 01:39
Location: nyc

xmod8287-bbwp--browser based word processor and/or

#85 Post by Puppus Dogfellow »

next version will include the bbwp as the pinstall script with the small addition of an iron launcher
xmod8287-bbwp.pet


bbi and bbii (run from my apps bin, run from nwp) added as launcher shortcuts--pet would've been a third smaller with a little more forethought (copying) regarding this bit--i used the file from http://murga-linux.com/puppy/viewtopic. ... 663#960663 as the install script--see that post to modify the bbwp before it gets made or if you want a version without the keyboard/xmodmap tweaks. installed size isn't affected apart from the additional warning added from http://murga-linux.com/puppy/viewtopic. ... 667#962667 (
[...] only the chromium based browsers (chrome, min (only 40 mb but takes some getting used to), slimjet, chromium (as a guess--haven't actually tried that one or vivaldi), and iron) seem to be able to save the pdfs and "webpages" the Browser Based Word Processor generates--use mozilla browsers only for notes or to have multiple versions of a text--they save the dual launcher generated files (generated off the original nwp templates), but any changes i've tried in firefox, palemoon, and tor (all basically firefox) with the editable html pages are lost....well, never tested firefox itself, or seamonkey, but i'd be surprised if the saving function worked in those.
) to the Styles/help/grab some formatting file(s) (one in /root/my-applications/bbwp, one in nwp/wp/bbwp). see that post for more on the keyboard aspect of the pet, and see http://murga-linux.com/puppy/viewtopic. ... 394#959394 for more on the bbwp.

launcher shortcuts from earlier bbwp pet:
defbb -- open bbwp with your default browser (five tabs--same code in ll or gl launcher(alt+l,alt+k are leafpad and geany launchers) to adjust)
firbb -- with firefox
chbb -- with chromium
pmbb -- with palemoon
gbb -- with google chrome
dil2 -- dillo reference/notetaker
wpebb -- open config files in geany)

additional info and an earlier version of the keyboard tweak pet:
http://murga-linux.com/puppy/viewtopic. ... 657#958657

User avatar
Puppus Dogfellow
Posts: 1667
Joined: Tue 08 Jan 2013, 01:39
Location: nyc

updates and a fix. also, the bbwp works as well in mozilla

#86 Post by Puppus Dogfellow »

from http://murga-linux.com/puppy/viewtopic. ... 915#965915, a small restructuring and some added functions/(it's now also a tiny browser based word processor (complete with keyboard tweaker))
Puppus Dogfellow wrote:from http://murga-linux.com/puppy/viewtopic. ... 905#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):
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. ... 657#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:

_____________
[...]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.

:D

more on the bbwp (Styles sheet is also scrap, history, howto, and credits) starting here:
http://www.murga-linux.com/puppy/viewto ... c6d#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/viewto ... c6d#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

tip: saving as html makes it editable in the browser window whereas the pdfs require (additional) outside program(s) to edit.

enjoy.

Pelo

NWP is what i need.

#87 Post by Pelo »

amigo wrote:Where does word processing come into this?
It's not the final version Users will wait a little bit . I am so in need of typing , texlive, kingsoft, libre-office, abiword, are not enough.
'i can't get satisfation !' NWP is what i need.

User avatar
Puppus Dogfellow
Posts: 1667
Joined: Tue 08 Jan 2013, 01:39
Location: nyc

a small update,a large update, the next release

#88 Post by Puppus Dogfellow »

first the insert special characters bit:

from http://murga-linux.com/puppy/viewtopic. ... 234#986234
Re: a small utility/update for the mini word processor aspect
inserting special characters through copy and paste (another basepet howto)

Puppus Dogfellow wrote: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: Select all

#!/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/spec ... cters.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).
i used the specil.pet above as a template for the nwpu89 pet that follows the next bit (this thread is two minor updates behind the micro word processor it spawned (the bbwp became a feature of the mcc spin off feature). after collecting the script bits in a pinstall.sh and either breaking the update pets apart to repackage them or setting them up in /tmp for some sort of ordered install, i re-petted the thing (see the additional post from that thread below--it addresses an included feature i forget to mention much here), as nwpu89--an upgrade for nwp32.8, -32.8ns, and 64.8 to .9.

here's that pet:

nwpu89.pet

and here's the post that goes a little more in detail about that feature and the f2 keyboard configuration option:

http://murga-linux.com/puppy/viewtopic. ... 073#970073
Re: a couple of small updates
including one for a function i forgot to mention last time
Puppus Dogfellow wrote:here's mcc-wp.pet

first the new bit (from the info file in /root/my-applications/xmodmaps):
[...]
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: Select all

#--------------------------- 
#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: Select all


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: Select all

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. ... 058#961058


and here are the newest launcher shortcuts (via the .9 pinstall.sh):

Code: Select all

 #!/bin/sh

petget /tmp/nwpu/nwp64.8.pet 
sleep 6
petget /tmp/nwpu/nwpu89.pet


# update 3/18: newest launcher additions (activate with shift plus spacebar. enter "elp" for more).
# 
# nwp/pwn launcher shortcuts for bbwp (the browser based word processor):
# 
# defbb -- open bbwp with your default browser (five tabs--same code in ll or gl launcher(alt+l,alt+k are leafpad and geany launchers) to adjust)
# firbb -- with firefox
# chbb -- with chromium
# pmbb -- with palemoon
# gbb -- with google chrome
# dil2 -- dillo reference/notetaker
# wpebb -- open config files in geany 
# bbi and bbii (run through iron from my apps bin, run from nwp)
# 
# the browser based word processor now also works as a rox right click function--drag new file to browser or set run action.
# some shortcuts for wordgrinder: (open in default terminal (wg)(urxvt), rxvt(wgr), or sakura(wgs)
# bm -- disciple's bookmarks viewer (went missing at some point)
# utu -- update your youtube downloader python script (or give you one if you don't have it--many guis (BarryK's for one) require it).
# mmv -- MochiMoppel's file viewer
# speci, specig -- copy and paste (and collect) special characters --open file in leafpad (speci) or geany (specig) 
# nwp shorts for/from the new keyboard configuration features:
# ktab -- open the key table in geany
# ktabm -- open the modifier map in geany
# kset -- open the xmodmap folder in /root/my-applications/ (modify your keyboard)
# kreset -- reset the keyboard (set for u.s. layout--edit to suit yours or copy to make (more) toggles)
# fairly up to date and maintained shortcuts list:
# http://murga-linux.com/puppy/viewtopic.php?p=959409#959409
# (following post in that thread is keyboard shortcuts for the spins or anything using that aspect of the nwp)
# enjoy
#
# p. dogfellow, 3/23/19

#you may need an extra
#fixmenus; jwm -restart

updated launcher code list to follow. here are the newest nwps:

mwp32.9ns.pet
mwp64.9.pet
mwp32.9.pet

and here's the update pet again:

nwpu89.pet

(if you've been updating as things rolled in, you're only missing specil.pet, though some errors and omissions may've been taken care of during the update (it's probably just redundancy born of paranoia). see
notes for pet making and
PostPosted: Wed 21 Mar 2018, 21:03 Post subject: fix for a possible recoll problem and updated quicklinks
for more (i used the same pet within a pet idea for a pet to take a pup spin to go--add your port-your-configs bits/pet-your-config pets to a similar pet and you're on your way (should you find you need to take your setup (however it's evolved) and these utilities with you)).

User avatar
Puppus Dogfellow
Posts: 1667
Joined: Tue 08 Jan 2013, 01:39
Location: nyc

the updated nwp/pwn launcher shortcuts list

#89 Post by Puppus Dogfellow »

i think i'll post the background from the above post along with the actual launcher shortcuts. from launcher shortcuts redux[...]almost totally up to date:
Puppus Dogfellow wrote:
Puppus Dogfellow wrote:
recobayu wrote:Hi Puppus,
How to make that nwp run? What should i do after installing that pet?
Thank you.
Hi recobayu.

installing A NWP/A NWPUS--A Noob's Word Processor and Utilities Suite in one of these spins is redundant--the word processor and utilities suite is just the customizations i've made to a base distro made portable. if you mean the wordgrinder pet installed in a pup from this thread or that installed the nwp (folder that holds the alternate file system and the little scripts that do the work), shift+spacebar activates the launcher and either wg (wordgrinder opened in urxvt), wgs (wordgrinder opened in sakura) or wgr (wordgrinder opened in rxvt) entered into that launcher will run the program, as will "wordgrinder" in the terminal or clicking on one of the entries in the Documents menu or one of the three .desktop files in /usr/share/applications.

the nwp is more the folder that contains your stuff (optional file system--enter "baek" in the launcher for an aemenu version of it), and the launcher and jwm tweaks are what make the thing--"pwn" launcher (Process Words, Nooby/carpe diem, etc) is shift plus spacebar--i think there's an almost full list of shortcut codes a page back or so--that's the main "interface"--the thing's an overlay/overhaul more than a program, and it gives you more than one way to do what it proposes to do, so--i'm not sure what you mean.
:D

(also, if you're not using these spins for the wordgrinder pet, you'll probably need to install sakura for the wgs/wordgrinder-sk versions to work).

hth

(the nwp thread i've linked may clear up some confusion. it also may add to it).
:lol:

(if you do install the nwp as a pet, it ports your configs to "my39." to get back to them, "my39r" in the terminal should reverse most if not all of the installation (mae in the menu allows piecemeal uninstallation--it's a fairly enormous ae menu--i had an ae menu problem there for a while--just couldn't stop making them (there's an aemenu and jwmmenu maker somewhere in the shortcuts as well, but i usually just use substitution on existing copies at this point--so many templates for keycuts and menus, but lately i've been more concerned with altering the keyboard itself--keeps me up at night.)))


again, hope this helps, but i'll repost the shortcuts with the updates sometime soon.
http://murga-linux.com/puppy/viewtopic. ... 044#923044

missing a few from the last couple of updated or so, but it's still a pretty comprehensive list:
(keyboard shortcuts are at the post after the linked one--i 'll repost that as well, though the mod3 and modshift mods from xmod8287 have me messing with them--they're included and the documentation increasingly buried and a few substitutions and they're templates for new keys and mod3)
Puppus Dogfellow wrote: from the nwp/vtg support folder in the repo
all the limitations of the nwp as a word processor seem to me taken care of by the bbwp...i'm kinda done with it other than templates and file trees for preloading and general convenience. it frees up a lot of keys....

_____

update 3/18: newest launcher additions (activate with shift plus spacebar. enter "elp" for more).

nwp/pwn launcher shortcuts for bbwp (the browser based word processor):

defbb -- open bbwp with your default browser (five tabs--same code in ll or gl launcher(alt+l,alt+k are leafpad and geany launchers) to adjust)
firbb -- with firefox
chbb -- with chromium
pmbb -- with palemoon
gbb -- with google chrome
dil2 -- dillo reference/notetaker
wpebb -- open config files in geany
bbi and bbii (run through iron from my apps bin, run from nwp)

the browser based word processor now also works as a rox right click function--drag new file to browser or set run action.
some shortcuts for wordgrinder: (open in default terminal (wg)(urxvt), rxvt(wgr), or sakura(wgs)
bm -- disciple's bookmarks viewer (went missing at some point)
utu -- update your youtube downloader python script (or give you one if you don't have it--many guis (BarryK's for one) require it).
mmv -- MochiMoppel's file viewer
sfl -- launch sfs-load
speci, specig -- copy and paste (and collect) special characters --open file in leafpad (speci) or geany (specig)
nwp shorts for/from the new keyboard configuration features:
ktab -- open the key table in geany
ktabm -- open the modifier map in geany
kset -- open the xmodmap folder in /root/my-applications/ (modify your keyboard)
kreset -- reset the keyboard (set for u.s. layout--edit to suit yours or copy to make (more) toggles)
next up is the keyboard shortcuts from the same thread (there are other posts of it, but i think that one's the most recent (though not recent enough to include the mod3 feature from the 82_xmod.pet series in any of the jwm templates (doesn't work in rox, whereas the others do, so maybe that's an update for the future--free up some keys jwm took control of and give them to rox (super easy to make keycuts in rox) and other programs.)

here are updates again:

nwp32.9ns.pet
nwp32.9.pet
nwp64.9.pet
nwpu89.pet


enjoy.

User avatar
Puppus Dogfellow
Posts: 1667
Joined: Tue 08 Jan 2013, 01:39
Location: nyc

keycuts again

#90 Post by Puppus Dogfellow »

from the updated nwp/pwn launcher shortcut post above:
[...]
next up is the keyboard shortcuts from the same thread (there are other posts of it, but i think that one's the most recent (though not recent enough to include the mod3 feature from the 82_xmod.pet series in any of the jwm templates (doesn't work in rox, whereas the others do, so maybe that's an update for the future--free up some keys jwm took control of and give them to rox (super easy to make keycuts in rox) and other programs.)

here are updates again:

nwp32.9ns.pet
nwp32.9.pet
nwp64.9.pet
nwpu89.pet


enjoy.
from http://murga-linux.com/puppy/viewtopic. ... 045#923045:

Post subject: here's the other long list of shortcuts, keys.
Subject description: jwm only though you can right click assign in rox and swap those with your pinboards.
(rox assigns keyboard shortcuts to individual icons, not the programs they point to)
Puppus Dogfellow wrote:
from http://www.murga-linux.com/puppy/viewto ... 759#908759
(approximately series of precise spins thread)

____

built in keyboard shortcuts (default version. many call nwp/pwn scripts or aemenus. see the pwn launcher shortcut list above or forthcoming keycentric version (better comments) to decode. a, b, and q are positionals/window-resizers, and alt+# no longer takes you to a specific desktop (d# does, the function keys (keycentric only) do, but all 24 are accessible from each of the ten menus (desktops slot)...another help file built from a menu by substituting in geany...(pardon its being a bit backwards).


modifier(s)=Alt KEY=z -- xdotool key alt+1 Return (or /nwp/v--it's the vtg and not all are set up the same).
modifier(s)=Alt KEY=g -- /nwp/vtg5 (scrap, vtg and general help, 5 document popup in geany)
modifier(s)=Alt+Shift KEY=g -- /nwp/g (grids menu)
key=Up -- up
key=Down -- down
key=Right -- right
key=Left -- left
key=h -- left
key=j -- down
key=k -- up
key=l -- right
key=Return -- select
key=Escape -- escape
key=F12 -- root:3

modifier(s)=Control KEY=Tab -- prev
modifier(s)=Alt KEY=Tab -- next
modifier(s)=Alt KEY=F4 -- close

modifier(s)=Alt KEY=F1 -- root:3
modifier(s)=Alt KEY=F2 -- window
modifier(s)=Alt KEY=F3 -- exec/nwp/n

modifier(s)=Shift KEY=F2 -- /nwp/ww
modifier(s)=Shift KEY=F1 -- /nwp/v
modifier(s)=Shift KEY=F3 -- /nwp/g

modifier(s)=Shift KEY=F4 -- /nwp/sd
modifier(s)=Control KEY=F12 -- /nwp/n2</Key
modifier(s)=Control KEY=F11 -- /nwp/n1
modifier(s)=Control KEY=F10 -- /nwp/q10
modifier(s)=Control KEY=F9 -- /nwp/q9</Key
modifier(s)=Control KEY=F8 -- /nwp/q8
modifier(s)=Control KEY=F7 -- /nwp/q7
modifier(s)=Control KEY=F6 -- /nwp/q6</Key
modifier(s)=Control KEY=F5 -- /nwp/q5
modifier(s)=Control KEY=F4 -- /nwp/q4
modifier(s)=Control KEY=F3 -- /nwp/q3</Key
modifier(s)=Control KEY=F2 -- /nwp/q2
modifier(s)=Control KEY=F1 -- /nwp/q1



modifier(s)=Alt KEY=Escape -- fullscreen
modifier(s)=Control KEY=Escape -- showdesktop
modifier(s)=Shift KEY=Escape -- window
modifier(s)=Alt+Control KEY=Escape -- move
modifier(s)=Alt+Shift KEY=Escape -- minimize
modifier(s)=ControlS KEY=Escape -- maximize
modifier(s)=Shift+Alt+Control KEY=Escape -- resize



keycode=160 -- amixer sset Master toggle
keycode=176 -- amixer sset Master 1+,1+
keycode=174 -- amixer sset Master 1-,1-
keycode=178 -- defaultbrowser
keycode=236 -- defaultbrowser
keycode=111 -- defaultscreenshot



modifier(s)=Alt KEY=Up -- /nwp/supup
modifier(s)=Alt KEY=Down -- /nwp/supdown
modifier(s)=Alt KEY=Right -- /nwp/supright
modifier(s)=Alt KEY=Left -- /nwp/supleft


modifier(s)=Alt+Control KEY=Up -- maximize
modifier(s)=Alt+Control KEY=Down -- minimize
modifier(s)=Alt+Control KEY=Right -- resize
modifier(s)=Alt+Control KEY=Left -- move

modifier(s)=Alt+Shift KEY=Up -- fullscreen
modifier(s)=Alt+Shift KEY=Down -- showdesktop
modifier(s)=Alt+Shift KEY=Right -- next
modifier(s)=Alt+Shift KEY=Left -- prev


modifier(s)=Shift+Alt+Control KEY=Up -- /nwp/2
modifier(s)=Shift+Alt+Control KEY=Down -- /nwp/n
modifier(s)=Shift+Alt+Control KEY=Right -- /nwp/g
modifier(s)=Shift+Alt+Control KEY=Left -- /nwp/s


modifier(s)=Alt KEY=1 -- root:1
modifier(s)=Alt KEY=2 -- root:2
modifier(s)=Alt KEY=3 -- root:3
modifier(s)=Alt KEY=4 -- root:4
modifier(s)=Alt KEY=5 -- root:5
modifier(s)=Alt KEY=6 -- root:6
modifier(s)=Alt KEY=7 -- root:7
modifier(s)=Alt KEY=8 -- root:8
modifier(s)=Alt KEY=9 -- root:9
modifier(s)=Alt KEY=0 -- root:0

modifier(s)=Alt+Control KEY=1 -- /nwp/a1
modifier(s)=Alt+Control KEY=2 -- /nwp/a2
modifier(s)=Alt+Control KEY=3 -- /nwp/a3
modifier(s)=Alt+Control KEY=4 -- /nwp/a4
modifier(s)=Alt+Control KEY=5 -- /nwp/a5
modifier(s)=Alt+Control KEY=6 -- /nwp/a6
modifier(s)=Alt+Control KEY=7 -- /nwp/a7
modifier(s)=Alt+Control KEY=8 -- /nwp/a8
modifier(s)=Alt+Control KEY=9 -- /nwp/a9
modifier(s)=Alt+Control KEY=0 -- /nwp/a10

modifier(s)=Alt+Shift KEY=1 -- /nwp/b1
modifier(s)=Alt+Shift KEY=2 -- /nwp/b2
modifier(s)=Alt+Shift KEY=3 -- /nwp/b3
modifier(s)=Alt+Shift KEY=4 -- /nwp/b4
modifier(s)=Alt+Shift KEY=5 -- /nwp/b5
modifier(s)=Alt+Shift KEY=6 -- /nwp/b6
modifier(s)=Alt+Shift KEY=7 -- /nwp/b7
modifier(s)=Alt+Shift KEY=8 -- /nwp/b8
modifier(s)=Alt+Shift KEY=9 -- /nwp/b9
modifier(s)=Alt+Shift KEY=0 -- /nwp/b10

<!-- modifier(s)=Shift+Control KEY=2 -- vgt -->

modifier(s)=Shift+Control KEY=1 -- /nwp/winswitcher

modifier(s)=Shift+Control KEY=2 -- xdotool key ctrl+9 ctrl+8 Return ctrl+7

modifier(s)=Shift+Control KEY=3 -- /nwp/3but
modifier(s)=Shift+Control KEY=4 -- window
modifier(s)=Shift+Control KEY=5 -- move
modifier(s)=Shift+Control KEY=6 -- resize
modifier(s)=Shift+Control KEY=7 -- minimize
modifier(s)=Shift+Control KEY=8 -- maximize
modifier(s)=Shift+Control KEY=9 -- prev
modifier(s)=Shift+Control KEY=0 -- next


modifier(s)=Shift+Alt+Control KEY=1 -- ldesktop
modifier(s)=Shift+Alt+Control KEY=2 -- rdesktop
modifier(s)=Shift+Alt+Control KEY=3 -- udesktop
modifier(s)=Shift+Alt+Control KEY=4 -- ddesktop
modifier(s)=Shift+Alt+Control KEY=5 -- prevstacked
modifier(s)=Shift+Alt+Control KEY=6 -- nextstacked
modifier(s)=Shift+Alt+Control KEY=7 -- shade
modifier(s)=Shift+Alt+Control KEY=8 -- showdesktop
modifier(s)=Shift+Alt+Control KEY=9 -- fullscreen
modifier(s)=Shift+Alt+Control KEY=0 -- /nwp/k



key=h -- left
key=j -- down
key=k -- up
key=l -- right

modifier(s)=Alt+Control KEY=h -- /nwp/rungn
modifier(s)=Alt+Control KEY=j -- /nwp/rungo
modifier(s)=Alt+Control KEY=k -- /nwp/rungt
modifier(s)=Alt+Control KEY=l -- /nwp/lpx

modifier(s)=Alt KEY=h -- /nwp/k
modifier(s)=Alt KEY=j -- /nwp/rl
modifier(s)=Alt KEY=k -- /nwp/gl
modifier(s)=Alt KEY=l -- /nwp/ll

(these are the virtual keypad, rox, geany, and leafpad launchers)

modifier(s)=Shift+Alt KEY=h -- ccdi
modifier(s)=Shift+Alt KEY=j -- close
modifier(s)=Shift+Alt KEY=k -- kill
modifier(s)=Shift+Alt KEY=l -- cadi

<!-- mnemonic is "ask to kill"--these are shutdown scripts on the right side home row. shift plus control below are layer and stickiness.-->

modifier(s)=Shift+Alt+Control KEY=h -- move
modifier(s)=Shift+Alt+Control KEY=j -- resize
modifier(s)=Shift+Alt+Control KEY=k -- prevstacked
modifier(s)=Shift+Alt+Control KEY=l -- nextstacked
<!-- also on the arrow keys-->
<!-- layer above, middle, below:-->
modifier(s)=Shift+Control KEY=h -- laa
modifier(s)=Shift+Control KEY=j -- lma
modifier(s)=Shift+Control KEY=k -- lba
modifier(s)=Shift+Control KEY=l -- wmctrl -r :ACTIVE: -b add,sticky



modifier(s)=Alt KEY=space -- rox
modifier(s)=Control KEY=space -- /nwp/winswitcher
modifier(s)=Shift KEY=space -- /nwp/p
(^main launcher^)

modifier(s)=Control+Alt KEY=space -- /nwp/rr
(^rox recents--will likely need adjusting depending on the spin/your menu2 file^)
modifier(s)=Control+Space KEY=space -- /nwp/cr
modifier(s)=Alt+Shift KEY=space -- /nwp/n
modifier(s)=Control+Alt+Shift KEY=space -- /nwp/(blank)


______________________
________________________


(taken from a murga-linux.com/puppy post):

Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1289
Location: nyc

Posted: Mon 20 Jun 2016, 23:17 Post subject: the keycentric keyboard shortcuts (my1-my4 series--each has
Subject description: six to swap in and out. all are copies of what's below (though in actual jwm keycut syntax))  
hopefully this is a little more readable a reference than the file from which it's taken:


keyboard shortcuts --keycentric version:

<!-- Key bindings -->

<!-- alt z is the vtg, alt g is the help files for the vtg and nwp, alt shift g is the grids pop up (aemenu set up to divide the screen into 100 pixel placement points)-->
Alt+ KEY=z -- exec:xdotool key alt+1 Down Return
Alt+ KEY=g -- exec:geany /nwp/vtg5
Alt+Shift+ KEY=g -- exec:/nwp/g

<!-- alt shift g is grid menu (move windows around the screen by 100 pixel increments), alt g opens vtg help files in geany, alt plus z is the vtg-->

KEY=Up -- up
KEY=Down -- down
KEY=Right -- right
KEY=Left -- left
KEY=h -- left
KEY=j -- down
KEY=k -- up
KEY=l -- right
KEY=Return -- select
KEY=Escape -- escape

Ctrl+ KEY=Tab -- prev
Alt+ KEY=Tab -- next

<!-- a, b, q do the following:



q series is quarter sized up to five (which is configurable and centrally placed);
q6 and q7 set the active window to left and right halves of the screen respectively
q8 and q9 are top and bottom. q10 is full/maximized (as is mx).
q1 q2 q8
q5 q6 q7
q3 q4 q9


-3--------------------------- 6
1 2----------------------- 8 9
-4 ----------------------------7

b5=full screen left, b10=full screen right. b series is halves and wholes.


1 2--------------6 7
--5----------------10
3 4--------------8 9

a# series is quadrants...

one of the most up to date versions of the cheat sheet available (to cross reference codes)

http://www.murga-linux.com/puppy/viewto ... 701#860701

-->


Ctrl+ KEY=F12 -- exec:/nwp/n1
Ctrl+ KEY=F11 -- exec:/nwp/n
Ctrl+ KEY=F10 -- exec:/nwp/q10
Ctrl+ KEY=F9 -- exec:/nwp/q9</Key
Ctrl+ KEY=F8 -- exec:/nwp/q8
Ctrl+ KEY=F7 -- exec:/nwp/q7
Ctrl+ KEY=F6 -- exec:/nwp/q6</Key
Ctrl+ KEY=F5 -- exec:/nwp/q5
Ctrl+ KEY=F4 -- exec:/nwp/q4
Ctrl+ KEY=F3 -- exec:/nwp/q3</Key
Ctrl+ KEY=F2 -- exec:/nwp/q2
Ctrl+ KEY=F1 -- exec:/nwp/q1

Alt+Ctrl+ KEY=F12 -- exec:/nwp/n2</Key
Alt+Ctrl+ KEY=F11 -- exec:/nwp/n3
Alt+Ctrl+ KEY=F10 -- exec:/nwp/a10
Alt+Ctrl+ KEY=F9 -- exec:/nwp/a9</Key
Alt+Ctrl+ KEY=F8 -- exec:/nwp/a8
Alt+Ctrl+ KEY=F7 -- exec:/nwp/a7
Alt+Ctrl+ KEY=F6 -- exec:/nwp/a6</Key
Alt+Ctrl+ KEY=F5 -- exec:/nwp/a5
Alt+Ctrl+ KEY=F4 -- exec:/nwp/a4
Alt+Ctrl+ KEY=F3 -- exec:/nwp/a3</Key
Alt+Ctrl+ KEY=F2 -- exec:/nwp/a2
Alt+Ctrl+ KEY=F1 -- exec:/nwp/a1

Ctrl+Shift+ KEY=F12 -- exec:/nwp/tem</Key
Ctrl+Shift+ KEY=F11 -- exec:/nwp/s
Ctrl+Shift+ KEY=F10 -- exec:/nwp/b10
Ctrl+Shift+ KEY=F9 -- exec:/nwp/b9</Key
Ctrl+Shift+ KEY=F8 -- exec:/nwp/b8
Ctrl+Shift+ KEY=F7 -- exec:/nwp/b7
Ctrl+Shift+ KEY=F6 -- exec:/nwp/b6</Key
Ctrl+Shift+ KEY=F5 -- exec:/nwp/b5
Ctrl+Shift+ KEY=F4 -- exec:/nwp/b4
Ctrl+Shift+ KEY=F3 -- exec:/nwp/b3</Key
Ctrl+Shift+ KEY=F2 -- exec:/nwp/b2
Ctrl+Shift+ KEY=F1 -- exec:/nwp/b1

Shift+ KEY=F1 -- exec:/nwp/g
Shift+ KEY=F2 -- exec:/nwp/wm
Shift+ KEY=F3 -- exec:/nwp/o
Shift+ KEY=F4 -- window
Shift+ KEY=F5 -- move
Shift+ KEY=F6 -- resize
Shift+ KEY=F7 -- minimize
Shift+ KEY=F8 -- maximize
Shift+ KEY=F9 -- prev
Shift+ KEY=F10 -- next
Shift+ KEY=F11 -- exec:/nwp/ww
Shift+ KEY=F12 -- exec:/nwp/w1

Alt+Shift+ KEY=F1 -- ldesktop
Alt+Shift+ KEY=F2 -- rdesktop
Alt+Shift+ KEY=F3 -- udesktop
Alt+Shift+ KEY=F4 -- ddesktop
Alt+Shift+ KEY=F5 -- prevstacked
Alt+Shift+ KEY=F6 -- nextstacked
Alt+Shift+ KEY=F7 -- shade
Alt+Shift+ KEY=F8 -- showdesktop
Alt+Shift+ KEY=F9 -- fullscreen
Alt+Shift+ KEY=F10 -- exec:/nwp/pxc
Alt+Shift+ KEY=F11 -- exec:/nwp/gxc
Alt+Shift+ KEY=F12 -- exec:/nwp/p

<!-- alt plus f1 and f4 are built-ins. -->


Alt+ KEY=F1 -- root:3
Alt+ KEY=F2 -- window
Alt+ KEY=F3 -- /nwp/rr
Alt+ KEY=F4 -- close
Alt+ KEY=F5 -- /nwp/sd
Alt+ KEY=F6 -- /nwp/sdr
Alt+ KEY=F7 -- exec:/nwp/w
Alt+ KEY=F8 -- exec:/nwp/h
Alt+ KEY=F9 -- exec:/nwp/x
Alt+ KEY=F10 -- exec:/nwp/y
Alt+ KEY=F11 -- exec:/nwp/1
Alt+ KEY=F12 -- exec:/nwp/2
<!--
in dual monitor setups, the q series could be replaced or modified to give ten additional preset position/dimension commands to active windows or replaced with select select versions of a(1-10) and b(1-10) (called by as(1-10) and bs(1-10)). single monitor setups can get 20 additional custom positionals by editing the a and b series below* (enter ll in the main launcher, then enter the launch code to edit in leafpad. use gl to do the same in geany. the function keys below are for the 24 desktops. windows key sends you to the first 12 desktops, alt+windows key the next 12, control instead of alt for the send to version for 1-12, shift and windows key for desktops 13-24. personally, i think it's easier to use d# and s# in the launcher, but it's here for you to use or modify/reassign. there's no included select version for the quadrants and halves for single monitor setups, but
geany q1 q2 q3 q4 q5 q6 q7 q8 q9 q10
will open them up for editing. swap the :ACTIVE: for :SELECT: and rename to qs# if you want them. (next version will likely include them and a few other tweaks to the jwmrc-personal file.

*the a and b series have now also been moved to the function keys (they're easier to edit (q5 aside as it's the same syntax) than the q series--you'll just be filling out four fields, x,y,w,h) and can be found above. (i'll merely comment out their former location--you could pick which set up you like better).

-->


Winkey+ KEY=F12 -- exec:/nwp/d12
Winkey+ KEY=F11 -- exec:/nwp/d11
Winkey+ KEY=F10 -- exec:/nwp/d10
Winkey+ KEY=F9 -- exec:/nwp/d9
Winkey+ KEY=F8 -- exec:/nwp/d8
Winkey+ KEY=F7 -- exec:/nwp/d7
Winkey+ KEY=F6 -- exec:/nwp/d6
Winkey+ KEY=F5 -- exec:/nwp/d5
Winkey+ KEY=F4 -- exec:/nwp/d4
Winkey+ KEY=F3 -- exec:/nwp/d3
Winkey+ KEY=F2 -- exec:/nwp/d2
Winkey+ KEY=F1 -- exec:/nwp/d1


Winkey+Alt+ KEY=F12 -- exec:/nwp/d24
Winkey+Alt+ KEY=F11 -- exec:/nwp/d23
Winkey+Alt+ KEY=F10 -- exec:/nwp/d22
Winkey+Alt+ KEY=F9 -- exec:/nwp/d21
Winkey+Alt+ KEY=F8 -- exec:/nwp/d20
Winkey+Alt+ KEY=F7 -- exec:/nwp/d19
Winkey+Alt+ KEY=F6 -- exec:/nwp/d18
Winkey+Alt+ KEY=F5 -- exec:/nwp/d17
Winkey+Alt+ KEY=F4 -- exec:/nwp/d16
Winkey+Alt+ KEY=F3 -- exec:/nwp/d15
Winkey+Alt+ KEY=F2 -- exec:/nwp/d14
Winkey+Alt+ KEY=F1 -- exec:/nwp/d13
<!-- go to desktops 1-24-->


Ctrl+Winkey+ KEY=F12 -- exec:/nwp/s12
Ctrl+Winkey+ KEY=F11 -- exec:/nwp/s11
Ctrl+Winkey+ KEY=F10 -- exec:/nwp/s10
Ctrl+Winkey+ KEY=F9 -- exec:/nwp/s9
Ctrl+Winkey+ KEY=F8 -- exec:/nwp/s8
Ctrl+Winkey+ KEY=F7 -- exec:/nwp/s7
Ctrl+Winkey+ KEY=F6 -- exec:/nwp/s6
Ctrl+Winkey+ KEY=F5 -- exec:/nwp/s5
Ctrl+Winkey+ KEY=F4 -- exec:/nwp/s4
Ctrl+Winkey+ KEY=F3 -- exec:/nwp/s3
Ctrl+Winkey+ KEY=F2 -- exec:/nwp/s2
Ctrl+Winkey+ KEY=F1 -- exec:/nwp/s1



Shift+Winkey+ KEY=F12 -- exec:/nwp/s24</Key
Shift+Winkey+ KEY=F11 -- exec:/nwp/s23
Shift+Winkey+ KEY=F10 -- exec:/nwp/s22
Shift+Winkey+ KEY=F9 -- exec:/nwp/s21
Shift+Winkey+ KEY=F8 -- exec:/nwp/s20
Shift+Winkey+ KEY=F7 -- exec:/nwp/s19
Shift+Winkey+ KEY=F6 -- exec:/nwp/s18
Shift+Winkey+ KEY=F5 -- exec:/nwp/s17
Shift+Winkey+ KEY=F4 -- exec:/nwp/s16
Shift+Winkey+ KEY=F3 -- exec:/nwp/s15
Shift+Winkey+ KEY=F2 -- exec:/nwp/s14
Shift+Winkey+ KEY=F1 -- exec:/nwp/s13

<!-- send to desktops 1-24-->

<!-- F12 is a built in. -->

KEY=F12 -- root:3


Alt+ KEY=Escape -- fullscreen
Ctrl+ KEY=Escape -- showdesktop
Shift+ KEY=Escape -- window
Alt+Ctrl+ KEY=Escape -- move
Alt+Shift+ KEY=Escape -- minimize
Ctrl+Shift+ KEY=Escape -- maximize
Alt+Ctrl+Shift+ KEY=Escape -- resize

<!-- editing the escape series necessitates editing other things. which reminds me, don't use the showdesktop entry on the menu--it doesn't work. use the keys or the buttons. press escape and hold if you hit the showdesktop on the menus (it needs to be removed)-->

Alt+ KEY=space -- exec:rox
Ctrl+ KEY=space -- exec:winswitcher
Shiftt+ KEY=space -- exec:/nwp/p
Ctrl+Alt+ KEY=space -- exec:/nwp/rr
Ctrl+Shift+ KEY=space -- exec:/nwp/cr
Alt+Shift+ KEY=space -- exec:/nwp/t
Alt+Ctrl+Shift+ KEY=space -- exec:/nwp/rup


<!--
MochiMoppel's excellent winswitcher allows you to navigate windows better than than the tray does (more options, more keyboard friendly--it's ww in the launcher. rr is rox recents, cr is close all rox, rup is three up from the bottom on the rox bookmarks tab (ctrl plus b in a rox window), rox is activated by alt plus spacebar (ll launcher plus rr will allow you to set what folder is being opened when the recents is being called. you could do the same for rup and rb (rox bookmarks)).
-->

KEY=h -- left
KEY=j -- down
KEY=k -- up
KEY=l -- right

Alt+ KEY=h -- move
Alt+ KEY=j -- resize
Alt+ KEY=k -- prev
Alt+ KEY=l -- next


Alt+Ctrl+ KEY=h -- /nwp/rungn
Alt+Ctrl+ KEY=j -- /nwp/rungo
Alt+Ctrl+ KEY=k -- /nwp/rungt
Alt+Ctrl+ KEY=l -- /nwp/lpx


<Key mask="SA" KEY=h -- exec:ccdi
<Key mask="SA" KEY=j -- close
<Key mask="SA" KEY=k -- exec:kill
<Key mask="SA" KEY=l -- exec:cadi

<!-- mnemonic is "ask to kill"--these are shutdown scripts on the right side home row. alt plus shift plus. the alt controls above it are layer and stickiness.-->

Alt+Ctrl+Shift+ KEY=h -- move
Alt+Ctrl+Shift+ KEY=j -- resize
Alt+Ctrl+Shift+ KEY=k -- prevstacked
Alt+Ctrl+Shift+ KEY=l -- nextstacked


Ctrl+Shift+ KEY=h -- exec:laa
Ctrl+Shift+ KEY=j -- exec:lma
Ctrl+Shift+ KEY=k -- exec:lba
Ctrl+Shift+ KEY=l -- exec:wmctrl -r :ACTIVE: -b add,sticky




<!--
Ctrl+Shift+ KEY=h -- exec:/nwp/x0
Ctrl+Shift+ KEY=j -- exec:/nwp/x1200
Ctrl+Shift+ KEY=k -- exec:/nwp/x2000
Ctrl+Shift+ KEY=l -- exec:/nwp/x2500

Alt+Ctrl+Shift+ KEY=h -- exec:/nwp/y0
Alt+Ctrl+Shift+ KEY=j -- exec:/nwp/y200
Alt+Ctrl+Shift+ KEY=k -- exec:/nwp/y400
Alt+Ctrl+Shift+ KEY=l -- exec:/nwp/y800


these are fairly lame--random spots on the x and y axes -->


<!-- supleft et al scripts (grab and quickly move a window with the arrows) don't work in 64 bit slacko, 64 bit quirky april, or 64 bit werewolf, so there seems to be a problem with the 64 bit versions of xdotool and wmctrl. here's a blank version for you to fill in with whatever you choose (move the comment arrows to the above in 64 bit). note--no "exec:"--add if you're not using windows function.

Alt+ KEY=Up --
Alt+ KEY=Down --
Alt+ KEY=Right --
Alt+ KEY=Left --

-->

Alt+ KEY=Up -- exec:/nwp/supup
Alt+ KEY=Down -- exec:/nwp/supdown
Alt+ KEY=Right -- exec:/nwp/supright
Alt+ KEY=Left -- exec:/nwp/supleft

Alt+Ctrl+ KEY=Up -- maximize
Alt+Ctrl+ KEY=Down -- minimize
Alt+Ctrl+ KEY=Right -- resize
Alt+Ctrl+ KEY=Left -- move

Alt+Shift+ KEY=Up -- fullscreen
Alt+Shift+ KEY=Down -- showdesktop
Alt+Shift+ KEY=Right -- next
Alt+Shift+ KEY=Left -- prev


Alt+Ctrl+Shift+ KEY=Up -- exec:/nwp/2
Alt+Ctrl+Shift+ KEY=Down -- exec:/nwp/n
Alt+Ctrl+Shift+ KEY=Right -- exec:/nwp/g
Alt+Ctrl+Shift+ KEY=Left -- exec:/nwp/s

<!-- nearly everything is now duplicated on the function keys so you could generally pick one or the other/modify either. don't mess with escape or alt plus number though.-->

Alt+ KEY=1 -- root:1
Alt+ KEY=2 -- root:2
Alt+ KEY=3 -- root:3
Alt+ KEY=4 -- root:4
Alt+ KEY=5 -- root:5
Alt+ KEY=6 -- root:6
Alt+ KEY=7 -- root:7
Alt+ KEY=8 -- root:8
Alt+ KEY=9 -- root:9
Alt+ KEY=0 -- root:0

Winkey+ KEY=1 -- exec:/nwp/n1
Winkey+ KEY=2 -- exec:/nwp/n2
Winkey+ KEY=3 -- exec:/nwp/n3
Winkey+ KEY=4 -- exec:/nwp/n
Winkey+ KEY=5 -- exec:/nwp/tem
Winkey+ KEY=6 -- exec:/nwp/uh
Winkey+ KEY=7 -- exec:/nwp/ii
Winkey+ KEY=8 -- exec:/nwp/pbw
Winkey+ KEY=9 -- exec:/nwp/paw
Winkey+ KEY=0 -- exec:/nwp/elp

<!--
the above repeat below as commented out blanks. delete these (or move the arrow on line 14 to line 2) if you'd prefer to use your own. 4 is the windows key. held together with the number specified they execute the following functions (exec code (minus the /nwp/ part) is what gets entered into the launcher, which itself is most conveniently called with the built in spacebar plus shift shortcut):
win+1=main nwp menu
win+2=only the highlight and click to apply word processing codes (thanks again to miriam).
win+3=only the paste and place word processor codes
win+4=main nuup menu: nwp menu as 1 plus the uber utilities packs' functions.
win+5=ae tem menu--access template files or make word processing files out of text files. access a folder for drag and drop launching of batches of files (something that could also be done through the vtg or with launcher if the identical code is sent as a script (i.e. it has #!/bin/sh at the top and has been given the proper permission (e.g. with ch in the launcher followed by its name in the following launcher that pops up)) to the /nwp/ folder.)
win+6=underline -- highlight and activate (through code, key, or menu)
win+7=italics -- paste and paste version
win+8=page break in white, below
win+9=page break in white, above
win+0=help file pop up in leafpad

1 and 5 can be seen as start centers, though the vtg and the remaining blanks can likewise initiate the dual launchers (or any other program, for that matter)
-->
<!--

blank templates for an additional 132 shortcut keys. they all rely on the ten number keys. surround path and file name with <Include></Include> and place in /root/.jwmrc-personal. i.e.
<Include>/nwp/root3/9/keys2</Include>

then jwm -restart/then restart jwm.

uncomment a section below and fill in the program choices of a section to use it.


4 is the windows key; S, A, and C are shift, alt, and control. windows commands generally don't need the "exec:" and things off the PATH need their full paths after it.


the nwp menus (both ae and jwm) allow access to just about (there may've been a few oversights) every word processing command, but it's still menu access instead of button-immediacy, so to get that regular word processor feel back, you may want to have, for example, bold or underline only a key combo away.
copying the commented out group below and inserting the following (from the vtg cheat sheet that pops up when you hit alt plus g)


bh - adds bold tags around a selection of text in any text editor
uh - adds underline tags around a selection of text in any text editor
sth - add strikethrough tags around a selection of text in any editor or window that can receive text input
ih - add italics tags around a selection of text in any editor or window that can receive text input
bb - print out bold tags
cmt - print out comment (<!-- -->) tags
ii - print out italics tags
st - print out strikethrough tags
ul - print out underline tags
tem - open templates/duals menu

these are all in nwp, so they need the path (/nwp/) prepended to them so machine can find them. or you could just pick (and possibly copy to overwrite the versions without the "/nwp/"--just substitute out (through find and replace) the modifiers. substitute the keys to make similar levels of any other keys. well, here they are again, but with the proper path added to the call:


/nwp/bh # adds bold tags around a selection of text in any text editor
/nwp/uh # adds underline tags around a selection of text in any text editor
/nwp/sth # add strikethrough tags around a selection of text in any editor or window that can receive text input
/nwp/ih # add italics tags around a selection of text in any editor or window that can receive text input
/nwp/bb # print out bold tags
/nwp/cmt # print out comment (<!-- -->) tags
/nwp/ii # print out italics tags
/nwp/st # print out strikethrough tags
/nwp/ul # print out underline tags
/nwp/tem # open templates/duals menu

(i made them so they'd work in a fake pexec or gexec history pulldown as a launchable cheat sheet, but we just need the /path/file bit for the keys. if you don't have a template with the "exec:" bits already in place, do another substitution, /nwp replaced with exec:/nwp or something similar. then just pick the keys you've got your bold, italics, and whatever else you want (including batch launching and things normally deemed apart from word processing). so that's the basic idea behind the big batch of potential keyboard shortcuts.

-->

<!--
Alt+Ctrl+ KEY=1 -- exec:/nwp/
Alt+Ctrl+ KEY=2 -- exec:/nwp/
Alt+Ctrl+ KEY=3 -- exec:/nwp/
Alt+Ctrl+ KEY=4 -- exec:/nwp/
Alt+Ctrl+ KEY=5 -- exec:/nwp/
Alt+Ctrl+ KEY=6 -- exec:/nwp/
Alt+Ctrl+ KEY=7 -- exec:/nwp/
Alt+Ctrl+ KEY=8 -- exec:/nwp/
Alt+Ctrl+ KEY=9 -- exec:/nwp/
Alt+Ctrl+ KEY=0 -- exec:/nwp/
-->
<!--
Alt+Shift+ KEY=1 -- exec:
Alt+Shift+ KEY=2 -- exec:
Alt+Shift+ KEY=3 -- exec:
Alt+Shift+ KEY=4 -- exec:
Alt+Shift+ KEY=5 -- exec:
Alt+Shift+ KEY=6 -- exec:
Alt+Shift+ KEY=7 -- exec:
Alt+Shift+ KEY=8 -- exec:
Alt+Shift+ KEY=9 -- exec:
Alt+Shift+ KEY=0 -- exec:
-->
<!--
Ctrl+Shift+ KEY=1 -- exec:/nwp/
Ctrl+Shift+ KEY=2 -- exec:/nwp/
Ctrl+Shift+ KEY=3 -- exec:/nwp/
Ctrl+Shift+ KEY=4 -- exec:/nwp/
Ctrl+Shift+ KEY=5 -- exec:/nwp/
Ctrl+Shift+ KEY=6 -- exec:/nwp/
Ctrl+Shift+ KEY=7 -- exec:/nwp/
Ctrl+Shift+ KEY=8 -- exec:/nwp/
Ctrl+Shift+ KEY=9 -- exec:/nwp/
Ctrl+Shift+ KEY=0 -- exec:/nwp/
-->


<!--
Alt+Ctrl+Shift+ KEY=1 -- exec:
Alt+Ctrl+Shift+ KEY=2 -- exec:
Alt+Ctrl+Shift+ KEY=3 -- exec:
Alt+Ctrl+Shift+ KEY=4 -- exec:
Alt+Ctrl+Shift+ KEY=5 -- exec:
Alt+Ctrl+Shift+ KEY=6 -- exec:
Alt+Ctrl+Shift+ KEY=7 -- exec:
Alt+Ctrl+Shift+ KEY=8 -- exec:
Alt+Ctrl+Shift+ KEY=9 -- exec:
Alt+Ctrl+Shift+ KEY=0 -- exec:


<!--a couple of samples for the previous two key banks: -->

<!-- Ctrl+Shift+ KEY=2 -- exec:vgt -->

Ctrl+Shift+ KEY=1 -- exec:/nwp/winswitcher

Ctrl+Shift+ KEY=2 -- exec:xdotool key ctrl+9 ctrl+8 Return ctrl+7

Ctrl+Shift+ KEY=3 -- exec:/nwp/3but
Ctrl+Shift+ KEY=4 -- window
Ctrl+Shift+ KEY=5 -- move
Ctrl+Shift+ KEY=6 -- resize
Ctrl+Shift+ KEY=7 -- minimize
Ctrl+Shift+ KEY=8 -- maximize
Ctrl+Shift+ KEY=9 -- prev
Ctrl+Shift+ KEY=0 -- next


Alt+Ctrl+Shift+ KEY=1 -- ldesktop
Alt+Ctrl+Shift+ KEY=2 -- rdesktop
Alt+Ctrl+Shift+ KEY=3 -- udesktop
Alt+Ctrl+Shift+ KEY=4 -- ddesktop
Alt+Ctrl+Shift+ KEY=5 -- prevstacked
Alt+Ctrl+Shift+ KEY=6 -- nextstacked
Alt+Ctrl+Shift+ KEY=7 -- shade
Alt+Ctrl+Shift+ KEY=8 -- showdesktop
Alt+Ctrl+Shift+ KEY=9 -- fullscreen
Alt+Ctrl+Shift+ KEY=0 -- exec:/nwp/k

<!--a couple of samples for the previous two key bank (part of main jwmrc personal in other nwp configs (through quickswitch or otherwise)>

-->



<!--
Winkey+ KEY=1 -- exec:
Winkey+ KEY=2 -- exec:
Winkey+ KEY=3 -- exec:
Winkey+ KEY=4 -- exec:
Winkey+ KEY=5 -- exec:
Winkey+ KEY=6 -- exec:
Winkey+ KEY=7 -- exec:
Winkey+ KEY=8 -- exec:
Winkey+ KEY=9 -- exec:
Winkey+ KEY=0 -- exec:
-->
<!--
Alt+Winkey+ KEY=1 -- exec:
Alt+Winkey+ KEY=2 -- exec:
Alt+Winkey+ KEY=3 -- exec:
Alt+Winkey+ KEY=4 -- exec:
Alt+Winkey+ KEY=5 -- exec:
Alt+Winkey+ KEY=6 -- exec:
Alt+Winkey+ KEY=7 -- exec:
Alt+Winkey+ KEY=8 -- exec:
Alt+Winkey+ KEY=9 -- exec:
Alt+Winkey+ KEY=0 -- exec:
-->
<!--
Ctrl+Winkey+ KEY=1 -- exec:
Ctrl+Winkey+ KEY=2 -- exec:
Ctrl+Winkey+ KEY=3 -- exec:
Ctrl+Winkey+ KEY=4 -- exec:
Ctrl+Winkey+ KEY=5 -- exec:
Ctrl+Winkey+ KEY=6 -- exec:
Ctrl+Winkey+ KEY=7 -- exec:
Ctrl+Winkey+ KEY=8 -- exec:
Ctrl+Winkey+ KEY=9 -- exec:
Ctrl+Winkey+ KEY=0 -- exec:
-->
<!--
Shift+Winkey+ KEY=1 -- exec:
Shift+Winkey+ KEY=2 -- exec:
Shift+Winkey+ KEY=3 -- exec:
Shift+Winkey+ KEY=4 -- exec:
Shift+Winkey+ KEY=5 -- exec:
Shift+Winkey+ KEY=6 -- exec:
Shift+Winkey+ KEY=7 -- exec:
Shift+Winkey+ KEY=8 -- exec:
Shift+Winkey+ KEY=9 -- exec:
Shift+Winkey+ KEY=0 -- exec:
-->
<!--
Winkey+Alt+Ctrl+ KEY=1 -- exec:/nwp/
Winkey+Alt+Ctrl+ KEY=2 -- exec:/nwp/
Winkey+Alt+Ctrl+ KEY=3 -- exec:/nwp/
Winkey+Alt+Ctrl+ KEY=4 -- exec:/nwp/
Winkey+Alt+Ctrl+ KEY=5 -- exec:/nwp/
Winkey+Alt+Ctrl+ KEY=6 -- exec:/nwp/
Winkey+Alt+Ctrl+ KEY=7 -- exec:/nwp/
Winkey+Alt+Ctrl+ KEY=8 -- exec:/nwp/
Winkey+Alt+Ctrl+ KEY=9 -- exec:/nwp/
Winkey+Alt+Ctrl+ KEY=0 -- exec:/nwp/
-->
<!--
Alt+Shift+Winkey+ KEY=1 -- exec:
Alt+Shift+Winkey+ KEY=2 -- exec:
Alt+Shift+Winkey+ KEY=3 -- exec:
Alt+Shift+Winkey+ KEY=4 -- exec:
Alt+Shift+Winkey+ KEY=5 -- exec:
Alt+Shift+Winkey+ KEY=6 -- exec:
Alt+Shift+Winkey+ KEY=7 -- exec:
Alt+Shift+Winkey+ KEY=8 -- exec:
Alt+Shift+Winkey+ KEY=9 -- exec:
Alt+Shift+Winkey+ KEY=0 -- exec:
-->
<!--
Ctrl+Shift+Winkey+ KEY=1 -- exec:
Ctrl+Shift+Winkey+ KEY=2 -- exec:
Ctrl+Shift+Winkey+ KEY=3 -- exec:
Ctrl+Shift+Winkey+ KEY=4 -- exec:
Ctrl+Shift+Winkey+ KEY=5 -- exec:
Ctrl+Shift+Winkey+ KEY=6 -- exec:
Ctrl+Shift+Winkey+ KEY=7 -- exec:
Ctrl+Shift+Winkey+ KEY=8 -- exec:
Ctrl+Shift+Winkey+ KEY=9 -- exec:
Ctrl+Shift+Winkey+ KEY=0 -- exec:
-->

<!--
Alt+Ctrl+Shift+Winkey+ KEY=1 -- exec:
Alt+Ctrl+Shift+Winkey+ KEY=2 -- exec:
Alt+Ctrl+Shift+Winkey+ KEY=3 -- exec:
Alt+Ctrl+Shift+Winkey+ KEY=4 -- exec:
Alt+Ctrl+Shift+Winkey+ KEY=5 -- exec:
Alt+Ctrl+Shift+Winkey+ KEY=6 -- exec:
Alt+Ctrl+Shift+Winkey+ KEY=7 -- exec:
Alt+Ctrl+Shift+Winkey+ KEY=8 -- exec:
Alt+Ctrl+Shift+Winkey+ KEY=9 -- exec:
Alt+Ctrl+Shift+Winkey+ KEY=0 -- exec:
-->

<!--
Alt+Ctrl+Shift+Winkey+ KEY=F12 -- exec:
Alt+Ctrl+Shift+Winkey+ KEY=F11 -- exec:
Alt+Ctrl+Shift+Winkey+ KEY=F10 -- exec:
Alt+Ctrl+Shift+Winkey+ KEY=F9 -- exec:
Alt+Ctrl+Shift+Winkey+ KEY=F8 -- exec:
Alt+Ctrl+Shift+Winkey+ KEY=F7 -- exec:
Alt+Ctrl+Shift+Winkey+ KEY=F6 -- exec:
Alt+Ctrl+Shift+Winkey+ KEY=F5 -- exec:
Alt+Ctrl+Shift+Winkey+ KEY=F4 -- exec:
Alt+Ctrl+Shift+Winkey+ KEY=F3 -- exec:
Alt+Ctrl+Shift+Winkey+ KEY=F2 -- exec:
Alt+Ctrl+Shift+Winkey+ KEY=F1 -- exec:

(another set of function key blanks for you to customize)
-->

[remove the lead and trailing arrows (<!-- -->), (fill out with programs, scripts, files of your choice and save file), and restart jwm to activate an otherwise dormant bank (nearly all of which are set as blanks in the actual file you'd need to edit (on alt+4 menu or mae in the main launcher. r0-r9 in the launcher will also give you access to the ten jwm menus.)]
(main file i look to update is the keyboard shortcuts file in the same folder as above. generally post them together. should get the precise quicklinks together (two pages back or so), but i should also get some sleep (four a.m. here) and maybe find out how many of those music programs have an equivalent or can themselves be run on the tahr64 spin...)

enjoy/report bugs.

first one off hand--forget to switch winswitcher for ww or vice versa internally. ww in the leafpad launcher and switch the position of the pound sign if it doesn't work for you (as i said, woofy gave me problems and i kind of lost track of what was done where and overconfidence meant i had 6 "final releases" all named 6t4.) :P :?

http://murga-linux.com/puppy/viewtopic. ... 128#959128
xmod8287.1.1.pet

gives you another 39 function keys to play around with and another layer of meaning to your keys (and optionally, yet another to your keys plus that modifier and shift).
the xmod.pet and its updates included in the jump from .8 to .9

User avatar
OvrMaHd
Posts: 14
Joined: Fri 10 Nov 2017, 05:07

#91 Post by OvrMaHd »

Pelo
Location: Mer méditerrannée (1 kms°)

PostPosted: Wed 13 Sep 2017, 05:27 Post subject: NWP is what i need. Reply with quote
amigo wrote:
Where does word processing come into this?

It's not the final version Users will wait a little bit . I am so in need of typing , texlive, kingsoft, libre-office, abiword, are not enough.
'i can't get satisfation !' NWP is what i need.
This thread is a hoot! It's a YouTube fact that when option choices in software approaches 10 percent of your number of neurons you have achieved Nyquist limit - oh-yah

[/code][/list]

User avatar
Puppus Dogfellow
Posts: 1667
Joined: Tue 08 Jan 2013, 01:39
Location: nyc

fix for quirky xenial 8.5

#92 Post by Puppus Dogfellow »

Code: Select all

echo $'
<JWM>

<Tray  autohide="true" insert="right" x="302" y="1" border="1" height="28" valign="top" >
<TrayButton icon="c.machue-207.jpg">exec:xdotool key ctrl+9 ctrl+8 Return F2 ctrl+7</TrayButton>

<TrayButton popup="Show Desktop" icon="mini-desktop12.xpm">showdesktop</TrayButton>

<TrayButton icon="/nwp/keys/icons/rootm-def/pr6.xpm">root:6</TrayButton>
<TrayButton icon="/nwp/keys/icons/rootm-def/pr7.xpm">root:7</TrayButton>
<TrayButton icon="/nwp/keys/icons/rootm-def/pr8.xpm">root:8</TrayButton>
<TrayButton icon="/nwp/keys/icons/rootm-def/pr9.xpm">root:9</TrayButton>
<TrayButton icon="/nwp/keys/icons/rootm-def/pr0.xpm">root:0</TrayButton>
<Dock/> 

<TrayButton label="" icon="ws.png" border="true">exec:/nwp/ww</TrayButton>

<!--<TrayButton popup="pmount" icon="mini-hdisk.xpm">exec:pmount</TrayButton> -->
<TrayButton popup="partview" icon="mini-hdisk.xpm">exec:partview</TrayButton>
<TrayButton popup="pmount"  icon="mini-hdisk.xpm">exec:pmount</TrayButton> 	
<!--<Pager/> -->


<TrayButton label="" icon="cr2.png" border="true">exec:/nwp/cr</TrayButton>


<!--label="vtg"  -->
<TrayButton label="" icon="cc.png" border="true">exec:/nwp/ccdi</TrayButton>
<TrayButton label="" icon="ca.png" border="true">exec:/nwp/cadi</TrayButton>
<Clock format="%l:%M %p">PupClockset</Clock>

</Tray>


<!-- you can take the  icon="mini-dog.xpm" bit and make copies, flipped or inverted or rotated, and use that in place of the numbers. would also get some of the original puppy imagery back on the desktop.... just go to /root/puppy-reference/mini-icons, open the dog or one like it in mtpaint, rotate, rename, substitute. you could also make the menu buttons pretty much any image you like...  -->
</JWM>
' > /nwp/root3/9/topright
/nwp/jio
Quirky Xenial64 8.5 uses an older JWM syntax than i was expecting, and it didn't have the same icon for partview i'd been counting on, so this overwrites the file that calls the non-existent tray icon (which stretched out the tray) and resets the jwm config files' syntax to the old version (shrinks the top tray back to a normal size and gets the top and side tray to autohide again).

(and yes, it's still got the unfortunate holdover name of "topright" despite being center left if anything).

User avatar
Puppus Dogfellow
Posts: 1667
Joined: Tue 08 Jan 2013, 01:39
Location: nyc

bbwp updated as bwp

#93 Post by Puppus Dogfellow »

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: Select all

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:
[...]
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: Select all

#!/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: Select all

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: Select all

#!/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: Select all

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: Select all


#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: Select all


<!--  -->

(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. ... 364#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
[...]__

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.wordpr ... 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.)

User avatar
Puppus Dogfellow
Posts: 1667
Joined: Tue 08 Jan 2013, 01:39
Location: nyc

make sure to reload the browser view if you've changed the

#94 Post by Puppus Dogfellow »

(maybe working in plain text files in those folders (so you can take advantage of the default arc and ark backup shorts--it doesn't really matter where you put them if you alter those accordingly or take care of backups some other way) is a better way of going about your project, but here's a suggestion and a caution for it):

from Post subject: some more on text editor mode versus browser mode, comments,
Subject description: saves, reloads, refreshes, updating, and drag2makepet
(http://murga-linux.com/puppy/viewtopic. ... 683#990683)
Puppus Dogfellow wrote:from

http://murga-linux.com/puppy/viewtopic. ... 673#990673
( a bit more on the bwp)
Puppus Dogfellow wrote:
[…]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: Select all


<!--  -->	

(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).
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: Select all

<!-- (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: Select all

 <!-- 
<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.
(new set of launch codes for the p(wn), but that wasn't relevant in that thread. "paw" or "pbw" in the launcher will give you the page break codes that will be part of the next set of templates).

User avatar
Puppus Dogfellow
Posts: 1667
Joined: Tue 08 Jan 2013, 01:39
Location: nyc

an upgrade to some of the bwp/bbwp's original templates

#95 Post by Puppus Dogfellow »

from http://murga-linux.com/puppy/viewtopic. ... 762#990762,
new templates to replace bwp/bbwp's Untitled1 and Untitled2
easier text alignment, more streamlined interface--both are now spell check enabled:
Puppus Dogfellow wrote:dump this into a terminal to upgrade those original Untitled templates from the bwp/bbwp:

Code: Select all

echo $'
<!-- 
   nwp01.html
   mini-bwp/Untitled2
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 
<head>
<title>j,c,l,r--sp</title>
<meta http-equiv="content-type" content="text/;charset=utf-8" />
<meta name="generator" content="Geany 1.25" />
</head>
<title>top one is tab tag</title>
<body style="font-size:2rem;font-family:serif;line-height:1.5;max-width:90rem;margin:0 auto;padding:2rem;" spellcheck="true" contenteditable="">
<p style="margin-bottom: 0in; line-height: 100%" align="justify"><font face="Liberation Serif, serif">regular text<br><br>
<i>italics</i><br>
<b>bold</b><br>   
<u>underline</u><br> 
<br>    
</font></p>
<p style="margin-bottom: 0in; line-height: 100%" align="justify">justified area<br><br></p>
<p style="margin-bottom: 0in; line-height: 100%" align="center">centered<br><br></p>
<p style="margin-bottom: 0in; line-height: 100%" align="left">left aligned<br><br></p>
<p style="margin-bottom: 0in; line-height: 100%" align="right">right aligned<br><br></p>
<p style="margin-bottom: 0in; line-height: 100%" align="justify"><br><br>document as a whole is justified--delete the areas you don\'t need, copy and paste those you do where you need them. to use this document as a word processor (mini-bwp), open and bookmark it in a browser, download a copy to reopen as your working document, keeping the original to grab formatting from and mess around in. download/save as pdf (print menu) or html (file menu--html will let you use the browser (or a text editor--faster saves and you can change the names in the tabs, but it \'s less intuitive overall) for further edits). <br><br>
p. dogfellow, 5/4/18<br>
<br>
<br>
</p>
</body>
</>
' > /root/my-applications/bbwp/html/Untitled2
echo $'
<!-- 
   nwp01.html
   mini-bwp/Untitled1
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 
<head>
<title>j,c,l,r--sp</title>
<meta http-equiv="content-type" content="text/;charset=utf-8" />
<meta name="generator" content="Geany 1.25" />
</head>
<title>top one is tab tag</title>
<body style="font-size:2rem;font-family:serif;line-height:1.5;max-width:90rem;margin:0 auto;padding:2rem;" spellcheck="true" contenteditable="">
<p style="margin-bottom: 0in; line-height: 100%" align="justify"><font face="Liberation Serif, serif">regular text<br><br>
<i>italics</i><br>
<b>bold</b><br>   
<u>underline</u><br> 
<br>    
</font></p>
<p style="margin-bottom: 0in; line-height: 100%" align="justify">justified area<br><br></p>
<p style="margin-bottom: 0in; line-height: 100%" align="center">centered<br><br></p>
<p style="margin-bottom: 0in; line-height: 100%" align="left">left aligned<br><br></p>
<p style="margin-bottom: 0in; line-height: 100%" align="right">right aligned<br><br></p>
<p style="margin-bottom: 0in; line-height: 100%" align="justify"><br><br>document as a whole is justified--delete the areas you don\'t need, copy and paste those you do where you need them. to use this document as a word processor (mini-bwp), open and bookmark it in a browser, download a copy to reopen as your working document, keeping the original to grab formatting from and mess around in. download/save as pdf (print menu) or html (file menu--html will let you use the browser (or a text editor--faster saves and you can change the names in the tabs, but it \'s less intuitive overall) for further edits). <br><br>
<br>(Untitled 1 and 2 from the bwp have been upgraded and/or spun off from the bwp as the bwp2 and/or the mini-bwp/bwp-mini. as with the original (and bbwp before it), paste in formatting, links and other content. download to save. ctrl a,c,v,y,z and a few other keyboard shortcuts work in most browsers. link below can be deleted like any other text; use text editor view to paste in links to your files (tables of contents, etc)).<br><br>
p. dogfellow, 5/4/18<br>
<br>
<br>
<br>for more, see bbwp updated as bwp:<br>
<a href="http:///murga-linux.com/puppy/viewtopic.php?p=990597#990597" target="_blank">http://http://murga-linux.com/puppy/viewtopic.php?p=990597#990597</a><br>
</p>
</body>
</>
' > /root/my-applications/bbwp/html/Untitled1
cp -f /root/my-applications/bbwp/html/Untitled1 /root/.config/rox.sourceforge.net/Templates/Untitled1
cp -f /root/my-applications/bbwp/html/Untitled2 /root/.config/rox.sourceforge.net/Templates/Untitled2
cp -f /root/my-applications/bbwp/html/Untitled1 /root/.config/rox.sourceforge.net/Templates/bwp-0/Untitled1
cp -f /root/my-applications/bbwp/html/Untitled2 /root/.config/rox.sourceforge.net/Templates/bwp-0/Untitled2
cp -f /root/my-applications/bbwp/html/Untitled1  /nwp/wp/bbwp/html/Untitled1
cp -f /root/my-applications/bbwp/html/Untitled2  /nwp/wp/bbwp/html/Untitled2
#cp -fRu /root/my-applications/bbwp/html /root/.config/rox.sourceforge.net/Templates/bwp-0
cp -fRu /root/my-applications/bbwp/html/Untitled1 /usr/local/bwp/Untitled1
cp -fRu /root/my-applications/bbwp/html/Untitled2 /usr/local/bwp/Untitled2
if you want an even smaller version of the bwp, here's the mini-bwp:

Code: Select all

#!/bin/sh
#puppus dogfellow, 5/4/18
mkdir -p /root/my-applications/bwp2/
echo $'
<!-- 
   nwp01-bwp2.html
   mini-bwp/Untitled1
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 
<head>
<title>j,c,l,r--sp</title>
<meta http-equiv="content-type" content="text/;charset=utf-8" />
<meta name="generator" content="Geany 1.25" />
</head>

<title>top one is tab tag</title>
<body style="font-size:2rem;font-family:serif;line-height:1.5;max-width:90rem;margin:0 auto;padding:2rem;" spellcheck="true" contenteditable="">

<p style="margin-bottom: 0in; line-height: 100%" align="justify"><font face="Liberation Serif, serif">regular text<br><br>
<i>italics</i><br>
<b>bold</b><br>   
<u>underline</u><br> 
<br>    
</font></p>
<p style="margin-bottom: 0in; line-height: 100%" align="justify">justified area<br><br></p>
<p style="margin-bottom: 0in; line-height: 100%" align="center">centered<br><br></p>
<p style="margin-bottom: 0in; line-height: 100%" align="left">left aligned<br><br></p>
<p style="margin-bottom: 0in; line-height: 100%" align="right">right aligned<br><br></p>
<p style="margin-bottom: 0in; line-height: 100%" align="justify"><br><br>document as a whole is justified--delete the areas you don\'t need, copy and paste those you do where you need them. to use this document as a word processor (mini-bwp), open and bookmark it in a browser, download a copy to reopen as your working document, keeping the original to grab formatting from and mess around in. download/save as pdf (print menu) or html (file menu--html will let you use the browser (or a text editor--faster saves and you can change the names in the tabs, but it \'s less intuitive overall) for further edits). <br><br>
<br>(Untitled 1 from the bwp has been upgraded and/or spun off from the bwp as the bwp2 and/or the mini-bwp/bwp-mini. as with the original (and bbwp before it), edit in browser window, paste in formatting, links and other content. download to save. ctrl a,c,v,y,z and a few other keyboard shortcuts work in most browsers. link below can be deleted like any other text. use text editor view to paste in links to your files (for tables of contents, etc)).<br><br>
p. dogfellow, 5/4/18<br>
<br>
<br>
<br>for more, see bbwp updated as bwp:<br>
<a href="http:///murga-linux.com/puppy/viewtopic.php?p=990597#990597" target="_blank">http://http://murga-linux.com/puppy/viewtopic.php?p=990597#990597</a><br>
</p>
</body>
</>
' > /root/my-applications/bwp2/Untitled1
echo $'[Desktop Entry]
Encoding=UTF-8
Name=bwp2
Icon=/root/puppy-reference/mini-icons/mini-doc.xpm
Comment=browser based word processor
Exec=defaultbrowser /root/my-applications/bwp2/Untitled1
Terminal=false
Type=Application
GenericName=bwp2
Version=1.0
Categories=WordProcessor
' > /usr/share/applications/mini-bwp\(bwp2\)
fixmenus
jwm -reload
3k (uncompressed)

you can dump it into a terminal or save it as a script as a way to preserve the template you should duplicate and use as a blank (delete everything but your main choice of paragraph alignment, copy changes in formatting over from the original template).

doesn't overwrite anything, just becomes a file in bwp2 in /root/my-applications that gets launched by the default browser.
change the defaultbrowser bit in the desktop file above (second code chunk) if you have a different choice in mind and/or add additional bwp files and their paths to that same Exec line to batch launch when you start the bwp(mini).

in short, this upgrade makes things easier, so dump the green stuff into a terminal, and if you want to just try a mini version, run the second green chunk and/or save it to reset the the original template (freeing you from having to make a second copy to open as suggested above).

Post Reply