if you are a human please do not click here
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
Username :
Password :
Home
Help
Calendar
Register
Login
XMetaL Community Forums
»
General
»
DITA and XMetaL Discussion
»
Spacing between words
Pages:
1
« previous
next »
Print
Author
Topic: Spacing between words (Read 2078 times)
linjinwei
Member
Posts: 65
Spacing between words
«
on:
February 10, 2009, 07:55:26 AM »
Hi all
Is it possible to create spacing between words in XMetaL? Something like this;
Code:
Once upon a time
I have tried using word-spacing, padding and margin but it doesnt work.
Thanks in advance
Logged
mag3737
XMetaL Evangelist
Administrator
Member
Posts: 100
I even use XMetaL to write my business letters.
Re: Spacing between words
«
Reply #1 on:
February 10, 2009, 12:34:11 PM »
For DITA in XMetaL:
Go to
Insert
>
Advanced
>
Entity Reference...
.
Select "
-//OASIS//ELEMENTS DITA Topic//EN
" from the dropdown list.
Select "
nbsp
" from the list (it may be the only item on the list), and click
Insert
.
Logged
Tom Magliery
JustSystems Canada, Inc.
Derek Read
Program Manager (XMetaL)
Administrator
Member
Posts: 1548
Re: Spacing between words
«
Reply #2 on:
February 10, 2009, 03:24:35 PM »
Your other option would be to use an element that is designated as one where whitespace is significant. In DITA there are several such elements, including pre and codeblock. Perhaps that is what you are looking for? I would recommend that if at all possible because if you take advantage of these elements everything should "just work", including the DITA OT. Consult the DITA Language Reference (we include a copy available via the Help menu or you can check online) for elements that should treat whitespace as being significant.
However, it sounds like you are modifying the CSS. If that is the case then the CSS properties that control whitespace rendering supported by XMetaL are:
white-space:pre
white-space:pre-wrap
If you get in this far though, and your documents are pretty printed, you may also need to set the CTM settings for pretty printing for the elements you are modifying to use the <PreserveSpace/> setting (see XMetaL Developer).
«
Last Edit: February 10, 2009, 03:27:21 PM by Derek Read
»
Logged
Pages:
1
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> Forum Information
=> General XMetaL Discussion
=> DITA and XMetaL Discussion
=> XMetaL Tips and Tricks
=> XMetaL Announcements and Events
Loading...
email us