View Issue Details

IDProjectCategoryView StatusLast Update
0003468ScribusImport / Exportpublic2011-01-15 09:31
ReporterPLucAuclair Assigned Toale  
PrioritynormalSeverityfeatureReproducibilityN/A
Status closedResolutionfixed 
PlatformallOSallOS Versionall
Product Version1.3 
Fixed in Version1.4.0svn 
Summary0003468: Add export all text from .sla into single text file.
DescriptionTry selecting a bunch of text frames and exporting as text, it doesn't work right.
TagsNo tags attached.
Patch

Activities

avox

2006-03-20 15:25

administrator   ~0009382

Could you be more specific about that? Are the textframes linked? Are they all part of the same chain?

Do you expect to be able to export just the text of one frame or of the whole chain?

PLucAuclair

2006-03-20 18:43

reporter   ~0009385

Should have been clearer.

When I try to export text, I select the frames that I want to export or do a "Select All" and try to export them. In this case, they are not linked. So I'd only get one of many frames at export.

mhanski

2006-04-20 12:17

developer   ~0010168

it doesn't look to me like a bug, it's just the way it works now, imho. If the selected frames should be all exported, there are some questions to be cleared first, e.g. in which order should the frames be exported. Changing to a feature request.

cbradney

2006-04-20 12:47

administrator   ~0010170

Exporting to? EPS?

mhanski

2006-04-20 12:56

developer   ~0010172

Last edited: 2006-04-20 12:57

exporting as text, as in description (File/Export/Save Text...)

PLucAuclair

2006-04-20 16:12

reporter   ~0010184

Yes, exporting as text. I don't really care what order it gets out, we just need all text selected to be dumped "out there".

It doesn't matter if they are linked or not either.

cbradney

2006-04-20 20:17

administrator   ~0010196

Out where? To what file? To what web location? To what drive? To what USB key?
How many frames? How many linked frames? How the hell are you going to specify all the filenames for each frame or linked set in one go?

This is a WONT FIX.

mhanski

2006-04-25 21:39

developer   ~0010451

craig, I'm reopening this RFE, because I've just read yet another mail calling for this functionality, and I think, there should be some more place for discussing pros and cons of it, before the final decision will be made. thx in advance for your patience...

1. The more important question is: what would be a real world scenario for this? I can imagine, the main purpose would be to quickly dump the whole text for proof-reading, but PlucAuclair could surely explain more.

2. The less important question is, how to implement it, once we agree, we need this. Optionally, we could just export all text frames of the whole .sla file. One thing that comes to my mind is to go through all frames with the text eporter, copy their contents to one single text file, and number those texts accordingly to their layer and level, e.g.:

=Page 1, Layer 1, Text frame1=
Blablabla....

==Page 1, Layer 2, Text frame 1==
bla bla bla....

plinnell

2006-04-25 23:34

viewer   ~0010455

Last edited: 2006-04-25 23:36

+1 for Maciej's idea. I would be easy then to move/massage text as needed. I do not think we need a fancy selection gui, just add a export text function for the entire file to complement what can be done now with the SE.

Even lowly Pagemaker has a text exporter..

PLucAuclair

2006-04-26 12:57

reporter   ~0010478

"I can imagine, the main purpose would be to quickly dump the whole text for proof-reading"

Yes, this is exactly it.

cbradney

2006-04-26 13:09

administrator   ~0010479

Then you need to outline a way that Scribus should determine which frames are exported, especially the order.

avox

2006-04-26 13:27

administrator   ~0010481

Just go through all textframes, for all with BackBox==NULL:

<STORY PAGE="42" POS="47,11">

blablabla
nextframe blablabla
another nextframe more blabla
last frame has NextFrame==NULL, stop here

</STORY>

and so on.

Sorting in ascending page order might be a bonus; order within page is probably irrelevant.

Makes sense?

cbradney

2006-04-26 15:39

administrator   ~0010497

Linked text is easy, but what about unlinked frames on the same page.. eg
title frame

Linked frame1
               caption frame
text frame

Linked frame2

louisdesjardins

2006-04-27 00:41

developer   ~0010520

This works perfectly in 1.2.4.1

Select text frame
Go to Story Editor
File > Save to [might be something else, back-translating from French]

The complete text will be saved as .txt, no matter in which text frame you clicked. All the text, running on any number of pages, as far as I can tell, provided they are linked together, will be saved in one single file.

I guess the operation could be scripted in order to get more single stories in a document to be exported at once. But the basic function is working fine.

Am I missing the point somewhere?

christoph_s

2006-04-27 01:42

administrator   ~0010521

I'm still not sure whether this is just a waste of time. Proofreading should happen *before* a text is imported into a DTP app. Minor adjustments can be made afterwards; this happens all the time. The only use I can see in such a feature is exporting text in a Scribus file for use in another program.

This feature could be scripted, as Louis wrote, and/or be an option in "Collect for output". And even then users will probably face some difficulties, at least if they're working cross-platform, since OS/X, Win and Unix/Linux use different encodings.

louisdesjardins

2006-04-27 01:58

developer   ~0010522

Exporting to .txt is very important for some clients who don't have the DTP app at hand but own the text itself, such as publishers. We've been doing that regularly for many years. They need a way to get the very last version of their text edited, with final corrections. The corrections were done in the DTP app. They need it back into the WP. We use that function for that purpose. Everyday.

That said, my point is: it works fine in Scribus.

Please PLucAuclair tell us what you mean exactly.

I also think like Christoph this feature has nothing to do with proofreading which must be done upstream. And anyways, if you'd proofread downstream, why would you need the text out of the DTP at this point?

PLucAuclair

2006-04-27 02:04

reporter   ~0010524

I don't really know what to say, maybe it's not a good idea after all.

What I thought would be nice was just a way to dump all text per page from all pages in a single file, nothing fancy, it doesn't even have to be in order.

Like when you have a page with unlinked stuff, and you want to have *all* the text reviewed but cannot post a pdf for some reason, you just dump the text and show it.

I don't know how I could be clearer.

louisdesjardins

2006-04-27 02:20

developer   ~0010525

Can we expect a script working from the feature in the SE do what PLuc is asking for? IMO, the feature is not useless at all. Only, since it exists in a more rudimentary way at the moment (per story), it could be improved to pick-up ALL stories in a document at once. My understanding is scripting could do that.

I cannot say I am convinced all texts should be in one file though. This might lead to (some) confusion.

christoph_s

2006-04-27 02:22

administrator   ~0010526

>>>What I thought would be nice was just a way to dump all text per page from all pages in a single file, nothing fancy, it doesn't even have to be in order.

Well, if you need chaos and confusion, that's the way I would introduce it ;)

Imagine a newspaper or magazine with ads. Now we dump all of the text into one file, and you have articles and ads mixed throughout your file. Fine, your proofreaders will always be grateful to you ;)

Another example from my daily work: Produce a flyer, an exhibition catalogue or something like that with page and image captions. Then export all of the text, either in a single file or into separate files per frame. Either way, this is nothing like a big mess, and it will take forever for proofreaders (and for yourself) to figure out which is which. It's much easier to simply print the pages and to add corrections manually. Believe me, this is less time consuming if you are used to read correction marks than turning somersaults with the computer!!!

axelb

2007-01-18 15:03

reporter   ~0014864

Last edited: 2007-01-18 15:11

But if your text is ordered an nicely laid out, just split in separated frames (for instance one per page) this makes sense to me: Dump all the text, sorted by page order, to the same file. If you want to use your text someplace else this is not that stupid, especially if the textformat could be improved
(http://bugs.scribus.net/view.php?id=5190)
(I mean for those that do not have many smaller frames mixed in, for instance books or non-add journals).

Not necessary, but to make it really good:
Even headings would not be that much of a problem if they could be imported in occurence order: top-bottom, even japanese does that, dont they?
I agree left-right sorted would only make sense for some languages. It could be done according to the chosen language, but I suppose that will mean too much work?
Or just ask the user to choose -- wich also means some (much?) work of course ...

ale

2009-10-07 14:54

manager   ~0022633

Last edited: 2009-10-07 15:07

i have a script for it... if it is not in the wiki yet, i will put it there

p.s.: it's here:
http://wiki.scribus.net/index.php/Export_all_text

plinnell

2011-01-15 09:31

viewer   ~0025393

its now default script in the install

plinnell

2011-01-15 09:31

viewer   ~0025394

fixed

Issue History

Date Modified Username Field Change
2006-03-20 03:26 PLucAuclair New Issue
2006-03-20 15:25 avox Note Added: 0009382
2006-03-20 18:43 PLucAuclair Note Added: 0009385
2006-04-20 12:17 mhanski Note Added: 0010168
2006-04-20 12:17 mhanski Status new => feedback
2006-04-20 12:18 mhanski Severity minor => feature
2006-04-20 12:18 mhanski OS => all
2006-04-20 12:18 mhanski OS Version => all
2006-04-20 12:18 mhanski Platform => all
2006-04-20 12:18 mhanski Product Version 1.3.3cvs => 1.3
2006-04-20 12:18 mhanski Build 2006-03-18 =>
2006-04-20 12:24 mhanski Reproducibility sometimes => N/A
2006-04-20 12:47 cbradney Note Added: 0010170
2006-04-20 12:56 mhanski Note Added: 0010172
2006-04-20 12:57 mhanski Note Edited: 0010172
2006-04-20 16:12 PLucAuclair Note Added: 0010184
2006-04-20 20:17 cbradney Note Added: 0010196
2006-04-20 20:39 cbradney Status feedback => resolved
2006-04-20 20:39 cbradney Resolution open => no change required
2006-04-20 20:39 cbradney Assigned To => cbradney
2006-04-20 20:39 cbradney Status resolved => closed
2006-04-25 21:39 mhanski Status closed => feedback
2006-04-25 21:39 mhanski Resolution no change required => reopened
2006-04-25 21:39 mhanski Note Added: 0010451
2006-04-25 23:34 plinnell Note Added: 0010455
2006-04-25 23:34 plinnell Assigned To cbradney =>
2006-04-25 23:34 plinnell Status feedback => new
2006-04-25 23:36 plinnell Note Edited: 0010455
2006-04-25 23:38 plinnell Summary Exporting text doesn't export all frames. => Add export all text from .sla into single text file.
2006-04-26 12:57 PLucAuclair Note Added: 0010478
2006-04-26 13:09 cbradney Note Added: 0010479
2006-04-26 13:27 avox Note Added: 0010481
2006-04-26 15:39 cbradney Note Added: 0010497
2006-04-27 00:41 louisdesjardins Note Added: 0010520
2006-04-27 01:42 christoph_s Note Added: 0010521
2006-04-27 01:58 louisdesjardins Note Added: 0010522
2006-04-27 02:04 PLucAuclair Note Added: 0010524
2006-04-27 02:20 louisdesjardins Note Added: 0010525
2006-04-27 02:22 christoph_s Note Added: 0010526
2006-04-28 17:48 mhanski Relationship added related to 0003351
2006-04-28 18:01 mhanski Relationship deleted related to 0003351
2006-04-29 19:39 mhanski Status new => feedback
2007-01-18 15:03 axelb Note Added: 0014864
2007-01-18 15:11 axelb Note Edited: 0014864
2007-01-18 15:11 axelb Note Edited: 0014864
2009-10-07 14:54 ale Note Added: 0022633
2009-10-07 15:07 ale Note Edited: 0022633
2011-01-15 09:31 plinnell Note Added: 0025393
2011-01-15 09:31 plinnell Status feedback => resolved
2011-01-15 09:31 plinnell Fixed in Version => 1.4.0svn
2011-01-15 09:31 plinnell Resolution reopened => fixed
2011-01-15 09:31 plinnell Assigned To => ale
2011-01-15 09:31 plinnell Note Added: 0025394
2011-01-15 09:31 plinnell Status resolved => closed