Jump to content

Search the Community

Showing results for tags 'tagged text'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Affinity Support
    • News and Information
    • Affinity Support & Questions
    • Feature Requests & Suggestions
  • Learn and Share
    • Tutorials (Serif and Customer Created Tutorials)
    • Share your work
    • Resources
  • Bug Reporting
    • Report a Bug in Affinity Designer
    • Report a Bug in Affinity Photo
    • Report a Bug in Affinity Publisher
    • (Pre 1.7) Affinity Range Bugs Forums
  • Beta Software Forums
    • Affinity Designer Beta Forums
    • Affinity Photo Beta Forums
    • Affinity Publisher Beta Forums

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 3 results

  1. Are there any plans to add scripting support? I notice there is no Applescript library at all but am interested to know if there are plans to add Applescript or perhaps Javascript support. Virtually everything we do as far as creating PDFs, packaging, placing images and text, formatting, proofing, sending pages to print etc is done via script. Tagged text goes hand-in-hand with scripting so I think this needs to also be supported.
  2. I've had some difficulty using Find&Replace to apply styles to tagged text on import, but found a solution that worked. This is somewhat more involved than the Find&Replace recipe which has been posted on several threads here, and may help someone with similar difficulty. Publisher 1.7.3.481 My import text is a very simplistic HTML-like structure with free line breaks, which Publisher imports as paragraph breaks. <h1>This is a sample header</h1> <p> This is a line in a paragraph, which continues on a 2nd and 3rd line. </p> When I place such a tagged text file (.txt) in a Publisher text frame, the first thing I do is find and replace all the paragraph breaks with single spaces. Find: para-break Replace: space Obviously the actual paragraph break and space characters are used in the RE patterns, but I'm spelling them out here to be clear. Then I use an RE that captures end tags together with any surrounding spaces and replaces them with the end tag, spaces stripped off, and adds a paragraph break. Find: space*(</.*?>)space* Replace: \1 para-break Then for each tag, I use an RE that strips off the start and end tags and any superfluous white space and applies the appropriate paragraph style Find: <p>\s*(.*?)\s*</p> Replace: \1 (Format with Body) Similarly for <h1> and Heading 1 and the other tags. So, why did I do it this way? Why didn't I just strip off the tags and superfluous spaces, apply the styling and add a paragraph break in one step, combining my 2nd and 3rd Find&Replace steps? The answer is simple: It doesn't work! When I apply the 2nd tag style, the style is also applied to the adjacent paragraphs previously converted to the 1st tag style. I tried both "para-break \1" and "\1 para-break" as replacement patterns, but neither leaves the previously converted text alone. The solution is to introduce the paragraph breaks first to separate all the paragraphs cleanly, before styling each paragraph. Trying to chop out paragraphs and style them at the same time using Find&Replace is not "stable", at least in this version of Publisher.
  3. Is tagged text import coming to Affinity Publisher?
×
×
  • Create New...

Important Information

Please note the Annual Company Closure section in the Terms of Use. These are the Terms of Use you will be asked to agree to if you join the forum. | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.