|
View:
New views
20 Messages
—
Rating Filter:
Alert me
|
| < Prev | 1 - 2 | Next > |
|
|
Docbook EditorsHello,
I would like to use an editor for writing Docbook, preferably WYSIWYG. I used to write Latex with GVIM (non-wysiwyg), but trying to do the same for Docbook XML is too much overhead, code wise. Which editors are used with Docbook? Can anyone please recommend? Are there free editors? Are there commercial editors that are good? Thank you in advance. ______________________________________ Eitan Zabari Technical Communicator Jungo Software Technologies E-mail: eitanz@... Web: http://www.jungo.com Phone: +972-9-8859365 ext. 224 Fax: +972-9-8859366 Mobile: +972-54-2271318 --------------------------------------------------------------------- To unsubscribe, e-mail: docbook-apps-unsubscribe@... For additional commands, e-mail: docbook-apps-help@... |
|
|
Re: Docbook EditorsOn Monday 14 May 2007 15:01, Eitan Zabari wrote:
> Hello, > > I would like to use an editor for writing Docbook, preferably WYSIWYG. > I used to write Latex with GVIM (non-wysiwyg), but trying to do the > same for Docbook XML is too much overhead, code wise. > Which editors are used with Docbook? Can anyone please recommend? Are > there free editors? Are there commercial editors that are good? > I use Quanta Plus which has a docbook mode although it is not WYSIWYG. I also would like a better editor ... Paul -- Paul Hewlett Technical Director Global Call Center Solutions Ltd, 2nd Floor, Milnerton Mall Cnr Loxton & Koeberg Roads, 7435 Milnerton www.gccs.co.za Tel: +27 86 111 3433 Fax: +27 86 111 3520 Cel: +27 76 072 7906 Gizmo: 1 747 659 6171 --------------------------------------------------------------------- To unsubscribe, e-mail: docbook-apps-unsubscribe@... For additional commands, e-mail: docbook-apps-help@... |
|
|
RE: Docbook EditorsThere is XML Mind which is pretty good and does have a free version. The
only drawback is that they do not support text entities. You can also check out Serna. It is good, but can be very slow. Both are WYSIWYG. > -----Original Message----- > From: Paul Hewlett [mailto:paul@...] > Sent: Monday, May 14, 2007 11:02 AM > To: docbook-apps@... > Subject: Re: [docbook-apps] Docbook Editors > > On Monday 14 May 2007 15:01, Eitan Zabari wrote: > > Hello, > > > > I would like to use an editor for writing Docbook, > preferably WYSIWYG. > > I used to write Latex with GVIM (non-wysiwyg), but trying to do the > > same for Docbook XML is too much overhead, code wise. > > Which editors are used with Docbook? Can anyone please > recommend? Are > > there free editors? Are there commercial editors that are good? > > > I use Quanta Plus which has a docbook mode although it is not > WYSIWYG. I also would like a better editor ... > > Paul > > -- > Paul Hewlett Technical Director > Global Call Center Solutions Ltd, 2nd Floor, Milnerton Mall > Cnr Loxton & Koeberg Roads, 7435 Milnerton www.gccs.co.za > Tel: +27 86 111 3433 Fax: +27 86 111 3520 Cel: +27 76 072 7906 > Gizmo: 1 747 659 6171 > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: docbook-apps-unsubscribe@... > For additional commands, e-mail: > docbook-apps-help@... > > --------------------------------------------------------------------- To unsubscribe, e-mail: docbook-apps-unsubscribe@... For additional commands, e-mail: docbook-apps-help@... |
|
|
Re: Docbook EditorsXXE? XMetaL?
On 5/14/07, Eitan Zabari <eitanz@...> wrote: > Hello, > > I would like to use an editor for writing Docbook, preferably WYSIWYG. > I used to write Latex with GVIM (non-wysiwyg), but trying to do the > same for Docbook XML is too much overhead, code wise. > Which editors are used with Docbook? Can anyone please recommend? Are > there free editors? Are there commercial editors that are good? > > Thank you in advance. > > ______________________________________ > Eitan Zabari > Technical Communicator > > Jungo Software Technologies > E-mail: eitanz@... > Web: http://www.jungo.com > Phone: +972-9-8859365 ext. 224 > Fax: +972-9-8859366 > Mobile: +972-54-2271318 > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: docbook-apps-unsubscribe@... > For additional commands, e-mail: docbook-apps-help@... > > -- http://chris.chiasson.name/ --------------------------------------------------------------------- To unsubscribe, e-mail: docbook-apps-unsubscribe@... For additional commands, e-mail: docbook-apps-help@... |
|
|
RE: Docbook EditorsXMetaL can be scripted to do anything, but it doesn't have many friendly
DocBook macros out of the box. The included demo Journalist DTD is similar to DocBook and those macros and features can be converted by renaming some elements. XMLMind's XXE and Syntext's Serna offer much better DocBook support out of the box. I know Arbortext's Epic has DocBook support, but I'm not sure what it has out of the box wrt convenience macros. I think those are the main four commercial wysiwyg editors these days. David > -----Original Message----- > From: chris.chiasson@... > [mailto:chris.chiasson@...] On Behalf Of Chris Chiasson > Sent: Monday, May 14, 2007 10:13 AM > To: Eitan Zabari > Cc: docbook-apps@... > Subject: Re: [docbook-apps] Docbook Editors > > XXE? XMetaL? > > On 5/14/07, Eitan Zabari <eitanz@...> wrote: > > Hello, > > > > I would like to use an editor for writing Docbook, > preferably WYSIWYG. > > I used to write Latex with GVIM (non-wysiwyg), but trying to do the > > same for Docbook XML is too much overhead, code wise. > > Which editors are used with Docbook? Can anyone please > recommend? Are > > there free editors? Are there commercial editors that are good? > > > > Thank you in advance. > > > > ______________________________________ > > Eitan Zabari > > Technical Communicator > > > > Jungo Software Technologies > > E-mail: eitanz@... > > Web: http://www.jungo.com > > Phone: +972-9-8859365 ext. 224 > > Fax: +972-9-8859366 > > Mobile: +972-54-2271318 > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > docbook-apps-unsubscribe@... > > For additional commands, e-mail: > > docbook-apps-help@... > > > > > > > -- > http://chris.chiasson.name/ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: docbook-apps-unsubscribe@... > For additional commands, e-mail: > docbook-apps-help@... > > --------------------------------------------------------------------- To unsubscribe, e-mail: docbook-apps-unsubscribe@... For additional commands, e-mail: docbook-apps-help@... |
|
|
Re: Docbook EditorsHow can XML editors be WYSIWYG, when there's no way to tell what a document will look like after XSLT?
Or do they basically do "on-the-fly" transformations, to preview what it will look like in HTML, in print, etc.? Just curious. On 5/14/07, David Cramer (Tech Pubs) <dcramer@...> wrote: XMetaL can be scripted to do anything, but it doesn't have many friendly |
|
|
RE: Docbook EditorsWell, they give you _a_ rendered view anyway. Lists look
like lists, tables look like tables (and you can drag column borders to change
widths), images are rendered in place. Serna uses xsl/xsl-fo to drive its
rendered view. XXE and XMetaL use CSS with some extensions. You might have
buttons to show or hide certain content (e.g. <remark>s, and internal or
reviewer only content) that likewise may or may not be shown in a given output.
Our inline glossterms are light green in the editor (as a convenience to the
writer) but are not formatted at all in pdf and show up as tooltip popups with
light underlining in html. XXE and (I think) Serna can show you xincluded
text inline and (again I think) let you edit it in place.
David
|
|
|
RE: Docbook EditorsWell,
I’ve tried several XML editors for editing, and from my experience: 1)
XMetal: Good compromise price/WYSIWYG
performance at the cost of some Scripting (not very complicated). The price for
a seat license is moderate. 2)
Oxygen: My editor of choice for developing
code (XML, XSLT, XQuery,…),
but it has some very basic “WYSOWYG features. 3)
FrameMaker: The most impressive tool
for real XML/SGML WYSIGYG editing. It has 2 important drawbacks: A)
It is very very
expensive. B)
The way it deals with structured
content is very… peculiar. It works with it own structure definition
language (EDD) and template definition tools. Everything has to be converted to
and from EDD, you have to define mappings (XML applications in FrameMaker parlance),… As I told you,
it is an impressive tool, BUT it need too much setting up, scripting… and
even (in some specific cases) C programming. I think is most “documentation-company”-Oriented
(you need some engineer devoted to maintain your XML applications). I don’t
think is worthwhile for occasional individual writer. It
provides DocBook and DITA applications “ready-to-use”
(supposed to be), but in fact it is not that simple. I
hope that helps. Pedro De: Colin Shapiro
[mailto:cmshapiro@...] How can XML editors be
WYSIWYG, when there's no way to tell what a document will look like after XSLT? On 5/14/07, David
Cramer (Tech Pubs) <dcramer@...>
wrote: XMetaL can be scripted to
do anything, but it doesn't have many friendly No virus
found in this incoming message. No virus found in this outgoing message. |
|
|
Re: Docbook EditorsOn Monday 14 May 2007 15:01:23 Eitan Zabari wrote:
> I would like to use an editor for writing Docbook, preferably WYSIWYG. > I used to write Latex with GVIM (non-wysiwyg), but trying to do the > same for Docbook XML is too much overhead, code wise. > Which editors are used with Docbook? Can anyone please recommend? Are > there free editors? Are there commercial editors that are good? Not free, but if you want a word replacement look at Syntext Serna. -- Sean Wheller Technical Author email: sean@... im: seanwhe@... skype: seanwhe cel: +27-84-854-9408 web: http://www.inwords.co.za --------------------------------------------------------------------- To unsubscribe, e-mail: docbook-apps-unsubscribe@... For additional commands, e-mail: docbook-apps-help@... |
|
|
|
|
|
Re: Docbook EditorsXML Mind. There is a free and professional version.
XML Mind |
|
|
RE: Docbook EditorsThe least expensive and best wysiwyg xml authoring tool is Serna by Syntext. Xmetal is good but more expensive. Other solutions, like Author-it, are much more expensive. George.. -----Original Message----- From: PeeKay [mailto:patrick.kilmartin@...] Sent: Thursday, June 28, 2007 7:01 AM To: docbook-apps@... Subject: Re: [docbook-apps] Docbook Editors XML Mind. There is a free and professional version. Eitan Zabari wrote: > > Hello, > > I would like to use an editor for writing Docbook, preferably WYSIWYG. > I used to write Latex with GVIM (non-wysiwyg), but trying to do the > same for Docbook XML is too much overhead, code wise. > Which editors are used with Docbook? Can anyone please recommend? Are > there free editors? Are there commercial editors that are good? > > Thank you in advance. > > ______________________________________ > Eitan Zabari > Technical Communicator > > Jungo Software Technologies > E-mail: eitanz@... > Web: http://www.jungo.com > Phone: +972-9-8859365 ext. 224 > Fax: +972-9-8859366 > Mobile: +972-54-2271318 > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: docbook-apps-unsubscribe@... > For additional commands, e-mail: > docbook-apps-help@... > > > -- View this message in context: http://www.nabble.com/Docbook-Editors-tf3752218.html#a11343314 Sent from the docbook apps mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: docbook-apps-unsubscribe@... For additional commands, e-mail: docbook-apps-help@... --------------------------------------------------------------------- To unsubscribe, e-mail: docbook-apps-unsubscribe@... For additional commands, e-mail: docbook-apps-help@... |
|
|
RE: Docbook EditorsXMLMind is good, fast, and its wysiwyg presentation is easy to customize, but does not support XML text entities. They have some proprietary mechanism for handling use cases where you want to use a text entity for substitution purposes. Serna does the whole shebang and can be customized if you buy the most expensive version. In my experience, it can be very, like snail on downers wading through molasses after a rough night, slow to load large documents or documents that use a lot of xincludes to pull in content. Once the documents are loaded it works pretty well. If you don't need wysiwyg and you like free, Emacs with NXML mode is fast, free, and easy to learn. > -----Original Message----- > From: Eckel, George [mailto:geckel@...] > Sent: Thursday, June 28, 2007 10:29 AM > To: PeeKay; docbook-apps@... > Subject: RE: [docbook-apps] Docbook Editors > > > The least expensive and best wysiwyg xml authoring tool is > Serna by Syntext. Xmetal is good but more expensive. Other > solutions, like Author-it, are much more expensive. > > George.. > > > > -----Original Message----- > From: PeeKay [mailto:patrick.kilmartin@...] > Sent: Thursday, June 28, 2007 7:01 AM > To: docbook-apps@... > Subject: Re: [docbook-apps] Docbook Editors > > > XML Mind. There is a free and professional version. > > > Eitan Zabari wrote: > > > > Hello, > > > > I would like to use an editor for writing Docbook, > preferably WYSIWYG. > > I used to write Latex with GVIM (non-wysiwyg), but trying to do the > > same for Docbook XML is too much overhead, code wise. > > Which editors are used with Docbook? Can anyone please > recommend? Are > > there free editors? Are there commercial editors that are good? > > > > Thank you in advance. > > > > ______________________________________ > > Eitan Zabari > > Technical Communicator > > > > Jungo Software Technologies > > E-mail: eitanz@... > > Web: http://www.jungo.com > > Phone: +972-9-8859365 ext. 224 > > Fax: +972-9-8859366 > > Mobile: +972-54-2271318 > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > docbook-apps-unsubscribe@... > > For additional commands, e-mail: > > docbook-apps-help@... > > > > > > > http://www.xmlmind.com/xmleditor/ XML Mind > -- > View this message in context: > http://www.nabble.com/Docbook-Editors-tf3752218.html#a11343314 > Sent from the docbook apps mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: docbook-apps-unsubscribe@... > For additional commands, e-mail: > docbook-apps-help@... > > --------------------------------------------------------------------- > To unsubscribe, e-mail: docbook-apps-unsubscribe@... > For additional commands, e-mail: > docbook-apps-help@... > --------------------------------------------------------------------- To unsubscribe, e-mail: docbook-apps-unsubscribe@... For additional commands, e-mail: docbook-apps-help@... |
|
|
RE: Docbook EditorsRight. You have to open a file with a lot of Xincludes with the option File >Open as Text. Then it opens right away but not in wysiwyg. The latest version of Serna is much faster than the older versions. There are things in Serna that bug me but they're working on it. Even in the cheaper version of Serna, you can do some customization. George.. -----Original Message----- From: Johnson, Eric [mailto:Eric.Johnson@...] Sent: Thursday, June 28, 2007 7:34 AM To: docbook-apps@... Subject: RE: [docbook-apps] Docbook Editors XMLMind is good, fast, and its wysiwyg presentation is easy to customize, but does not support XML text entities. They have some proprietary mechanism for handling use cases where you want to use a text entity for substitution purposes. Serna does the whole shebang and can be customized if you buy the most expensive version. In my experience, it can be very, like snail on downers wading through molasses after a rough night, slow to load large documents or documents that use a lot of xincludes to pull in content. Once the documents are loaded it works pretty well. If you don't need wysiwyg and you like free, Emacs with NXML mode is fast, free, and easy to learn. > -----Original Message----- > From: Eckel, George [mailto:geckel@...] > Sent: Thursday, June 28, 2007 10:29 AM > To: PeeKay; docbook-apps@... > Subject: RE: [docbook-apps] Docbook Editors > > > The least expensive and best wysiwyg xml authoring tool is Serna by > Syntext. Xmetal is good but more expensive. Other solutions, like > Author-it, are much more expensive. > > George.. > > > > -----Original Message----- > From: PeeKay [mailto:patrick.kilmartin@...] > Sent: Thursday, June 28, 2007 7:01 AM > To: docbook-apps@... > Subject: Re: [docbook-apps] Docbook Editors > > > XML Mind. There is a free and professional version. > > > Eitan Zabari wrote: > > > > Hello, > > > > I would like to use an editor for writing Docbook, > preferably WYSIWYG. > > I used to write Latex with GVIM (non-wysiwyg), but trying to do the > > same for Docbook XML is too much overhead, code wise. > > Which editors are used with Docbook? Can anyone please > recommend? Are > > there free editors? Are there commercial editors that are good? > > > > Thank you in advance. > > > > ______________________________________ > > Eitan Zabari > > Technical Communicator > > > > Jungo Software Technologies > > E-mail: eitanz@... > > Web: http://www.jungo.com > > Phone: +972-9-8859365 ext. 224 > > Fax: +972-9-8859366 > > Mobile: +972-54-2271318 > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > docbook-apps-unsubscribe@... > > For additional commands, e-mail: > > docbook-apps-help@... > > > > > > > http://www.xmlmind.com/xmleditor/ XML Mind > -- > View this message in context: > http://www.nabble.com/Docbook-Editors-tf3752218.html#a11343314 > Sent from the docbook apps mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: docbook-apps-unsubscribe@... > For additional commands, e-mail: > docbook-apps-help@... > > --------------------------------------------------------------------- > To unsubscribe, e-mail: docbook-apps-unsubscribe@... > For additional commands, e-mail: > docbook-apps-help@... > --------------------------------------------------------------------- To unsubscribe, e-mail: docbook-apps-unsubscribe@... For additional commands, e-mail: docbook-apps-help@... --------------------------------------------------------------------- To unsubscribe, e-mail: docbook-apps-unsubscribe@... For additional commands, e-mail: docbook-apps-help@... |
|
|
Re: Docbook EditorsOn 6/28/07, Johnson, Eric <Eric.Johnson@...> wrote:
> > XMLMind is good, fast, and its wysiwyg presentation is easy to > customize, but does not support XML text entities. For those that missed it, XML.com recently posted a helpful article: "Getting Productive with XMLMind" http://www.xml.com/pub/a/2007/06/20/getting-productive-with-xmlmind.html Keith --------------------------------------------------------------------- To unsubscribe, e-mail: docbook-apps-unsubscribe@... For additional commands, e-mail: docbook-apps-help@... |
|
|
Re: Docbook EditorsOn date Thursday 2007-06-28 10:33:40 -0400, Johnson, Eric wrote:
[...] > If you don't need wysiwyg and you like free, Emacs with NXML mode is > fast, free, and easy to learn. Do someone know if it's possible with emacs NXML mode to see (for example in the ECB method buffer) the layout of the document edited, for example the hierarchy of chapters and sections? And what about the insertion of complex skeletons, like that of a variablelist? There is already some way to add them with some shortcuts or is needed to hook into nxml-mode-hook all the various docbook specific skeleton insertion functions required? Thanks in advance for any reply. Cheers. -- Stefano Sabatini Linux user number 337176 (see http://counter.li.org) --------------------------------------------------------------------- To unsubscribe, e-mail: docbook-apps-unsubscribe@... For additional commands, e-mail: docbook-apps-help@... |
|
|
Re: Docbook EditorsOn Thu, 28 Jun 2007, Stefano Sabatini wrote:
+-- | Do someone know if it's possible with emacs NXML mode to see (for | example in the ECB method buffer) the layout of the document edited, | for example the hierarchy of chapters and sections? +-- I wrote a little Python script to pull out the id attributes of all sections. I'd be happy to post it if you like. It doesn't handle chapters; it assumes the document is an article. +-- | And what about the insertion of complex skeletons, like that of a | variablelist? There is already some way to add them with some | shortcuts or is needed to hook into nxml-mode-hook all the various | docbook specific skeleton insertion functions required? +-- My solution to this is to put together a collection of little template files and insert them using "C-x i". For example, if I'm building a variablelist, I have two template files named "varlist" containing the variablelist element, and a file "vle" containing the skeleton of a varlistentry element. Here's the "varlist" file: ================================================================ <variablelist> <!--\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\--> </variablelist> ---------------------------------------------------------------- The comment line is there to remind me to fill in the body. As I add each child element, I keep that comment line just below the element just added, so I can quickly find the spot where the next child element will go in. Once the list is complete, I'll delete the comment line. Here's my template file "vle" for a varlistentry: ================================================================ <varlistentry> <term> <code > </code > </term> <listitem> <para> </para> </listitem> </varlistentry> ---------------------------------------------------------------- This assumes that the terms I'm defining are in code. I have the </code> closing tag unindented because it's inline markup: I'll add the term's text after the <code> start tag, then use C-d to pull the </code> end tag up just after it. Not elegant, but I've been using it for a long time now, and it speeds up document creation a lot. There's a more detailed discussion in my locally-written nxml documentation: http://infohost.nmt.edu/tcc/help/pubs/nxml/ Scroll down to the section entitled "Toward faster work". Best regards, John Shipman (john@...), Applications Specialist, NM Tech Computer Center, Speare 119, Socorro, NM 87801, (505) 835-5950, http://www.nmt.edu/~john ``Let's go outside and commiserate with nature.'' --Dave Farber --------------------------------------------------------------------- To unsubscribe, e-mail: docbook-apps-unsubscribe@... For additional commands, e-mail: docbook-apps-help@... |
|
|
Re: Docbook EditorsAnother possible solution is to use Emacs PSGML instead of NXML mode,
with PSGML mode you have automatic insertion of the 'skeletons' you want when inserting 'complex' elements (like variablelist). It even shows you (as a comment) which are the elements the DTD expects after the one you've inserted, or the structure expected by it by the DTD. http://www.lysator.liu.se/projects/about_psgml.html http://www.linkwerk.com/pub/xml/emacs-psgml/ PSGML is a bit old and looks unmaintained but it works. On 6/28/07, John W. Shipman <john@...> wrote: > On Thu, 28 Jun 2007, Stefano Sabatini wrote: > > +-- > | Do someone know if it's possible with emacs NXML mode to see (for > | example in the ECB method buffer) the layout of the document edited, > | for example the hierarchy of chapters and sections? > +-- > > I wrote a little Python script to pull out the id attributes > of all sections. I'd be happy to post it if you like. It > doesn't handle chapters; it assumes the document is an article. > > +-- > | And what about the insertion of complex skeletons, like that of a > | variablelist? There is already some way to add them with some > | shortcuts or is needed to hook into nxml-mode-hook all the various > | docbook specific skeleton insertion functions required? > +-- > > My solution to this is to put together a collection of little > template files and insert them using "C-x i". For example, > if I'm building a variablelist, I have two template files named > "varlist" containing the variablelist element, and a file "vle" > containing the skeleton of a varlistentry element. Here's the > "varlist" file: > > ================================================================ > <variablelist> > <!--\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\--> > </variablelist> > ---------------------------------------------------------------- > > The comment line is there to remind me to fill in the body. > As I add each child element, I keep that comment line just > below the element just added, so I can quickly find the > spot where the next child element will go in. Once the > list is complete, I'll delete the comment line. > > Here's my template file "vle" for a varlistentry: > > ================================================================ > <varlistentry> > <term> > <code > > </code > > </term> > <listitem> > <para> > > </para> > </listitem> > </varlistentry> > ---------------------------------------------------------------- > > This assumes that the terms I'm defining are in code. I have the > </code> closing tag unindented because it's inline markup: I'll > add the term's text after the <code> start tag, then use C-d to > pull the </code> end tag up just after it. > > Not elegant, but I've been using it for a long time now, and > it speeds up document creation a lot. > > There's a more detailed discussion in my locally-written nxml > documentation: > > http://infohost.nmt.edu/tcc/help/pubs/nxml/ > > Scroll down to the section entitled "Toward faster work". > > Best regards, > John Shipman (john@...), Applications Specialist, NM Tech Computer Center, > Speare 119, Socorro, NM 87801, (505) 835-5950, http://www.nmt.edu/~john > ``Let's go outside and commiserate with nature.'' --Dave Farber > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: docbook-apps-unsubscribe@... > For additional commands, e-mail: docbook-apps-help@... > > -- Fabián Mandelbaum IS Engineer --------------------------------------------------------------------- To unsubscribe, e-mail: docbook-apps-unsubscribe@... For additional commands, e-mail: docbook-apps-help@... |
|
|
Re: Docbook EditorsOn date Friday 2007-06-29 08:57:16 -0300, Fabián Mandelbaum wrote:
> Another possible solution is to use Emacs PSGML instead of NXML mode, > with PSGML mode you have automatic insertion of the 'skeletons' you > want when inserting 'complex' elements (like variablelist). It even > shows you (as a comment) which are the elements the DTD expects after > the one you've inserted, or the structure expected by it by the DTD. > > http://www.lysator.liu.se/projects/about_psgml.html > > http://www.linkwerk.com/pub/xml/emacs-psgml/ > > PSGML is a bit old and looks unmaintained but it works. > > On 6/28/07, John W. Shipman <john@...> wrote: > >On Thu, 28 Jun 2007, Stefano Sabatini wrote: > > > >+-- > >| Do someone know if it's possible with emacs NXML mode to see (for > >| example in the ECB method buffer) the layout of the document edited, > >| for example the hierarchy of chapters and sections? > >+-- > > > >I wrote a little Python script to pull out the id attributes > >of all sections. I'd be happy to post it if you like. It > >doesn't handle chapters; it assumes the document is an article. > > > >+-- > >| And what about the insertion of complex skeletons, like that of a > >| variablelist? There is already some way to add them with some > >| shortcuts or is needed to hook into nxml-mode-hook all the various > >| docbook specific skeleton insertion functions required? > >+-- > > > >My solution to this is to put together a collection of little > >template files and insert them using "C-x i". For example, > >if I'm building a variablelist, I have two template files named > >"varlist" containing the variablelist element, and a file "vle" > >containing the skeleton of a varlistentry element. > >There's a more detailed discussion in my locally-written nxml > >documentation: > > > > http://infohost.nmt.edu/tcc/help/pubs/nxml/ > > > >Scroll down to the section entitled "Toward faster work". Thanks so much John and Fabián. Here it is my solution for the variablelist and varlistentry insertion, implemented using skeleton.el: (defmacro read-not-empty-string (body) `(let ((string (read-string ,body))) (if (equal string "") nil string))) (defun docbook-insert-variablelist (&optional title) "Insert at the current position the skeleton of a docbook variabelist entry. If the title is specified a slot for the title we'll be also inserted." (interactive) (let* ((title (if (null title) (read-not-empty-string "title of the variablelist: "))) (title-skeleton (if title '((concat "<title>" title "</title>") > \n) nil))) (skeleton-insert `(nil "<variablelist>" > \n ,@title-skeleton > _ \n "</variablelist>" > \n )))) (defun docbook-insert-varlistentry() (interactive) (let ((term (read-not-empty-string "term of the varlistentry: "))) (skeleton-insert '(nil "<varlistentry>" > \n "<term>" term "</term>" > \n "<listitem>" > \n "<para>" > \n _ \n "</para>" > \n "</listitem>" > \n "</varlistentry>" > \n \n)))) I like NXML for its automatic validation feature (while PSGML-mode requires an external parser, and it doesn't perform "on the fly" validation as NXML-mode), while NXML seems to lack the completion features of PSGML (used to fill element skeletons). Unfortunately both seem to lack tagging feature, to show up the layout of the document displayed, which is fundamental to me while editing a complex document, to understand where I am and to easily jump from one section to another one (but I have still to dig harder from the emacswiki: http://www.emacswiki.org/cgi-bin/wiki/XmlMode ). Kind regards. -- Stefano Sabatini Linux user number 337176 (see http://counter.li.org) --------------------------------------------------------------------- To unsubscribe, e-mail: docbook-apps-unsubscribe@... For additional commands, e-mail: docbook-apps-help@... |
|
|
Re: Docbook EditorsOn Mon, Jul 02, 2007 at 02:27:52PM +0200, Stefano Sabatini wrote:
> Unfortunately both seem to lack tagging feature, to show up the layout > of the document displayed, which is fundamental to me while editing a > complex document, to understand where I am and to easily jump from one > section to another one One could make use of "imenu" and/or "speedbar". imenu and speedbar are parts of Emacs 21 and 22, AFAIK. Try this: (require 'imenu) (require 'speedbar) (defvar dbk-imenu-generic-expression nil "Imenu generic expression for DocBook. See `imenu-generic-expression'.") (add-hook 'nxml-mode-hook (lambda () (speedbar-add-supported-extension ".dbk") (setq dbk-imenu-generic-expression '((nil "^[ \t]*<title>\\(.*\\)</title>" 1))) (setq imenu-generic-expression dbk-imenu-generic-expression imenu-case-fold-search nil) (imenu-add-to-menubar "DocBook"))) Now call M-x speedbar, when you are in nxml-mode. It does not really reflect the document structure, but maybe it helps a bit to see all titles in the right order. speedbar lets you jump to the right place, as does the menu "DocBook". Cheers, WB > Linux user number 337176 (see http://counter.li.org) Registered Linux user 7456 :~) --------------------------------------------------------------------- To unsubscribe, e-mail: docbook-apps-unsubscribe@... For additional commands, e-mail: docbook-apps-help@... |
| < Prev | 1 - 2 | Next > |
| Free embeddable forum powered by Nabble | Forum Help |