View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0006989 | Scribus | Styles | public | 2008-05-01 15:26 | 2009-03-16 23:18 |
Reporter | andreasspeck | Assigned To | jghali | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | i386 | OS | Debian | OS Version | Unstable |
Product Version | 1.3.5svn | ||||
Target Version | 1.3.5 | Fixed in Version | 1.3.5svn | ||
Summary | 0006989: Applying styles to text imported via "Get text" doesn't take effect | ||||
Description | When I create a new text frame, and fill it with text via "Get text", choose an OpenOffice document and tick the box 'import text only', the text gets imported and styled according to the default paragraph style, or the paragraph style assigned to the text frame. When I try to assign a different style to a certain paragraph, this does not seem to work and does not take effect. Fonts and style remain the same, even though the style displayed in the story editor to the left of the paragraph changes. If I do a new text frame and copy and paste the text from OpenOffice into the story editor, everything works as expected. | ||||
Steps To Reproduce | See above | ||||
Additional Information | In the attached file (sorry, I'm working on the German version now), the text in the frames on page 1+2 has been imported via "Get text". Here, changing paragraph styles doesn't do anything. The text in the small cyan box on page 1 has been copied and pasted, and here everything works as expected. The same for the longer article on page 6. For this article, I first tried to import it via 'Get text' (ticking the box 'import text only'), with the result that I could not change the styles (or style changing don't take effect). I then deleted the text frame, created a new one and copied/pasted the very same text from OpenOffice. As can be seen, here styles can be applied and it works. | ||||
Tags | No tags attached. | ||||
Patch | |||||
2008-05-01 15:26
|
|
|
This is a known issue. It occurs because "Get text" is not quite up to date vs text changes in 1.3.4+. Currently it uses direct formatting which override styles you can apply afterwards. Workaround : first use character and paragraph style sweepers in properties palette |
|
Could we imagine that an attempt to affect a style to a paragraph that contains direct formatting parts would popup some sort of dialog offering to reset DF and then actually apply the selected style? Rather than return silently |
|
The real problem is that gettext itself currently uses direct formatting. I think that problem should be tackled first. |
|
First fixes have been committed. Noticeably text imported with the "import text only" option has no styles applied to it and can be formatted easily afterwards. |
|
In my text document test1.txt I have styles assigned by \hd and \bdy so the text doc looks like... \hdThis is My Header \bdyThis is the Body \hdThis is My Header \bdyThis is the Body \hdThis is My Header \bdyThis is the Body then in my paragraph styles i have set two styles Head and Body. I choose get text, the for the importer I choose text filters. In the text filters I set it up as follows. 1)Apply Paragraph Style Head to Paragraphs starting with \hd (checkmark) and Remove Match 2)Apply Paragraph Style Body to Paragraphs starting with \bdy (checkmark) and Remove Match But when i complete it and import the text it just ignores the styles completely. Not sure if this is the same issue or a different one but sounds similar. |
|
apologies, It does work now. By simply removing the '(checkmark) and Remove Match' while I import it has corrected the issue. |
|
More fixes committed : applying a named paragraph style now reset direct formatting applied to characters, character styles applied to characters are preserved |
Date Modified | Username | Field | Change |
---|---|---|---|
2008-05-01 15:26 | andreasspeck | New Issue | |
2008-05-01 15:26 | andreasspeck | File Added: br78-de.sla.gz | |
2008-05-01 16:38 | jghali | Note Added: 0019590 | |
2008-05-01 16:38 | jghali | Target Version | => 1.3.5 |
2008-05-10 08:28 | jghali | Note Edited: 0019590 | |
2008-09-29 12:07 | jghali | Relationship added | has duplicate 0007449 |
2008-11-04 13:13 | pierremarchand | Note Added: 0020603 | |
2008-11-04 15:51 | jghali | Note Added: 0020604 | |
2008-11-09 19:44 | jghali | Relationship added | has duplicate 0007601 |
2008-11-15 23:55 | jghali | Relationship added | has duplicate 0007612 |
2008-11-23 23:27 | jghali | Note Added: 0020698 | |
2008-12-16 23:05 | r2d2 | Note Added: 0020795 | |
2008-12-16 23:52 | r2d2 | Note Added: 0020796 | |
2009-03-14 16:18 | jghali | Note Added: 0021304 | |
2009-03-15 00:28 | jghali | Status | new => resolved |
2009-03-15 00:28 | jghali | Fixed in Version | => 1.3.5svn |
2009-03-15 00:28 | jghali | Resolution | open => fixed |
2009-03-15 00:28 | jghali | Assigned To | => jghali |
2009-03-16 23:18 | cbradney | Status | resolved => closed |