LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-20-2015, 09:10 PM   #31
ttk
Senior Member
 
Registered: May 2012
Location: Sebastopol, CA
Distribution: Slackware64
Posts: 1,038
Blog Entries: 27

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484

Quote:
Originally Posted by D1ver View Post
No emacs suggestions? RMS would be disappoint.
I'm an emacs user (though I use jove most of the time, for the "emacs light" experience). The original post specifically requested a graphical editor, and emacs' graphical interface is horrible. I always use the "-nw" option when using emacs, to force it into ncurses mode (which works very well).

Thus, from my perspective at least, emacs fails to meet the request's criteria.
 
Old 04-20-2015, 10:23 PM   #32
qweasd
Member
 
Registered: May 2010
Posts: 621

Rep: Reputation: Disabled
I agree with ttk, as a religious emacs user too. Whatever emacs is, it's definitely not "lightweight" and is a far cry from "something like notepad in Window[$]". I would point at kate: simple, familiar-looking, blessed by KDE, and already included in Slackware. And for a true standard lightweight app look no further than ed.
 
Old 04-20-2015, 10:23 PM   #33
zakame
Member
 
Registered: Apr 2012
Location: Philippines
Distribution: Debian, Ubuntu, Slackware
Posts: 295

Rep: Reputation: 181Reputation: 181
But ed is the standard text editor...
 
Old 04-20-2015, 11:33 PM   #34
travis82
Member
 
Registered: Feb 2014
Distribution: Bedrock
Posts: 437

Rep: Reputation: 231Reputation: 231Reputation: 231
Quote:
Originally Posted by Diantre View Post
Leafpad maybe.
I agree. Leafpad is the simplest and lightest text editor I have ever used
 
Old 04-21-2015, 12:38 AM   #35
STDOUBT
Member
 
Registered: May 2010
Location: Stumptown
Distribution: Slackware64
Posts: 583

Rep: Reputation: 242Reputation: 242Reputation: 242
No mention of Ted? For shame!
 
Old 04-21-2015, 01:53 AM   #36
turboscrew
Member
 
Registered: Apr 2009
Location: Nokia (town), Finland
Distribution: Mint, Debian
Posts: 601

Original Poster
Rep: Reputation: 46
Quote:
My guess is: about 2000 separate lines to be copied from PDFs and edited.
Think about selection, copying and pasting with keyboard. And from PDFs.

It would actually be great if editor could handle (read) PDFs. It could make copying a LOT easier.
But I guess I can continue dreaming...

This is what it looks like when you click at the first '1' and draw a line down (to select a line):
Click image for larger version

Name:	pdfcpy1.png
Views:	89
Size:	161.7 KB
ID:	18182

And this is what the paste looks like:
Code:
if W == ‘1’ && Rn == ‘1101’ then SEE POP (Thumb);
n = UInt(Rn); registers = P:M:’0’:register_list; wback = (W == ‘1’);
if n == 15 || BitCount(registers) < 2 || (P == ‘1’ && M == ‘1’) then UNPREDICTABLE;
if registers<15> == ‘1’ && InITBlock() && !LastInITBlock() then UNPREDICTABLE;
if wback && registers<n> == ‘1’ then UNPREDICTABLE;
Encoding T1 ARMv4T, ARMv5T*, ARMv6*, ARMv7 (not in ThumbEE)
LDM<c> <Rn>!, <registers> <Rn> not included in <registers>
LDM<c> <Rn>, <registers> <Rn> included in <registers>
Encoding T2 ARMv6T2, ARMv7
LDM<c>.W <Rn>{!}, <registers>
ThumbEE instructions See 16-bit ThumbEE instructions on page A9-1115.
1 1 0 0 1 Rn register_list
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 1 0 1 0 0 0 1 0 W 1 Rn P M (0) register_list
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
You see the source of my misery? :-)
 
Old 04-21-2015, 02:06 AM   #37
turboscrew
Member
 
Registered: Apr 2009
Location: Nokia (town), Finland
Distribution: Mint, Debian
Posts: 601

Original Poster
Rep: Reputation: 46
Hm, I made the thread 'unsolved' again, since the discussion seems to interest people - including me.
 
Old 04-21-2015, 03:03 AM   #38
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Gvim - graphical vim, leafpad and tea are simple and basic text editors. Though gvim is advanced as vim is.
 
Old 04-21-2015, 04:51 AM   #39
dederon
Member
 
Registered: Oct 2013
Posts: 108

Rep: Reputation: 56
Quote:
Originally Posted by turboscrew View Post
It would actually be great if editor could handle (read) PDFs.
didn't you talk about a *lightweight* text editor?

Quote:
Originally Posted by turboscrew View Post
Think about selection, copying and pasting with keyboard. And from PDFs.
convert the document with pdftotext first.

Last edited by dederon; 04-21-2015 at 04:57 AM.
 
1 members found this post helpful.
Old 04-21-2015, 04:56 AM   #40
MadMaverick9
Member
 
Registered: Aug 2010
Posts: 353
Blog Entries: 4

Rep: Reputation: Disabled
Try this in vim:
Code:
:read !pdftotext input.pdf -
The "-" means that "pdftotext" will send its output to stdout.

@dederon: you beat me to it.
 
1 members found this post helpful.
Old 04-21-2015, 06:26 AM   #41
turboscrew
Member
 
Registered: Apr 2009
Location: Nokia (town), Finland
Distribution: Mint, Debian
Posts: 601

Original Poster
Rep: Reputation: 46
I actually converted the PDF to text file a bit earlier, and I was astonished to see how fast the search in Vim is, even if the file is quite big.

I might use Vim, or maybe Vim for copying and some other editor for pasting and editing.

I recall using Vim not so long ago and I pasted something, and I recall you have to open a line first before you can paste, and then go back to command mode to move around.
For marking and copying you can stay in command mode.
 
Old 04-21-2015, 06:34 AM   #42
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
Quote:
Originally Posted by turboscrew View Post
I recall using Vim not so long ago and I pasted something, and I recall you have to open a line first before you can paste, and then go back to command mode to move around.
For marking and copying you can stay in command mode.
Only if you want to paste using SHFT-CTRL-V. Then you have to enter edit mode because the SHFT-CTRL-V actually pastes characters in the keyboard buffer. For "internal" pasting in Vim (using p or P) you stay in command mode.

jlinkels
 
1 members found this post helpful.
Old 04-21-2015, 07:49 AM   #43
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
I didn't find the specific document pictured on post #36 on the internet, but one probably similar: armv7-a-r-manual.pdf. It wheights 23685794 bytes according to ls and has 2734 pages.

Saving it as text using the built-in Acroread's converter (File=>Save as Text) takes a few minutes on my laptop and the layout is not preserved .

"pdftotext -layout <input file> <output file>" is amazingly fast: it takes less that one minute here and somehow preserves the layout, indenting with spaces. This could be handy in your case.

Out of topic, LibreOffice took more than one hour to open the pdf file. The result looks well but is not usable in your case as each page is rendered as a drawing (LibreOffice Draw).

Last edited by Didier Spaier; 04-21-2015 at 07:55 AM. Reason: refernece to post number added
 
2 members found this post helpful.
Old 04-21-2015, 09:51 AM   #44
turboscrew
Member
 
Registered: Apr 2009
Location: Nokia (town), Finland
Distribution: Mint, Debian
Posts: 601

Original Poster
Rep: Reputation: 46
Quote:
Originally Posted by Didier Spaier View Post
I didn't find the specific document pictured on post #36 on the internet, but one probably similar: armv7-a-r-manual.pdf. It wheights 23685794 bytes according to ls and has 2734 pages.
ARM Architecture Reference Manual
ARMv7-A and ARMv7-R edition
Issue C
Quote:

Saving it as text using the built-in Acroread's converter (File=>Save as Text) takes a few minutes on my laptop and the layout is not preserved .

"pdftotext -layout <input file> <output file>" is amazingly fast: it takes less that one minute here and somehow preserves the layout, indenting with spaces. This could be handy in your case.
I can have the PDF open on the side and search by chapter numbering from the text file. It doesn't cause too much trouble (considering copying from a PDF - the aiming with the mouse cursor is pretty time consuming and frustrating).
That said, maybe I'll try the '-layout'.
[EDIT]
Yep, still better with layout preserved. Thanks, Didier Spaier!
[/EDIT]
Quote:
Out of topic, LibreOffice took more than one hour to open the pdf file. The result looks well but is not usable in your case as each page is rendered as a drawing (LibreOffice Draw).
Calligra can't open it at all. I remember that OpenOffice does the best job of the three with PDFs. That's the only reason I have OoO on a windows PC.
(I think I'm going to remove Calligra and install Libre Office instead.)

Last edited by turboscrew; 04-21-2015 at 10:00 AM.
 
Old 04-21-2015, 02:09 PM   #45
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
geany
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fast lightweight PHP editor/IDE Chaves Slackware 7 12-25-2017 06:41 AM
Lightweight code editor and Xfce start button alaios Linux - Software 4 11-14-2013 06:22 AM
[SOLVED] return text from geany or other editor to IDE after saving and closing the editor mtdew3q Programming 4 05-15-2013 10:40 PM
LXer: Fotoxx - Simple, Lightweight Photo Editor for Linux LXer Syndicated Linux News 0 12-10-2010 04:30 PM
Which light text editor can copy text from file and paste in browser? davidas Linux - Software 9 03-06-2006 11:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration