textroom

Requests go here. If you fill a request, give it a new thread in the appropriate category and then link to it in the request thread.
Post Reply
Message
Author
User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

textroom

#1 Post by Lobster »

We have one full page text editor (I put it in Tmxxine twinkle)

Maybe this is better? Tried installing in 5.2 pre release as a deb but missing dependencies . . .

http://code.google.com/p/textroom/
http://code.google.com/p/textroom/downloads/list
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

seaside
Posts: 934
Joined: Thu 12 Apr 2007, 00:19

#2 Post by seaside »

To: The Maine Lobster
Subj: In House Use

No need to outsource. Now you can have a 1 room text editor in seconds! See below for the 1den production of... Proom.

Code: Select all

#!/bin/sh

echo 'style "proom" {
  font_name             = "DejaVu Sans 12"
  bg[NORMAL]			= "black"
  base[NORMAL]			= "black"
  text[NORMAL]			= "green"
  }
class "*t*" style "proom"' > /tmp/gtkrc
export GTK2_RC_FILES=/tmp/gtkrc:/root/.gtkrc-2.0 

export Proom='
<window title="Proom" width-request="1250" height-request="750" decorated="false">
<edit wrap-mode="1" left-margin="300" right-margin="300"><variable>EDIT</variable></edit> 
<action signal="key-press-event">echo "$EDIT" >/root/mystuff</action>
 </window>'
gtkdialog3 -p Proom 

Just hit Alt-F4 to save and quit.

Cheers,
s
(Be sure to air out Proom periodically) :D :D

User avatar
dejan555
Posts: 2798
Joined: Sun 30 Nov 2008, 11:57
Location: Montenegro
Contact:

#3 Post by dejan555 »

This actually looks kinda cool :)
Not exactly my type of editor but fun to play with, thanks. ;)
puppy.b0x.me stuff mirrored [url=https://drive.google.com/open?id=0B_Mb589v0iCXNnhSZWRwd3R2UWs]HERE[/url] or [url=http://archive.org/details/Puppy_Linux_puppy.b0x.me_mirror]HERE[/url]

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#4 Post by Lobster »

No need to outsource.
Cool?
It makes Antartica look tropical (may soon happen)

This is why I love Puppy
Seaside has done what other distros require
massive resources to achieve.

My sister has started a writing course with the OU
this will be ideal :)
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

aragon
Posts: 1698
Joined: Mon 15 Oct 2007, 12:18
Location: Germany

#5 Post by aragon »

Now if you do that one with a file open dialog and a save dialog that does not destoy the previous notes, it would be very nice...

Aragon

seaside
Posts: 934
Joined: Thu 12 Apr 2007, 00:19

#6 Post by seaside »

aragon wrote:Now if you do that one with a file open dialog and a save dialog that does not destoy the previous notes, it would be very nice...

Aragon
Aragon,

Perhaps... yet out of the concept intended. By adding buttons and toolbars, it becomes just another editor when plenty of excellent and far better ones abound. Change the background, foreground, margins, run maximized and that's almost it.

The allure of this "black hole" background with a center of "soothing green text" is supposedly to draw out a writer's muse in allowing a gush of ideas and words to come forth in a continous stream, without any distractions. Then, after the burst has been fulfilled, that gem of information would be edited in a REAL editor.

Does that actually work better for writers?

I don't know.... you'll have to ask Lobster. :D

Regards,
s

seaside
Posts: 934
Joined: Thu 12 Apr 2007, 00:19

#7 Post by seaside »

Just to follow-on, here's a way to express and then impress.

- Get all those great thought streams out in a "Pomodoro" concentrated burst in a soft green environment.

- Hit Alt-F4 and your gems are now appearing in Geany - ready for a wordly messaging.

Code: Select all

#!/bin/sh

echo 'style "proom" {
  font_name             = "DejaVu Sans 12"
  bg[NORMAL]			= "black"
  base[NORMAL]			= "black"
  text[NORMAL]			= "green"
  }
class "*t*" style "proom"' > /tmp/gtkrc
export GTK2_RC_FILES=/tmp/gtkrc:/root/.gtkrc-2.0 

export Proom='
<window title="Proom" width-request="1250" height-request="750" decorated="false">
<edit wrap-mode="1" left-margin="300" right-margin="300"><variable>EDIT</variable></edit> 
<action signal="delete-event">echo "$EDIT" >/root/mystuff</action>
<action signal="delete-event">geany /root/mystuff</action>
 </window>'
gtkdialog3 -p Proom 

This program gets 100WPM on a pound of thought.... :D

Cheers,
s

scsijon
Posts: 1596
Joined: Thu 24 May 2007, 03:59
Location: the australian mallee
Contact:

#8 Post by scsijon »

lobster, anyone?

has anyone repackaged this as a .pet yet, if not i'll have a go at a complete .pet (inc dependancies) while waiting for the programmers of another package i'm working with to sort out a problem I found for me in their next release beta.

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#9 Post by Lobster »

scsijon a pet would be great. 8)

Such zero distraction systems do work.
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

scsijon
Posts: 1596
Joined: Thu 24 May 2007, 03:59
Location: the australian mallee
Contact:

#10 Post by scsijon »

consider it under way

Taavi
Posts: 146
Joined: Fri 10 Mar 2006, 19:23
Location: Suomi, Finland

#11 Post by Taavi »

This is just the best writing app I have ever seen. As doing some kind of writings myself I share seaside's thoughts about the editors. When you write you just write and anything else is unnecessary. Usually there is so much on the screen to ruin your concentration. And it is so easy to start playing with your superdeluxewordprocessor and then you just notice that all those undying words you had in mind have disappeared for ever.

I modified it a little. This version has hotkey alt+m to save text and clear the screen. It saves your memorable lines to a directory named by weeknumber in the file named with time stamp ymdHMS. And now you just keep on going, empty your mind totally, move around from subject to an other, alt+m and no need to stop.

I have

Code: Select all

<Group>
<Class>teksturi</Class>
  <Option>nolist</Option>
  <Option>noborder</Option>
  <Option>layer:12</Option>
</Group>
in /etc/xdg/templates/_root_.jwmrc to get real full screen.

Code: Select all

#!/bin/sh

 echo 'style "proom" {
   font_name             = "DejaVu Sans 14"
   bg[NORMAL]         = "black"
   base[NORMAL]         = "black"
   text[NORMAL]         = "green"
   }
 class "*t*" style "proom"' > /tmp/gtkrc

 export GTK2_RC_FILES=/tmp/gtkrc

mkdir -p /mnt/home/texts/$(date +%W)

 export Proom='
<window title="Proom" width-request="1250" height-request="750" decorated="false">
<hbox>
<hbox visible="false">
<button use-underline="true">
<label>_Muistiin</label>
<action>echo "$EDIT" >/mnt/home/texts/$(date +%W)/$(date +%y%m%d%H%M%S)</action>
<action>clear:EDIT</action>
</button>
</hbox>
<edit wrap-mode="2" left-margin="250" right-margin="250" cursor-visible="false"><variable>EDIT</variable></edit>
</hbox>
</window>'
gtkdialog3 --class=teksturi -p Proom
And then you have numbered directories stuffed with files which names don't tell you nothing.

For this situation I tried to build a browser. It gets six first word of every file for the selector so you get a hint of what treasures are hiding there. It browses those numbered directories. And it doesn't look good.

Notice here that I'm not a professonal in scripting and with gtkdialog. I guess I've done things funny and wrong ways. But I throw it here, so someone more professonal maybe take a look at it and clears and fixes this. And I will learn again something new. But I like this idea, yes.

Code: Select all

#!/bin/bash

#Function to open texts in geany. It uses list formed: Six first words of the file {/path/to/file}
avaa () {
AUKI="$( grep -i  "$TEKSTI" /tmp/txi/tlista | sed 's/.*{\(.*\)}.*/\1/')"
geany "$AUKI" &
 }
export -f avaa

#Function to make lists for file selector.
selaa () {
cat /tmp/txi/"$NRO"lista > /tmp/txi/lista
 }
export -f selaa

mkdir /tmp/txi
touch /tmp/txi/lista

#Collect data for selectors, hlista for directory listing, tlista for function avaa, and "${KANSIO}"lista for file selector. The last one is named with (week)number prefix to get own file list for each directory. So the selaa function in directory selector cats the proper list for the file selector.
for dir in /mnt/home/texts/*
do
KANSIO=$(basename $dir)
echo "${KANSIO}" >> /tmp/txi/hlista
for file in /mnt/home/texts/"${KANSIO}"/*
do
NIMI="$(awk 'NR==1 {print $1,$2,$3,$4,$5,$6}' ${file} | sed 's/[ \t]*$//')"
POLKU=$(readlink -f "$file")
echo "${NIMI} {${POLKU}}" >> /tmp/txi/tlista
echo "${NIMI}" >> /tmp/txi/"${KANSIO}"lista
done
done

 export TEKSTIT='
<window title="Tekstit" width-request="350" height-request="540">
<hbox>
<hbox width-request="40" height-request="530">
<table>
<label>vko</label>
<variable>NRO</variable>
<input>cat /tmp/txi/hlista</input>
<action>selaa</action>
<action>refresh:TEKSTI</action>
</table>
</hbox>
<hbox  width-request="300"  height-request="530">
<tree>
<label>tekstit</label>
<variable>"TEKSTI"</variable>
<input>cat /tmp/txi/lista</input>
<action>avaa</action>
<action>refresh:TEKSTI</action>
</tree>
</hbox>
</hbox>
</window>'

#Place the box in upper right corner of the screen so geany have room to open.
gtkdialog3 -p TEKSTIT --geometry +1+1

#clearing
unset TEKSTIT
unset -f avaa
unset -f selaa
rm -r /tmp/txi
Oops, if you want to try these remember to change needed directories, I have all my files in /mnt/home/

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#12 Post by Lobster »

consider it under way
:roll: what happened? New version to pet 8)

thanks for improvements :)
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

Taavi
Posts: 146
Joined: Fri 10 Mar 2006, 19:23
Location: Suomi, Finland

#13 Post by Taavi »

Back to the roots :D

scsijon
Posts: 1596
Joined: Thu 24 May 2007, 03:59
Location: the australian mallee
Contact:

#14 Post by scsijon »

Lobster wrote:
consider it under way
:roll: what happened? New version to pet 8)

thanks for improvements :)
Last was done and sent to someone for uploading/adding to ppm, sorry don't remember who :?: ?lobster.

I will chase new version source this week (0.8.2) and find my building notes from last time to see what the problems were before building.

I can't promise immediate action as i'm at a problem fix stage for the first public alpha for qtpuppy, but it shouldn't be more than a week, i'll put them on my website when completed. If serious problems arrive it may be a further week

versions will be wanted for?: wary52, lucid528, qtpuppy, ????

regards

edited today:

Uh folks, sorry but I won't be building the latest version in a hurry, the number of basic puppy packages that will require updating for this thing to run is rediculous, to start with there is only one dependancy out of eleven that we have in our tree that it considers up to date, let alone a core package or three.

It will remain on my todo list, just not this month!

regards
scsijon

seaside
Posts: 934
Joined: Thu 12 Apr 2007, 00:19

Proom-0.4

#15 Post by seaside »

********************
To puppy writers....

I've created a Proom-0.4 pet here with ideas from Taavi -
http://murga-linux.com/puppy/viewtopic. ... 668#575668

It should run on any puppy.

Cheers,
s

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#16 Post by Lobster »

Thanks for pet 8)
In slacko (Puppy 5.3) the original and new pet version appear in a screen box (not full screen)
I modified the original code
but the menu bar still appears (is it there in other versions - seem to remember it was not?)

modified line

Code: Select all

width-request="1300" height-request="1300"
complete code (original only)

Code: Select all

#!/bin/sh

echo 'style "proom" {
  font_name             = "DejaVu Sans 12"
  bg[NORMAL]         = "black"
  base[NORMAL]         = "black"
  text[NORMAL]         = "green"
  }
class "*t*" style "proom"' > /tmp/gtkrc
export GTK2_RC_FILES=/tmp/gtkrc:/root/.gtkrc-2.0

export Proom='
<window title="Proom" width-request="1300" height-request="1300" decorated="false">
<edit wrap-mode="1" left-margin="300" right-margin="300"><variable>EDIT</variable></edit>
<action signal="key-press-event">echo "$EDIT" >/root/mystuff</action>
 </window>'
gtkdialog3 -p Proom 
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

seaside
Posts: 934
Joined: Thu 12 Apr 2007, 00:19

#17 Post by seaside »

Lobster wrote:Thanks for pet 8)
In slacko (Puppy 5.3) the original and new pet version appear in a screen box (not full screen)
I modified the original code
but the menu bar still appears (is it there in other versions - seem to remember it was not?)
Lobster,

It could be run over the JWM tray by doing this-
create a class by placing the following entry in " /root/.jwm/jwmrc-personal"

Code: Select all

<Group>
<Name>on-top</Name>
<Class>on-top</Class>
<Option>layer:12</Option>
</Group>
Then change the gtkdialog line call to-
gtkdialog3 --class=on-top -p Proom

However, on the Proom-o.4 pet, that change will cause the dialog listing of "seeds" (snippet files) to open under the editing window and out of reach.

Regards,
s

Post Reply