To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=75181 Issue #|75181 Summary|Strange behavior with text:span tags in text imported |from RTF Component|Word processor Version|OOo 2.1 Platform|All URL| OS/Version|All Status|UNCONFIRMED Status whiteboard| Keywords| Resolution| Issue type|DEFECT Priority|P3 Subcomponent|formatting Assigned to|mru Reported by|kirstenchevalier
------- Additional comments from [EMAIL PROTECTED] Tue Mar 6 20:30:08 +0000 2007 ------- I have an RTF file that I opened in OOo 2.1 (I'm using a developer snapshot downloaded within the past four weeks; I don't know how to get a more precise version number than that), then converted to .odt format. The file contains some text that is in Tahoma font, and applying a different character style (one that specifies Times font) to that text doesn't change the font. I can change the font with a manual override, but applying a different character style doesn't result in the font changing. I looked at the content.xml file, and it seems that the problem is that the file contains a text:span tag that specifies a character style "T1" that doesn't appear in the list of possible character styles. Furthermore, selecting the text that has that style and changing its style to, say, "Default", changes T1's parent style to "Default", but since T1 specifies a font, that doesn't result in any visible change. I'm not sure whether the problem here is that the "span" tag with the T1 style gets introduced during the conversion fron RTF to .odt, or whether the problem is that T1 doesn't show up in the list of styles, or that re-styling the text changes the parent style of T1 rather than eliminating T1, but there's a problem. Selecting text and applying a new character style should change the font, and in this case, it doesn't change the font, nor is there any visual indication to the user of what went wrong. Perhaps it's easier to explain what I mean by showing the contents of the content.xml file for the document in question: <?xml version="1.0" encoding="UTF-8"?> <office:document-content xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" office:version="1.0"><office:scripts/><office:font-face-decls><style:font-face style:name="Lucidasans1" svg:font-family="Lucidasans"/><style:font-face style:name="Times New Roman" svg:font-family="'Times New Roman'" style:font-adornments="Regular" style:font-family-generic="roman"/><style:font-face style:name="Nimbus Roman No9 L" svg:font-family="'Nimbus Roman No9 L'" style:font-family-generic="roman" style:font-pitch="variable"/><style:font-face style:name="Nimbus Sans L" svg:font-family="'Nimbus Sans L'" style:font-family-generic="swiss" style:font-pitch="variable"/><style:font-face style:name="Tahoma" svg:font-family="Tahoma" style:font-family-generic="swiss" style:font-pitch="variable"/><style:font-face style:name="DejaVu Sans" svg:font-family="'DejaVu Sans'" style:font-family-generic="system" style:font-pitch="variable"/><style:font-face style:name="Lucidasans" svg:font-family="Lucidasans" style:font-family-generic="system" style:font-pitch="variable"/><style:font-face style:name="Mincho" svg:font-family="Mincho" style:font-family-generic="system" style:font-pitch="variable"/></office:font-face-decls><office:automatic-styles><style:style style:name="T1" style:family="text" style:parent-style-name="BoldTimes12"><style:text-properties style:font-name="Tahoma" fo:font-size="11pt" fo:letter-spacing="normal" fo:font-style="italic" fo:font-weight="bold" style:font-name-asian="Tahoma" style:font-size-asian="11pt" style:font-style-asian="italic" style:font-weight-asian="bold" style:font-name-complex="Tahoma" style:font-size-complex="11pt" style:font-style-complex="italic" style:font-weight-complex="bold"/></style:style></office:automatic-styles><office:body><office:text><office:forms form:automatic-focus="false" form:apply-design-mode="false"/><text:sequence-decls><text:sequence-decl text:display-outline-level="0" text:name="Illustration"/><text:sequence-decl text:display-outline-level="0" text:name="Table"/><text:sequence-decl text:display-outline-level="0" text:name="Text"/><text:sequence-decl text:display-outline-level="0" text:name="Drawing"/></text:sequence-decls><text:p text:style-name="Text_20_Body_20_Times_20_with_20_indent"><text:span text:style-name="T1">Test.</text:span></text:p></office:text></office:body></office:document-content> If it would help to supply the .odt file and/or the original RTF file, let me know. I don't know how to include an attachment with this issue report. --------------------------------------------------------------------- Please do not reply to this automatically generated notification from Issue Tracker. Please log onto the website and enter your comments. http://qa.openoffice.org/issue_handling/project_issues.html#notification --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
