Geany as Launcher, Bookmarks Manager, and Word Processor

How to do things, solutions, recipes, tutorials
Message
Author
User avatar
Puppus Dogfellow
Posts: 1667
Joined: Tue 08 Jan 2013, 01:39
Location: nyc

nwp32/64.8

#46 Post by Puppus Dogfellow »

from http://www.murga-linux.com/puppy/viewto ... 681#937681:

Puppus Dogfellow wrote: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: 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
working well in xenial 32 and 64 bit and tahr64--all i have running at the moment, but intend to try out quirky and slacko700 in the near or so (old people time--it really just seems to keep going faster and faster) future.

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

add F13-F35/KP_F1-4 to your keyboard and enable mod3

#47 Post by Puppus Dogfellow »

the geany menu the nwp installs (root2 and gg in the launcher) uses four modifiers and virtual keys to assign unobtrusive (can't interfere with something that in all likelihood doesn't exist--see sample jwm and ae menus below) keycuts to some geany functions, but you could also make those keys physical with the included pet. this would make accessing something like "rectangular select to anchor" or "open up a list of all the current geany documents itself as a geany document" (right click to use as a table of contents/bookmarks of sorts--control+shift+o will also open the document under the cursor) even faster than arrowing down to selection on the auxiliary menu or alt+h (key launcher's under the right index finger if you installed the nwp pet from earlier) plus acwff#. in fact, now that you can have an F39 (really KP_4, but the real fake F keys go up to 35) that's an actual key. here's a sample of the jwm geany menu and the ae version in its entirety:


#ae menu for geany shortcuts (deps xdotool)
cmd "vtg" "xdotool key ctrl+9 ctrl+8 Return F2 ctrl+7"
cmd "move first" "xdotool key alt+ctrl+shift+super+F14"
cmd "last used" "xdotool key alt+ctrl+shift+super+F13"
cmd "move last" "xdotool key alt+ctrl+shift+super+F15"
cmd "set anchor" "xdotool key alt+ctrl+shift+super+F16"
cmd "select to anchor" "xdotool key alt+ctrl+shift+super+F17"
cmd "rectangular select to anchor" "xdotool key alt+ctrl+shift+super+F18"
cmd "geany --new instance" "geany --new-instance"
cmd "geany --document list" "geany --list-documents > /tmp/glstd; geany /tmp/glstd"
cmd "bookmarks (gny)" "xdotool key alt+ctrl+shift+super+F19"
cmd "documents (gny)" "xdotool key alt+ctrl+shift+super+F20"
cmd "tree-file list (gny)" "xdotool key alt+ctrl+shift+super+F21"
cmd "tree-path (gny)" "xdotool key alt+ctrl+shift+super+F22"
cmd "scribble" "xdotool key F6"
cmd "focus editor (gny)" "xdotool key F2"
cmd "toggle message window (geany)" "xdotool key ctrl+7"


<Key mask="A" keycode="157">exec:/nwp/keys/k/acswf16</Key>
<Key mask="A" keycode="246">exec:/nwp/keys/k/acswf18</Key>
<Key mask="A" keycode="251">exec:/nwp/keys/k/acswf17</Key>

here's the pet that modifies your keyboard so that you can add F13-F35 and KP_1-KP_4:

xmod8287.1.1.pet

here's the info/help 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 p+ q,w, and e; Hypr_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 77 or 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
here's the larger of the two jwm files (function keycut and mod3 templates):
<JWM>

<!-- mod three jwm template with it as only modifier. add individual lines to jwmrc.personal or one of your key config files. include the whole file with <Include>/root/my-applications/xmodmaps/no10m/jwmmod3</Include>
or
<Include>/root/my-applications/xmodmaps/no10m/jwmmod3f</Include>
(swap and experiment)
added to that/those same file/s -->
<!--
<Key mask="3" key="F1">exec:</Key>
<Key mask="3" key="F2">exec:</Key>
<Key mask="3" key="F3">exec:</Key>
<Key mask="3" key="F4">exec:</Key>
<Key mask="3" key="F5">exec:</Key>
<Key mask="3" key="F6">exec:</Key>
<Key mask="3" key="F7">exec:</Key>
<Key mask="3" key="F8">exec:</Key>
<Key mask="3" key="F9">exec:</Key>
<Key mask="3" key="F10">exec:</Key>
<Key mask="3" key="F11">exec:</Key>
<Key mask="3" key="F12">exec:</Key>
-->

<Key mask="3" key="1">exec:xdotool click 1</Key>
<Key mask="3" key="2">exec:xdotool click 2</Key>
<Key mask="3" key="3">exec:xdotool click 3</Key>
<Key mask="3" key="4">exec:xdotool click 4</Key>
<Key mask="3" key="5">exec:xdotool click 5</Key>

<!-- only these five are currently active. remove bookend arrows (<!-- -->) or move line outside the bookends to activate-->


<!--
<Key mask="3" key="6">exec:</Key>
<Key mask="3" key="7">exec:</Key>
<Key mask="3" key="8">exec:</Key>
<Key mask="3" key="9">exec:</Key>
<Key mask="3" key="0">exec:</Key>
<Key mask="3" key="minus">exec:</Key>
<Key mask="3" key="equal">exec:</Key>

<Key mask="3" key="bracketleft">exec:</Key>
<Key mask="3" key="bracketright">exec:</Key>
<Key mask="3" key="backslash">exec:</Key>

<Key mask="3" key="semicolon">exec:</Key>
<Key mask="3" key="apostrophe">exec:</Key>


<Key mask="3" key="comma">exec:</Key>
<Key mask="3" key="period">exec:</Key>
<Key mask="3" key="slash">exec:</Key>
-->


<!--
<Key mask="3" key="a">exec:</Key>
<Key mask="3" key="b">exec:</Key>
<Key mask="3" key="c">exec:</Key>
<Key mask="3" key="d">exec:</Key>
<Key mask="3" key="e">exec:</Key>
<Key mask="3" key="f">exec:</Key>
<Key mask="3" key="g">exec:</Key>
<Key mask="3" key="h">exec:</Key>
<Key mask="3" key="i">exec:</Key>
<Key mask="3" key="j">exec:</Key>
<Key mask="3" key="k">exec:</Key>
<Key mask="3" key="l">exec:</Key>
<Key mask="3" key="m">exec:</Key>
<Key mask="3" key="n">exec:</Key>
<Key mask="3" key="o">exec:</Key>
<Key mask="3" key="p">exec:</Key>
<Key mask="3" key="q">exec:</Key>
<Key mask="3" key="r">exec:</Key>
<Key mask="3" key="s">exec:</Key>
<Key mask="3" key="t">exec:</Key>
<Key mask="3" key="u">exec:</Key>
<Key mask="3" key="v">exec:</Key>
<Key mask="3" key="w">exec:</Key>
<Key mask="3" key="x">exec:</Key>
<Key mask="3" key="y">exec:</Key>
<Key mask="3" key="z">exec:</Key>
-->
<!--

<Key mask="3" key="space">exec:</Key>
<Key mask="3" key=""></Key>
<Key mask="3" key=""></Key>
<Key mask="3" key="">exec:</Key>
<Key mask="3" key="">exec:</Key>
<Key mask="3" key="">exec:</Key>
-->
<!--template for 39 function keys, both as masked with all available modifiers added as mask and as the bare key (uncomment and restart jwm to activate): -->

<!-- template for key plus five modifiers at once (4 is windows key and 5 is hyper_R. use search and replace on copies to make sets for any other combinations you need). windows functions generally take no "exec:" i.e. ...>window< to open the windows menu off the key, not "exec:window." same for minimize, maximize--some shutdown functions might need an exec, iirc.
use exec:xdotool ctrl+a(c,v,x) on a key to get select all(copy, paste, cut, etc)
remove lines/chunks from bracketing arrows to activate
-->
<!--
<Key mask="ACS34" key="F12">exec:</Key>
<Key mask="ACS34" key="F11">exec:</Key>
<Key mask="ACS34" key="F10">exec:</Key>
<Key mask="ACS34" key="F9">exec:</Key>
<Key mask="ACS34" key="F8">exec:</Key>
<Key mask="ACS34" key="F7">exec:</Key>
<Key mask="ACS34" key="F6">exec:</Key>
<Key mask="ACS34" key="F5">exec:</Key>
<Key mask="ACS34" key="F4">exec:</Key>
<Key mask="ACS34" key="F3">exec:</Key>
<Key mask="ACS34" key="F2">exec:</Key>
<Key mask="ACS34" key="F1">exec:</Key>
<Key key="F12">exec:</Key>
<Key key="F11">exec:</Key>
<Key key="F10">exec:</Key>
<Key key="F9">exec:</Key>
<Key key="F8">exec:</Key>
<Key key="F7">exec:</Key>
<Key key="F6">exec:</Key>
<Key key="F5">exec:</Key>
<Key key="F4">exec:</Key>
<Key key="F3">exec:</Key>
<Key key="F2">exec:</Key>
<Key key="F1">exec:</Key>
-->

<!--
<Key mask="ACS34" key="F24">exec:</Key>
<Key mask="ACS34" key="F23">exec:</Key>
<Key mask="ACS34" key="F22">exec:</Key>
<Key mask="ACS34" key="F21">exec:</Key>
<Key mask="ACS34" key="F20">exec:</Key>
<Key mask="ACS34" key="F19">exec:</Key>
<Key mask="ACS34" key="F18">exec:</Key>
<Key mask="ACS34" key="F17">exec:</Key>
<Key mask="ACS34" key="F16">exec:</Key>
<Key mask="ACS34" key="F15">exec:</Key>
<Key mask="ACS34" key="F14">exec:</Key>
<Key mask="ACS34" key="F13">exec:</Key>
<Key key="F24">exec:</Key>
<Key key="F23">exec:</Key>
<Key key="F22">exec:</Key>
<Key key="F21">exec:</Key>
<Key key="F20">exec:</Key>
<Key key="F19">exec:</Key>
<Key key="F18">exec:</Key>
<Key key="F17">exec:</Key>
<Key key="F16">exec:</Key>
<Key key="F15">exec:</Key>
<Key key="F14">exec:</Key>
<Key key="F13">exec:</Key>
-->

<!--
<Key mask="ACS34" key="KP_F4">exec:</Key>
<Key mask="ACS34" key="KP_F3">exec:</Key>
<Key mask="ACS34" key="KP_F2">exec:</Key>
<Key mask="ACS34" key="KP_F1">exec:</Key>
<Key mask="ACS34" key="F35">exec:</Key>
<Key mask="ACS34" key="F34">exec:</Key>
<Key mask="ACS34" key="F33">exec:</Key>
<Key mask="ACS34" key="F32">exec:</Key>
<Key mask="ACS34" key="F31">exec:</Key>
<Key mask="ACS34" key="F30">exec:</Key>
<Key mask="ACS34" key="F29">exec:</Key>
<Key mask="ACS34" key="F28">exec:</Key>
<Key mask="ACS34" key="F27">exec:</Key>
<Key mask="ACS34" key="F26">exec:</Key>
<Key mask="ACS34" key="F25">exec:</Key>
<Key key="KP_F4">exec:</Key>
<Key key="KP_F3">exec:</Key>
<Key key="KP_F2">exec:</Key>
<Key key="KP_F1">exec:</Key>
<Key key="F35">exec:</Key>
<Key key="F34">exec:</Key>
<Key key="F33">exec:</Key>
<Key key="F32">exec:</Key>
<Key key="F31">exec:</Key>
<Key key="F30">exec:</Key>
<Key key="F29">exec:</Key>
<Key key="F28">exec:</Key>
<Key key="F27">exec:</Key>
<Key key="F26">exec:</Key>
<Key key="F25">exec:</Key>
-->



</JWM>
here's the contents of the one preset (8287) that includes the function key mod. (you can copy that bit to any of the others):
!nwp/vtg-xmod
! 35 function keys plus 4 kp function keys (plus 26+ moddable with the 3 mask(+))
! 8287
! caps lock becomes mode switch, scroll lock becomes caps lock
remove Lock = Caps_Lock
keycode 78 = Caps_Lock
! keycode 110 = Caps_Lock
! ^pause key (110) gets made Hyper_R below; this is here for boards with no scroll lock (swap the lead exclamation point between 78/110 lines to set choice). escape becomes modeshift plus escape and Hyper_R otherwise, so you can really use 110 for whatever you like)
keycode 66 = Mode_switch
add Lock = Caps_Lock


!function keys are modeswitch plus function row for second twelve and modeswitch plus the number row for the 12 after that (F series only goes up to F35 but the key pad has an additional four for a total of 39. "f37-f39" are modeswitch plus q,w, and e.

keycode 67 = F1 F1 F13 F13 F1 F1
keycode 68 = F2 F2 F14 F14 F2 F2
keycode 69 = F3 F3 F15 F15 F3 F3
keycode 70 = F4 F4 F16 F16 F4 F4
keycode 71 = F5 F5 F17 F17 F5 F5
keycode 72 = F6 F6 F18 F18 F6 F6
keycode 73 = F7 F7 F19 F19 F7 F7
keycode 74 = F8 F8 F20 F20 F8 F8
keycode 75 = F9 F9 F21 F21 F9 F9
keycode 76 = F10 F F22 F22 F10 F10
keycode 95 = F11 F F23 F23 F11 F11
keycode 96 = F12 F F24 F24 F12 F12

keycode 10 = 1 exclam F25 F25 exclam 1
keycode 11 = 2 at F26 F26 at 2
keycode 12 = 3 numbersign F27 F27 numbersign 3
keycode 13 = 4 dollar F28 F28 dollar 4
keycode 14 = 5 percent F29 F29 percent 5
keycode 15 = 6 asciicircum F30 F30 asciicircum 6
keycode 16 = 7 ampersand F31 F31 ampersand 7
keycode 17 = 8 asterisk F32 F32 asterisk 8
keycode 18 = 9 parenleft F33 F33 parenleft 9
keycode 19 = 0 parenright F34 F34 parenright 0
keycode 20 = minus underscore F35 F35 underscore minus underscore
keycode 21 = equal plus equal KP_F1 KP_F1 equal plus
keycode 24 = q Q KP_F2 KP_F2 q Q
keycode 25 = w W KP_F3 KP_F3 w W
keycode 26 = e E KP_F4 KP_F4 e E

! code below adds Hyper_R as mod 3 (works in jwm but not rox)
keycode 9 = Hyper_R NoSymbol Escape NoSymbol Escape
keycode 22 = BackSpace Terminate_Server Menu Terminate_Server BackSpace Terminate_Server
keycode 23 = Tab ISO_Left_Tab Menu ISO_Left_Tab Tab ISO_Left_Tab
! Menu "key" on modeshift (old caps lock) plus backspace and tab for boards without
keycode 110 = Hyper_R
add mod3 = Hyper_R
!Pause and Escape are Mod3(Hyper_R); Modeswitch is Caps_Lock, Caps_Lock is Scroll_Lock; Modeswitch plus Escape is Escape; Modeswitch plus either Tab or Backspace is the Menu key. Menu, for keyboards that have it, is usually keycode 77 (and can be repurposed)
! 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.
as a reminder, the launchers off the main launcher also have keys assigned to them in jwm (with the nwp installed):
alt+h -- /nwp/k (virtual key launcher)
alt+j -- /nwp/rl (rox launcher)
alt+k -- /nwp/gl (geany launcher)
alt+l -- /nwp/ll (leafpad launcher)

reassign and/or put the menu codes on the Fkeys

here's a screenshot of the xmodmaps folder that the pet adds to /root/my-applications; open it with "kset" in the launcher or from the Utilities menu (the desktop file just opens a folder with a few tools and configuration files in it). click a choice to run, edit the rest button/script to suit your layout (set for u.s.), and link or copy your choice to Startup to have it active as default.
Attachments
xmod8287.1.jpg
(44.28 KiB) Downloaded 541 times

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

19k mini word processor that uses the vtg as a start center

#48 Post by Puppus Dogfellow »

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

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

bwp 1.3: some new backup and formatting shortcuts,

#49 Post by Puppus Dogfellow »

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

User avatar
nosystemdthanks
Posts: 703
Joined: Thu 03 May 2018, 16:13
Contact:

#50 Post by nosystemdthanks »

hi to the op (original poster-- original puppy?) who was very helpful and friendly the previous time i was here--

this thread (geany as launcher) reminds me how you can always get fun ideas when you come here.

this place is full of fun ideas. its a very large collection of fun ideas. so thank you puppus, this is a fun idea-- and the second cool thing ive read about geany this week.

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

#51 Post by Puppus Dogfellow »

nosystemdthanks wrote:hi to the op (original poster-- original puppy?) who was very helpful and friendly the previous time i was here--

this thread (geany as launcher) reminds me how you can always get fun ideas when you come here.

this place is full of fun ideas. its a very large collection of fun ideas. so thank you puppus, this is a fun idea-- and the second cool thing ive read about geany this week.
cool and you're welcome, but what was the week's other cool geany idea? i won't take it as off topic, but if it's something the forum hasn't covered, you could always start a new topic for it (cool stuff's cool and sometimes appreciated/ 8) / :lol: / :oops:).

:D

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

a bit more on the bwp

#52 Post by Puppus Dogfellow »

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

User avatar
nosystemdthanks
Posts: 703
Joined: Thu 03 May 2018, 16:13
Contact:

#53 Post by nosystemdthanks »

puppus: the other geany trick was using search and replace across documents.

it was implied (though i havent tried it) that you can use search and replace across every open tab at once if it pleases you to.

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

#54 Post by Puppus Dogfellow »

nosystemdthanks wrote:puppus: the other geany trick was using search and replace across documents.

it was implied (though i havent tried it) that you can use search and replace across every open tab at once if it pleases you to.
it works well--you just check session instead of document or selection.

using separate instances of geany (geany -i in a terminal) allows you to isolate groups of files fairly easily--only the tabs in the window you run it on are affected (i last used it a few days ago to flip a a few lines in the html directory mentioned above).

s243a
Posts: 2580
Joined: Tue 02 Sep 2014, 04:48
Contact:

Re: nwp32/64.8

#55 Post by s243a »

What does ns stand for? and should I try one of these pets or are you releasing a newer version with some of the stuff that you are exploring in this thread?

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

Re: nwp32/64.8

#56 Post by Puppus Dogfellow »

s243a wrote:
What does ns stand for? and should I try one of these pets or are you releasing a newer version with some of the stuff that you are exploring in this thread?
ns is newer (jwm) syntax, which is all 64 bit (jwm) pups but quirky pyro and easy, i think (found that out a bit late or there'd've been a 64 bit ns for .8 and .9 (which i'll try to dig up for you in a bit)).

mostly it's just the various mini word processors that've come out the project that get major updates--there's a .8 to .9 pet, and to be honest, the .9 pet was pretty half assed--it's the upgrade pet called from a folder in tmp along with .8 (and i wouldn't be surprised if it too was comprised of a call to other pets).

the xmod keyboard stuff and make concurrent copies functions have been updated, and there's automatic call to update a youtube downloading python script, but off the top of my head, those are the only real updates, and all updates were usually just scripts posted in the nwp thread (here's the never officially announced .9 update post: http://murga-linux.com/puppy/viewtopic. ... 459#986459

here's some on the keyboard stuff i think i meant to paste into this thread a while back: http://murga-linux.com/puppy/viewtopic. ... 915#965915

next overhaul will be to the original word processing templates--the new ones are so much better it's ridiculous to keep them i think (they're good place holders with assigned mime types/icons and don't take up too much room, so updating the new without replacing the old hasn't bothered me much yet).

was going to give up on this stuff for the night when i saw your post, so, yes, it's being updated, but i don't think that should deter you (any more than the strangeness of the cauliflower icons all over the place or my sloppy, newbie way of doing things, that is). "my39" in the launcher should get you back the default set up. my39r would reverse that...

newest word processing aspect updates:
http://murga-linux.com/puppy/viewtopic. ... 763#990763


here's the smallest i was able to reduce the bwp (browser word processor)--it's one 3.5k file if you want to play around with it or add suggestions (it's also the next update to the Untitled1 and Untitled2 templates):

thiswordprocessor.html

...

...the tahr64 i'm using used some of the geany plugins from my repo, but they were all available in from the ppm in the last few distros i tried so i don't bother to hunt them down anymore. the aemenu and jwm geany menus call treebrowser and extend select...i think everything else should work geany-wise, or does for me, but i've been running mostly xenial, tahr, and precise with the stuff. some things may need some adjustment...)

anyway, have fun/good luck.

(yes a new release, but i'm not sure when--probably some time after i figure out what to do with the original mon ser sans templates).

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

thiswordprocessor.html updated as wordprocessor.html (6k).

#57 Post by Puppus Dogfellow »

and use the other as the word processor's formatting buttons/options.

the internal name for the document below is "top one is title tag" and "ser1.5" is what will get displayed in the browser tab. you and geany would know it by its actual name (the one you gave it), or the original, wordprocessor.html. the ser 1.5 bit means it's set for serif at 1.5 line spacing. make a copy to swap in mono or sans (do a find and replace, serif by mono or sans or any other font you know would work (those two have been tested and work) for a basic font change, and replace 150 with 200 or 100 for double or single line spacing. it's gotten a bit larger, but i think it's improved for it.
<!--
thiswordprocessor.html
(/micro anuupus/mini-bwp/Untitled0)

-->

<!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>ser1.5</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: 150%" align="justify"><font face="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: 150%" align="justify">justified area<br><br></p>
<p style="margin-bottom: 0in; line-height: 150%" align="center">centered<br><br></p>
<p style="margin-bottom: 0in; line-height: 150%" align="left">left aligned<br><br></p>

<p style="margin-bottom: 0in; line-height: 150%" align="right">right aligned<br><br></p>
<p style="margin-bottom: 0in; line-height: 150%" 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,x,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/vie ... 597</a><br>
<!--use file:/// for your files (for tables of contents, long term convenience, etc) and http:// for websites (second occurence of path above is text that shows--could be anything, but use &gt: < to >< in plain text mode outside the comments (you can paste them into the browser view as you'd expect with a regular word processor, but it won't work in straight up html mode)).-->

<br>insert<p style="margin-bottom: 0in; line-height: 150%" align="left"><font color="#159A5E"><par style="font-size: 8pt; color:white; page-break-after: always"></par></font> <br><br>
in text editor view wherever you want to force a page break.
<br><br>
</p>
<br>
<h1>heading 1</h1>
<h2>heading 2</h2>
<h3>heading 3</h3>
<h4>heading 4</h4>
<h5>heading 5</h5>

<p style="margin-bottom: 0in; line-height: 150%" align="justify"><br><br>
<br>
<!--this is a comment. anything between arrows like these is hidden in browser and pdf download/print preview mode. -->
<!--

this is another comment. you can have as many as you like and they can go on indefinitely.
(you can type here and paste into browser view for the faster saves and more natural typing environment, but remember to keep track of your reloads and refreshes as well as your saves so you don't end up undoing what you've done)
-->

<!-- get rid of the html in the title if the text editor has color coding for code and you find it annoying


Puppus Dogfellow, 5/5/18.
-->
<!--teach yourself html and more:
https://www.w3schools.com/html/html_paragraphs.asp

alter this document as make copies for backup. search and swap/find and replace 150 for 200 or 100 to change spacing from 1.5 to 2 or 1. do the same with serif to change font (mono and sans are two that work in testing).
-->

</p>
<p style="margin-bottom: 0in; line-height: 150%" align="justify">to stick to working with (mostly) regular text files, paste your text into the word processor file for print preview, setting the formatting, and downloading either the html or pdf version of that stage. browser window text is scalable, but for reference, here's some nonscalable text: <br>
</p><br>
<br>
<p style="font-size: 12pt; color:black; font-weight:normal; font-family: serif">your serif 12 text here</p><br>
<p style="font-size: 12pt; color:#5126D2; font-weight:normal; font-family: mono">your mono 12 text here</p><br>
<p style="font-size: 12pt; color:black; font-weight:normal; font-family: sans">your sans 12 text here</p><br>



<!-- <br><br>

see the commented out bits (they'll be between arrows like these) in text editor mode for more tips (they're not visible in browser mode. change the name that appears in the tab and the internal document name while you're there).
<br>

to focus more on browser use than text editor mode, make a copy of the appropriate template and rename it as your working document. open both with a browser and bookmark. reload the template if you've made a mess of the formatting or preferred the way it was before you started to get the hang of things.
<br>-->
<span style="font-size: 12pt; color:black; font-weight:normal; font-family: serif">
12 point serif

</span>
<span style="font-size: 12pt; color:black; font-weight:regular condensed; font-family: sans">

12point sans

</span>
<span style="font-size: 12pt; color:black; font-weight:regular condensed; font-family: mono">

12 pt mono (no illustration of custom color code this time--use gcolor2 or your text editor's color picker to customize via the six digit code that follows the <i>color:</i> bit(s) you find in the html version(s)).

<br>




</body>

</html>
Puppus Dogfellow wrote:[...]
newest word processing aspect updates:
http://murga-linux.com/puppy/viewtopic. ... 763#990763


here's the smallest i was able to reduce the bwp (browser word processor)--it's one 3.5k file if you want to play around with it or add suggestions (it's also the next update to the Untitled1 and Untitled2 templates):

thiswordprocessor.html

[...]
Puppus Dogfellow wrote:
nosystemdthanks wrote:puppus: the other geany trick was using search and replace across documents.

it was implied (though i havent tried it) that you can use search and replace across every open tab at once if it pleases you to.
it works well--you just check session instead of document or selection.

using separate instances of geany (geany -i in a terminal) allows you to isolate groups of files fairly easily--only the tabs in the window you run it on are affected (i last used it a few days ago to flip a a few lines in the html directory mentioned above).
save the file above and open in a new instance of geany. rename it as its backup or something you prefer (or you could start by copying and opening, or cloning the original. at some point you have two copies of the file posted above opened in geany....takes longer to describe than do. could make nine copies with the mcc function and work on those simultaneously. anyway, ...). open both those up renamed as something that designates a mono font and close the original two. find and replace serif for mono. save and then save the two as something that designates a sans font. find and replace mono for sans. save and then open the four you closed earlier. replace 150 with 200 and rename the lot something to show they are now double spaced. save all. find and replace (again, in session) 200 for 100 and rename the now red-in-the-title files something to show they're now single spaced templates. your original template is now serif 1.5 and has the names you gave them, and the others fill out the basic template set. (you can copy and paste between them).

there are other ways to go about this (sehd in the launcher prints out a sed cheat sheet that would make doing it from one file with a little copying pretty easy and less...wordy, but i think the cnt command (can generate/sandwich html files like these without any escaping necessary--just add your mods and paths) is better in terms of letting users customize more, though a good thing about a script version to generate it is that it becomes easy to restore even templates that have been saved broken...and you can easily put your choices on the jwm menus...and generate variations more easily maybe)...probably coming soon.


wordprocessor.html

you don't need to see the geany view for the commented out tips--they're the ones in red....next upgrade will probably drop the .html and/or improve/simplify the mcc version; next version for this thread will probably be a script that generates it and the desktop files for a few choices.

(...apologies for thinking out loud--)

enjoy.

----

...open in a browser, cut and paste formatting, save as html or pdf. work in browser or editor...paste in text from xpad or leafpad if you like...paste in anything and see what sticks...

:D

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

three versions of template generator script

#58 Post by Puppus Dogfellow »

scripts make a 1.5 line spaced template similar to wordprocessor.html above in your choice of serif (bwper.sh), mono (bwper-mon.sh), or sans (bwper-san.sh). it then copies that for the two working template method described above, makes a single and double spaced version (one each, but you can add or eliminate by adjusting the script), adds two drag2launch2 scripts (default editor and browser at the same time is "def," palemoon and a new instance of geany is "gip."--add, adjust, remove). the internal and tag titles are changed when the script is run and can be set before hand. they're basically versions of the above, but now you don't have to worry about ruining a template and you can customize the sets before they're made (adjust titles and fonts by adjusting the little sed bit (labeled in the comments) at the ends of the scripts. here's bwper.sh:

Code: Select all

#bwper
#!/bin/sh

echo $'

<!-- 
   thiswordprocessor.html
  (/micro anuupus/mini-bwp/Untitled0)
  
-->
<!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>bwp2</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: 150%" align="justify"><font face="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: 150%" align="justify">justified area<br><br></p>
<p style="margin-bottom: 0in; line-height: 150%" align="center">centered<br><br></p>
<p style="margin-bottom: 0in; line-height: 150%" align="left">left aligned<br><br></p>

<p style="margin-bottom: 0in; line-height: 150%" align="right">right aligned<br><br></p>
<p style="margin-bottom: 0in; line-height: 150%" 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,x,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>
<!--use file:/// for your files (for tables of contents, long term convenience, etc) and http:// for websites  (second occurence of path above is text that shows--could be anything, but use &gt: < to >< in plain text mode outside the comments (you can paste them into the browser view as you\'d expect with a regular word processor, but it won\'t work in straight up html mode.)-->

<br>insert<p style="margin-bottom: 0in; line-height: 150%" align="left"><font color="#159A5E"><par style="font-size: 8pt; color:white; page-break-after: always"></par></font> <br><br>
in text editor view wherever you want to force a page break.
<br><br>
</p>
<br>
<h1>heading 1</h1>
<h2>heading 2</h2>
<h3>heading 3</h3>
<h4>heading 4</h4>
<h5>heading 5</h5>

<p style="margin-bottom: 0in; line-height: 150%" align="justify"><br><br>
<br>
<!--this is a comment. anything between arrows like these is hidden in browser and pdf download/print preview mode. -->
<!--  

this is another comment. you can have as many as you like and they can go on indefinitely.
(you can type here and paste into browser view for the faster saves and more natural typing environment, but remember to keep track of your reloads and refreshes as well as your saves so you don\'t end up undoing what you\'ve done)
-->

<!--  get rid of the html in the title if the text editor has color coding for code and you find it annoying


Puppus Dogfellow, 5/5/18.
-->
<!--teach yourself html and more:
 https://www.w3schools.com/html/html_paragraphs.asp

alter this document as make copies for backup. search and swap/find and replace 150 for 200 or 100 to change spacing from 1.5 to 2 or 1. do the same with serif to change font (mono and sans are two that work in testing). 
  -->

</p>
<p style="margin-bottom: 0in; line-height: 150%" align="justify">to stick to working with (mostly) regular text files, paste your text into the word processor file for print preview, setting the formatting, and downloading either the html or pdf version of that stage. browser window text is scalable, but for reference, here\'s some nonscalable text: <br>
</p><br>
<br>
 <p style="font-size: 12pt; color:black; font-weight:normal; font-family: serif">your serif 12 text here</p><br>
 <p style="font-size: 12pt; color:#5126D2; font-weight:normal; font-family: mono">your mono 12 text here</p><br>
 <p style="font-size: 12pt; color:black; font-weight:normal; font-family: sans">your sans 12 text here</p><br>



<!-- <br><br>

see the commented out bits (they\'ll be between arrows like these) in text editor mode for more tips (they\'re not visible in browser mode. change the name that appears in the tab and the internal document name while you\'re there).
<br>

to focus more on browser use than text editor mode, make a copy of the appropriate template and rename it as your working document. open both with a browser and bookmark. reload the template if you\'ve made a mess of the formatting or preferred the way it was before you started to get the hang of things.
<br>-->
<span style="font-size: 12pt; color:black; font-weight:normal; font-family: serif">
12 point serif

</span>
<span style="font-size: 12pt; color:black; font-weight:regular condensed; font-family: sans">

12point sans

</span>
<span style="font-size: 12pt; color:black; font-weight:regular condensed; font-family: mono">

12 pt mono (no illustration of custom color code this time--use gcolor2 or your text editor\'s color picker to customize via the six digit code that follows the <i>color:</i> bit(s) you find in the html version(s)).

<br>




</body>

</html>
' > ./ser
#make three copies of base template: working, line spacing at 1 and 2:
cp -f ./ser ./ser1.5
cp -f ./ser ./ser1
cp -f ./ser ./ser2
#have the line spacing of ser1 and ser2 reflect their names:
sed -i '/150/ s//100/g' ./ser1
sed -i '/150/ s//200/g' ./ser2
#swap out the title tags for the templates:
sed -i '/ser1.5/ s//Untitled00/g' ./ser1.5
sed -i '/ser1.5/ s//Untitled0/g' ./ser
sed -i '/ser1.5/ s//Sing/g' ./ser1
sed -i '/ser1.5/ s//Dub/g' ./ser2
#swap out the internal name
#(some versions wound up as ser1.5, some as bwp2
#(line will just fail if n.a.))
sed -i '/bwp2/ s//Untitled00/g' ./ser1.5
sed -i '/bwp2/ s//Untitled0/g' ./ser
sed -i '/bwp2/ s//Sing/g' ./ser1
sed -i '/bwp2/ s//Dub/g' ./ser2

sed -i '/top one is tab tag/ s//newinternal/g' ./ser
sed -i '/top one is tab tag/ s//newinternal/g' ./ser1.5
sed -i '/top one is tab tag/ s//newinternal/g' ./ser1
sed -i '/top one is tab tag/ s//newinternal/g' ./ser2

#dual launchers (copy and adjust):
echo $'#!/bin/sh 
exec defaulttexteditor "$@"| exec defaultbrowser "$@"
' > ./def
chmod 755 ./def
echo $'#!/bin/sh 
exec geany -i "$@"| exec palemoon "$@"
' > ./gip
chmod 755 ./gip

Code: Select all

here's the one for mono:
#!/bin/sh

echo $'

<!-- 
   wordprocessor.html
  (/micro anuupus/mini-bwp/Untitled0)
  
-->
<!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>bwp2</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:mono;line-height:1.5;max-width:90rem;margin:0 auto;padding:2rem;" spellcheck="true" contenteditable="">


<p style="margin-bottom: 0in; line-height: 150%" align="justify"><font face="mono">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: 150%" align="justify">justified area<br><br></p>
<p style="margin-bottom: 0in; line-height: 150%" align="center">centered<br><br></p>
<p style="margin-bottom: 0in; line-height: 150%" align="left">left aligned<br><br></p>

<p style="margin-bottom: 0in; line-height: 150%" align="right">right aligned<br><br></p>
<p style="margin-bottom: 0in; line-height: 150%" 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,x,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>
<!--use file:/// for your files (for tables of contents, long term convenience, etc) and http:// for websites  (second occurence of path above is text that shows--could be anything, but use &gt: < to >< in plain text mode outside the comments (you can paste them into the browser view as you\'d expect with a regular word processor, but it won\'t work in straight up html mode.)-->

<br>insert<p style="margin-bottom: 0in; line-height: 150%" align="left"><font color="#159A5E"><par style="font-size: 8pt; color:white; page-break-after: always"></par></font> <br><br>
in text editor view wherever you want to force a page break.
<br><br>
</p>
<br>
<h1>heading 1</h1>
<h2>heading 2</h2>
<h3>heading 3</h3>
<h4>heading 4</h4>
<h5>heading 5</h5>

<p style="margin-bottom: 0in; line-height: 150%" align="justify"><br><br>
<br>
<!--this is a comment. anything between arrows like these is hidden in browser and pdf download/print preview mode. -->
<!--  

this is another comment. you can have as many as you like and they can go on indefinitely.
(you can type here and paste into browser view for the faster saves and more natural typing environment, but remember to keep track of your reloads and refreshes as well as your saves so you don\'t end up undoing what you\'ve done)
-->

<!--  get rid of the html in the title if the text editor has color coding for code and you find it annoying


Puppus Dogfellow, 5/5/18.
-->
<!--teach yourself html and more:
 https://www.w3schools.com/html/html_paragraphs.asp

alter this document as make copies for backup. search and swap/find and replace 150 for 200 or 100 to change spacing from 1.5 to 2 or 1. do the same with serif to change font (mono and sans are two that work in testing). 
  -->

</p>
<p style="margin-bottom: 0in; line-height: 150%" align="justify">to stick to working with (mostly) regular text files, paste your text into the word processor file for print preview, setting the formatting, and downloading either the html or pdf version of that stage. browser window text is scalable, but for reference, here\'s some nonscalable text: <br>
</p><br>
<br>
 <p style="font-size: 12pt; color:black; font-weight:normal; font-family: serif">your serif 12 text here</p><br>
 <p style="font-size: 12pt; color:#5126D2; font-weight:normal; font-family: mono">your mono 12 text here</p><br>
 <p style="font-size: 12pt; color:black; font-weight:normal; font-family: sans">your sans 12 text here</p><br>



<!-- <br><br>

see the commented out bits (they\'ll be between arrows like these) in text editor mode for more tips (they\'re not visible in browser mode. change the name that appears in the tab and the internal document name while you\'re there).
<br>

to focus more on browser use than text editor mode, make a copy of the appropriate template and rename it as your working document. open both with a browser and bookmark. reload the template if you\'ve made a mess of the formatting or preferred the way it was before you started to get the hang of things.
<br>-->
<span style="font-size: 12pt; color:black; font-weight:normal; font-family: serif">
12 point serif

</span>
<span style="font-size: 12pt; color:black; font-weight:regular condensed; font-family: sans">

12point sans

</span>
<span style="font-size: 12pt; color:black; font-weight:regular condensed; font-family: mono">

12 pt mono (no illustration of custom color code this time--use gcolor2 or your text editor\'s color picker to customize via the six digit code that follows the <i>color:</i> bit(s) you find in the html version(s)).

<br>

</body>

</html>
' > ./mon
#make three copies of base template: working, line spacing at 1 and 2:
cp -f ./mon ./mon1.5
cp -f ./mon ./mon1
cp -f ./mon ./mon2
#have the line spacing of mon1 and mon2 reflect their names:
sed -i '/150/ s//100/g' ./mon1
sed -i '/150/ s//200/g' ./mon2
#swap out the title tags:
sed -i '/bwp2/ s//m00/g' ./mon1.5
sed -i '/bwp2/ s//m0/g' ./mon
sed -i '/bwp2/ s//mSing/g' ./mon1
sed -i '/bwp2/ s//mDub/g' ./mon2
#you can also use this section (rerun the script from a folder by clicking on it
#as you modify it in a text editor) to swap fonts (make more copies and rename them by 
#altering duplicates of cp -f line a dozen or so up)
#swap out the internal name
sed -i '/top one is tab tag/ s//newinternal/g' ./mon
sed -i '/top one is tab tag/ s//newinternal/g' ./mon1.5
sed -i '/top one is tab tag/ s//newinternal/g' ./mon1
sed -i '/top one is tab tag/ s//newinternal/g' ./mon2

sans:

Code: Select all

#!/bin/sh

echo $'

<!-- 
   wordprocessor.html
  (/micro anuupus/mini-bwp/Untitled0)
  
-->
<!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>bwp2</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:sans;line-height:1.5;max-width:90rem;margin:0 auto;padding:2rem;" spellcheck="true" contenteditable="">


<p style="margin-bottom: 0in; line-height: 150%" align="justify"><font face="sans">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: 150%" align="justify">justified area<br><br></p>
<p style="margin-bottom: 0in; line-height: 150%" align="center">centered<br><br></p>
<p style="margin-bottom: 0in; line-height: 150%" align="left">left aligned<br><br></p>

<p style="margin-bottom: 0in; line-height: 150%" align="right">right aligned<br><br></p>
<p style="margin-bottom: 0in; line-height: 150%" 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,x,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>
<!--use file:/// for your files (for tables of contents, long term convenience, etc) and http:// for websites  (second occurrence of path above is text that shows--could be anything, but use &gt: < to >< in plain text mode outside the comments (you can paste them into the browser view as you\'d expect with a regular word processor, but it won\'t work in straight up html mode.)-->

<br>insert<p style="margin-bottom: 0in; line-height: 150%" align="left"><font color="#159A5E"><par style="font-size: 8pt; color:white; page-break-after: always"></par></font> <br><br>
in text editor view wherever you want to force a page break.
<br><br>
</p>
<br>
<h1>heading 1</h1>
<h2>heading 2</h2>
<h3>heading 3</h3>
<h4>heading 4</h4>
<h5>heading 5</h5>

<p style="margin-bottom: 0in; line-height: 150%" align="justify"><br><br>
<br>
<!--this is a comment. anything between arrows like these is hidden in browser and pdf download/print preview mode. -->
<!--  

this is another comment. you can have as many as you like and they can go on indefinitely.
(you can type here and paste into browser view for the faster saves and more natural typing environment, but remember to keep track of your reloads and refreshes as well as your saves so you don\'t end up undoing what you\'ve done)
-->

<!--  get rid of the html in the title if the text editor has color coding for code and you find it annoying


Puppus Dogfellow, 5/5/18.
-->
<!--teach yourself html and more:
 https://www.w3schools.com/html/html_paragraphs.asp

alter this document as make copies for backup. search and swap/find and replace 150 for 200 or 100 to change spacing from 1.5 to 2 or 1. do the same with serif to change font (mono and sans are two that work in testing). 
  -->

</p>
<p style="margin-bottom: 0in; line-height: 150%" align="justify">to stick to working with (mostly) regular text files, paste your text into the word processor file for print preview, setting the formatting, and downloading either the html or pdf version of that stage. browser window text is scalable, but for reference, here\'s some nonscalable text: <br>
</p><br>
<br>
 <p style="font-size: 12pt; color:black; font-weight:normal; font-family: serif">your serif 12 text here</p><br>
 <p style="font-size: 12pt; color:#5126D2; font-weight:normal; font-family: mono">your mono 12 text here</p><br>
 <p style="font-size: 12pt; color:black; font-weight:normal; font-family: sans">your sans 12 text here</p><br>



<!-- <br><br>

see the commented out bits (they\'ll be between arrows like these) in text editor mode for more tips (they\'re not visible in browser mode. change the name that appears in the tab and the internal document name while you\'re there).
<br>

to focus more on browser use than text editor mode, make a copy of the appropriate template and rename it as your working document. open both with a browser and bookmark. reload the template if you\'ve made a mess of the formatting or preferred the way it was before you started to get the hang of things.
<br>-->
<span style="font-size: 12pt; color:black; font-weight:normal; font-family: serif">
12 point serif

</span>
<span style="font-size: 12pt; color:black; font-weight:regular condensed; font-family: sans">

12point sans

</span>
<span style="font-size: 12pt; color:black; font-weight:regular condensed; font-family: mono">

12 pt mono (no illustration of custom color code this time--use gcolor2 or your text editor\'s color picker to customize via the six digit code that follows the <i>color:</i> bit(s) you find in the html version(s)).

<br>




</body>

</html>
' > ./san
#make three copies of base template: working, line spacing at 1 and 2:
cp -f ./san ./san1.5
cp -f ./san ./san1
cp -f ./san ./san2
#have the line spacing of san1 and san2 reflect their names:
sed -i '/150/ s//100/g' ./san1
sed -i '/150/ s//200/g' ./san2
#swap out the title tags for the templates:
#sed -i '/ser1.5/ s//Untitled00/g' ./ser1.5
#sed -i '/ser1.5/ s//Untitled0/g' ./ser
#sed -i '/ser1.5/ s//Sing/g' ./ser1
#sed -i '/ser1.5/ s//Dub/g' ./ser2
#swap out the internal name
#(some versions wound up as ser1.5, some as bwp2):
#you can also use this section (rerun the script from a folder by clicking on it
#as you modify it in a text editor) to swap fonts (make more copies and rename them by 
#altering duplicates of cp -f line a dozen or so up)
sed -i '/bwp2/ s//s00/g' ./san1.5
sed -i '/bwp2/ s//s0/g' ./san
sed -i '/bwp2/ s//sSing/g' ./san1
sed -i '/bwp2/ s//sDub/g' ./san2
sed -i '/top one is tab tag/ s//newinternal/g' ./san
sed -i '/top one is tab tag/ s//newinternal/g' ./san1.5
sed -i '/top one is tab tag/ s//newinternal/g' ./san1
sed -i '/top one is tab tag/ s//newinternal/g' ./san2
sed -i '/top one is tab tag/ s//newinternal/g' ./mon2
if you're reusing the code to alter and the templates of files that you just made (sometimes the vtg is easier for this sort of stuff--make a copy of the script, make a mess of it, take notes on it, run only the parts you like or that still work...--it's a good way to test out things, but in this instance, it's just an easy way to change the name fields inside the document, or swap in superserif for serif (you can really do it for any of the templates and make an overall font change that way)).

bwp1.4 will probably have these scripts as a right click utility, though i may offer those just as plain html files and/or a folder of templates (you could do it yourself with these or your own custom versions by putting them in /root/.config/rox.sourceforge.net/Templates/. adjust the where and why off the fonts and alignment, and have it ready to go at click.

so now it's easier to have the templates where you want, access them through the browser, adjust them in groups, and replace them when they're lost or broken.

the two dual launchers are tiny and get generated along with the templates. run all the scripts in the same folder and you'll have the three font faces at single, double, and one and a half line spacing, with an extra copy of each being made at what i find most readable in pdf and browser view (1.5--you can adjust what if any template gets an auto-double in the scripts since duplicating a tab's not a tremendous effort and i perhaps overstated it as part of a recommended protocol...there really isn't one).

enjoy.
:)

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

bwp template maker update. use "bwpt" in terminal to make

#59 Post by Puppus Dogfellow »

this is a version that makes an improved version of the bwper from a post or so ago. it'll do all three versions with some improvements. default location for the templates are the right click menu (./root/.config/rox.sourceforge.net/Templates/) and the make concurrent copies parent folder (/root/my-applications/mc--at one point i ran into problems with a script and a directory sharing the same name--but seeing as how it's empty apart from the folder of drag-tos and some auxiliary icons, i've decided to use it for a bit more (and swap back out the xmod and bbwp as non-included add-ins). save and click or dump into a terminal:

Code: Select all

#!/bin/sh

echo $"

#!/bin/sh
#bwper
mkdir -p ./bwp1
#mkdir -p ./tasks
echo $'
<!--
   thiswordprocessor.html
  (/micro anuupuus/mini-bwp/Untitled0)
 file as word processor template maker
-->
<!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>bwp2</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: 150%\" align=\"justify\"><font face=\"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: 150%\" align=\"justify\">justified area<br><br></p>
<p style=\"margin-bottom: 0in; line-height: 150%\" align=\"center\">centered<br><br></p>
<p style=\"margin-bottom: 0in; line-height: 150%\" align=\"left\">left aligned<br><br></p>

<p style=\"margin-bottom: 0in; line-height: 150%\" align=\"right\">right aligned<br><br></p>
<p style=\"margin-bottom: 0in; line-height: 150%\" 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,x,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>
<!--use file:/// for your files (for tables of contents, long term convenience, etc) and http:// for websites  (second occurence of path above is text that shows--could be anything, but use &gt: < to >< in plain text mode outside the comments (you can paste them into the browser view as you\'d expect with a regular word processor, but it won\'t work in straight up html mode.)-->

<br>insert<p style=\"margin-bottom: 0in; line-height: 150%\" align=\"left\"><font color=\"#159A5E\"><par style=\"font-size: 8pt; color:white; page-break-after: always\"></par></font> <br><br>
in text editor view wherever you want to force a page break.
<br><br>
</p>
<br>
<h1>heading 1</h1>
<h2>heading 2</h2>
<h3>heading 3</h3>
<h4>heading 4</h4>
<h5>heading 5</h5>

<p style=\"margin-bottom: 0in; line-height: 150%\" align=\"justify\"><br><br>
<br>
<!--this is a comment. anything between arrows like these is hidden in browser and pdf download/print preview mode. -->
<!-- 

this is another comment. you can have as many as you like and they can go on indefinitely.
(you can type here and paste into browser view for the faster saves and more natural typing environment, but remember to keep track of your reloads and refreshes as well as your saves so you don\'t end up undoing what you\'ve done)
-->

<!--  get rid of the html in the title if the text editor has color coding for code and you find it annoying


Puppus Dogfellow, 5/5/18.
-->
<!--teach yourself html and more:
 https://www.w3schools.com/html/html_paragraphs.asp

alter this document as a new base template and/or make copies for backup. search and swap/find and replace 150 for 200 or 100 to change spacing from 1.5 to 2 or 1. do the same with serif to change font (mono and sans are two that work in testing).
  -->

</p>
<p style=\"margin-bottom: 0in; line-height: 150%\" align=\"justify\">to stick to working with (mostly) regular text files, paste your text into the word processor file for print preview, setting the formatting, and downloading either the html or pdf version of that stage. browser window text is scalable, but for reference, here\'s some nonscalable text: <br>
</p><br>
<br>
 <p style=\"font-size: 12pt; color:black; font-weight:normal; font-family: serif\">your serif 12 text here</p><br>
 <p style=\"font-size: 12pt; color:#5126D2; font-weight:normal; font-family: mono\">your mono 12 text here</p><br>
 <p style=\"font-size: 12pt; color:black; font-weight:normal; font-family: sans\">your sans 12 text here</p><br>



<!-- <br><br>

see the commented out bits (they\'ll be between arrows like these) in text editor mode for more tips (they\'re not visible in browser mode. change the name that appears in the tab and the internal document name while you\'re there).
<br>

to focus more on browser use than text editor mode, make a copy of the appropriate template and rename it as your working document. open both with a browser and bookmark. reload the template if you\'ve made a mess of the formatting or preferred the way it was before you started to get the hang of things.
<br>-->
<span style=\"font-size: 12pt; color:black; font-weight:normal; font-family: serif\">
12 point serif

</span>
<span style=\"font-size: 12pt; color:black; font-weight:regular condensed; font-family: sans\">

12point sans

</span>
<span style=\"font-size: 12pt; color:black; font-weight:regular condensed; font-family: mono\">

12 pt mono (no illustration of custom color code this time--use gcolor2 or your text editor\'s color picker to customize via the six digit code that follows the <i>color:</i> bit(s) you find in the html version(s)).

<br>

<br>
<br>
your <a href=\"file:///root/my-applications/mc/bwp1/\" target=\"_blank\">templates are here</a> and  <a href=\"file:///root/.config/rox.sourceforge.net/Templates/bwp1/\" target=\"_blank\">here if you\'ve </a>installed (a/some version/s of) thiswordprocessor.html through mccwp-bwp (or its terminal dump-in post/s).
<br>


</body>

</html>
' > ./bwp1/ser
#prep ser as as mon and san:
cp -f ./bwp1/ser ./bwp1/mon
cp -f ./bwp1/ser ./bwp1/san
sed -i 's/serif/sans/1' ./bwp1/san
sed -i 's/serif/sans/1' ./bwp1/san
sed -i 's/serif/mono/1' ./bwp1/mon
sed -i 's/serif/mono/1' ./bwp1/mon
#make three copies (x3) of base template: working, line spacing at 1 and 2:
cp -f ./bwp1/ser ./bwp1/ser1.5
cp -f ./bwp1/ser ./bwp1/ser1
cp -f ./bwp1/ser ./bwp1/ser2
cp -f ./bwp1/mon ./bwp1/mon1.5
cp -f ./bwp1/mon ./bwp1/mon1
cp -f ./bwp1/mon ./bwp1/mon2
cp -f ./bwp1/san ./bwp1/san1.5
cp -f ./bwp1/san ./bwp1/san1
cp -f ./bwp1/san ./bwp1/san2
#have the line spacing of ser1 and ser2 (etc) reflect their names:
sed -i '/150/ s//100/g' ./bwp1/ser1
sed -i '/150/ s//200/g' ./bwp1/ser2
sed -i '/150/ s//100/g' ./bwp1/mon1
sed -i '/150/ s//200/g' ./bwp1/mon2
sed -i '/150/ s//100/g' ./bwp1/san1
sed -i '/150/ s//200/g' ./bwp1/san2

#swap out the title tags:
sed -i '/bwp2/ s//m00/1' ./bwp1/mon1.5
sed -i '/bwp2/ s//m0/1' ./bwp1/mon
sed -i '/bwp2/ s//mSing/1' ./bwp1/mon1
sed -i '/bwp2/ s//mDub/1' ./bwp1/mon2
sed -i '/bwp2/ s//Untitled00/1' ./bwp1/ser1.5
sed -i '/bwp2/ s//Untitled0/1' ./bwp1/ser
sed -i '/bwp2/ s//Sing/1' ./bwp1/ser1
sed -i '/bwp2/ s//Dub/1' ./bwp1/ser2
sed -i '/bwp2/ s//s00/1' ./bwp1/san1.5
sed -i '/bwp2/ s//s0/1' ./bwp1/san
sed -i '/bwp2/ s//sSing/1' ./bwp1/san1
sed -i '/bwp2/ s//sDub/1' ./bwp1/san2

#swap out the internal name 
#adjust for file and name (and remove the #):
#sed -i '/top one is tab tag/ s//newinternal/1' ./bwp1/san
#sed -i '/top one is tab tag/ s//newinternal/1' ./bwp1/san1.5
#sed -i '/top one is tab tag/ s//newinternal/1' ./bwp1/san1
#sed -i '/top one is tab tag/ s//newinternal/1' ./bwp1/san2	

#dual launchers (copy and adjust):
echo $'#!/bin/sh
exec defaulttexteditor \"\$@\"| exec defaultbrowser \"\$@\"
' > ./bwp1/def
chmod 755 ./bwp1/def
echo $'#!/bin/sh
exec geany -i \"\$@\"| exec palemoon \"\$@\"
' > ./bwp1/gip
chmod 755 ./bwp1/gip 
" >  /root/my-applications/bin/bwpt
chmod 755 /root/my-applications/bin/bwpt
#create base template directory in ...mc and ...Templates, add a single template
#to the right click to go with the whole set option...adjust to suit your needs
#right click available, and terminal command to make full set 
#in a given dir. is now "bwpt" 
#script's an update/plugin for the mini word processor in the mcc utillity (as opposed to 
#the one in nwp or the one in usr/local/bwp or the one in root/my-apps/bbwp), but with the
#directory that houses the drag2 scripts to make copies on your machine, you can use this
#as a stand alone:
mkdir -p /root/my-applications/mc 
cd /root/my-applications/mc
bwpt
cd /root/.config/rox.sourceforge.net/Templates/
bwpt
cp -f /root/.config/rox.sourceforge.net/Templates/bwp1/ser1.5 /root/.config/rox.sourceforge.net/Templates/1.5ser 

the following will make a geany vtg sheet for it (with some general tips and explanation):
echo $'


right click or ctrl+shift+o in geany to use this document as a set of links/table of contents.

/root/my-applications/mc/bwp1/def
/root/my-applications/mc/bwp1/gip
/root/my-applications/mc/bwp1/mon
/root/my-applications/mc/bwp1/mon1
/root/my-applications/mc/bwp1/mon1.5
/root/my-applications/mc/bwp1/mon2
/root/my-applications/mc/bwp1/san
/root/my-applications/mc/bwp1/san1
/root/my-applications/mc/bwp1/san1.5
/root/my-applications/mc/bwp1/san2
/root/my-applications/mc/bwp1/ser
/root/my-applications/mc/bwp1/ser1
/root/my-applications/mc/bwp1/ser1.5
/root/my-applications/mc/bwp1/ser2

if you\'ve got the nwp or vtg installed, click the cauliflower or alt+z (or v in launcher) with cursor
on a line below will launch that command

open all in geany:
geany /root/my-applications/mc/bwp1/def /root/my-applications/mc/bwp1/gip /root/my-applications/mc/bwp1/mon /root/my-applications/mc/bwp1/mon1 /root/my-applications/mc/bwp1/mon1.5 /root/my-applications/mc/bwp1/mon2 /root/my-applications/mc/bwp1/san /root/my-applications/mc/bwp1/san1 /root/my-applications/mc/bwp1/san1.5 /root/my-applications/mc/bwp1/san2 /root/my-applications/mc/bwp1/ser /root/my-applications/mc/bwp1/ser1 /root/my-applications/mc/bwp1/ser1.5 /root/my-applications/mc/bwp1/ser2


open all in a new instance of geany:
geany -i /root/my-applications/mc/bwp1/def /root/my-applications/mc/bwp1/gip /root/my-applications/mc/bwp1/mon /root/my-applications/mc/bwp1/mon1 /root/my-applications/mc/bwp1/mon1.5 /root/my-applications/mc/bwp1/mon2 /root/my-applications/mc/bwp1/san /root/my-applications/mc/bwp1/san1 /root/my-applications/mc/bwp1/san1.5 /root/my-applications/mc/bwp1/san2 /root/my-applications/mc/bwp1/ser /root/my-applications/mc/bwp1/ser1 /root/my-applications/mc/bwp1/ser1.5 /root/my-applications/mc/bwp1/ser2

open all in default browser:

open the rox folder:
rox /root/my-applications/mc/bwp1/def /root/my-applications/mc/bwp1/gip /root/my-applications/mc/bwp1/mon /root/my-applications/mc/bwp1/mon1 /root/my-applications/mc/bwp1/mon1.5 /root/my-applications/mc/bwp1/mon2 /root/my-applications/mc/bwp1/san /root/my-applications/mc/bwp1/san1 /root/my-applications/mc/bwp1/san1.5 /root/my-applications/mc/bwp1/san2 /root/my-applications/mc/bwp1/ser /root/my-applications/mc/bwp1/ser1 /root/my-applications/mc/bwp1/ser1.5 /root/my-applications/mc/bwp1/ser2

open a given file from /root/my-applications/mc/bwp1/ in leafpad:

leafpad /root/my-applications/mc/bwp1/def
leafpad /root/my-applications/mc/bwp1/gip
leafpad /root/my-applications/mc/bwp1/mon
leafpad /root/my-applications/mc/bwp1/mon1
leafpad /root/my-applications/mc/bwp1/mon1.5
leafpad /root/my-applications/mc/bwp1/mon2
leafpad /root/my-applications/mc/bwp1/san
leafpad /root/my-applications/mc/bwp1/san1
leafpad /root/my-applications/mc/bwp1/san1.5
leafpad /root/my-applications/mc/bwp1/san2
leafpad /root/my-applications/mc/bwp1/ser
leafpad /root/my-applications/mc/bwp1/ser1
leafpad /root/my-applications/mc/bwp1/ser1.5
leafpad /root/my-applications/mc/bwp1/ser2

open all in palemoon:
palemoon /root/my-applications/mc/bwp1/def /root/my-applications/mc/bwp1/gip /root/my-applications/mc/bwp1/mon /root/my-applications/mc/bwp1/mon1 /root/my-applications/mc/bwp1/mon1.5 /root/my-applications/mc/bwp1/mon2 /root/my-applications/mc/bwp1/san /root/my-applications/mc/bwp1/san1 /root/my-applications/mc/bwp1/san1.5 /root/my-applications/mc/bwp1/san2 /root/my-applications/mc/bwp1/ser /root/my-applications/mc/bwp1/ser1 /root/my-applications/mc/bwp1/ser1.5 /root/my-applications/mc/bwp1/ser2

___
to get a table of contents/clickable index of these files for a browser launch, use their base directory:

defaultbrowser /root/my-applications/mc/bwp1/
palemoon /root/my-applications/mc/bwp1/
defaultbrowser /root/.config/rox.sourceforge.net/Templates/bwp1/ /root/my-applications/mc/bwp1/
palemoon /root/.config/rox.sourceforge.net/Templates/bwp1/ /root/my-applications/mc/bwp1/
firefox /root/.config/rox.sourceforge.net/Templates/bwp1/
palemoon /root/.config/rox.sourceforge.net/Templates/bwp1/

(highlight groups of files and paste in their paths, use space (literally type a space--i don\'t know off hand the regex for space...\s?...and substitute it with a \n in the find and replace boxes to swap what you get so it looks like the leafpad arrangement above (i used extend select and typed leafpad after that). most programs will respond to vtging the way the selection deposits it in a file (space rather than line delimited. i.e. usually selecting, middle clicking, and then adding the program followed by a space at the beginning of the line is enough "programming"/arranging of text.

' > /root/my-applications/mc/bwp4vtg
the vtg sheet being made is a plain text file mostly for a set location, but it's not difficult to do the equivalent for others (sheet took a few minutes to make and a few more to turn into content-generated-by-script (cnt commant, scz command, and using a bunch of backslashes (\) to undo my habit of using apostrophes in the comments...dollar signs also need it...things got sandwiched by the command so i had to also do it for quotation marks...so that needed to be run three times, but overall it's a fairly quick process (and if you want, getting the commands on the jwm menus takes a little copying and editing of a few .desktop files and the jwm -reload command (i usually make little scripts for the stuff in the nwp folder (ll defaults to making stuff there, ch defaults to setting permissions there, but start with scz to make a plain file a script).

ll = leafpad launcher in the shift plus spacebar (main, p, pwn) launcher
gl = geany
(^give a title to your command)
scz = print out the shebang
ch = set permissions for it


(more on that in another post).

____

i'll probably post the non generated generator version (the bwpt script that's made by mccwp-bwp (what that first script is called on my machine at the moment) and makes the bwp1 folder of templates ) at some point since it's easier to edit and read--there was supposed to be an "auxer" to go with the previous version, but it got shelved a bit so that i can "bwpt" a directory...(and it's basically just a slightly preset version of copying vtg commands to files so you can launch them with desktop files and optionally send them to the windows manager menus like i hinted at with the gl ll scz ch stuff above).

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

wasn't previously a problem, but now unlabled html files are

#60 Post by Puppus Dogfellow »

script and vtg sheet above apparently need the files made marked as html for some of the browsers at least some of the time, so i'll reup the two files from above with the fixes. to do it manually (if you've noticed the content is suddenly not editable), it's a bunch of swap and replaces...end lines (\n) for .html\n
...and [fontname][space]...---be back in a bit. sorry for the inconvenience.

---
here's the first bit:

Code: Select all


#!/bin/sh

echo $"

#!/bin/sh
#bwper
mkdir -p ./bwp1
#mkdir -p ./tasks
echo $'
<!--
   thiswordprocessor.html
  (/micro anuupuus/mini-bwp/Untitled0)
 file as word processor template maker
-->
<!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>bwp2</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: 150%\" align=\"justify\"><font face=\"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: 150%\" align=\"justify\">justified area<br><br></p>
<p style=\"margin-bottom: 0in; line-height: 150%\" align=\"center\">centered<br><br></p>
<p style=\"margin-bottom: 0in; line-height: 150%\" align=\"left\">left aligned<br><br></p>

<p style=\"margin-bottom: 0in; line-height: 150%\" align=\"right\">right aligned<br><br></p>
<p style=\"margin-bottom: 0in; line-height: 150%\" 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,x,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>
<!--use file:/// for your files (for tables of contents, long term convenience, etc) and http:// for websites  (second occurence of path above is text that shows--could be anything, but use &gt: < to >< in plain text mode outside the comments (you can paste them into the browser view as you\'d expect with a regular word processor, but it won\'t work in straight up html mode.)-->

<br>insert<p style=\"margin-bottom: 0in; line-height: 150%\" align=\"left\"><font color=\"#159A5E\"><par style=\"font-size: 8pt; color:white; page-break-after: always\"></par></font> <br><br>
in text editor view wherever you want to force a page break.
<br><br>
</p>
<br>
<h1>heading 1</h1>
<h2>heading 2</h2>
<h3>heading 3</h3>
<h4>heading 4</h4>
<h5>heading 5</h5>

<p style=\"margin-bottom: 0in; line-height: 150%\" align=\"justify\"><br><br>
<br>
<!--this is a comment. anything between arrows like these is hidden in browser and pdf download/print preview mode. -->
<!--

this is another comment. you can have as many as you like and they can go on indefinitely.
(you can type here and paste into browser view for the faster saves and more natural typing environment, but remember to keep track of your reloads and refreshes as well as your saves so you don\'t end up undoing what you\'ve done)
-->

<!--  get rid of the html in the title if the text editor has color coding for code and you find it annoying


Puppus Dogfellow, 5/5/18.
-->
<!--teach yourself html and more:
 https://www.w3schools.com/html/html_paragraphs.asp

alter this document as a new base template and/or make copies for backup. search and swap/find and replace 150 for 200 or 100 to change spacing from 1.5 to 2 or 1. do the same with serif to change font (mono and sans are two that work in testing).
  -->

</p>
<p style=\"margin-bottom: 0in; line-height: 150%\" align=\"justify\">to stick to working with (mostly) regular text files, paste your text into the word processor file for print preview, setting the formatting, and downloading either the html or pdf version of that stage. browser window text is scalable, but for reference, here\'s some nonscalable text: <br>
</p><br>
<br>
 <p style=\"font-size: 12pt; color:black; font-weight:normal; font-family: serif\">your serif 12 text here</p><br>
 <p style=\"font-size: 12pt; color:#5126D2; font-weight:normal; font-family: mono\">your mono 12 text here</p><br>
 <p style=\"font-size: 12pt; color:black; font-weight:normal; font-family: sans\">your sans 12 text here</p><br>



<!-- <br><br>

see the commented out bits (they\'ll be between arrows like these) in text editor mode for more tips (they\'re not visible in browser mode. change the name that appears in the tab and the internal document name while you\'re there).
<br>

to focus more on browser use than text editor mode, make a copy of the appropriate template and rename it as your working document. open both with a browser and bookmark. reload the template if you\'ve made a mess of the formatting or preferred the way it was before you started to get the hang of things.
<br>-->
<span style=\"font-size: 12pt; color:black; font-weight:normal; font-family: serif\">
12 point serif

</span>
<span style=\"font-size: 12pt; color:black; font-weight:regular condensed; font-family: sans\">

12point sans

</span>
<span style=\"font-size: 12pt; color:black; font-weight:regular condensed; font-family: mono\">

12 pt mono (no illustration of custom color code this time--use gcolor2 or your text editor\'s color picker to customize via the six digit code that follows the <i>color:</i> bit(s) you find in the html version(s)).

<br>

<br>
<br>
your <a href=\"file:///root/my-applications/mc/bwp1/\" target=\"_blank\">templates are here</a> and  <a href=\"file:///root/.config/rox.sourceforge.net/Templates/bwp1/\" target=\"_blank\">here if you\'ve </a>installed (a/some version/s of) thiswordprocessor.html through mccwp-bwp (or its terminal dump-in post/s).
<br>


</body>

</html>
' > ./bwp1/ser.html
#prep ser as as mon and san:
cp -f ./bwp1/ser ./bwp1/mon.html
cp -f ./bwp1/ser ./bwp1/san.html
sed -i 's/serif/sans/1' ./bwp1/san.html
sed -i 's/serif/sans/1' ./bwp1/san.html
sed -i 's/serif/mono/1' ./bwp1/mon.html
sed -i 's/serif/mono/1' ./bwp1/mon.html
#make three copies (x3) of base template: working, line spacing at 1 and 2:
cp -f ./bwp1/ser.html ./bwp1/ser1.5.html
cp -f ./bwp1/ser.html ./bwp1/ser1.html
cp -f ./bwp1/ser.html ./bwp1/ser2.html
cp -f ./bwp1/mon.html ./bwp1/mon1.5.html
cp -f ./bwp1/mon.html ./bwp1/mon1.html
cp -f ./bwp1/mon.html ./bwp1/mon2.html
cp -f ./bwp1/san.html ./bwp1/san1.5.html
cp -f ./bwp1/san.html ./bwp1/san1.html
cp -f ./bwp1/san.html ./bwp1/san2.html
#have the line spacing of ser1 and ser2 (etc) reflect their names:
sed -i '/150/ s//100/g' ./bwp1/ser1.html
sed -i '/150/ s//200/g' ./bwp1/ser2.html
sed -i '/150/ s//100/g' ./bwp1/mon1.html
sed -i '/150/ s//200/g' ./bwp1/mon2.html
sed -i '/150/ s//100/g' ./bwp1/san1.html
sed -i '/150/ s//200/g' ./bwp1/san2.html

#swap out the title tags:
sed -i '/bwp2/ s//m00/1' ./bwp1/mon1.5.html
sed -i '/bwp2/ s//m0/1' ./bwp1/mon.html
sed -i '/bwp2/ s//mSing/1' ./bwp1/mon1.html
sed -i '/bwp2/ s//mDub/1' ./bwp1/mon2.html
sed -i '/bwp2/ s//Untitled00/1' ./bwp1/ser1.5.html
sed -i '/bwp2/ s//Untitled0/1' ./bwp1/ser.html
sed -i '/bwp2/ s//Sing/1' ./bwp1/ser1.html
sed -i '/bwp2/ s//Dub/1' ./bwp1/ser2.html
sed -i '/bwp2/ s//s00/1' ./bwp1/san1.5.html
sed -i '/bwp2/ s//s0/1' ./bwp1/san.html
sed -i '/bwp2/ s//sSing/1' ./bwp1/san1.html
sed -i '/bwp2/ s//sDub/1' ./bwp1/san2.html

#swap out the internal name
#adjust for file and name (and remove the #):
#sed -i '/top one is tab tag/ s//newinternal/1' ./bwp1/san.html
#sed -i '/top one is tab tag/ s//newinternal/1' ./bwp1/san1.5.html
#sed -i '/top one is tab tag/ s//newinternal/1' ./bwp1/san1.html
#sed -i '/top one is tab tag/ s//newinternal/1' ./bwp1/san2   .html

#dual launchers (copy and adjust):
echo $'#!/bin/sh
exec defaulttexteditor \"\$@\"| exec defaultbrowser \"\$@\"
' > ./bwp1/def
chmod 755 ./bwp1/def
echo $'#!/bin/sh
exec geany -i \"\$@\"| exec palemoon \"\$@\"
' > ./bwp1/gip
chmod 755 ./bwp1/gip
" >  /root/my-applications/bin/bwpt
chmod 755 /root/my-applications/bin/bwpt
#create base template directory in ...mc and ...Templates, add a single template
#to the right click to go with the whole set option...adjust to suit your needs
#right click available, and terminal command to make full set
#in a given dir. is now "bwpt"
#script's an update/plugin for the mini word processor in the mcc utillity (as opposed to
#the one in nwp or the one in usr/local/bwp or the one in root/my-apps/bbwp), but with the
#directory that houses the drag2 scripts to make copies on your machine, you can use this
#as a stand alone:
mkdir -p /root/my-applications/mc
cd /root/my-applications/mc
bwpt
cd /root/.config/rox.sourceforge.net/Templates/
bwpt
cp -f /root/.config/rox.sourceforge.net/Templates/bwp1/ser1.5 /root/.config/rox.sourceforge.net/Templates/1.5ser.html

and here's the second bit:



echo $'


right click or ctrl+shift+o in geany to use this document as a set of links/table of contents.

/root/my-applications/mc/bwp1/def.html
/root/my-applications/mc/bwp1/gip.html
/root/my-applications/mc/bwp1/mon.html
/root/my-applications/mc/bwp1/mon1.html
/root/my-applications/mc/bwp1/mon1.5.html
/root/my-applications/mc/bwp1/mon2.html
/root/my-applications/mc/bwp1/san.html
/root/my-applications/mc/bwp1/san1.html
/root/my-applications/mc/bwp1/san1.5.html
/root/my-applications/mc/bwp1/san2.html
/root/my-applications/mc/bwp1/ser.html
/root/my-applications/mc/bwp1/ser1.html
/root/my-applications/mc/bwp1/ser1.5.html
/root/my-applications/mc/bwp1/ser2.html

if you\'ve got the nwp or vtg installed, click the cauliflower or alt+z (or v in launcher) with cursor
on a line below will launch that command

open all in geany:
geany /root/my-applications/mc/bwp1/def /root/my-applications/mc/bwp1/gip /root/my-applications/mc/bwp1/mon.html /root/my-applications/mc/bwp1/mon1.html /root/my-applications/mc/bwp1/mon1.5.html /root/my-applications/mc/bwp1/mon2.html /root/my-applications/mc/bwp1/san.html /root/my-applications/mc/bwp1/san1.html /root/my-applications/mc/bwp1/san1.5.html /root/my-applications/mc/bwp1/san2.html /root/my-applications/mc/bwp1/ser.html /root/my-applications/mc/bwp1/ser1.html /root/my-applications/mc/bwp1/ser1.5.html /root/my-applications/mc/bwp1/ser2.html


open all in a new instance of geany:
geany -i /root/my-applications/mc/bwp1/def /root/my-applications/mc/bwp1/gip /root/my-applications/mc/bwp1/mon.html /root/my-applications/mc/bwp1/mon1.html /root/my-applications/mc/bwp1/mon1.5.html /root/my-applications/mc/bwp1/mon2.html /root/my-applications/mc/bwp1/san.html /root/my-applications/mc/bwp1/san1.html /root/my-applications/mc/bwp1/san1.5.html /root/my-applications/mc/bwp1/san2.html /root/my-applications/mc/bwp1/ser.html /root/my-applications/mc/bwp1/ser1.html /root/my-applications/mc/bwp1/ser1.5.html /root/my-applications/mc/bwp1/ser2.html

open all in default browser:

open the rox folder:
rox /root/my-applications/mc/bwp1/def /root/my-applications/mc/bwp1/gip /root/my-applications/mc/bwp1/mon.html /root/my-applications/mc/bwp1/mon1.html /root/my-applications/mc/bwp1/mon1.5.html /root/my-applications/mc/bwp1/mon2.html /root/my-applications/mc/bwp1/san.html /root/my-applications/mc/bwp1/san1.html /root/my-applications/mc/bwp1/san1.5.html /root/my-applications/mc/bwp1/san2.html /root/my-applications/mc/bwp1/ser.html /root/my-applications/mc/bwp1/ser1.html /root/my-applications/mc/bwp1/ser1.5.html /root/my-applications/mc/bwp1/ser2.html

open a given file from /root/my-applications/mc/bwp1/ in leafpad:

leafpad /root/my-applications/mc/bwp1/def
leafpad /root/my-applications/mc/bwp1/gip
leafpad /root/my-applications/mc/bwp1/mon.html
leafpad /root/my-applications/mc/bwp1/mon1.html
leafpad /root/my-applications/mc/bwp1/mon1.5.html
leafpad /root/my-applications/mc/bwp1/mon2.html
leafpad /root/my-applications/mc/bwp1/san.html
leafpad /root/my-applications/mc/bwp1/san1.html
leafpad /root/my-applications/mc/bwp1/san1.5.html
leafpad /root/my-applications/mc/bwp1/san2.html
leafpad /root/my-applications/mc/bwp1/ser.html
leafpad /root/my-applications/mc/bwp1/ser1.html
leafpad /root/my-applications/mc/bwp1/ser1.5.html
leafpad /root/my-applications/mc/bwp1/ser2.html

open all in palemoon:
palemoon /root/my-applications/mc/bwp1/def /root/my-applications/mc/bwp1/gip /root/my-applications/mc/bwp1/mon.html /root/my-applications/mc/bwp1/mon1.html /root/my-applications/mc/bwp1/mon1.5.html /root/my-applications/mc/bwp1/mon2.html /root/my-applications/mc/bwp1/san.html /root/my-applications/mc/bwp1/san1.html /root/my-applications/mc/bwp1/san1.5.html /root/my-applications/mc/bwp1/san2.html /root/my-applications/mc/bwp1/ser.html /root/my-applications/mc/bwp1/ser1.html /root/my-applications/mc/bwp1/ser1.5.html /root/my-applications/mc/bwp1/ser2.html
___
to get a table of contents/clickable index of these files for a browser launch, use their base directory:

defaultbrowser /root/my-applications/mc/bwp1/
palemoon /root/my-applications/mc/bwp1/
defaultbrowser /root/.config/rox.sourceforge.net/Templates/bwp1/ /root/my-applications/mc/bwp1/
palemoon /root/.config/rox.sourceforge.net/Templates/bwp1/ /root/my-applications/mc/bwp1/
firefox /root/.config/rox.sourceforge.net/Templates/bwp1/
palemoon /root/.config/rox.sourceforge.net/Templates/bwp1/

(highlight groups of files and paste in their paths, use space (literally type a space--i don\'t know off hand the regex for space...\s?...and substitute it with a \n in the find and replace boxes to swap what you get so it looks like the leafpad arrangement above (i used extend select and typed leafpad after that). most programs will respond to vtging the way the selection deposits it in a file (space rather than line delimited. i.e. usually selecting, middle clicking, and then adding the program followed by a space at the beginning of the line is enough "programming"/arranging of text.

' > /root/my-applications/mc/bwp4vtg
to do it manually (if you've noticed the content is suddenly not editable), it's a bunch of swap and replaces...end lines (\n) for .html\n
...and [fontname][space]...

for the first chunk, that was accurate except for an extend select and typing of .html to get at some text that was nicely aligned to begin with. in the second chunk i had to do the same thing but there was more of it and they weren't nicely aligned, so i had to substitute space for line break, line break for .html plus line break, and then back out the line breaks for spaces.

...which reminds me--if you don't make the "\n" in the vtg sheet "\\n" (i.e. "escape it")it will break the line and remove itself from the text displayed.

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

Re: wasn't previously a problem, but now unlabled html files are

#61 Post by Puppus Dogfellow »

edited/improved 5/13:
script and vtg sheet above apparently need the files made marked as html for some of the browsers at least some of the time, so i'll reup the two files from above with the fixes. to do it manually (if you've noticed the content is suddenly not editable), it's a bunch of swap and replaces...end lines (\n) for .html\n
...and [fontname][space]...---be back in a bit. sorry for the inconvenience.

---
here's the first bit:

Code: Select all

[...]
[...]

to do it manually (if you've noticed the content is suddenly not editable), it's a bunch of swap and replaces...end lines (\n) for .html\n
...and [fontname][space]...

for the first chunk, that was accurate except for an extend select and typing of .html to get at some text that was nicely aligned to begin with. in the second chunk i had to do the same thing but there was more of it and the pieces not nicely aligned, so i had to substitute space for line break, line break for .html plus line break, and then swap back out the line breaks for spaces.

...which reminds me--if you don't make the "\n" in the vtg sheet "\\n" (i.e. "escape it")it will break the line and remove itself from the text displayed.

___
(oops. double post. sorry again)

but here's some knowledge/insight gained:
(and if i slowed down my efforts to edit the vtg file as fast as possible, i probably would've seen i could've just substituted " " for ".html ", but what can ya do)).
from http://murga-linux.com/puppy/viewtopic. ... 587#991587
not only a double post, but the now removed (from this post at least) script and vtg sheet were a little more messed up than i was expecting (and the fix made it worse and i ended up stepping off for a bit).

i like terminal dump updates better than pets generally, at least for my own stuff (just grabbed the icon for the pet i'm about to post by running "bwp-mc" through some code on the mcc page (thanks again to technosaurus), but this one passed the point of convenience after the fourth run through and fail, so i made it a pet.


anyway, this pet does what the original (and previous) post failed to do:

bwpt-mc.pet 5.4k

ignore the bit on the previous page--i'll post the bwpt mcbwpter was supposed to have made (and which you can mod to replace the new/working bwpt). some of the original file (still messed up and still available a post back) got moved to the pinstall script, which i'll post (copying out of the templates folder doesn't seem to work for some reason, but copying into it from the bwp1 directory that got made into it is just a few steps and you can better choose which templates become most easily accessible yourself that way).

bwpt in terminal make a bwpt1 folder in that directory (`/~ key opens the terminal in a given directory). if you're doing it from the general/main terminal, cd to the directory, then "bwpt."

sorry for the inconvenience/pet overwrites the previous errors.

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

bwp-mc, bwpt, the newer vtg for bwp sheet, and the previous

#62 Post by Puppus Dogfellow »

Code: Select all

 #tree -h on the pet:
├── [  91]  pet.specs
├── [ 274]  pinstall.sh
├── [  80]  root
│   ├── [  80]  my-applications
│   │   ├── [  60]  bin
│   │   │   └── [8.4K]  bwpt
│   │   └── [  60]  mc
│   │       └── [6.5K]  vtg-bwp-mc
│   └── [  60]  puppy-reference
│       └── [  80]  mini-icons
│           ├── [ 620]  defbwpmc.xpm
│           └── [ 620]  deflbwpmc.xpm
└── [  60]  usr
    └── [  60]  share
        └── [  60]  applications
            └── [ 304]  bwp1-mc.desktop

9 directories, 7 files
______-

bwpt:

Code: Select all

#!/bin/sh
mkdir -p ./bwp1
echo $'

<!-- 
   thiswordprocessor.html
  (/micro anuupuus/mini-bwp/Untitled0)
  
-->
<!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>bwp2</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: 150%" align="justify"><font face="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: 150%" align="justify">justified area<br><br></p>
<p style="margin-bottom: 0in; line-height: 150%" align="center">centered<br><br></p>
<p style="margin-bottom: 0in; line-height: 150%" align="left">left aligned<br><br></p>

<p style="margin-bottom: 0in; line-height: 150%" align="right">right aligned<br><br></p>
<p style="margin-bottom: 0in; line-height: 150%" 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,x,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>
<!--use file:/// for your files (for tables of contents, long term convenience, etc) and http:// for websites  (second occurence of path above is text that shows--could be anything, but use &gt: < to >< in plain text mode outside the comments (you can paste them into the browser view as you\'d expect with a regular word processor, but it won\'t work in straight up html mode.)-->

<br>insert<p style="margin-bottom: 0in; line-height: 150%" align="left"><font color="#159A5E"><par style="font-size: 8pt; color:white; page-break-after: always"></par></font> <br><br>
in text editor view wherever you want to force a page break.
<br><br>
</p>
<br>
<h1>heading 1</h1>
<h2>heading 2</h2>
<h3>heading 3</h3>
<h4>heading 4</h4>
<h5>heading 5</h5>

<p style="margin-bottom: 0in; line-height: 150%" align="justify"><br><br>
<br>
<!--this is a comment. anything between arrows like these is hidden in browser and pdf download/print preview mode. -->
<!--  

this is another comment. you can have as many as you like and they can go on indefinitely.
(you can type here and paste into browser view for the faster saves and more natural typing environment, but remember to keep track of your reloads and refreshes as well as your saves so you don\'t end up undoing what you\'ve done)
-->

<!--  get rid of the html in the title if the text editor has color coding for code and you find it annoying


Puppus Dogfellow, 5/5/18.
-->
<!--teach yourself html and more:
 https://www.w3schools.com/html/html_paragraphs.asp

alter this document as a new base template and/or make copies for backup. search and swap/find and replace 150 for 200 or 100 to change spacing from 1.5 to 2 or 1. do the same with serif to change font (mono and sans are two that work in testing). 
  -->

</p>
<p style="margin-bottom: 0in; line-height: 150%" align="justify">to stick to working with (mostly) regular text files, paste your text into the word processor file for print preview, setting the formatting, and downloading either the html or pdf version of that stage. browser window text is scalable, but for reference, here\'s some nonscalable text: <br>
</p><br>
<br>
 <p style="font-size: 12pt; color:black; font-weight:normal; font-family: serif">your serif 12 text here</p><br>
 <p style="font-size: 12pt; color:#5126D2; font-weight:normal; font-family: mono">your mono 12 text here</p><br>
 <p style="font-size: 12pt; color:black; font-weight:normal; font-family: sans">your sans 12 text here</p><br>



<!-- <br><br>

see the commented out bits (they\'ll be between arrows like these) in text editor mode for more tips (they\'re not visible in browser mode. change the name that appears in the tab and the internal document name while you\'re there).
<br>

to focus more on browser use than text editor mode, make a copy of the appropriate template and rename it as your working document. open both with a browser and bookmark. reload the template if you\'ve made a mess of the formatting or preferred the way it was before you started to get the hang of things.
<br>-->
<span style="font-size: 12pt; color:black; font-weight:normal; font-family: serif">
12 point serif

</span>
<span style="font-size: 12pt; color:black; font-weight:regular condensed; font-family: sans">

12point sans

</span>
<span style="font-size: 12pt; color:black; font-weight:regular condensed; font-family: mono">

12 pt mono (no illustration of custom color code this time--use gcolor2 or your text editor\'s color picker to customize via the six digit code that follows the <i>color:</i> bit(s) you find in the html version(s)).

<br>

your <a href="file:///root/my-applications/mc/bwp1/" target="_blank">templates are here</a> and  <a href="file:///root/.config/rox.sourceforge.net/Templates/bwp1/" target="_blank">here if you\'ve </a>installed (a/some version/s of) thiswordprocessor.html through mccwp-bwp (or its terminal dump-in post/s). 


</body>

</html>
' > ./bwp1/ser.html

#prep ser as as mon and san:
cp -f ./bwp1/ser.html ./bwp1/mon.html
cp -f ./bwp1/ser.html ./bwp1/san.html 
sed -i 's/serif/sans/1' ./bwp1/san.html
sed -i 's/serif/sans/1' ./bwp1/san.html
sed -i 's/serif/mono/1' ./bwp1/mon.html
sed -i 's/serif/mono/1' ./bwp1/mon.html 



#make three copies (x3) of base template: working, line spacing at 1 and 2:
cp -f ./bwp1/san.html ./bwp1/san1.5.html
cp -f ./bwp1/san.html ./bwp1/san1.html
cp -f ./bwp1/san.html ./bwp1/san2.html
cp -f ./bwp1/mon.html ./bwp1/mon1.5.html
cp -f ./bwp1/mon.html ./bwp1/mon1.html
cp -f ./bwp1/mon.html ./bwp1/mon2.html
cp -f ./bwp1/ser.html ./bwp1/ser1.5.html
cp -f ./bwp1/ser.html ./bwp1/ser1.html
cp -f ./bwp1/ser.html ./bwp1/ser2.html

#have the line spacing of ser1 and ser2 (etc) reflect their names:
sed -i '/150/ s//100/g' ./bwp1/ser1.html
sed -i '/150/ s//200/g' ./bwp1/ser2.html
sed -i '/150/ s//100/g' ./bwp1/san1.html
sed -i '/150/ s//200/g' ./bwp1/san2.html
sed -i '/150/ s//100/g' ./bwp1/mon1.html
sed -i '/150/ s//200/g' ./bwp1/mon2.html
#swap out the title tags:

sed -i '/bwp2/ s//m00/1' ./bwp1/mon1.5.html
sed -i '/bwp2/ s//m0/1' ./bwp1/mon.html
sed -i '/bwp2/ s//mSing/1' ./bwp1/mon1.html
sed -i '/bwp2/ s//mDub/1' ./bwp1/mon2.html
sed -i '/bwp2/ s//Untitled00/1' ./bwp1/ser1.5.html
sed -i '/bwp2/ s//Untitled0/1' ./bwp1/ser.html
sed -i '/bwp2/ s//Sing/1' ./bwp1/ser1.html
sed -i '/bwp2/ s//Dub/1' ./bwp1/ser2.html
sed -i '/bwp2/ s//s00/1' ./bwp1/san1.5.html
sed -i '/bwp2/ s//s0/1' ./bwp1/san.html
sed -i '/bwp2/ s//sSing/1' ./bwp1/san1.html
sed -i '/bwp2/ s//sDub/1' ./bwp1/san2.html 

#swap out the internal name
#adjust for file and name (and remove the #): 
#sed -i '/top one is tab tag/ s//newinternal/g' ./bwp1/ser.html
#sed -i '/top one is tab tag/ s//newinternal/g' ./bwp1/ser1.5.html
#sed -i '/top one is tab tag/ s//newinternal/g' ./bwp1/ser1.html
#sed -i '/top one is tab tag/ s//newinternal/g' ./bwp1/ser2.html


#dual launchers (copy and adjust):
echo $'#!/bin/sh 
exec defaulttexteditor "$@"| exec defaultbrowser "$@"
' > ./bwp1/def
chmod 755 ./bwp1/def
echo $'#!/bin/sh 
exec geany -i "$@"| exec palemoon "$@"
' > ./bwp1/gip
chmod 755 ./bwp1/gip

Code: Select all

pinstall
#!/bin/sh
#as a stand alone:
mkdir -p /root/my-applications/mc
cd /root/.config/rox.sourceforge.net/Templates/
bwpt
cd /root/my-applications/mc
bwpt
cp -f /root/.config/rox.sourceforge.net/Templates/bwp1/ser1.5.html /root/.config/rox.sourceforge.net/Templates/1.5ser.html 

vtg-bwp-mc:

Code: Select all

(file is based around a convenience made for geany as it's set up in puppy linux. if you haven't got the vtg or know the deal about the cauliflowers machue, you can make desktop files or terminal dumps from the stuff. substitute anything that can open plain text files for the geany and leafpad bit. at present (5/12/18), the browser based word processor still needs a text editor (or text editor function--the bwp series uses a text box for it, but text editors are quicker and have advantages in addition to the those highlighted below) to manually force page breaks, change the tab tag, and enter a tab space with the tab key.)

right click or ctrl+shift+o in geany to use this document as a set of links/table of contents.

/root/my-applications/mc/bwp1/def 
/root/my-applications/mc/bwp1/gip 
/root/my-applications/mc/bwp1/mon.html
/root/my-applications/mc/bwp1/mon1.html
/root/my-applications/mc/bwp1/mon1.5.html
/root/my-applications/mc/bwp1/mon2.html
/root/my-applications/mc/bwp1/san.html
/root/my-applications/mc/bwp1/san1.html
/root/my-applications/mc/bwp1/san1.5.html
/root/my-applications/mc/bwp1/san2.html
/root/my-applications/mc/bwp1/ser.html
/root/my-applications/mc/bwp1/ser1.html
/root/my-applications/mc/bwp1/ser1.5.html
/root/my-applications/mc/bwp1/ser2.html
/root/my-applications/mc/vtg-bwp-mc

if you've got the nwp or vtg installed, click the cauliflower or alt+z (or v in launcher) with cursor
on a line below will launch that command

open all in geany:
geany /root/my-applications/mc/bwp1/def /root/my-applications/mc/bwp1/gip /root/my-applications/mc/bwp1/mon.html /root/my-applications/mc/bwp1/mon1.html /root/my-applications/mc/bwp1/mon1.5.html /root/my-applications/mc/bwp1/mon2.html /root/my-applications/mc/bwp1/san.html /root/my-applications/mc/bwp1/san1.html /root/my-applications/mc/bwp1/san1.5.html /root/my-applications/mc/bwp1/san2.html /root/my-applications/mc/bwp1/ser.html /root/my-applications/mc/bwp1/ser1.html /root/my-applications/mc/bwp1/ser1.5.html /root/my-applications/mc/bwp1/ser2.html /root/my-applications/mc/vtg-bwp-mc


open all in a new instance of geany:
geany -i /root/my-applications/mc/bwp1/def /root/my-applications/mc/bwp1/gip /root/my-applications/mc/bwp1/mon.html /root/my-applications/mc/bwp1/mon1.html /root/my-applications/mc/bwp1/mon1.5.html /root/my-applications/mc/bwp1/mon2.html /root/my-applications/mc/bwp1/san.html /root/my-applications/mc/bwp1/san1.html /root/my-applications/mc/bwp1/san1.5.html /root/my-applications/mc/bwp1/san2.html /root/my-applications/mc/bwp1/ser.html /root/my-applications/mc/bwp1/ser1.html /root/my-applications/mc/bwp1/ser1.5.html /root/my-applications/mc/bwp1/ser2.html /root/my-applications/mc/vtg-bwp-mc

open all in default browser:

open the rox folder:
rox /root/my-applications/mc/bwp1/def /root/my-applications/mc/bwp1/gip /root/my-applications/mc/bwp1/mon.html /root/my-applications/mc/bwp1/mon1.html /root/my-applications/mc/bwp1/mon1.5.html /root/my-applications/mc/bwp1/mon2.html /root/my-applications/mc/bwp1/san.html /root/my-applications/mc/bwp1/san1.html /root/my-applications/mc/bwp1/san1.5.html /root/my-applications/mc/bwp1/san2.html /root/my-applications/mc/bwp1/ser.html /root/my-applications/mc/bwp1/ser1.html /root/my-applications/mc/bwp1/ser1.5.html /root/my-applications/mc/bwp1/ser2.html /root/my-applications/mc/vtg-bwp-mc

open a given file from /root/my-applications/mc/bwp1/ in leafpad:
leafpad /root/my-applications/mc/vtg-bwp-mc
leafpad /root/my-applications/mc/bwp1/def
leafpad /root/my-applications/mc/bwp1/gip
leafpad /root/my-applications/mc/bwp1/mon.html
leafpad /root/my-applications/mc/bwp1/mon1.html
leafpad /root/my-applications/mc/bwp1/mon1.5.html
leafpad /root/my-applications/mc/bwp1/mon2.html
leafpad /root/my-applications/mc/bwp1/san.html
leafpad /root/my-applications/mc/bwp1/san1.html
leafpad /root/my-applications/mc/bwp1/san1.5.html
leafpad /root/my-applications/mc/bwp1/san2.html
leafpad /root/my-applications/mc/bwp1/ser.html
leafpad /root/my-applications/mc/bwp1/ser1.html
leafpad /root/my-applications/mc/bwp1/ser1.5.html
leafpad /root/my-applications/mc/bwp1/ser2.html

open all in palemoon:
#/root/my-applications/mc/bwp1/def /root/my-applications/mc/bwp1/gip /root/my-applications/mc/vtg-bwp-mc
palemoon /root/my-applications/mc/bwp1/mon.html /root/my-applications/mc/bwp1/mon1.html /root/my-applications/mc/bwp1/mon1.5.html /root/my-applications/mc/bwp1/mon2.html /root/my-applications/mc/bwp1/san.html /root/my-applications/mc/bwp1/san1.html /root/my-applications/mc/bwp1/san1.5.html /root/my-applications/mc/bwp1/san2.html /root/my-applications/mc/bwp1/ser.html /root/my-applications/mc/bwp1/ser1.html /root/my-applications/mc/bwp1/ser1.5.html /root/my-applications/mc/bwp1/ser2.html

___
to get a table of contents/clickable index of these files for a browser launch, use their base directory:

defaultbrowser /root/my-applications/mc/bwp1/
palemoon /root/my-applications/mc/bwp1/
defaultbrowser /root/.config/rox.sourceforge.net/Templates/bwp1/ /root/my-applications/mc/bwp1/
palemoon /root/.config/rox.sourceforge.net/Templates/bwp1/ /root/my-applications/mc/bwp1/
firefox /root/.config/rox.sourceforge.net/Templates/bwp1/
palemoon /root/.config/rox.sourceforge.net/Templates/bwp1/
seamonkey /root/.config/rox.sourceforge.net/Templates/bwp1/ /root/my-applications/mc/bwp1/

(highlight groups of files and paste in their paths, use space (literally type a space--i don't know off hand the regex for space...\s?...and substitute it with a 
in the find and replace boxes to swap what you get so it looks like the leafpad arrangement above (i used extend select and typed leafpad after that). most programs will respond to vtging the way the selection deposits it in a file (space rather than line delimited. i.e. usually selecting, middle clicking, and then adding the program followed by a space at the beginning of the line is enough "programming"/arranging of text.


---vtg---

to vtg bwp1s about, substitute path in line below:

cd /path/to/dir; bwpt

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

---mcc---
http://murga-linux.com/puppy/viewtopic.php?p=884162#884162

mkdir -p /file/bwp1/

cp -au /root/my-applications/mc/bwp1/ /file/bwp1/

^upcoming nwp shortcuts or overwrites. arc and ark are duplicates, so the above will likely end up as ark next pet or update (leaving arc as backup/archive default for bbwp)(this is the bwp)(or one of 12 versions of thiswordprocessor.html/wordprocessor.html)

nwp thread: http://murga-linux.com/puppy/viewtopic.php?p=850270#850270
A NWP/A NWPUS--A Noob's Word Processor and Utilities Suite   

here it is as an attachment:
Attachments
bwpt-mc.pet
(5.32 KiB) Downloaded 270 times

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

themes and a tip

#63 Post by Puppus Dogfellow »

i like geany's right click /open/file/given/full/path/ feature, but often found myself using the vtg and geany -i [path] to open file in a new window. turns out there's a faster way. go to Edit>Preferences>Tools and enter

Code: Select all

geany -i %s
in the box labeled Command, and you can do it throught right click>Context Action (you could obviously program it to do something else with the file or text, but this is a use for that menu item).

------
geanythemes.pet

with the above pet (compatible with 1.22 and above) you can change geany's color scheme through view>change color scheme (or alt+v, c).

enjoy.
:D



screenshots:
https://www.geany.org/download/themes/

Post Reply