Tabs in ebooks

General comments and questions. Technical support.
Post Reply
mg79
Posts: 15
Joined: Fri Apr 13, 2012 2:25 am

Tabs in ebooks

Post by mg79 »

Hello, sorry if I ask, but when exporting to ebook documents that have tabs instead of first line indents, tabs aren't saved. Is it the normal behaviour?
Robert
Posts: 1900
Joined: Fri Aug 15, 2003 8:27 pm

Post by Robert »

Hi,
Any EPUB file is essentially a zipped package of XHTML files. The XHTML format, hence the EPUB format, have no support for tab stops.
Use first line or paragraph indents instead.
HTH.
Cheers,
Robert
mg79
Posts: 15
Joined: Fri Apr 13, 2012 2:25 am

Post by mg79 »

Thanks, I didn't think about that.

Then, I think there is a 'bug', at least I think it is.

If I have paragraph style that shouldn't alter bold or italics, like in picture:

Image

that is, they have the blue square, nor checked or unchecked. If I apply this style to a paragraph that has 2 or more different styles (e.g. bold and italic in the same sentence), nothing changes, as expected, but if the paragraph has only one style in it (e.g. all italic or bold) and I apply the style, formatting is removed and it turns to normal again.
User avatar
admin
Site Admin
Posts: 2826
Joined: Wed Jun 05, 2002 10:48 pm
Contact:

Post by admin »

Styles in MS Word documents work differently than, for example, CSS styles. What's more, there are differences regarding styles between Atlantis Word Processor and MS Word.

An undefined (nor checked or unchecked) attribute within a style definition in Atlantis does not mean that this attribute will not be altered when you apply this style to a paragraph in your document. An undefined attribute means that the actual attribute value will be retrieved from the base style of this style.

Any paragraph style in Atlantis always has a complete set of formatting attributes. When a given attribute is "undefined" within the style's definition and within the definitions of all the "base styles" ("ancestor styles") of this style, the "missing" attribute gets retrieved from the built-in "default format" of Atlantis.

So when you apply a style to a paragraph in Atlantis, a complete set of formatting attributes gets applied to the paragraph. But there is one exception to this rule: when a given attribute is not explicitly defined within the style or within all of its "base styles" (if any), Atlantis does not apply this "undefined" attribute to the paragraph if this paragraph has fragments formatted with different values of this attribute. For example, if the "bold" attribute is "undefined" within the "Normal" style (this style normally does not have a base style), and a document paragraph is entirely bold or non-bold, and you apply the "Normal" style to this paragraph, Atlantis will make this paragraph non-bold. It is because the "bold" attribute is off within the "default format" of Atlantis. But if a document paragraph is non-bold but has a fragment formatted with bold:

non-bold paragraph

applying the "Normal" style to this paragraph would not alter the "bold" attribute for this paragraph because the "bold" attribute is not defined within the "Normal" style.
mg79
Posts: 15
Joined: Fri Apr 13, 2012 2:25 am

Post by mg79 »

admin wrote:It is because the "bold" attribute is off within the "default format" of Atlantis.
Understood. This happens to me even if the paragraph is based on 'none', so I assume that it gets formatting informations from this 'default format'. Wouldn't it be possible for this default format not to alter the formatting, as bold/italic were 'blue square' and not turned off?
User avatar
admin
Site Admin
Posts: 2826
Joined: Wed Jun 05, 2002 10:48 pm
Contact:

Post by admin »

Sorry, but why do you need two paragraphs associated with the same style, look differently (one paragraph – entirely bold, and another paragraph – entirely non-bold)? Paragraphs belonging to the same paragraph style are supposed to look identically. If you need "bold normal" paragraphs, why not create the "Normal (bold)" style, and associate it with the "normal paragraphs" which are supposed to be bold?
mg79
Posts: 15
Joined: Fri Apr 13, 2012 2:25 am

Post by mg79 »

Yes, it's true, sorry for bringing this up, thanks for the answers.
Post Reply