pWget-0.9.4

Browsers, email, chat, etc.
Message
Author
User avatar
Bert
Posts: 1103
Joined: Fri 30 Jun 2006, 20:09

#41 Post by Bert »

Hi L18L,

yes indeed, gettexting is not yet complete. That's one of the reasons this is still a test-version. Things will likely still change here and there, so better to wait with the gettexting. When final version is ready, everything will be gettexted. I promise :)
But text in an image Q :?:
--image="$WORKDIR/pwget-about.png"
That was my way of cheating around the problem :lol:
It's not an elegant solution, I know. But at least it gives the user a nice icon above a piece of boring info. :wink: If every user would have the latest yad version, with the html function working, problem would be solved by making "About" a small html file. Or...would yad be able to display a md file? That is your domain. :wink:
Or I could drop "About" altogether, was just mimicking the big boys.
[url=http://pupsearch.weebly.com/][img]http://pupsearch.weebly.com/uploads/7/4/6/4/7464374/125791.gif[/img][/url]
[url=https://startpage.com/do/search?q=host%3Awww.murga-linux.com%2F][img]http://i.imgur.com/XJ9Tqc7.png[/img][/url]

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

mdview and yad

#42 Post by L18L »

Bert wrote:...problem would be solved by making "About" a small html file. Or...would yad be able to display a md file? That is your domain. :wink:
Experimenting, please wait...

Bert, you put the fun back to coding.
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.
:D
Attachments
mdview_yad.png
Note, it is using translations by mdview's internal gettext
(23.81 KiB) Downloaded 204 times

step
Posts: 1349
Joined: Fri 04 May 2012, 11:20

#43 Post by step »

Nice tool, thanks. Perhaps writing "Drag LINKs here" instead of "Drag URLs here" would ease understanding. I concur that it would be neat to see the download queue as it builds drop after drop, or at least a count of the files being dropped.
[url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Fatdog64-810[/url]|[url=http://goo.gl/hqZtiB]+Packages[/url]|[url=http://goo.gl/6dbEzT]Kodi[/url]|[url=http://goo.gl/JQC4Vz]gtkmenuplus[/url]

User avatar
Bert
Posts: 1103
Joined: Fri 30 Jun 2006, 20:09

Re: mdview and yad

#44 Post by Bert »

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.
:D
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?)
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?
[url=http://pupsearch.weebly.com/][img]http://pupsearch.weebly.com/uploads/7/4/6/4/7464374/125791.gif[/img][/url]
[url=https://startpage.com/do/search?q=host%3Awww.murga-linux.com%2F][img]http://i.imgur.com/XJ9Tqc7.png[/img][/url]

User avatar
Bert
Posts: 1103
Joined: Fri 30 Jun 2006, 20:09

#45 Post by Bert »

step wrote:Nice tool, thanks. Perhaps writing "Drag LINKs here" instead of "Drag URLs here" would ease understanding. I concur that it would be neat to see the download queue as it builds drop after drop, or at least a count of the files being dropped.
Thanks for the compliment, step.
I agree, changing "URL(s)" to "LINK(s) would probably be easier to understand. I had thought about "File(s) instead of URLs, but that could probably confuse some people too. So, if nobody objects within the next 72 hours :) , I'll go with your proposal.

I'll think about the idea of a download queue made visible... Maybe an extra button, opening a list? Any ideas are always much appreciated :wink:
[url=http://pupsearch.weebly.com/][img]http://pupsearch.weebly.com/uploads/7/4/6/4/7464374/125791.gif[/img][/url]
[url=https://startpage.com/do/search?q=host%3Awww.murga-linux.com%2F][img]http://i.imgur.com/XJ9Tqc7.png[/img][/url]

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

Link Location

#46 Post by L18L »

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:
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 :D (EDITed: see image in next post)
Last edited by L18L on Tue 27 Oct 2015, 13:44, edited 1 time in total.

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

Re:re: mdview and yad

#47 Post by L18L »

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

# 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.
Attachments
mdview--html.png
raw source see above, please
(38.16 KiB) Downloaded 426 times

User avatar
Bert
Posts: 1103
Joined: Fri 30 Jun 2006, 20:09

new Test version: 0.9.4.2

#48 Post by Bert »

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
Attachments
pWget-0.9.4.2.pet
(13.3 KiB) Downloaded 227 times
[url=http://pupsearch.weebly.com/][img]http://pupsearch.weebly.com/uploads/7/4/6/4/7464374/125791.gif[/img][/url]
[url=https://startpage.com/do/search?q=host%3Awww.murga-linux.com%2F][img]http://i.imgur.com/XJ9Tqc7.png[/img][/url]

gcmartin

Re: new Test version: 0.9.4.2

#49 Post by gcmartin »

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

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#50 Post by musher0 »

Hi Bert and gc.

Who, me? :) 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
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
Bert
Posts: 1103
Joined: Fri 30 Jun 2006, 20:09

#51 Post by Bert »

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'.
[url=http://pupsearch.weebly.com/][img]http://pupsearch.weebly.com/uploads/7/4/6/4/7464374/125791.gif[/img][/url]
[url=https://startpage.com/do/search?q=host%3Awww.murga-linux.com%2F][img]http://i.imgur.com/XJ9Tqc7.png[/img][/url]

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

Re: new Test version: 0.9.4.2

#52 Post by L18L »

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
Attachments
pWget-dnd-confirm.png
(9.95 KiB) Downloaded 356 times
Last edited by L18L on Wed 28 Oct 2015, 16:20, edited 1 time in total.

User avatar
Bert
Posts: 1103
Joined: Fri 30 Jun 2006, 20:09

#53 Post by Bert »

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 :lol:
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 :D )

Vielen Dank!
[url=http://pupsearch.weebly.com/][img]http://pupsearch.weebly.com/uploads/7/4/6/4/7464374/125791.gif[/img][/url]
[url=https://startpage.com/do/search?q=host%3Awww.murga-linux.com%2F][img]http://i.imgur.com/XJ9Tqc7.png[/img][/url]

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

pWget-0.9.4.2

#54 Post by L18L »

Bert wrote:Can I have a look at the code?
Here it is. :)

EDIT
cancelled dialog is a monolog: no cancel button needed. :oops:
Attachments
pWget.gz
remove fale .gz
(2.47 KiB) Downloaded 189 times

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

pWget-0.9.4.2

#55 Post by L18L »

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)
Attachments
pWget-dnd-unify.png
(5.91 KiB) Downloaded 310 times

User avatar
Bert
Posts: 1103
Joined: Fri 30 Jun 2006, 20:09

#56 Post by Bert »

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 :oops:
[url=http://pupsearch.weebly.com/][img]http://pupsearch.weebly.com/uploads/7/4/6/4/7464374/125791.gif[/img][/url]
[url=https://startpage.com/do/search?q=host%3Awww.murga-linux.com%2F][img]http://i.imgur.com/XJ9Tqc7.png[/img][/url]

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

missing ngettext

#57 Post by L18L »

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 :roll:
EDIT: Solved with two gettext instances :oops:
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: Select all

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

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

Re: missing ngettext

#58 Post by L18L »

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

        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    
Attachments
pWget-dnd-confirm_without_ngettext.png
(6.45 KiB) Downloaded 288 times

step
Posts: 1349
Joined: Fri 04 May 2012, 11:20

#59 Post by step »

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.
[url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Fatdog64-810[/url]|[url=http://goo.gl/hqZtiB]+Packages[/url]|[url=http://goo.gl/6dbEzT]Kodi[/url]|[url=http://goo.gl/JQC4Vz]gtkmenuplus[/url]

User avatar
Bert
Posts: 1103
Joined: Fri 30 Jun 2006, 20:09

#60 Post by Bert »

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
[url=http://pupsearch.weebly.com/][img]http://pupsearch.weebly.com/uploads/7/4/6/4/7464374/125791.gif[/img][/url]
[url=https://startpage.com/do/search?q=host%3Awww.murga-linux.com%2F][img]http://i.imgur.com/XJ9Tqc7.png[/img][/url]

Post Reply