Jump to content
Sign in to follow this  
DarkClown

Text wrap problem

Recommended Posts

Maybe the following problem is not seen as a bug by the developers - still it leads to problems or confusion. I'm designing a document that consists of a simple text and a frame the text is supposed to wrap around. Part of my "Design" is that the text consists of some sentences where the words are NOT seperated with spaces, comma or any kind of interpunction. So it's a continuous stream of letters. This text breaks nicely at the end of the text frame but will not wrap around other frames. When I start adding spaces and interpunction all works fine as expected. Any idea how to overcome this problem?

image.png.83fbdb672f3c3b353730c1cbc478e10b.png

 

 image.png.95a02e6d574eae02f44cc38a324d460a.png

 

Cheers, Timo


iCore i7-3770, 3.50GHz, 32GB RAM, SSD, NVIDIA GeForce GTX 1660 Ti, Windows 10 Pro - AP, AD and APublisher latest final & beta
http://www.timobierbaum.com

Share this post


Link to post
Share on other sites

I would probably insert line breaks at an appropriate place in the text to allow lines the right length to appear beside the wrap object.

The screen show is in Q, but it'll work the same in APub.

Capture_000552.png.46aee2a5405f944a837210e1050bad72.png

Share this post


Link to post
Share on other sites

That would work, but you can't move the frame after that any more without having to change all the line breaks again ... 

My current solution is to have 2 or 3 text boxes with floating text that spare out the box I want to wrap the text around .... 

 

image.png.8f95b435ebc6479e508e0953942c9683.png


iCore i7-3770, 3.50GHz, 32GB RAM, SSD, NVIDIA GeForce GTX 1660 Ti, Windows 10 Pro - AP, AD and APublisher latest final & beta
http://www.timobierbaum.com

Share this post


Link to post
Share on other sites

Text wrapping relies on spaces or breaks. If you don't want to add breaks you could add zero-width or thin spaces at appropriate spots. Yes, if you move the frame you may need to rework things, but you could simply leave the old spaces in place and add new ones where appropriate, which might be a simpler change.


-- Walt

Windows 10 Home, version 1909 (183623.476),
   Desktop: 16GB memory, Intel Core i7-6700K @ 4.00GHz, GeForce GTX 970
   Laptop:  8GB memory, Intel Core i7-3625QM @ 2.30GHz, Intel HD Graphics 4000 or NVIDIA GeForce GT 630M
Affinity Photo 1.8.3.641 and 1.8.4.650 Beta   / Affinity Designer 1.8.3.641 and 1.8.4.650 Beta  / Affinity Publisher 1.8.3.641 and 1.8.4.651 Beta.

Share this post


Link to post
Share on other sites
1 hour ago, DarkClown said:

My current solution is to have 2 or 3 text boxes with floating text that spare out the box I want to wrap the text around .... 

I assumed you wanted a single text frame. Wrong assumption. 

I would normally also use X number of text frames as well. 

Share this post


Link to post
Share on other sites
2 hours ago, walt.farrell said:

Text wrapping relies on spaces or breaks. If you don't want to add breaks you could add zero-width or thin spaces at appropriate spots. Yes, if you move the frame you may need to rework things, but you could simply leave the old spaces in place and add new ones where appropriate, which might be a simpler change.

I realised that as well. Since my text has no spaces it would have been nice if breaking the text around a frame would work the same way as within the original textframe (here the text breaks perfectly anywhere). If I need zwero-width I would need to add one after each letter to get the desired effect.

@Mike: Yes, a single frame would have been the preferred solution. Now I have to simulate the text wrap by adding multiple frames and connecting them. Results in inconsisten line spacing between the frames.


iCore i7-3770, 3.50GHz, 32GB RAM, SSD, NVIDIA GeForce GTX 1660 Ti, Windows 10 Pro - AP, AD and APublisher latest final & beta
http://www.timobierbaum.com

Share this post


Link to post
Share on other sites
38 minutes ago, DarkClown said:

I realised that as well. Since my text has no spaces it would have been nice if breaking the text around a frame would work the same way as within the original textframe (here the text breaks perfectly anywhere). If I need zwero-width I would need to add one after each letter to get the desired effect.

@Mike: Yes, a single frame would have been the preferred solution. Now I have to simulate the text wrap by adding multiple frames and connecting them. Results in inconsisten line spacing between the frames.

The zero width character might be able to be inserted via grep. I'm still buried in Q as edits are coming in so cannot try.

Share this post


Link to post
Share on other sites
6 hours ago, MikeW said:

The zero width character might be able to be inserted via grep.

It can.

Find: (.)
Replace: \1#

where the # represents a zero-width space. Right-click in the replace field, and choose it from the pull-down.


-- Walt

Windows 10 Home, version 1909 (183623.476),
   Desktop: 16GB memory, Intel Core i7-6700K @ 4.00GHz, GeForce GTX 970
   Laptop:  8GB memory, Intel Core i7-3625QM @ 2.30GHz, Intel HD Graphics 4000 or NVIDIA GeForce GT 630M
Affinity Photo 1.8.3.641 and 1.8.4.650 Beta   / Affinity Designer 1.8.3.641 and 1.8.4.650 Beta  / Affinity Publisher 1.8.3.641 and 1.8.4.651 Beta.

Share this post


Link to post
Share on other sites
6 minutes ago, walt.farrell said:

It can.

Find: (.)
Replace: \1#

where the # represents a zero-width space. Right-click in the replace field, and choose it from the pull-down.

Hah. Never got back to trying it. Thanks, Walt!

Share this post


Link to post
Share on other sites

@Walt: Sorry to ask, but I have no experience with GREP ... And since GREP is not available on windows I hope I'll manage to replace the functionality with findstr .... (supposed to be quite close to GREP) or I'll try the replace function in Notepad++ since it allows regular expressions. I do understand that (.) stands for every character in the search option. But than I have to first add this character in the "Replace" field plus adding the "zero-width space" code for Publisher (what I don't know)? Since you seem to be quite familiar with RegEx can you help me out here?

@Gitta,

Ich halte es für besser weiter Englisch zu schreiben, damit andere die Diskussion mitverfolgen können ;-)

thanks for the interesting example! Seems like you added a zero-width space after each word. As Walt described above it must be possible to automate this action with grep (never tired that before). The result is impressive and the behaviour is mostly as hoped for. If you turn of hyphentation and add <zwsp> between each letter that might lead to the desired result.  In that case even left justified text should look OK.

Thx for the effort!
Cheers, Timo


iCore i7-3770, 3.50GHz, 32GB RAM, SSD, NVIDIA GeForce GTX 1660 Ti, Windows 10 Pro - AP, AD and APublisher latest final & beta
http://www.timobierbaum.com

Share this post


Link to post
Share on other sites
Posted (edited)
1 hour ago, DarkClown said:

Sorry to ask, but I have no experience with GREP ... And since GREP is not available on windows I hope I'll manage to replace the functionality with findstr .... (supposed to be quite close to GREP) or I'll try the replace function in Notepad++ since it allows regular expressions. I do understand that (.) stands for every character in the search option. But than I have to first add this character in the "Replace" field plus adding the "zero-width space" code for Publisher (what I don't know)? Since you seem to be quite familiar with RegEx can you help me out here?

Regular expression processing is available in Publisher for both Mac and Windows, Timo.

A command processor named grep is also available outside of Publisher if you've installed/activated the Windows Subsystem for Linux, but just stay on Publisher :)

In the Find and Replace plan select Regular Expression from the options.

In the Find field, (.) matches any printable character, and captures whatever character it matched.

in the Replace field, \1 or $1 will substitute the character that matched. Then you right-click on the Replace field Then, you click on the Replace pulldown and insert a zero-width space from the context menu choices you're given.

Edited by walt.farrell
Sorry; it wasn't a right-click but a click on the pulldown.

-- Walt

Windows 10 Home, version 1909 (183623.476),
   Desktop: 16GB memory, Intel Core i7-6700K @ 4.00GHz, GeForce GTX 970
   Laptop:  8GB memory, Intel Core i7-3625QM @ 2.30GHz, Intel HD Graphics 4000 or NVIDIA GeForce GT 630M
Affinity Photo 1.8.3.641 and 1.8.4.650 Beta   / Affinity Designer 1.8.3.641 and 1.8.4.650 Beta  / Affinity Publisher 1.8.3.641 and 1.8.4.651 Beta.

Share this post


Link to post
Share on other sites
5 minutes ago, walt.farrell said:

Regular expression processing is available in Publisher for both Mac and Windows, Timo.

A command processor named grep is also available outside of Publisher if you've installed/activated the Windows Subsystem for Linux, but just stay on Publisher :)

In the Find and Replace plan select Regular Expression from the options.

In the Find field, (.) matches any printable character, and captures whatever character it matched.

in the Replace field, \1 or $1 will substitute the character that matched. Then you right-click on the Replace field and insert a zero-width space from the context menu choices you're given.

Uups, sorry, my mistake ... I wasn't aware publisher had it build in ... great!!
And now things behave exactly as I expected it to be.
Once you got it it's not such a rocket science any more. On the other hand I wouldn't have figured that out that easily myself.
So thanks for your sound input - very much appreciated!

@Mike: I checked again and indeed found a grepWIN version!

Cheers, Timo

 


iCore i7-3770, 3.50GHz, 32GB RAM, SSD, NVIDIA GeForce GTX 1660 Ti, Windows 10 Pro - AP, AD and APublisher latest final & beta
http://www.timobierbaum.com

Share this post


Link to post
Share on other sites

You're welcome, Timo.


-- Walt

Windows 10 Home, version 1909 (183623.476),
   Desktop: 16GB memory, Intel Core i7-6700K @ 4.00GHz, GeForce GTX 970
   Laptop:  8GB memory, Intel Core i7-3625QM @ 2.30GHz, Intel HD Graphics 4000 or NVIDIA GeForce GT 630M
Affinity Photo 1.8.3.641 and 1.8.4.650 Beta   / Affinity Designer 1.8.3.641 and 1.8.4.650 Beta  / Affinity Publisher 1.8.3.641 and 1.8.4.651 Beta.

Share this post


Link to post
Share on other sites

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.

Sign in to follow this  

×
×
  • 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.