problems with left-right justified text

Post questions on how to use or achieve an effect in Inkscape.
juliemichaud
Posts: 3
Joined: Sun Jan 03, 2010 5:47 am

problems with left-right justified text

Postby juliemichaud » Mon Jan 04, 2010 3:41 am

Hello,
I'm having some trouble with the left-right justify function. In some (but not all) cases, the text in the last line of a paragraph is also getting justified so that the words are all spread out.

I've tried just selecting the last line and selecting left justify, but that doesn't seem to work either.

I've never had this problem before. I looked through the manual and forums but wasn't able to find any info on this.

I'm running on Mac snow leopard.

Has anyone had this problem before. Any suggestions on what to do?

Thanks so much.

Julie

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: problems with left-right justified text

Postby ~suv » Mon Jan 04, 2010 4:17 am

Can you attach a file that has 'Flowed Text' objects with this problem (left-right justification doesn't honor the end of paragraph correctly)?

juliemichaud
Posts: 3
Joined: Sun Jan 03, 2010 5:47 am

Re: problems with left-right justified text

Postby juliemichaud » Mon Jan 04, 2010 4:59 am

The third paragraph in the first article is the first example of this.
Thanks for your help!
Attachments
thebrief_january2010.svg
(63.6 KiB) Downloaded 201 times

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: problems with left-right justified text

Postby ~suv » Mon Jan 04, 2010 7:35 am

This appears to be a conflict with different file encodings of the content of the Flowed Text Objects. From which application did you copy&paste it? Could it be that is was encoded as 'Mac OS Roman' whereas Inkscape expects UTF-8?

Simple test:
1) open your SVG file in Firefox (or Safari), ignore that they don't display the 'flowed text' objects (Inkscape's implementation is not according to the current SVG 1.1 standards) and look at the source of the page (menu 'View > Page Source): scroll far down to the last section e.g. to 'id="flowPara3883">' and look at the text there - it is the beginning of the first article («It wasn’t your regular Saturday morning… »): all paragraphs of the first column appear on one line without 'newlines' separating them.

2) from the source window of the browser copy the text between 'id="flowPara3883">' and '</flowPara>' and paste it into a new TextEdit document: The paragraphs now are correctly separated by 'newlines' i.e. OS X native applications like TextEdit are aware of the encoding of the pararaph endings, any SVG viewer / Renderer seems to ignore it.

I'm not an expert regarding file encoding issues nor of the 'Flowed Text' implementation. Somehow I would try to convert the line endings of the paragraphs, for example
  1. in Inkscape insert a newline enter right before the first character of a new paragraph, forcing a hard break between the paragraphs, or
  2. change the paragraph endings / newlines in the application used to create the text, or
  3. export the original text to an intermediary file making sure that it is Unicode (UTF-8) encoded.

juliemichaud
Posts: 3
Joined: Sun Jan 03, 2010 5:47 am

Re: problems with left-right justified text

Postby juliemichaud » Mon Jan 04, 2010 7:59 am

Thanks a million!
Inserting a newline solved the problem.
Julie


Return to “Help with using Inkscape”