Style names in different languages

S

Sven

I'm having problem working with a document on Words of different languages
(English and Estonian). If I, for example, use STYLEREF field: { STYLEREF
"Heading 1" }, it wont work on Estonian Word because built-in styles have
different names.

I cannot check this right now, but if I remove "Heading 1" style and
re-create it with same name, would it perhaps make Word believe it is custom
style and it would not touch it? Anybody tried?

Or.. something else?
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?U3Zlbg==?=,
I'm having problem working with a document on Words of different languages
(English and Estonian). If I, for example, use STYLEREF field: { STYLEREF
"Heading 1" }, it wont work on Estonian Word because built-in styles have
different names.

I cannot check this right now, but if I remove "Heading 1" style and
re-create it with same name, would it perhaps make Word believe it is custom
style and it would not touch it? Anybody tried?

Or.. something else?
you cannot define your on style named Heading 1, Word won't allow it. Whether
you need to use Heading 1, or whether you can do without, depends on whether
you're using the headings anywhere else, such as part of the page or figure
numbering. If you're not using them in this manner, then you can substitute
your own style(s) for Word's built-in ones.

Beyond that, you'd need a programmed (macro) solution to check the current
environment language and make adjustments in the document. One possibility,
just as an example, would be to store the style names in CustomDocument
properties and put a DocProperty field into the StyleRef field. The macro can
then change the contents of the custom document properties.

The "long way" would be to use Find/Replace on the fields in the document range
to make the change directly in the fields.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)
 
S

Suzanne S. Barnhill

For the built-in heading styles only, I believe you can use just "1," "2,"
etc., in StyleRef fields, or perhaps it is "H1." You might experiment with
these.
 
S

Stefan Blom

Creating aliases for the built-in styles, and using these
aliases in the STYLEREF fields, should work. Of course,
this won't be necessary for the built-in headings, since
you can refer to those by number: { STYLEREF 1 } (for
Heading 1).

--
Stefan Blom
Microsoft Word MVP


in message
 
K

Klaus Linke

Would have been nice if Microsoft had allowed to refer to all built-in
styles by their wdStyle constant (say, for wdStyleTitle=-63 fot the "Title"
style).
I'll post a suggestion for it (again... I mailed MSWish about that, maybe
even more than once).

Regards,
Klaus
 

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