2007年3月13日星期二

Text grid in Ms Word 97 binary file format

In Ms Word 97 binary file format, there are three SPRMs to deal with grid. They are:

Name

sprm

Property

size

Description

sprmSDxtCharSpace

0x7030

Sep.dxtCharSpace

long

Specifies the grid width

sprmSDyaLinePitch

0x9031

Sep.dyaLinePitch

long

Specifies the grid height

sprmSClm

0x5032

Sep.clm

long

Specifies the grid type


sprmSClm has four values, which corresponds to four types of grid.

Name

value

Grid type

sprmSClm

0

No grid

1

Specify line and character grid

2

Specify line grid only

3

Text snaps to character grid


2 条评论:

opentiss 说...

呵呵,非常支持你的研究成果,祝愿您早日完成这个功能。

Eiríkr 说...

Fong --

Another area in *dire* need of some help, if OOo is ever to be professionally usable, is word / character counting. OOo's current counts are absolutely useless for anyone dealing with CJK text. Please see Issue 17964 for details, and particularly the sample file sent in on Sep 16 2005.

Thanks for all your work so far!

Cheers,

Eiríkr