Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #94251 > unrolled thread
| Started by | ryguy7272 <ryanshuell@gmail.com> |
|---|---|
| First post | 2015-07-20 19:49 -0700 |
| Last post | 2015-07-21 13:41 -0400 |
| Articles | 20 on this page of 42 — 15 participants |
Back to article view | Back to comp.lang.python
Can I copy/paste Python code? ryguy7272 <ryanshuell@gmail.com> - 2015-07-20 19:49 -0700
Re: Can I copy/paste Python code? Chris Angelico <rosuav@gmail.com> - 2015-07-21 12:55 +1000
Re: Can I copy/paste Python code? Christian Gollwitzer <auriocus@gmx.de> - 2015-07-21 14:29 +0200
Re: Can I copy/paste Python code? Chris Angelico <rosuav@gmail.com> - 2015-07-22 00:48 +1000
Re: Can I copy/paste Python code? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2015-07-21 17:12 +0100
Re: Can I copy/paste Python code? Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2015-07-21 20:05 -0400
Re: Can I copy/paste Python code? Laura Creighton <lac@openend.se> - 2015-07-21 19:25 +0200
Re: Can I copy/paste Python code? Grant Edwards <invalid@invalid.invalid> - 2015-07-21 18:55 +0000
Re: Can I copy/paste Python code? Steven D'Aprano <steve@pearwood.info> - 2015-07-22 10:45 +1000
Re: Can I copy/paste Python code? Laura Creighton <lac@openend.se> - 2015-07-22 09:01 +0200
Re: Can I copy/paste Python code? Grant Edwards <invalid@invalid.invalid> - 2015-07-22 13:54 +0000
Re: Can I copy/paste Python code? Laura Creighton <lac@openend.se> - 2015-07-22 16:37 +0200
Re: Can I copy/paste Python code? Grant Edwards <invalid@invalid.invalid> - 2015-07-22 14:53 +0000
Re: Can I copy/paste Python code? Laura Creighton <lac@openend.se> - 2015-07-22 18:53 +0200
Re: Can I copy/paste Python code? Christian Gollwitzer <auriocus@gmx.de> - 2015-07-22 23:23 +0200
Re: Can I copy/paste Python code? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-07-21 20:58 +0100
Re: Can I copy/paste Python code? Grant Edwards <invalid@invalid.invalid> - 2015-07-21 20:32 +0000
Re: Can I copy/paste Python code? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-07-21 21:54 +0100
Re: Can I copy/paste Python code? Emile van Sebille <emile@fenx.com> - 2015-07-21 14:03 -0700
Re: Can I copy/paste Python code? Grant Edwards <invalid@invalid.invalid> - 2015-07-21 21:47 +0000
Re: Can I copy/paste Python code? Emile van Sebille <emile@fenx.com> - 2015-07-21 15:35 -0700
Re: Can I copy/paste Python code? Grant Edwards <invalid@invalid.invalid> - 2015-07-22 00:10 +0000
Re: Can I copy/paste Python code? Emile van Sebille <emile@fenx.com> - 2015-07-22 09:49 -0700
Re: Can I copy/paste Python code? Grant Edwards <invalid@invalid.invalid> - 2015-07-22 19:35 +0000
Re: Can I copy/paste Python code? Emile van Sebille <emile@fenx.com> - 2015-07-22 14:39 -0700
Re: [OT] Can I copy/paste Python code? Michael Torrie <torriem@gmail.com> - 2015-07-22 15:56 -0600
Re: [OT] Can I copy/paste Python code? Grant Edwards <invalid@invalid.invalid> - 2015-07-22 22:50 +0000
Re: [OT] Can I copy/paste Python code? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-07-23 15:39 +1000
Re: Can I copy/paste Python code? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-07-23 15:22 +1000
Re: Can I copy/paste Python code? Grant Edwards <invalid@invalid.invalid> - 2015-07-22 20:49 +0000
Re: Can I copy/paste Python code? Michael Torrie <torriem@gmail.com> - 2015-07-21 16:36 -0600
Re: Can I copy/paste Python code? Grant Edwards <invalid@invalid.invalid> - 2015-07-22 00:12 +0000
Re: Can I copy/paste Python code? Michael Torrie <torriem@gmail.com> - 2015-07-21 19:03 -0600
Re: Can I copy/paste Python code? Chris Angelico <rosuav@gmail.com> - 2015-07-22 11:12 +1000
Re: Can I copy/paste Python code? Chris Angelico <rosuav@gmail.com> - 2015-07-22 10:04 +1000
Re: Can I copy/paste Python code? Jussi Piitulainen <jpiitula@ling.helsinki.fi> - 2015-07-22 10:55 +0300
Re: Can I copy/paste Python code? Chris Angelico <rosuav@gmail.com> - 2015-07-22 18:13 +1000
Re: Can I copy/paste Python code? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-07-22 08:47 +0100
Re: Can I copy/paste Python code? Laura Creighton <lac@openend.se> - 2015-07-21 10:24 +0200
Re: Can I copy/paste Python code? "Peter Heitzer" <peter.heitzer@rz.uni-regensburg.de> - 2015-07-21 08:40 +0000
Re: Can I copy/paste Python code? ryguy7272 <ryanshuell@gmail.com> - 2015-07-21 08:18 -0700
Re: Can I copy/paste Python code? Gene Heskett <gheskett@wdtv.com> - 2015-07-21 13:41 -0400
Page 2 of 3 — ← Prev page 1 [2] 3 Next page →
| From | Emile van Sebille <emile@fenx.com> |
|---|---|
| Date | 2015-07-21 15:35 -0700 |
| Message-ID | <mailman.836.1437518147.3674.python-list@python.org> |
| In reply to | #94320 |
On 7/21/2015 2:47 PM, Grant Edwards wrote:
> On 2015-07-21, Emile van Sebille <emile@fenx.com> wrote:
>> On 7/21/2015 1:32 PM, Grant Edwards wrote:
>>
>>> But, it apears foxit reader is Windows-only so it's a moot point for
>>> Linux/Unix/Mac users.
>>
>> I've been happy with https://wiki.gnome.org/Apps/Evince on linux.
>
> I'm trying to switch from acroread to evince, bit it has a few serious
> usability problems for me:
>
> 1) You can't copy/paste text from evince _at_all_.
Hmm, i just copied "Acorsa Artichoke Heart - Quarter, Water, Can" from a
catalog pdf, so _at_all_ depends on something -- I couldn't copy text
from scanned documents, but that's to be expected.
> At least it works
> right most of the time with acroread. I really like being able
> paste example commands or bits of code or a sentance or three
Here's some copied text.
When connecting a DataMan directly to an Ethernet port on a PC, both the
PC and the
DataMan must be configured for the same subnet. This can be done
automatically though
Link Local Addressing or you can manually configure your reader and your PC.
> from
> PDF docs into a shell or editor window. Pasting tables is a bit
> more work, but it can at least be done with acroread.
and a table (heading is screwed up but the data columns look ok):
This also looks like it may be dependent on how the pdf was created as
when I tried with a different table it wouldn't pick up all the columns
cleanly. But I don't have acroreader so I couldn't compare. And when I
last worked from the 4060 EDI pdf specs some ten years ago that copying
most everything was a problem even in acroread -- again, a creation
dependent issue I suspect.
Attribute
ID
Access
Rule
Name
Data
Type
0x9 Set AcqTriggerEnable BOOL
0xA Set AcqTrigger BOOL
0xB Get AcqStatusRegister BYTE
0xC Set UserData ARRAY of
BYTE
0xD Set BufferResultsEnable BOOL
0xE Get DecodeStatusRegister BYTE
> 2) You can't print the current view.
I almost never actually print these -- perhaps a page or two for notes
or reference -- so I haven't hit this issue.
> I find that invaluable for
> printing portions of documents (e.g. I want just a section of a C
> size schematic printed on letter sized paper, or just one table
> table from a manual sized to fill a 8.5x11 page). If it did have
> 'print view' then lack of a marquee zoom would become another
> inconvenience.
>
> 3) There's no way to collapse-all in the TOC panel.
I see a thumbnails side panel and index I can hide, but no TOC.
> When I open a
> 1200 page document with 30 sections and several hundred sections
> and subsections, I don't want to see all of them all of the time.
> Closing them one at a time by hand is pretty tedious.
>
> I find that about 20-30% of the time I start up evince, I end up
> closing it and re-opening the document in acroread.
As I don't have acroread, I find the 100% of the time evince suits my needs.
When-all-you-have-is-a-hammer-ly yr's,
Emile
[toc] | [prev] | [next] | [standalone]
| From | Grant Edwards <invalid@invalid.invalid> |
|---|---|
| Date | 2015-07-22 00:10 +0000 |
| Message-ID | <momn0r$c24$1@reader1.panix.com> |
| In reply to | #94322 |
On 2015-07-21, Emile van Sebille <emile@fenx.com> wrote: > On 7/21/2015 2:47 PM, Grant Edwards wrote: >> On 2015-07-21, Emile van Sebille <emile@fenx.com> wrote: >>> On 7/21/2015 1:32 PM, Grant Edwards wrote: >>> >>>> But, it apears foxit reader is Windows-only so it's a moot point for >>>> Linux/Unix/Mac users. >>> >>> I've been happy with https://wiki.gnome.org/Apps/Evince on linux. >> >> I'm trying to switch from acroread to evince, bit it has a few serious >> usability problems for me: >> >> 1) You can't copy/paste text from evince _at_all_. > > Hmm, i just copied "Acorsa Artichoke Heart - Quarter, Water, Can" from a > catalog pdf, so _at_all_ depends on something -- I couldn't copy text > from scanned documents, but that's to be expected. Interesting. How do you do it? For all other apps, all you have to do is select the text and then center-click in the window where you want the selected text inserted. I've tried everything I can think of with evince, and it's not putting the selected text in any of the three X11 clipboards or buffers, so I'm stumped. -- Grant
[toc] | [prev] | [next] | [standalone]
| From | Emile van Sebille <emile@fenx.com> |
|---|---|
| Date | 2015-07-22 09:49 -0700 |
| Message-ID | <mailman.873.1437583794.3674.python-list@python.org> |
| In reply to | #94328 |
On 7/21/2015 5:10 PM, Grant Edwards wrote: > On 2015-07-21, Emile van Sebille <emile@fenx.com> wrote: >> On 7/21/2015 2:47 PM, Grant Edwards wrote: >>> 1) You can't copy/paste text from evince _at_all_. >> >> Hmm, i just copied "Acorsa Artichoke Heart - Quarter, Water, Can" from a >> catalog pdf, so _at_all_ depends on something -- I couldn't copy text >> from scanned documents, but that's to be expected. > > Interesting. How do you do it? For all other apps, all you have to do > is select the text and then center-click in the window where you want > the selected text inserted. Well, I select and right click copy then right click paste in where I want it. I never got into the center click options. Emile
[toc] | [prev] | [next] | [standalone]
| From | Grant Edwards <invalid@invalid.invalid> |
|---|---|
| Date | 2015-07-22 19:35 +0000 |
| Message-ID | <moorad$g1u$1@reader1.panix.com> |
| In reply to | #94380 |
On 2015-07-22, Emile van Sebille <emile@fenx.com> wrote:
> On 7/21/2015 5:10 PM, Grant Edwards wrote:
>> On 2015-07-21, Emile van Sebille <emile@fenx.com> wrote:
>>> On 7/21/2015 2:47 PM, Grant Edwards wrote:
>
>>>> 1) You can't copy/paste text from evince _at_all_.
>>>
>>> Hmm, i just copied "Acorsa Artichoke Heart - Quarter, Water, Can" from a
>>> catalog pdf, so _at_all_ depends on something -- I couldn't copy text
>>> from scanned documents, but that's to be expected.
>>
>> Interesting. How do you do it? For all other apps, all you have to do
>> is select the text and then center-click in the window where you want
>> the selected text inserted.
>
> Well, I select and right click copy then right click paste in where I
> want it. I never got into the center click options.
That must be using something other than the standard X11 clipboard
copy/paste mechnism. You shouldn't have to "right click copy", and
many of the apps I paste into don't even have a "right click paste".
It sounds like evince has abandoned the trie-and true X11 clipboard
functionality that people have been using for 30 years.
--
Grant Edwards grant.b.edwards Yow! Catsup and Mustard all
at over the place! It's the
gmail.com Human Hamburger!
[toc] | [prev] | [next] | [standalone]
| From | Emile van Sebille <emile@fenx.com> |
|---|---|
| Date | 2015-07-22 14:39 -0700 |
| Message-ID | <mailman.886.1437601213.3674.python-list@python.org> |
| In reply to | #94394 |
On 7/22/2015 12:35 PM, Grant Edwards wrote: > On 2015-07-22, Emile van Sebille <emile@fenx.com> wrote: >> On 7/21/2015 5:10 PM, Grant Edwards wrote: >>> On 2015-07-21, Emile van Sebille <emile@fenx.com> wrote: >>>> On 7/21/2015 2:47 PM, Grant Edwards wrote: >> >>>>> 1) You can't copy/paste text from evince _at_all_. >>>> >>>> Hmm, i just copied "Acorsa Artichoke Heart - Quarter, Water, Can" from a >>>> catalog pdf, so _at_all_ depends on something -- I couldn't copy text >>>> from scanned documents, but that's to be expected. >>> >>> Interesting. How do you do it? For all other apps, all you have to do >>> is select the text and then center-click in the window where you want >>> the selected text inserted. >> >> Well, I select and right click copy then right click paste in where I >> want it. I never got into the center click options. > > That must be using something other than the standard X11 clipboard > copy/paste mechnism. You shouldn't have to "right click copy", and > many of the apps I paste into don't even have a "right click paste". > > It sounds like evince has abandoned the trie-and true X11 clipboard > functionality that people have been using for 30 years. > Well, that may be more my issue than evince's -- my unix-ish habits grew up with the command line more so that X. At any rate, I did try middle click after you mentioned it and it worked as you'd indicated it should. Not-that-that-helps-you-any-ly yr's, Emile
[toc] | [prev] | [next] | [standalone]
| From | Michael Torrie <torriem@gmail.com> |
|---|---|
| Date | 2015-07-22 15:56 -0600 |
| Subject | Re: [OT] Can I copy/paste Python code? |
| Message-ID | <mailman.887.1437602737.3674.python-list@python.org> |
| In reply to | #94394 |
On 07/22/2015 01:35 PM, Grant Edwards wrote: > That must be using something other than the standard X11 clipboard > copy/paste mechnism. You shouldn't have to "right click copy", and > many of the apps I paste into don't even have a "right click paste". > > It sounds like evince has abandoned the trie-and true X11 clipboard > functionality that people have been using for 30 years. Sadly, yes. Gnome has indeed pushed to abandon this. And the wayland display server also abandons this, though it practice it do so by pushing the implementation of such neat shortcuts into the toolkit instead of the windowing system, and if the recent past is any indication, GTK devs are not going to go out of their way to implement middle click paste. But perhaps someone will release patches to add it into the popular GUI toolkits. The Putty app on Windows implements this style of pasting in the app, as an example. I could be wrong but I think highlight and middle-click paste is a happy accident that became a feature in X. And there could be some application security implications surrounding it, which is part of the hesitancy of gnome developers, and wayland developers, to carry this feature. Though it seems to me Linux desktops are becoming more and more like Windows in the ways that drove me to really like X11 desktops. For example, client-side decorations always bugged me in Windows especially when an app would freeze and I couldn't move it.
[toc] | [prev] | [next] | [standalone]
| From | Grant Edwards <invalid@invalid.invalid> |
|---|---|
| Date | 2015-07-22 22:50 +0000 |
| Subject | Re: [OT] Can I copy/paste Python code? |
| Message-ID | <mop6of$d5f$1@reader1.panix.com> |
| In reply to | #94403 |
On 2015-07-22, Michael Torrie <torriem@gmail.com> wrote:
> On 07/22/2015 01:35 PM, Grant Edwards wrote:
>> That must be using something other than the standard X11 clipboard
>> copy/paste mechnism. You shouldn't have to "right click copy", and
>> many of the apps I paste into don't even have a "right click paste".
>>
>> It sounds like evince has abandoned the trie-and true X11 clipboard
>> functionality that people have been using for 30 years.
It turns out that select and middle-click _does_ work for evince, but
only if you are "middle clicking" on the same X11 display where evince
is. I'm not quite sure how they managed to accomplish this, since every
other app I tried handles multiple displays just fine (and I'm pretty
sure they didn't all go to any extra work to do so).
> Sadly, yes. Gnome has indeed pushed to abandon this.
They do seem to be trying pretty hard to alienate people outside the
Gnome project.
> And the wayland display server also abandons this, though it practice
> it do so by pushing the implementation of such neat shortcuts into
> the toolkit instead of the windowing system, and if the recent past
> is any indication, GTK devs are not going to go out of their way to
> implement middle click paste. But perhaps someone will release
> patches to add it into the popular GUI toolkits. The Putty app on
> Windows implements this style of pasting in the app, as an example.
>
> I could be wrong but I think highlight and middle-click paste is a happy
> accident that became a feature in X.
Could be, but it's a "feature" that's been there for 30 years. In the
real world we call that a "standard". :)
> And there could be some application security implications surrounding
> it, which is part of the hesitancy of gnome developers, and wayland
> developers, to carry this feature.
Personally, I think it's all rampant NIH syndrome. They all think the
fancy new (and incompatible) scheme they cooked up over a few beers
last weekend is better than everything everybody else on the planet
has developed in the past 30 years.
> Though it seems to me Linux desktops are becoming more and more like
> Windows in the ways that drove me to really like X11 desktops. For
> example, client-side decorations always bugged me in Windows
> especially when an app would freeze and I couldn't move it.
Yep.
--
Grant Edwards grant.b.edwards Yow! My face is new, my
at license is expired, and I'm
gmail.com under a doctor's care!!!!
[toc] | [prev] | [next] | [standalone]
| From | Steven D'Aprano <steve+comp.lang.python@pearwood.info> |
|---|---|
| Date | 2015-07-23 15:39 +1000 |
| Subject | Re: [OT] Can I copy/paste Python code? |
| Message-ID | <55b07df8$0$1587$c3e8da3$5496439d@news.astraweb.com> |
| In reply to | #94403 |
On Thursday 23 July 2015 07:56, Michael Torrie wrote: > Though it seems to me Linux desktops are becoming more and more like > Windows in the ways that drove me to really like X11 desktops. For > example, client-side decorations always bugged me in Windows especially > when an app would freeze and I couldn't move it. Yes, this, a thousand times this. I moved to Linux because it was a better platform than Windows for the things I care about, not just the whole FOSS thing. As Linux has gotten more popular, the GUI developers are stripping all the best parts of the platform in order to more closely ape the more disagreeable parts of Windows. A cautionary tale of what happens when you open the doors too widely and allow the riff-raff in. You get KDE 4 and Gnome 3. -- Steve
[toc] | [prev] | [next] | [standalone]
| From | Steven D'Aprano <steve+comp.lang.python@pearwood.info> |
|---|---|
| Date | 2015-07-23 15:22 +1000 |
| Message-ID | <55b079f9$0$1587$c3e8da3$5496439d@news.astraweb.com> |
| In reply to | #94394 |
On Thursday 23 July 2015 05:35, Grant Edwards wrote: > On 2015-07-22, Emile van Sebille <emile@fenx.com> wrote: >> Well, I select and right click copy then right click paste in where I >> want it. I never got into the center click options. > > That must be using something other than the standard X11 clipboard > copy/paste mechnism. You shouldn't have to "right click copy", and > many of the apps I paste into don't even have a "right click paste". > > It sounds like evince has abandoned the trie-and true X11 clipboard > functionality that people have been using for 30 years. It works for me. Unlike many other apps, the X11 clipboard doesn't integrate with my GUI clipboard manager Clipman. That is, if I drag over text in Evince, it *does* copy into the X11 copy/paste buffer, but *does not* replace the regular Ctrl-C clipboard, and does not show up in Clipman's menu. You may consider that either a bug or a feature :-) -- Steve
[toc] | [prev] | [next] | [standalone]
| From | Grant Edwards <invalid@invalid.invalid> |
|---|---|
| Date | 2015-07-22 20:49 +0000 |
| Message-ID | <moovjt$qg9$1@reader1.panix.com> |
| In reply to | #94380 |
On 2015-07-22, Emile van Sebille <emile@fenx.com> wrote:
> On 7/21/2015 5:10 PM, Grant Edwards wrote:
>> On 2015-07-21, Emile van Sebille <emile@fenx.com> wrote:
>>> On 7/21/2015 2:47 PM, Grant Edwards wrote:
>
>>>> 1) You can't copy/paste text from evince _at_all_.
>>>
>>> Hmm, i just copied "Acorsa Artichoke Heart - Quarter, Water, Can" from a
>>> catalog pdf, so _at_all_ depends on something -- I couldn't copy text
>>> from scanned documents, but that's to be expected.
>>
>> Interesting. How do you do it? For all other apps, all you have to do
>> is select the text and then center-click in the window where you want
>> the selected text inserted.
>
> Well, I select and right click copy then right click paste in where I
> want it. I never got into the center click options.
Ah! I've narrowed down the problem with evince select/copy. It works
fine as long as you do the paste on the same X11 display[1]. If you
try to do the paste on a different display, you get nothing. None of
the other apps I've tried have this problem. I've checked various X
terminals, xemacs, firefox, chrome, libreoffce, acroread, meld,
xfreerdp.
[Yes, I can cut and paste from _Windows_ apps across displays but not
from evince].
I filed a bug against evince, but I don't know how common multiple
display setups are (as opposed to single display, multiple monitor
setups like you get with Xinerama). So it may never get fixed (unless
I get ambitious).
[1] When I refer to a "display" in this context, I mean an X11 display
(as in $DISPLAY) not a physical LCD/CRT monitor.
--
Grant Edwards grant.b.edwards Yow! I want to dress you
at up as TALLULAH BANKHEAD and
gmail.com cover you with VASELINE and
WHEAT THINS ...
[toc] | [prev] | [next] | [standalone]
| From | Michael Torrie <torriem@gmail.com> |
|---|---|
| Date | 2015-07-21 16:36 -0600 |
| Message-ID | <mailman.837.1437518215.3674.python-list@python.org> |
| In reply to | #94320 |
On 07/21/2015 03:47 PM, Grant Edwards wrote: > I'm trying to switch from acroread to evince, bit it has a few serious > usability problems for me: > > 1) You can't copy/paste text from evince _at_all_. At least it works > right most of the time with acroread. I really like being able > paste example commands or bits of code or a sentance or three from > PDF docs into a shell or editor window. Pasting tables is a bit > more work, but it can at least be done with acroread. > > 2) You can't print the current view. I find that invaluable for > printing portions of documents (e.g. I want just a section of a C > size schematic printed on letter sized paper, or just one table > table from a manual sized to fill a 8.5x11 page). If it did have > 'print view' then lack of a marquee zoom would become another > inconvenience. > > 3) There's no way to collapse-all in the TOC panel. When I open a > 1200 page document with 30 sections and several hundred sections > and subsections, I don't want to see all of them all of the time. > Closing them one at a time by hand is pretty tedious. > > I find that about 20-30% of the time I start up evince, I end up > closing it and re-opening the document in acroread. Sounds like Evince has really gone down hill since I last used Gnome. I use Atril on Mate desktop and it works as well as Evince ever used to for me, which is expected seeing as it was forked from Gnome 2 sources. I have never had any problems cutting and pasting text. And you can definitely close the TOC panel. I wouldn't be at all surprised to see that Evince has lost capabilities. Seems to be the way Gnome apps are going these days.
[toc] | [prev] | [next] | [standalone]
| From | Grant Edwards <invalid@invalid.invalid> |
|---|---|
| Date | 2015-07-22 00:12 +0000 |
| Message-ID | <momn5i$c24$2@reader1.panix.com> |
| In reply to | #94323 |
On 2015-07-21, Michael Torrie <torriem@gmail.com> wrote: > On 07/21/2015 03:47 PM, Grant Edwards wrote: >> I'm trying to switch from acroread to evince, bit it has a few serious >> usability problems for me: >> >> 1) You can't copy/paste text from evince _at_all_. At least it works >> right most of the time with acroread. I really like being able >> paste example commands or bits of code or a sentance or three from >> PDF docs into a shell or editor window. Pasting tables is a bit >> more work, but it can at least be done with acroread. >> >> 2) You can't print the current view. I find that invaluable for >> printing portions of documents (e.g. I want just a section of a C >> size schematic printed on letter sized paper, or just one table >> table from a manual sized to fill a 8.5x11 page). If it did have >> 'print view' then lack of a marquee zoom would become another >> inconvenience. >> >> 3) There's no way to collapse-all in the TOC panel. When I open a >> 1200 page document with 30 sections and several hundred sections >> and subsections, I don't want to see all of them all of the time. >> Closing them one at a time by hand is pretty tedious. >> >> I find that about 20-30% of the time I start up evince, I end up >> closing it and re-opening the document in acroread. > Sounds like Evince has really gone down hill since I last used Gnome. Even though I have quite a bit of Gnome stuff installed, I don't use the Gnome desktop, I use XFCE. That may be part of the problem: most "Gnome" apps seem to go out of their way not to work with other desktops. > I use Atril on Mate desktop and it works as well as Evince ever used > to for me, which is expected seeing as it was forked from Gnome 2 > sources. I have never had any problems cutting and pasting text. > And you can definitely close the TOC panel. I don't want to close the TOC panel. I want to collapse all the entries in the TOC tree widget _in_ the TOC panel.
[toc] | [prev] | [next] | [standalone]
| From | Michael Torrie <torriem@gmail.com> |
|---|---|
| Date | 2015-07-21 19:03 -0600 |
| Message-ID | <mailman.844.1437527019.3674.python-list@python.org> |
| In reply to | #94329 |
On 07/21/2015 06:12 PM, Grant Edwards wrote: > > I don't want to close the TOC panel. I want to collapse all the > entries in the TOC tree widget _in_ the TOC panel. Ahh. Atril does not do this either. It can collapse the TOC to the first level items but not the tree itself. I'm curious as to what good collapsing the whole tree down to one node would be.
[toc] | [prev] | [next] | [standalone]
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2015-07-22 11:12 +1000 |
| Message-ID | <mailman.847.1437527578.3674.python-list@python.org> |
| In reply to | #94329 |
On Wed, Jul 22, 2015 at 11:03 AM, Michael Torrie <torriem@gmail.com> wrote: > On 07/21/2015 06:12 PM, Grant Edwards wrote: >> >> I don't want to close the TOC panel. I want to collapse all the >> entries in the TOC tree widget _in_ the TOC panel. > > Ahh. Atril does not do this either. It can collapse the TOC to the > first level items but not the tree itself. I'm curious as to what good > collapsing the whole tree down to one node would be. Collapse everything, then open out just the one you want. More compact display. And yes, it's a minor problem in evince, though not too bad for my usage (I can close one sub-branch, just not the whole tree). ChrisA
[toc] | [prev] | [next] | [standalone]
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2015-07-22 10:04 +1000 |
| Message-ID | <mailman.840.1437523498.3674.python-list@python.org> |
| In reply to | #94320 |
On Wed, Jul 22, 2015 at 8:36 AM, Michael Torrie <torriem@gmail.com> wrote: > Sounds like Evince has really gone down hill since I last used Gnome. I > use Atril on Mate desktop and it works as well as Evince ever used to > for me, which is expected seeing as it was forked from Gnome 2 sources. > I have never had any problems cutting and pasting text. And you can > definitely close the TOC panel. I use Evince on Debian, where it came prepackaged with my Xfce desktop. It identifies itself as "GNOME Document Viewer 3.14.1", leaving me wondering if the next version would be 3.14.12 in Knuth-style numbering, but that's beside the point. Copying and pasting works perfectly from some documents, and imperfectly from others. Notably, it seems sometimes to be completely unaware of columns, and copy and paste text straight across the page, which leaves me staring at "zombie Ring Gates" and other gems. But it's generally good enough for my purposes. ChrisA
[toc] | [prev] | [next] | [standalone]
| From | Jussi Piitulainen <jpiitula@ling.helsinki.fi> |
|---|---|
| Date | 2015-07-22 10:55 +0300 |
| Message-ID | <lf5fv4gpqxq.fsf@ling.helsinki.fi> |
| In reply to | #94326 |
Chris Angelico writes: > I use Evince on Debian, where it came prepackaged with my Xfce > desktop. It identifies itself as "GNOME Document Viewer 3.14.1", > leaving me wondering if the next version would be 3.14.12 in > Knuth-style numbering, but that's beside the point. Copying and The next digit of pi would not be 2. (But 5.) But I don't think they are doing that, because the point.
[toc] | [prev] | [next] | [standalone]
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2015-07-22 18:13 +1000 |
| Message-ID | <mailman.859.1437552839.3674.python-list@python.org> |
| In reply to | #94353 |
On Wed, Jul 22, 2015 at 5:55 PM, Jussi Piitulainen <jpiitula@ling.helsinki.fi> wrote: > Chris Angelico writes: > >> I use Evince on Debian, where it came prepackaged with my Xfce >> desktop. It identifies itself as "GNOME Document Viewer 3.14.1", >> leaving me wondering if the next version would be 3.14.12 in >> Knuth-style numbering, but that's beside the point. Copying and > > The next digit of pi would not be 2. (But 5.) > > But I don't think they are doing that, because the point. Umm, yeah. Dunno why I typed a 2 there. But you knew what I meant. ChrisA
[toc] | [prev] | [next] | [standalone]
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Date | 2015-07-22 08:47 +0100 |
| Message-ID | <mailman.858.1437551279.3674.python-list@python.org> |
| In reply to | #94289 |
On 21/07/2015 18:25, Laura Creighton wrote: > In a message of Wed, 22 Jul 2015 00:48:06 +1000, Chris Angelico writes: >> Actually, maybe don't use PDF at all. I keep having to help my Mum >> deal with stupid problems with PDF documents she gets, and I'm never >> sure whether the fault is with the PDF creation software, the human >> operating said software, or limitations in the file format itself. >> >> ChrisA > > Lots of the problems are with the free reader, adobe acrobat. It is > designed so that the user is kept very much in a straight-jacket which > is a problem when your Mum needs, for instance, things to be in 36 point > for her to be able to read things at all because she is nearly blind. > > Laura > Just remembered alternativeto.net which is a rather useful site if you're looking for a replacement for some app. Just saying as I'm sure some folk will have heard of it, others won't. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence
[toc] | [prev] | [next] | [standalone]
| From | Laura Creighton <lac@openend.se> |
|---|---|
| Date | 2015-07-21 10:24 +0200 |
| Message-ID | <mailman.809.1437467069.3674.python-list@python.org> |
| In reply to | #94251 |
In a message of Mon, 20 Jul 2015 19:49:56 -0700, ryguy7272 writes: >I'm trying to copy some Python code from a PDF book that I'm reading. I want to test out the code, and I can copy it, but when I paste it into the Shell, everything is all screwed up because of the indentation. Every time I paste in any kind of code, it seems like everything is immediately left-justified, and then nothing works. > >Any idea how to make this work easily? Without re-typing hundreds of lines of code... > >Thanks to all. >-- >https://mail.python.org/mailman/listinfo/python-list What I do is run my pdf file through pdftotext https://en.wikipedia.org/wiki/Pdftotext and get a text version of the file. If the file is large, sometimes I just save the code I want to convert as separate pdf files and then convert them. Then I paste from the result, not the pdf. You want to give the -layout and -nopgbrk options to pdftotext. It's not perfect, but saves a lot of work. Make sure your pdf is writing your python code in a fixed width font before you try this, or it will be hopeless. If your python code is being displayed in the book in a variable width font, you will first have to hack your pdf to stop doing this, and then run it through the tool. Write back if you need more help. Laura
[toc] | [prev] | [next] | [standalone]
| From | "Peter Heitzer" <peter.heitzer@rz.uni-regensburg.de> |
|---|---|
| Date | 2015-07-21 08:40 +0000 |
| Message-ID | <d16errFqp0kU1@mid.individual.net> |
| In reply to | #94251 |
ryguy7272 <ryanshuell@gmail.com> wrote: >I'm trying to copy some Python code from a PDF book that I'm reading. I want to test out the code, and I can copy it, but when I paste it into the Shell, everything is all screwed up because of the indentation. Every time I paste in any kind of code, it seems like everything is immediately left-justified, and then nothing works. >Any idea how to make this work easily? Without re-typing hundreds of lines of code... try cat >testfile , paste in and type ^D or use a graphical text editor to paste the code in.
[toc] | [prev] | [next] | [standalone]
Page 2 of 3 — ← Prev page 1 [2] 3 Next page →
Back to top | Article view | comp.lang.python
csiph-web