Jump to content
You must now use your email address to sign in [click for more info] ×

Line breaking in the middle of a word


Recommended Posts

I'm on Affinity Publisher version 1.10.5.1342 and I've created a document into which I've set up master pages with text frames. In the layout I've pasted the text of multiple Google Docs files and it seems that when a word would cause a line break, instead of flowing entirely to the new line the word breaks in the middle of itself, such as "s[break]haded", "can'[break]t", or "sto[break]ps". I haven't enabled any sort of hyphenation, automatic or otherwise. If under Character→Positioning and Transform I check "No break" the text line flows out of the frame.

What's causing this and how can I stop it?

Link to comment
Share on other sites

4 hours ago, ManiacClown said:

the word breaks in the middle of itself, such as "s[break]haded", "can'[break]t", or "sto[break]ps"

Where there’s a word such as "sto[break]ps", do you find "stops" when you search for it? If not, there may be a zero-width space (or similar) which is allowing the word to break at that point.

Alfred spacer.png
Affinity Designer/Photo/Publisher 2 for Windows • Windows 10 Home/Pro
Affinity Designer/Photo/Publisher 2 for iPad • iPadOS 17.4.1 (iPad 7th gen)

Link to comment
Share on other sites

Switch on Text > View Special Characters and see if you see any special character inside the words that [break]

To save time I am currently using an automated AI to reply to some posts on this forum. If any of "my" posts are wrong or appear to be total b*ll*cks they are the ones generated by the AI. If correct they were probably mine. I apologise for any mistakes made by my AI - I'm sure it will improve with time.

Link to comment
Share on other sites

Can you give us a sample .afpub file that shows the problem, and the Google Docs document you pasted in that caused it?

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

    Laptop:  Windows 11 Pro, version 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
iPad:  iPad Pro M1, 12.9": iPadOS 17.4.1, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sonoma 14.4.1

Link to comment
Share on other sites

  • 2 weeks later...
On 7/6/2022 at 8:38 PM, ManiacClown said:

What's causing this and how can I stop it?

Don't use a font designed for Arabic for Latin text.

The Latin characters included in this font are designed to be used within some Arabic text.
So there are a number of localizations applied which affect the Latin text.

Your odd break issue is probably because the space character is localised when the language applied to the text is Latin - which increases the width of the space, and since the "space" is actually no longer a space character the APub line breaking algorithm probably confused, and so it just breaks it wherever. Basically it is as if you had entered one long line of characters with no spaces.

Best WAG I got without seeing the actual doc.

Link to comment
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.

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.