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

The time now is Fri 15 Dec 2017, 02:32
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Browsers and Internet
pWget-0.9.4
Post new topic   Reply to topic View previous topic :: View next topic
Page 4 of 4 [60 Posts]   Goto page: Previous 1, 2, 3, 4
Author Message
L18L

Joined: 19 Jun 2010
Posts: 3431
Location: www.eussenheim.de/

PostPosted: Tue 27 Oct 2015, 06:43    Post subject: Link Location  

Bert wrote:
I agree, changing "URL(s)" to "LINK(s) would probably be easier to understand...Any ideas are always much appreciated Wink

+1 for LINK

I'd like to add.
Please without the ugly (s).
I had translated this message to:
Quote:
Eine URL (oder auch mehrere) hierher ziehen und ablegen

my suggestion:
Change URL to LINK and translate to English (your domain, Bert)

Right click on a link in seamonkey there is a menu, one item is:
Copy Link Location
... and this is the URL Very Happy (EDITed: see image in next post)

Last edited by L18L on Tue 27 Oct 2015, 09:44; edited 1 time in total
Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 3431
Location: www.eussenheim.de/

PostPosted: Tue 27 Oct 2015, 09:31    Post subject: Re:re: mdview and yad
Subject description: no yad --html
 

Bert wrote:
L18L wrote:


fatdog's unpublished /usr/share/doc/faqs/bugs.md wrote:
%%textdomain fatdoghelp
![ ](fatdog64.png)
# Think you've found a bug?

Like all other creations of man, Fatdog64 is not perfect.

From time to time you may encounter problems.

If you would like these problems to go away, the best ...

See image and continue experimenting with your domain yad --html.
Very Happy


Thank you L18L, that looks exciting... I will not pretend I understand your image:
1. I see two mdview commands, one piped to yad --html and one to yad --text-info
2. The dog we see is part of your wallpaper, right?
3. the yad dialog we see is the result of yad --text-info, right?
(What did the first command produce?)

1, Yes
2. Yes (Including this I do not need to declare: made in Fatdog)
3. Yes (first command produced just a default yad window with Cancel and OK.)
Quote:
So, yad can display a .md file in its raw source form, but not as the rich text md is intended to produce, even if mdview is installed?

Let me say it so:
A .md file in its raw source form is plain text, view it with a textviewer or a texteditor.
mdview is the viewer application which can
- render images, links, headlines, bold, italics, etc
- transform to html
- translate

I have continued my experiments with yad.
Result: yad --html does not work out of the box,
webkit seems to be needed.
Trying to install libwebkitgtk there are warnings in package manager gslapt. So no go for me.

Creating a web page was easy.
Our example
Code:
# echo "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"><title>bla</title></head><body style=\"margin:auto;max-width:32em;\">">/tmp/bla;mdview --html bugs.md >> /tmp/bla;echo "</body></html>">>/tmp/bla;sync;  defaulthtmlviewer /tmp/bla
(see image) shows an issue to be solved by jamesbond.

Nobody knows what the defaulthtmlviewer actually is, it can be a webbrowser. That is shooting with guns at mosquitos.

For offline usage don't use a webbrowser but simply the viewer mdview which would be needed anyway because of its translating feature..

@jamesbond, embed each line of --html output in <p>...</p> please.
mdview--html.png
 Description   raw source see above, please
 Filesize   38.16 KB
 Viewed   369 Time(s)

mdview--html.png

Back to top
View user's profile Send private message 
Bert


Joined: 30 Jun 2006
Posts: 1106

PostPosted: Tue 27 Oct 2015, 19:42    Post subject: new Test version: 0.9.4.2  

A new version, for testers.

I tried to incorporate the ideas offered by 'step' and L18L:
    the download 'queue' is now visible
    ugly "URL(s)" are gone Wink
    the "About" dialog simplified and translatable
    some more gettexting

It works well for downloading a single file, but I'm not yet happy with downloading multiple links. Downloading multiple links is already functional and error-free, but demands too much user input: manually going to a new line for each new link.
I've spend the evening searching a way to avoid this, but so far haven't found a solution.

Bye
pWget-0.9.4.2.pet
Description 
pet

 Download 
Filename  pWget-0.9.4.2.pet 
Filesize  13.3 KB 
Downloaded  75 Time(s) 

_________________


Back to top
View user's profile Send private message 
gcmartin

Joined: 14 Oct 2005
Posts: 6730
Location: Earth

PostPosted: Tue 27 Oct 2015, 20:00    Post subject: Re: new Test version: 0.9.4.2  

Hello @Bert
Bert wrote:
... I've spend the evening searching a way to avoid this, but so far haven't found a solution.
Seem to remember that @Musher0 provided a solution for what you ask; just several weeks ago.

Hope this helps a little

_________________
Get ACTIVE Create Circles; Do those good things which benefit people's needs!
We are all related ... Its time to show that we know this!
3 Different Puppy Search Engines or use DogPile
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 11274
Location: Gatineau (Qc), Canada

PostPosted: Wed 28 Oct 2015, 08:42    Post subject:  

Hi Bert and gc.

Who, me? Smile If I did, I can't remember, frankly... Maybe freshen up my
memory with some context, gc?

I know I don't feel qualified to dabble in network apps, that's for sure. My
forte's are rather configurationss, menu scripts, non-mainstream window
managers, plus some simple databasing. If I have a snippet somewhere
that can help Bert, I'll be happy to provide it to him, of course. But off the
top of my head, I can't remember ever working on a network script.

BFN.

musher0

_________________
musher0
~~~~~~~~~~
"Logical entities must not be multiplied beyond necessity." | |
« Il ne faut pas multiplier les entités logiques sans nécessité. » (Ockham)
Back to top
View user's profile Send private message 
Bert


Joined: 30 Jun 2006
Posts: 1106

PostPosted: Wed 28 Oct 2015, 09:20    Post subject:  

Thanks for trying to help guys.

@musher0,
It's not really a network problem. wget takes care of the network part...luckily for me. Wink
I have to find a way to get links, dragged into a yad window, "automatically" organized in the form of 'one link per line'.

_________________


Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 3431
Location: www.eussenheim.de/

PostPosted: Wed 28 Oct 2015, 10:51    Post subject: Re: new Test version: 0.9.4.2
Subject description: --dnd
 

Bert wrote:
Downloading multiple links is already functional and error-free, but demands too much user input: manually going to a new line for each new link.
I've spend the evening searching a way to avoid this, but so far haven't found a solution.


I've spend this afternoon.
Found no solution for avoiding of manually going to a new line for each new link.
Reverted to yad --dnd.
Added a yad confirmation dialog (and a small yad "cancelled message").
Curious about you would like it.

Fine tuning as always needed of course.

EDIT code see 2 posts down
pWget-dnd-confirm.png
 Description   
 Filesize   9.95 KB
 Viewed   297 Time(s)

pWget-dnd-confirm.png


Last edited by L18L on Wed 28 Oct 2015, 12:20; edited 1 time in total
Back to top
View user's profile Send private message 
Bert


Joined: 30 Jun 2006
Posts: 1106

PostPosted: Wed 28 Oct 2015, 12:11    Post subject:  

Hi L18L,

I saw your new post earlier, but had to be somewhere else on the internet.

Thanks for looking into this. If L18L can't fix it, certainly Bert can't Laughing
So yes, the dnd is a clever dialog, perhaps the best choice to go back to it.

Your confirmation dialog looks like a great solution..
I only wonder if step would be happy with it? I think he meant a possibility to see the download queue in real time, before hitting the Download button.
(like I did with the --text-info dialog) But maybe your way is the best compromise.
Can I have a look at the code? (Just charge me on your next invoice Very Happy )

Vielen Dank!

_________________


Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 3431
Location: www.eussenheim.de/

PostPosted: Wed 28 Oct 2015, 12:19    Post subject: pWget-0.9.4.2
Subject description: --dnd
 

Bert wrote:
Can I have a look at the code?

Here it is. Smile

EDIT
cancelled dialog is a monolog: no cancel button needed. Embarassed
pWget.gz
Description  remove fale .gz
gz

 Download 
Filename  pWget.gz 
Filesize  2.47 KB 
Downloaded  63 Time(s) 
Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 3431
Location: www.eussenheim.de/

PostPosted: Wed 28 Oct 2015, 12:35    Post subject: pWget-0.9.4.2
Subject description: not uniq
 

Users make mistakes.
Especially in this context of multiple downloads dragging to yad --dnd.
We also need to filter uniq URLs.
(Not really, it is just cosmetics. wget will only do one download)
pWget-dnd-unify.png
 Description   
 Filesize   5.91 KB
 Viewed   253 Time(s)

pWget-dnd-unify.png

Back to top
View user's profile Send private message 
Bert


Joined: 30 Jun 2006
Posts: 1106

PostPosted: Wed 28 Oct 2015, 13:01    Post subject:  

ngettext not recognized (line 35)
changing to gettext gives warning:"too many arguments" (of course)

I'm in Puppy Tahr at the moment. It can't handle "ngettext".

EDIT: Solved with two gettext instances Embarassed

_________________


Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 3431
Location: www.eussenheim.de/

PostPosted: Wed 28 Oct 2015, 13:50    Post subject: missing ngettext  

Bert wrote:
I'm in Puppy Tahr at the moment. It can't handle "ngettext".
This is Puppy Tahr's failure. Or Woof-CE's Rolling Eyes
Quote:
EDIT: Solved with two gettext instances Embarassed
Not really as there are languages (not yours, not mine,but e.g. Polish, Russian,...) that have more than one plural depending on the number. More to read see "Singular and Plural" at http://bkhome.org/bacon/international.htm please and
Code:
# LANGUAGE=nl ngettext --help
Gebruik:  ngettext [OPTIE] [TEKSTDOMEIN] MSGID MSGID-MEERVOUD AANTAL

De vertaling van een tekstbericht weergeven waarvan de
grammaticale vorm afhangt van een getal.

  -d, --domain=TEKSTDOMEIN  vertalingen opzoeken in TEKSTDOMEIN
  -e                        sommige stuurcodereeksen interpreteren
  -E                        (genegeerd, maar herkend wegens compatibiliteit)
  -h, --help                deze hulptekst tonen en stoppen
  -V, --version             programmaversie tonen en stoppen
  [TEKSTDOMEIN]             vertaald bericht opzoeken in TEKSTDOMEIN
  MSGID MSGID-MEERVOUD      MSGID (enkelvoud) en MSGID-MEERVOUD vertalen
  AANTAL                    enkel- of meervoud kiezen gebaseerd op deze waarde

Als er geen argument TEKSTDOMEIN gegeven is, wordt het domein bepaald uit
de omgevingsvariabele TEXTDOMAIN.  Als de berichtencatalogus niet gevonden
wordt in de gewone map, kan een andere locatie worden opgegeven via de
omgevingsvariabele TEXTDOMAINDIR.
De standaard zoekmap is: /usr/share/locale

Rapporteer gebreken in het programma aan <bug-gnu-gettext@gnu.org>;
meld fouten in de vertaling aan <vertaling@vrijschrift.org>.
#

Lets stay pragmatic and change the text to:
gettext "Here is the list of URL's to be downloaded:" Idea
Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 3431
Location: www.eussenheim.de/

PostPosted: Thu 29 Oct 2015, 05:15    Post subject: Re: missing ngettext  

L18L wrote:
Lets stay pragmatic and change the text to:
gettext "Here is the list of URL's to be downloaded:" Idea

Or even better?
Be nice to everyone:
Code:
        if [[ "`which ngettext`" ]]; then
            TEXT="`eval echo $(ngettext 'Confirm to download this URL please' 'Confirm to download these $numURLs URLs please' $numURLs)`"
        else     
            TEXT="$(gettext 'Link Locations to be downloaded from:' )"
        fi   
pWget-dnd-confirm_without_ngettext.png
 Description   
 Filesize   6.45 KB
 Viewed   230 Time(s)

pWget-dnd-confirm_without_ngettext.png

Back to top
View user's profile Send private message 
step

Joined: 04 May 2012
Posts: 954

PostPosted: Fri 30 Oct 2015, 13:50    Post subject:  

My suggestion: title bar message: 'Confirm downloads:'
@Bert, thanks for adding the download list. It's OK if it isn't shown as it builds up but only at the end.

_________________
Fatdog64-710|+Packages|Kodi|Findnrun|+forum|gtkmenuplus
Back to top
View user's profile Send private message 
Bert


Joined: 30 Jun 2006
Posts: 1106

PostPosted: Mon 04 Dec 2017, 17:43    Post subject:  

Although I've been away from anything Puppy for some time, I keep following Puppy's development, reading Barry's blog and this forum daily. After many years of using Puppy, I'm now very satisfied with my new workhorse, the Debian/Antix-based MX-linux. But Puppy was my first Linux love, and somehow I still hope to return to it as it has given so much joy for so many years.

But I'm just writing this to let you know that the broken links to my site have been fixed. I cleaned up my webspace a little too vigorously..

So now the pWget help sites are active again:
http://bert2.be/pWget.html
http://bert2.be/pWget-0.9.4.html

Also, the Puppy translators guides are available again:
http://bert2.be/simple_guide_for_translators-0.2.1.html
http://bert2.be/simple_guide_for_translators-0.2.3.html

Keep barking!
Bert

_________________


Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 4 of 4 [60 Posts]   Goto page: Previous 1, 2, 3, 4
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Browsers and Internet
Jump to:  

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


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0954s ][ Queries: 14 (0.0231s) ][ GZIP on ]