View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0010078 | Scribus | Styles | public | 2011-06-27 10:49 | 2014-10-08 23:26 |
Reporter | meho_r | Assigned To | jghali | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | Linux | OS | Debian GNU/Linux | OS Version | Wheezy |
Product Version | 1.4.0svn | ||||
Fixed in Version | 1.4.0svn | ||||
Summary | 0010078: Changing styles imported with text from ODT documents doesn't work properly | ||||
Description | When text is imported from ODT document together with styles created in Libre/OpenOffice.org, any later change to these styles regarding their character settings (tab "Character Style" in Style Manager) doesn't get applied to imported text. However, changes are reflected on text which is created in Scribus, not imported. Creating new styles in Scribus, then deleting imported ones and replacing them, when asked, with these new Scribus-made styles, doesn't work either. | ||||
Steps To Reproduce | 1. Import text from the attached "StylesIssue.odt" document (or create one from scratch if you like) 2. Change font and font size for a style, e.g., style "Text_20_Body". Apply the changes. 3. Result: no changes in imported text. | ||||
Additional Information | To make those changes in imported styles apply to imported text, one must *reapply* corresponding styles for every single paragraph. But beware: reapplying these styles will automatically remove any custom formatting (bold or italic), so one should create and apply proper character styles to every instance of text formatted manually prior to reapplying paragraph styles. Note: Changes to imported styles regarding distances, indentation etc. (tab "Properties" in Style Manager) work as expected. | ||||
Tags | No tags attached. | ||||
Patch | |||||
|
|
|
The text importing code is currently rather outdated and has not support for style inheritance. As a consequence, it applies char attributes inherited from paragraph styles as direct formatting on text. That's why modification on paragraph styles are not reflected in text frame as paragraph style is overridden by direct formatting. Of course that's not ideal, just to explain why this is so currently. I applied a fix which is rather a workaround : text formatting is cleaned up after import in order to remove direct formatting on attributes already applied at paragraph level. Text import may be a bit longer, but imported text will be cleaner. Better fix when text import code will be rewritten... |
|
Great, this makes things really easier, a LOT easier. Compiled 1.4.0svn and tested, works nicely. I'm glad that you've managed to fix this so quickly, and before 1.4 is out. Thank you. |
Date Modified | Username | Field | Change |
---|---|---|---|
2011-06-27 10:49 | meho_r | New Issue | |
2011-06-27 10:49 | meho_r | File Added: StylesIssue.zip | |
2011-06-27 10:52 | meho_r | Tag Attached: style | |
2011-06-27 22:34 | jghali | Note Added: 0026495 | |
2011-06-27 22:34 | jghali | Status | new => resolved |
2011-06-27 22:34 | jghali | Fixed in Version | => 1.4.0svn |
2011-06-27 22:34 | jghali | Resolution | open => fixed |
2011-06-27 22:34 | jghali | Assigned To | => jghali |
2011-06-27 22:38 | jghali | Note Edited: 0026495 | |
2011-06-28 13:05 | meho_r | Note Added: 0026496 | |
2011-07-07 20:31 | cbradney | Status | resolved => closed |
2014-10-08 23:26 | Kunda | Tag Detached: style |