[scribus] Importing Pages with Text Frame Chain

Craig Bradney cbradney at scribus.info
Tue Apr 19 20:12:55 UTC 2022


Hi Matt

I am not sure what you are trying to achieve however I don’t think we have built the scripter functions to support this. I think it exist in the GUI as we have the menu item:  Item, Text Frame Links, Unlink and break chain. Frames are just a place (single or a chain) to present a Story of Text. A cursor selection can be placed over a text and then the selection copied, again these functions may only be partially represented in Scripter. Maybe it will work. The cmdtext.cpp function contains the code.

Also, not sure if you mentioned earlier, but what version of Scribus are you using?

Thanks
Craig

On 18/04/2022, 17:20, "Matt Miller" <matt.miller at fastmail.com> wrote:

    I'm still struggling with this, and it seems one reason is that I want to take advantage of text frame chains to initialize documents from text files, but when I'm editing existing documents the text frame chain is often getting in the way. So, how would I get rid of the frame chain after I've used it to help layout a new document?

    Thanks.


    On Sat, Apr 16, 2022, at 11:22, Matt Miller wrote:
    > I'm trying use importPage() to replace selected pages with pages from 
    > another document, but the document I'm importing from uses a text frame 
    > chain. It seems that since the text in the other document is associated 
    > with a frame chain and not with any particular frame, I'm not able to 
    > import a page from somewhere in the middle of the other document and 
    > get in my new document the text that would show in that page of the 
    > other doc. As far as I can tell from the XML it's not stored in the 
    > .sla what text is in each frame, but all the text of the entire chain 
    > is just stored as a single piece of text.
    >
    > I'm thinking of opening the other document, using getFrameText() to 
    > copy from the desired page of the other document, then using 
    > insertText() to paste into my new document, But each page could have 
    > multiple frames to copy and paste from, so that's more complex than a 
    > page import. I'm wondering if there's some way to do this at the page 
    > level, without looping over all the objects on a page.
    >
    > Thanks.
    >
    >
    > --
    >
    >   Matt Miller
    >   mailto:matt.miller at fastmail.com
    >
    > -------------- next part --------------
    > An HTML attachment was scrubbed...
    > URL: 
    > <http://lists.scribus.net/pipermail/scribus/attachments/20220416/c247fb0a/attachment.htm>
    > ___
    > Scribus Mailing List: scribus at lists.scribus.net
    > Edit your options or unsubscribe:
    > http://lists.scribus.net/mailman/listinfo/scribus
    > See also:
    > http://wiki.scribus.net
    > http://forums.scribus.net

    -- 

      Matt Miller
      mailto:matt.miller at fastmail.com

    ___
    Scribus Mailing List: scribus at lists.scribus.net
    Edit your options or unsubscribe:
    http://lists.scribus.net/mailman/listinfo/scribus
    See also:
    http://wiki.scribus.net
    http://forums.scribus.net





More information about the scribus mailing list