Jump to content

Recommended Posts

Posted

In Adobe InDesign, if you import text with embedded style tags (e.g. "<pstyle:bodytext>"), the program will format that paragraph with the specified paragraph style, and remove the style tag in the text. So an editor can set up all the text formatting with style tags, and when the text is imported it's automatically perfectly formatted. Can Publisher do this? If so, how? If not, is this something that could be added to future versions?

Also, in Adobe InDesign, you can copy formatted text from one document into another, and if the second document has the same style names but different specs (e.g. "bodytext" is defined as 12 point instead of 10 point), the text will adopt the new style specs. But when I try this in Publisher, the text retains the old specs, and it's original style is added as, e.g. "bodytext1". Is there any way to override this so that the text adopts the new style specs in the second document?

Posted
59 minutes ago, planetbuck said:

text is imported it's automatically perfectly formatted. Can Publisher do this? If so, how? If not, is this something that could be added to future versions?

No. Publisher cannot do this, I do wish it could but I won't hold my breath.

59 minutes ago, planetbuck said:

and it's original style is added as, e.g. "bodytext1". Is there any way to override this so that the text adopts the new style specs in the second document?

Do a find and replace with nothing in the Find box but search for the bodytext1 style and replace it with bodytext.

Mac Pro (Late 2013) Mac OS 12.7.6 
Affinity Designer 2.5.7 | Affinity Photo 2.5.7 | Affinity Publisher 2.5.7 | Beta versions as they appear.

I have never mastered color management, period, so I cannot help with that.

Posted

Thanks Old Bruce, the style search and replace works great! Given that, a possible workaround for importing text with style tags already embedded: Once text is imported, search for the tag text (e.g. <pstyle:bodytext>) and replace with the style set up in Publisher. Then all the paragraphs with the tag will be formatted into the paragraph style. Next, search again for the tag text and replace it with a "zero width space" to essentially delete all of those tags. Unless there's a way to just find and delete the tag text outright? Anyone have any other ideas?

Posted
1 hour ago, planetbuck said:

Anyone have any other ideas?

If you are familiar with grep or regular expressions use the format  <pstyle:bodytext>(.) for the find and \1  (backslash 1(one)) in the replace plus specify the Publisher style. The \1 will replace with whatever is in the brackets, in this case it is a 'dot' or wildcard meaning anything other than a line break, it will find the first thing and then replace it with itself and change the style but it will get rid of the tags.

Mac Pro (Late 2013) Mac OS 12.7.6 
Affinity Designer 2.5.7 | Affinity Photo 2.5.7 | Affinity Publisher 2.5.7 | Beta versions as they appear.

I have never mastered color management, period, so I cannot help with that.

Posted

Thanks again Old Bruce, you are saving my bacon. Indeed I'm not familiar with "grep or regular expressions" and when I enter the fields as you described, the find function does not find anything, so not sure what I'm doing wrong.

But realized I can just do everything I need in one operation by entering <pstyle:bodytext> in the Find field, and for the Replace field use the "zero width space" as well as choose the "bodytext" paragraph style. I've never seen a "zero width space" character before; I see there's an invisible character there in the text, but it doesn't seem to cause any problems so I think it's fine to have it there.

I'm still having two other issues when importing text.

There are some tags for character styles as well as the paragraph styles we've been discussing. When I do a similar find and replace for character styles, it seems to do the whole paragraph (text between hard returns) in that character style, not just the text following the tag. In other words the find and replace seems to be treating a character style as a paragraph style.

Also I'm getting some odd characters in the text. "Õ" is replacing the apostrophes, and "Ê" is showing up kind of randomly where there should just be space bar spaces in the text. Any idea what's going on? Thanks again and happy new year.

 

Posted

The last problem I noted, the odd characters showing up, is only when I import a plain text document. When I import a Word document, no more odd characters. So, that problem solved.

Posted

Also I'm understanding that the character styles only apply to the text selected, not to the end of the paragraph. It seems I will just have to format the character styles bit by bit. So maybe I've got all my answers. Feel free to comment with any insights. Thanks again.

Posted

I should have gone the extra step and included this;

873946650_ScreenShot2020-01-01at6_11_39AM.png.bca9331b5fa9d254eb74ba542124955a.png

click on the cog wheel/gear icon at the find level and choose Regular Expressions. The Local Aware Regular Expressions is something I haven't played with, I think it takes into account more than one language being used in one document.

Mac Pro (Late 2013) Mac OS 12.7.6 
Affinity Designer 2.5.7 | Affinity Photo 2.5.7 | Affinity Publisher 2.5.7 | Beta versions as they appear.

I have never mastered color management, period, so I cannot help with that.

Posted
On 12/31/2019 at 4:27 PM, Old Bruce said:

If you are familiar with grep or regular expressions use the format  <pstyle:bodytext>(.) for the find and \1  (backslash 1(one)) in the replace plus specify the Publisher style. The \1 will replace with whatever is in the brackets, in this case it is a 'dot' or wildcard meaning anything other than a line break, it will find the first thing and then replace it with itself and change the style but it will get rid of the tags.

Genius! This is one of the things that had me hesitant to buy Publisher. It's not the most elegant way of doing it, but it indeed works! Thanks Old Bruce!!!

Posted

Hi there. Please I would like to ask you.
Any chance for this one? I need applied character (no paragraph) style for blue text. If I use your example is selected only first character. I need select all text among the blue tags. 

 

ScreenShot_20200109124205.png

Posted

Find

<blue>(.+)</blue>

Replace 

\1

The + means one or more, so .+ means (wildcard (any thing other than a paragraph mark)at least one and many more)

The original was just a single wildcard meaning any letter or space or piece of punctuation.

EDIT: This may not work, I haven't completely awoken yet I'll reply with a better one later if it doesn't.

Mac Pro (Late 2013) Mac OS 12.7.6 
Affinity Designer 2.5.7 | Affinity Photo 2.5.7 | Affinity Publisher 2.5.7 | Beta versions as they appear.

I have never mastered color management, period, so I cannot help with that.

Posted
11 minutes ago, Old Bruce said:

<blue>(.+)</blue>

Safer to use <blue>(.+?)</blue> where the ? will make the match non-greedy. That way, if you have a line with two chunks of blue text, with something else between them, the other text won't be included.

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
    Laptop 2: Windows 11 Pro 24H2,  16GB memory, Snapdragon(R) X Elite - X1E80100 - Qualcomm(R) Oryon(TM) 12 Core CPU 4.01 GHz, Qualcomm(R) Adreno(TM) X1-85 GPU
iPad:  iPad Pro M1, 12.9": iPadOS 18.3, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sequoia 15.0.1

Posted
12 minutes ago, vlastas said:

It works great. I found this one and it works as well. 

See Walt's description above. That is key. His explanation is spot on about how it works.

Mac Pro (Late 2013) Mac OS 12.7.6 
Affinity Designer 2.5.7 | Affinity Photo 2.5.7 | Affinity Publisher 2.5.7 | Beta versions as they appear.

I have never mastered color management, period, so I cannot help with that.

Posted

Maybe you text experts can help with this question. When I import text into Publisher, say from a Word doc or a txt file, all the apostrophes turn into straight-up-and-down tick marks. Likewise quotations marks go straight-up-and-down. Doesn't seem to matter what font I use. Not sure if this is an Affinity thing or a Catalina thing, but when I was working in an older Mac OS and with Adobe InDesign this never happened. And yes, in Publisher preferences I have checked "Change straight quotes to typographic quotes." Help please?

Posted
13 hours ago, planetbuck said:

in Publisher preferences I have checked "Change straight quotes to typographic quotes."

That preference affects only characters that you type, not characters that are pasted or that are imported by File > Place.

If you have actual curly quotation marks in your Word doc or txt file I would expect them to survive, so I'm not sure why you're seeing the behavior you've reported.

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
    Laptop 2: Windows 11 Pro 24H2,  16GB memory, Snapdragon(R) X Elite - X1E80100 - Qualcomm(R) Oryon(TM) 12 Core CPU 4.01 GHz, Qualcomm(R) Adreno(TM) X1-85 GPU
iPad:  iPad Pro M1, 12.9": iPadOS 18.3, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sequoia 15.0.1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | 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.