WordML spacing question

D

David Thielen

Hi;

Word 2007 is writing the following as a Word 2003 xml file (not docx but
it's basically the same schema):

<w:spacing w:after="200" w:line="276" w:line-rule="auto"/>

As I read the docs (and I am guessing I am not understanding something
here), line=276 and line-rule=auto conflict. The line=276 says the para is
either exactly 276 twips if line-rule=exact or 276 twips or greater depending
on need if line-rule=at-least. So I would expect no line= if line-rule=auto.

What does this mean?

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm
 
J

Jialiang Ge [MSFT]

Hello Dave,

Below is my understanding of the attributes line and linerule in w:spaceing
based on the section 2.3.1.33 of Office Open XML Part 4 - Markup Language
Reference.pdf
(http://www.ecma-international.org/news/TC45_current_work/TC45-2006-50_final
_draft.htm). If I misunderstand your question, please feel free to point it
out. Thanks

If lineRule = auto and line is not specified, its value is determined by
the setting previously set at any level of the style hierarchy, or no line
spacing is applied if the setting is never specified in the style hierarchy.

If lineRule = auto and line is specified, its value is to be interpreted in
240ths of a single line height.

If lineRule = exactly or atLeast and the line height is not too small, its
value will be interpreted as twentieths of a point, and the text shall be
centered in the available space.

If lineRule = exactly and the line height is too small, the text shall be
positioned at the bottom of the line (i.e. clipped from the top down)

If lineRule = atLeast and the line height is too small, the text will be
not clipped, and its value will be adjusted to a single line height.

Please let me know if you have any other concerns, or need anything else.

Sincerely,
Jialiang Ge ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
For MSDN subscribers whose posts are left unanswered, please check this
document: http://blogs.msdn.com/msdnts/pages/postingAlias.aspx

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications. If you are using Outlook Express/Windows Mail, please make sure
you clear the check box "Tools/Options/Read: Get 300 headers at a time" to
see your reply promptly.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
D

David Thielen

But what does the line= mean then?

If lineRule=exactly - the line will be 240 twips high

If lineRule=atLeast - the line will be 240 twips, or more if more is needed.

If lineRule=auto - and there is no line= - the line will be the height
needed for the text.

If there is lineRule=auto and line=240 - what does the 240 do? Is that the
same as exactly, atLeast, or is it some other calculation for the line height?

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm
 
J

Jialiang Ge [MSFT]

Hello Dave,

If lineRule = auto and the attribute 'line' is specified, like 240, then
its value is interpreted in 240ths of a single line height, which means
that the net spacing is 240 / 240ths of a line or 1 line tall. If the
'line' value is too small, the text will be clipped from the top down, just
as 'exact' does.

If you have any other concern or need anything else, please feel free to
let me know.

Sincerely,
Jialiang Ge ([email protected], remove 'online.')
Microsoft Online Community Support

=================================================
When responding to posts, please "Reply to Group" via your newsreader
so that others may learn and benefit from your issue.
=================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
D

David Thielen

But in that case, how is auto different from exact? In both cases don't they
then make the line exactly 240/240ths high? Thats what I don't understand -
they seem to mean the same thing.

Plus, if I have a WordML file where line-rule='auto' and no line value, that
becomes line='240' lineRule='auto' so it seems like the auto would mean to
ignore the line=

Or am I missing something?

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm
 
J

Jialiang Ge [MSFT]

Hello Dave,

There are actually several difference between auto and exact for the
attribute 'lineRule'.
#1. 'auto' is by number of line, while 'exact' is by number of point. In
Word 2007, 'auto' refers to 'Multiple' in Paragraph property dialog. It
specifies the line spacing by the number of line. Yet, the unit of
'Exactly' is 'point'.
#2. If the spacing value is bigger than needed, the text will stay at the
top if lineRule = 'auto'. If lineRule='exact', the text stays in the middle
of the line spacing.

Hope it helps.
If you have any other concern or need anything else, please feel free to
let me know.

Sincerely,
Jialiang Ge ([email protected], remove 'online.')
Microsoft Online Community Support

=================================================
When responding to posts, please "Reply to Group" via your newsreader
so that others may learn and benefit from your issue.
=================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top