Thread View: adobe.framemaker.sgml
12 messages
12 total messages
Started by R._VanDyke
Thu, 30 Oct 2008 18:13
FM8 and DITA -- Correct way to insert non-breaking spaces, etc.?
Author: R._VanDyke
Date: Thu, 30 Oct 2008 18:13
Date: Thu, 30 Oct 2008 18:13
14 lines
1245 bytes
1245 bytes
I've gone round in circle trying to figure this out. FrameMaker's "good old" method of inserting a non-breaking space -- CTRL+SPACE -- doesn't work if the content is output as a DITA XML file: XML requires a string consisting of Ampersand-"nbsp"-semicolon (I can't enter the actual token because browsers evidently see it as a "real" non-breaking space...) What's the trick for entering non-breaking spaces in content that will be saved as both: * DITA / XML * FrameMaker binary (.fm) Is this one of those ALT+keypad things? Or...? Cheers & thanks, Riley
Re: FM8 and DITA -- Correct way to insert non-breaking spaces, etc.?
Author: Scott_Prentice
Date: Thu, 30 Oct 2008 18:47
Date: Thu, 30 Oct 2008 18:47
7 lines
950 bytes
950 bytes
Hi Riley... Well .. this seems to work fine for me using Ctrl+Space in FM is written out as a in the XML, then when opened back in FM the hard space is still there. Are you using the default structure application or have you modified it in some way? ...scott
Re: FM8 and DITA -- Correct way to insert non-breaking spaces, etc.?
Author: R._VanDyke
Date: Thu, 30 Oct 2008 20:11
Date: Thu, 30 Oct 2008 20:11
10 lines
1190 bytes
1190 bytes
Scott: For a start, I wouldn't dream of modifying the default application -- in my current level of ignorance I could only break things... Anyhow, the "solution" to the problem was to ask a question on the forum. That activated the Forum-to-FrameMaker rejiggerer, at which point using CTRL+SPACE worked in both the XML and the FrameMaker file. Which is a roundabout way of saying that I don't know what I was doing wrong before, but it seems to be working now. Sigh... Cheers & thanks much, Riley
Re: FM8 and DITA -- Correct way to insert non-breaking spaces, etc.?
Author: Scott_Prentice
Date: Thu, 30 Oct 2008 21:07
Date: Thu, 30 Oct 2008 21:07
3 lines
720 bytes
720 bytes
Excellent. You gotta love that rejiggering! ...scott
Re: FM8 and DITA -- Correct way to insert non-breaking spaces, etc.?
Author: Philip_Grisier
Date: Mon, 10 Nov 2008 21:36
Date: Mon, 10 Nov 2008 21:36
1 lines
1117 bytes
1117 bytes
The difficulty with plain ol' spaces inserted when you've turned off Smart Spaces is there is no indication in the XML file of how the author wants the spaces treated. My use case is wanting to ensure that a company name, such as "Adobe, Inc", never wraps to start a new line with " Inc." By the time the author's "phrase" gets to HTML, something needs to have inserted the appropriate markup --"Adobe,&-n-b-s-p-;Inc."
Re: FM8 and DITA -- Correct way to insert non-breaking spaces, etc.?
Author: David_Blyth_San_Diego
Date: Tue, 11 Nov 2008 00:23
Date: Tue, 11 Nov 2008 00:23
19 lines
1349 bytes
1349 bytes
Hi Philip;
My use case is wanting to ensure that a company name, such as "Adobe,
Inc", never wraps to start a new line with " Inc."
Good point.
You could also set an XML internal entity to designate "Adobe, Inc".
OTOH, one of the hardest XML things to do (at least for me) is to determine exactly what objects and entities I want in the first place. Sigh.
David Blyth (The UNIX and VI dinosaur)
Staff Technical Writer
QUALCOMM - Standard Disclaimers Apply
Only 149,999,949 more years of Ruling The Earth to go
------------------------------------------------------------------
Re: FM8 and DITA -- Correct way to insert non-breaking spaces, etc.?
Author: R._VanDyke
Date: Tue, 11 Nov 2008 15:56
Date: Tue, 11 Nov 2008 15:56
5 lines
1054 bytes
1054 bytes
At the risk of contaminating my own thread, albeit in a way that's somewhat related to Phillip's point about keeping two-word tokens such as Adobe, Inc on the same line: For DITA / XML, what's the preferred form for non-breaking spaces in variables? Is it still good ol' "\ ", or...? RBV
Re: FM8 and DITA -- Correct way to insert non-breaking spaces, etc.?
Author: Scott_Prentice
Date: Tue, 11 Nov 2008 16:49
Date: Tue, 11 Nov 2008 16:49
7 lines
1146 bytes
1146 bytes
Hi Riley... I think you'll have the best luck with "\ " .. but if you're using FM8 DITA you're probably not going to have very good success using variables at all since they won't survive the map to book process. (DITA-FMx provides a command that wraps variables in a ph element which allows you to use them in a book.) However, for DITA, you should consider using conrefs instead of variables. Cheers, ...scott
Re: FM8 and DITA -- Correct way to insert non-breaking spaces, etc.?
Author: R._VanDyke
Date: Tue, 11 Nov 2008 17:48
Date: Tue, 11 Nov 2008 17:48
1 lines
682 bytes
682 bytes
Scott: Good tip re: the variables. Thanks! RBV
Re: FM8 and DITA -- Correct way to insert non-breaking spaces, etc.?
Author: systecgmbhnuremberg
Date: Tue, 02 Dec 2008 09:15
Date: Tue, 02 Dec 2008 09:15
29 lines
2081 bytes
2081 bytes
Hello Mr. VanDyke, you might try the following (although this is some kind of hack) 1. Define a variable in your structapps template (e.g. "hardspace") and give it the value "\ "(=the fm expression for a hard space) 2. in your R/W-Rules write: entity "hardspace " is fm char XXX; (where XXX is the fm-number of the character; you should get this via the SYSTEC TOOLBOX-function "get encoding", which is a freeware function) 3. Whenever you want to insert a hard space insert the variable "hardspace". I myself tried this with hard returns rather than hard spaces, but the method should be the same. After all, a "hard space" might be something that some application might not know, so it is an application specific character. Hope this helps, Franz. [SYSTEC - the document processing company.] <http://www.systec-gmbh.com/sites/toolbox.php> <http://www.systec-gmbh.com/sites/ditapack.php> <http://www.systec-gmbh.com/sites/3dpack.php> ____________ |Schreiberhauer Str. 5 |D-90475 Nuernberg - Germany |Phone +49 911 998955-625 |Fax +49 911 998955-663 |e-Mail info@systec-gmbh.com |Internet: www.systec-gmbh.com |Redaction, Translation: www.systec-td.de |ePublishing, Solutions: www.systec-it.de ____________ |CEO: Dipl.-Ing. (FH) Georg Eck, Dipl.-Btw. (FH) Manfred Papp |Amtsgericht N๏ฟฝrnberg HRB 9369 |Umsatzsteuer-Identifikationsnummer DE 133560519 ______________ |"We innovate things that work better."
Re: FM8 and DITA -- Correct way to insert non-breaking spaces, etc.?
Author: Van_Kurtz
Date: Tue, 02 Dec 2008 13:53
Date: Tue, 02 Dec 2008 13:53
11 lines
1849 bytes
1849 bytes
Riley, This may not help, but I use structured FrameMaker and our EDD defines a NoBrSpace ELEMENT, for which the EDD inserts a nonbreaking space. I do not export to XML, but my guess is that this element would be exported as an element but with no content. When read back into Frame, the Frame EDD inserts a nonbreaking space. No read-write rules are needed because the element remains an element in both the Frame space and the XML. Now, I agree that this approach does NOT create a nonbreaking space in the XML; there it is just an element with no content. On the other hand, one can argue that a nonbreaking space is formatting, not content; it is used to prevent a line break at a certain spot in the content, which is formatting not content. IF the XML content is used elsewhere as XML data, such as content for a Web site, then maybe the Web site's CSS would be able to insert the correct code for a nonbreaking space. Maybe the read-write rules can be defined to replace this element with the Ampersand-"nbsp"-semicolon code when exporting to XML and back to the element when importing to Frame. I have no idea how this would be done, just a concept. If this helps, good; if not, sorry. Van
Re: FM8 and DITA -- Correct way to insert non-breaking spaces, etc.?
Author: R._VanDyke
Date: Tue, 02 Dec 2008 16:32
Date: Tue, 02 Dec 2008 16:32
8 lines
1164 bytes
1164 bytes
Thanks to all who responded. This is one of many FM8-DITA issues that I've deferred while I rush to meet a deadline. Long story short, the apparent need to descend into FM's read/write rules and EDD's simply to enter a non-breaking space is just one more in a growing number of annoyances I've encountered trying to use FM as a DITA authoring environment... Cheers and thanks 'gain to all, Riley
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads