Character spacing

Discuss the word processor
tays01s
Posts: 420
Joined: Thu Oct 28, 2010 7:57 am

Character spacing

Post by tays01s »

I've just upgraded from NO 3.1.2 to LO 3.5.4 and when text is justified, instead of having a wider space between words all the characters are spaced out. How do you go back to the former?
LO 4.2.2.1 on OSX 10.8.5
User avatar
Hagar Delest
Moderator
Posts: 33614
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: Character spacing

Post by Hagar Delest »

Can you upload a screenshot and a sample file?
LibreOffice 25.2 on Linux Mint Debian Edition (LMDE 7 Gigi) and 25.2 portable on Windows 11.
User avatar
RoryOF
Moderator
Posts: 35203
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Character spacing

Post by RoryOF »

Check your page size and margins. Possibly changed from A4 to US Letter?
Apache OpenOffice 4.1.16 on Xubuntu 24.04.4 LTS
User avatar
RoryOF
Moderator
Posts: 35203
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Character spacing

Post by RoryOF »

Try /View /Nonprinting characters. If you see a left pointing hooked arrow at each line end, this is the problem. If so, come back for more help and never ever use Ctrl Shift Enter at line ends again!
Apache OpenOffice 4.1.16 on Xubuntu 24.04.4 LTS
tays01s
Posts: 420
Joined: Thu Oct 28, 2010 7:57 am

Re: Character spacing

Post by tays01s »

I can see the hooked arrow at the right hand end only, see attached. However, I only use Enter, never Ctl + Enter (incidentally it's a Mac).
Character spacing.png
Character spacing.png (27.94 KiB) Viewed 14031 times
LO 4.2.2.1 on OSX 10.8.5
User avatar
RoryOF
Moderator
Posts: 35203
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Character spacing

Post by RoryOF »

/Edit / Find and Replace: in Find box "\n", in Replace box "\n". Leave out the quotes. Drop down More Options and make sure "Regular Expressions" is checked and select the find/replace/find all/Replace all buttons as you wish.

The \n in Find says to find line feed characters (Ctrl Shift Enter), which are shown by the hooked left arrow. In the Replace box it means "Paragraph mark".

I vaguely remember from dealing with a Mac some 30+ years ago that there is (was?) a difference in how Macs handled line ends/paragraph marks. Perhaps some Mac user might comment? Sometimes we get beginnning users who insist on forcing line breaks by Shift Enter, instead of leaving Writer to do the wordwrap automatically, hence my encouragement to eschew Shift Enter!
Apache OpenOffice 4.1.16 on Xubuntu 24.04.4 LTS
lgusaas
Volunteer
Posts: 1582
Joined: Sun Mar 30, 2008 8:32 pm
Location: Moose Jaw, SK Canada

Re: Character spacing

Post by lgusaas »

RoryOF wrote:I vaguely remember from dealing with a Mac some 30+ years ago that there is (was?) a difference in how Macs handled line ends/paragraph marks. Perhaps some Mac user might comment? Sometimes we get beginnning users who insist on forcing line breaks by Ctrl Enter, instead of leaving Writer to do the wordwrap automatically, hence my encouragement to eschew Ctrl Enter!
On Macs it is Shift/Enter for a manual line break (also called soft return).
Larry I. Gusaas
Moose Jaw, SK Canada
Website: http://larry-gusaas.com
"An artist is never ahead of his time but most people are far behind theirs." Edgard Varese
Apache OpenOffice 4.1.14 — MacBook Air (M1)—macOS Ver.15.3.1 Sequoia
User avatar
RoryOF
Moderator
Posts: 35203
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Character spacing

Post by RoryOF »

Thank you, lgusaas. You are correct - it was Shift Enter, not ctrl Enter, and I have amended the earlier postings accordingly. You can tell by my not remembering that I don't use it!
Apache OpenOffice 4.1.16 on Xubuntu 24.04.4 LTS
tays01s
Posts: 420
Joined: Thu Oct 28, 2010 7:57 am

Re: Character spacing

Post by tays01s »

I tried search for \n but found none. In fact the spacing problem disappears if I press Enter instead of having a space/word wrap. I attach a sample.
Attachments
Spacing.odt
(12.22 KiB) Downloaded 235 times
LO 4.2.2.1 on OSX 10.8.5
User avatar
RoryOF
Moderator
Posts: 35203
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Character spacing

Post by RoryOF »

In the search for \n you must ensure Regular Expressions is checked on More Options dropdown on Find and Replace window.

Pressing Enter will work, but you have to position to each end of line and do it. Find and Replace for \n does it in the whole file.
Apache OpenOffice 4.1.16 on Xubuntu 24.04.4 LTS
tays01s
Posts: 420
Joined: Thu Oct 28, 2010 7:57 am

Re: Character spacing

Post by tays01s »

I've put \n in Find and Replace with Regular Expressions checked but there's nothing to find. Did you find it worked on the file I uploaded?
LO 4.2.2.1 on OSX 10.8.5
User avatar
RoryOF
Moderator
Posts: 35203
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Character spacing

Post by RoryOF »

I didn't check - will try later.
Apache OpenOffice 4.1.16 on Xubuntu 24.04.4 LTS
jrkrideau
Volunteer
Posts: 3816
Joined: Sun Dec 30, 2007 10:00 pm
Location: Kingston Ontario Canada

Re: Character spacing

Post by jrkrideau »

tays01s wrote:I've put \n in Find and Replace with Regular Expressions checked but there's nothing to find. Did you find it worked on the file I uploaded?
I think that one problem may be that there is some direct (hard) formatting in the table you supplied. Removing it cured the problem in the top left cell.
LibreOffice 7.3.7. 2; Ubuntu 22.04
User avatar
RoryOF
Moderator
Posts: 35203
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Character spacing

Post by RoryOF »

I've checked on my computers - the character spacing.odt file has been deleted in a daily clean up, so I can't check if \n etc is removing your line feed characters. I entered some line feeds on a dummy file and they were duly found and changed to paragraph marks.
Apache OpenOffice 4.1.16 on Xubuntu 24.04.4 LTS
tays01s
Posts: 420
Joined: Thu Oct 28, 2010 7:57 am

Re: Character spacing

Post by tays01s »

I've re-attached the .odt file.
Attachments
Spacing.odt
(12.22 KiB) Downloaded 216 times
LO 4.2.2.1 on OSX 10.8.5
User avatar
RoryOF
Moderator
Posts: 35203
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Character spacing

Post by RoryOF »

This file seems to be the corrected version - it has paragraph marks, not line feeds.
Apache OpenOffice 4.1.16 on Xubuntu 24.04.4 LTS
tays01s
Posts: 420
Joined: Thu Oct 28, 2010 7:57 am

Re: Character spacing

Post by tays01s »

When I open that file in LIbre 3.5.4.2 the top line of columns 1 and 2 has exaggerated character spacing rather than wider spaces between words. It appears as in the attached screen grab.
Attachments
spacing 2.tiff
spacing 2.tiff (75.16 KiB) Viewed 14003 times
LO 4.2.2.1 on OSX 10.8.5
User avatar
RoryOF
Moderator
Posts: 35203
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Character spacing

Post by RoryOF »

Behaving well for me in AOO 3.4
Character Spacing on AOO 3.4.png
Apache OpenOffice 4.1.16 on Xubuntu 24.04.4 LTS
tays01s
Posts: 420
Joined: Thu Oct 28, 2010 7:57 am

Re: Character spacing

Post by tays01s »

I don't know what to do then. Even a new file in LO, with a table containing justified text can create the same problem. It appears that Formatting is somehow set, when using justified text, to spread characters rather than words.
LO 4.2.2.1 on OSX 10.8.5
lgusaas
Volunteer
Posts: 1582
Joined: Sun Mar 30, 2008 8:32 pm
Location: Moose Jaw, SK Canada

Re: Character spacing

Post by lgusaas »

I get the same results as tays01s using Apache OpenOffice 3.4 and LibreOffice . The top line of columns 1 and 2 has exaggerated character spacing rather than wider spaces between words.

I haven't figured out what is causing this. There is a lot of manual override of styles in the document. I do not get the same results when I create a new document.
Larry I. Gusaas
Moose Jaw, SK Canada
Website: http://larry-gusaas.com
"An artist is never ahead of his time but most people are far behind theirs." Edgard Varese
Apache OpenOffice 4.1.14 — MacBook Air (M1)—macOS Ver.15.3.1 Sequoia
User avatar
RoryOF
Moderator
Posts: 35203
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Character spacing

Post by RoryOF »

I took his document as it stands, making no alteration, and voila! I'm on an Ubuntu 11.10 machine and the font in use is Arial (from mscorefonts in the Ubuntu repository). I've tried a selection of fonts and behaviour is the same - large interword spacing, text not overspaced.
Apache OpenOffice 4.1.16 on Xubuntu 24.04.4 LTS
jrkrideau
Volunteer
Posts: 3816
Joined: Sun Dec 30, 2007 10:00 pm
Location: Kingston Ontario Canada

Re: Character spacing

Post by jrkrideau »

RoryOF wrote:I took his document as it stands, making no alteration, and voila! I'm on an Ubuntu 11.10 machine and the font in use is Arial (from mscorefonts in the Ubuntu repository). I've tried a selection of fonts and behaviour is the same - large interword spacing, text not overspaced.
I don't see anything but one or two interword spaces that are cured by removing direct formatting.
LibreOffice 7.3.7. 2; Ubuntu 22.04
User avatar
RoryOF
Moderator
Posts: 35203
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Character spacing

Post by RoryOF »

On his illustration earlier today it shows that interword spacing is normal, and the characters surrounding it are overspaced. My illustration of earlier today is probably what you are getting - larger interword space and character spacing normal.
Apache OpenOffice 4.1.16 on Xubuntu 24.04.4 LTS
jrkrideau
Volunteer
Posts: 3816
Joined: Sun Dec 30, 2007 10:00 pm
Location: Kingston Ontario Canada

Re: Character spacing

Post by jrkrideau »

RoryOF wrote:On his illustration earlier today it shows that interword spacing is normal, and the characters surrounding it are overspaced. My illustration of earlier today is probably what you are getting - larger interword space and character spacing normal.
Seems like it.
LibreOffice 7.3.7. 2; Ubuntu 22.04
User avatar
RoryOF
Moderator
Posts: 35203
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Character spacing

Post by RoryOF »

@tays01s: please try this - highlight the troublesome text, right click for Character (or /Format /Character), select Position tab, and see what the Spacing dropdown is set to. It should be Default, but may in your case be set to Expanded. If so, choose Default.
Apache OpenOffice 4.1.16 on Xubuntu 24.04.4 LTS
lgusaas
Volunteer
Posts: 1582
Joined: Sun Mar 30, 2008 8:32 pm
Location: Moose Jaw, SK Canada

Re: Character spacing

Post by lgusaas »

RoryOF wrote:I took his document as it stands, making no alteration, and voila! I'm on an Ubuntu 11.10 machine and the font in use is Arial (from mscorefonts in the Ubuntu repository). I've tried a selection of fonts and behaviour is the same - large interword spacing, text not overspaced.
It seems to be a Mac specific problem.

I experimented in a new document using AOO. In a 2" wide frame I wrote some text, justified alignment. When i used a soft return (Shift/Enter on a Mac) in the middle of a line, the character spacing in that line expanded. Find/Replace using \n returned it to normal.
Larry I. Gusaas
Moose Jaw, SK Canada
Website: http://larry-gusaas.com
"An artist is never ahead of his time but most people are far behind theirs." Edgard Varese
Apache OpenOffice 4.1.14 — MacBook Air (M1)—macOS Ver.15.3.1 Sequoia
tays01s
Posts: 420
Joined: Thu Oct 28, 2010 7:57 am

Re: Character spacing

Post by tays01s »

The problem is that:
1. I didn't do a soft return. I just typed in the text and as it wrapped to the next line, the character spacing expanded to fill the line I'd just left. Eg. there was no soft return on the uploaded .odt.

2. The Characters are set to default, ie. it not an expanded text (even though it appears as such).

3. What is the 'hard formatting' that jrkrideau spoke of?
LO 4.2.2.1 on OSX 10.8.5
willarob
Posts: 4
Joined: Fri Oct 26, 2012 11:21 am

Re: Character spacing

Post by willarob »

none of those suggestions have helped, i still have double spacing of characters.
open office 3.1.1
mac OS 10.7.5
User avatar
RoryOF
Moderator
Posts: 35203
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Character spacing

Post by RoryOF »

Without having a hands-on sample file from you, we can do very little. Please post a short sample file using the posting link below the Submit button the full editor.
Apache OpenOffice 4.1.16 on Xubuntu 24.04.4 LTS
mikez123
Posts: 1
Joined: Mon Apr 27, 2015 6:56 am

Re: Character spacing

Post by mikez123 »

Just showing the difference in display of justified text between AOO and NeoOffice, documents are ODTs - formatting is the same on both, no soft carriage return, all styles are as per Stylist=document formats no hard formats. AOO justifies paragraphs not only by word spacing but also by character spacing, plus it does not do it consistently.
See third colum with justified text.
AOO
150427-Uneven Gaps-1-AOO.png
NEO
150427-Uneven Gaps-1-NEO.png
Another AOO example with character formatting showing
150427-Uneven Gaps-2-AOO.png
Last edited by acknak on Mon Apr 27, 2015 2:13 pm, edited 1 time in total.
Reason: convert tiff images to png
Apache OpenOffice 4.0.1, NeoOffice3.4.1Patch6 MacOSX10.6.8
Post Reply