Re: The lyx file...
Original Message On 5/4/00, 9:48:15 AM, Jose Abilio Oliveira Matos [EMAIL PROTECTED] wrote regarding Re: The lyx file...: On Wed, May 03, 2000 at 05:38:06PM +0100, Bruce Richardson wrote: ... would be more useful. BTW, the file is truncated I didn't received the programming list part. I'll hunt around but you can try and duplicate it yourself. Put the following into CODE format: /---bin | +-etc | | | +-rc.d If I do that in a DocBook file, the resulting sgml export is double spaced and the initial spaces are trimmed, which puts the first line out of sync with the others. -- Bruce
Re: The lyx file...
Original Message On 5/4/00, 9:48:15 AM, Jose Abilio Oliveira Matos [EMAIL PROTECTED] wrote regarding Re: The lyx file...: On Wed, May 03, 2000 at 05:38:06PM +0100, Bruce Richardson wrote: ... would be more useful. BTW, the file is truncated I didn't received the programming list part. I'll hunt around but you can try and duplicate it yourself. Put the following into CODE format: /---bin | +-etc | | | +-rc.d If I do that in a DocBook file, the resulting sgml export is double spaced and the initial spaces are trimmed, which puts the first line out of sync with the others. -- Bruce
Re: The lyx file...
>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<< On 5/4/00, 9:48:15 AM, Jose Abilio Oliveira Matos <[EMAIL PROTECTED]> wrote regarding Re: The lyx file...: > On Wed, May 03, 2000 at 05:38:06PM +0100, Bruce Richardson wrote: > > ... would be more useful. > > > BTW, the file is truncated I didn't received the programming list > part. I'll hunt around but you can try and duplicate it yourself. Put the following into CODE format: /--->bin | +->etc | | | +->rc.d If I do that in a DocBook file, the resulting sgml export is double spaced and the initial spaces are trimmed, which puts the first line out of sync with the others. -- Bruce
The lyx file...
... would be more useful. -- Bruce #LyX 1.1 created this file. For more info see http://www.lyx.org/ \lyxformat 2.15 \textclass docbook \begin_preamble !entity header system "header.sgml" \end_preamble \language default \inputencoding default \fontscheme default \graphics default \paperfontsize default \spacing single \papersize Default \paperpackage a4 \use_geometry 0 \use_amsmath 0 \paperorientation portrait \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle default \layout Title \added_space_top vfill \added_space_bottom vfill Title \layout Date Date \layout Author \latex latex firstname \latex default Joe \latex latex /firstnamesurname \latex default Doe \latex latex /surname \layout Abstract Abstract \layout Section First Section \layout Standard Text with [brackets] and \begin_inset Quotes eld \end_inset quotes \begin_inset Quotes erd \end_inset . \layout Code \protected_separator \protected_separator /- \layout Code \protected_separator \protected_separator | | \layout Code \protected_separator \protected_separator | | \layout Code \protected_separator \protected_separator |--- \layout Standard cat ~/mbox \layout Code cat ~/mbox \the_end
Re: DocBook sgml problems
On 5/3/00, 12:11:10 PM, Jose Abilio Oliveira Matos [EMAIL PROTECTED] wrote regarding Re: DocBook sgml problems: On Wed, May 03, 2000 at 03:11:19AM +0100, Bruce Richardson wrote: I'm finding problems with the DocBook sgml exported by Lyx (1.1.4-fix3). Two examples: programlisting - or the Code environment. Lyx won't let me type "as is" - i.e. as many spaces as I need to line things up. This is inconvenient since the programlisting sgml tag is the only DocBook equivalent to the verb tag from LinuxDoc. I need this to get an ascii directory tree to line up and right now I'm having to rewrite that bit in Vi everytime I export the html. Actually, I built Lyx on a machine here at work and it happily let me type "as is" in the Code environment in DocBook - although now it's putting an extra blank line between each line of code. Is it significant which version of sgmltools is installed when Lyx is built? At work I had sgmltools installed, while at home I had sgml-tools installed while Lyx was built and then upgraded to sgmltools. Quotes, tildes and square brackets. Lyx is exporting these as ldquo, tilde and lsqb but DocBook needs the actual characters. In other words, ldquo is shown as "ldquo" in a DocBook document. Is that a problem? Does it show up in the dvi version or the resulting html? It turns out to be a problem with sgmltools. The postscript and rich text format gets the quotes and brackets right but the html output doesn't. As for tildes, if in the code environment they're written as "~" and look good in all ouput. If written in the standard environment they're written as "tilde;" and and all formats (ps, html, rtf etc) show just that, instead of the desired character. I attach a small test sgml file as an example. -- Bruce Title: Title ]> Date JoeDoe Abstract First Section Text with brackets and quotes. /-> | | | | |---> cat /mbox cat ~/mbox
The lyx file...
... would be more useful. -- Bruce #LyX 1.1 created this file. For more info see http://www.lyx.org/ \lyxformat 2.15 \textclass docbook \begin_preamble !entity header system "header.sgml" \end_preamble \language default \inputencoding default \fontscheme default \graphics default \paperfontsize default \spacing single \papersize Default \paperpackage a4 \use_geometry 0 \use_amsmath 0 \paperorientation portrait \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle default \layout Title \added_space_top vfill \added_space_bottom vfill Title \layout Date Date \layout Author \latex latex firstname \latex default Joe \latex latex /firstnamesurname \latex default Doe \latex latex /surname \layout Abstract Abstract \layout Section First Section \layout Standard Text with [brackets] and \begin_inset Quotes eld \end_inset quotes \begin_inset Quotes erd \end_inset . \layout Code \protected_separator \protected_separator /- \layout Code \protected_separator \protected_separator | | \layout Code \protected_separator \protected_separator | | \layout Code \protected_separator \protected_separator |--- \layout Standard cat ~/mbox \layout Code cat ~/mbox \the_end
Re: DocBook sgml problems
On 5/3/00, 12:11:10 PM, Jose Abilio Oliveira Matos [EMAIL PROTECTED] wrote regarding Re: DocBook sgml problems: On Wed, May 03, 2000 at 03:11:19AM +0100, Bruce Richardson wrote: I'm finding problems with the DocBook sgml exported by Lyx (1.1.4-fix3). Two examples: programlisting - or the Code environment. Lyx won't let me type "as is" - i.e. as many spaces as I need to line things up. This is inconvenient since the programlisting sgml tag is the only DocBook equivalent to the verb tag from LinuxDoc. I need this to get an ascii directory tree to line up and right now I'm having to rewrite that bit in Vi everytime I export the html. Actually, I built Lyx on a machine here at work and it happily let me type "as is" in the Code environment in DocBook - although now it's putting an extra blank line between each line of code. Is it significant which version of sgmltools is installed when Lyx is built? At work I had sgmltools installed, while at home I had sgml-tools installed while Lyx was built and then upgraded to sgmltools. Quotes, tildes and square brackets. Lyx is exporting these as ldquo, tilde and lsqb but DocBook needs the actual characters. In other words, ldquo is shown as "ldquo" in a DocBook document. Is that a problem? Does it show up in the dvi version or the resulting html? It turns out to be a problem with sgmltools. The postscript and rich text format gets the quotes and brackets right but the html output doesn't. As for tildes, if in the code environment they're written as "~" and look good in all ouput. If written in the standard environment they're written as "tilde;" and and all formats (ps, html, rtf etc) show just that, instead of the desired character. I attach a small test sgml file as an example. -- Bruce Title: Title ]> Date JoeDoe Abstract First Section Text with brackets and quotes. /-> | | | | |---> cat /mbox cat ~/mbox
The lyx file...
... would be more useful. -- Bruce #LyX 1.1 created this file. For more info see http://www.lyx.org/ \lyxformat 2.15 \textclass docbook \begin_preamble \end_preamble \language default \inputencoding default \fontscheme default \graphics default \paperfontsize default \spacing single \papersize Default \paperpackage a4 \use_geometry 0 \use_amsmath 0 \paperorientation portrait \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle default \layout Title \added_space_top vfill \added_space_bottom vfill Title \layout Date Date \layout Author \latex latex \latex default Joe \latex latex \latex default Doe \latex latex \layout Abstract Abstract \layout Section First Section \layout Standard Text with [brackets] and \begin_inset Quotes eld \end_inset quotes \begin_inset Quotes erd \end_inset . \layout Code \protected_separator \protected_separator /-> \layout Code \protected_separator \protected_separator | | \layout Code \protected_separator \protected_separator | | \layout Code \protected_separator \protected_separator |---> \layout Standard cat ~/mbox \layout Code cat ~/mbox \the_end
Re: DocBook sgml problems
On 5/3/00, 12:11:10 PM, Jose Abilio Oliveira Matos <[EMAIL PROTECTED]> wrote regarding Re: DocBook sgml problems: > On Wed, May 03, 2000 at 03:11:19AM +0100, Bruce Richardson wrote: > > I'm finding problems with the DocBook sgml exported by Lyx (1.1.4-fix3). > > Two examples: > > - or the Code environment. Lyx won't let me type "as is" - > > i.e. as many spaces as I need to line things up. This is inconvenient since > > the sgml tag is the only DocBook equivalent to the > > tag from LinuxDoc. I need this to get an ascii directory tree to line up > > and right now I'm having to rewrite that bit in Vi everytime I export the > > html. Actually, I built Lyx on a machine here at work and it happily let me type "as is" in the Code environment in DocBook - although now it's putting an extra blank line between each line of code. Is it significant which version of sgmltools is installed when Lyx is built? At work I had sgmltools installed, while at home I had sgml-tools installed while Lyx was built and then upgraded to sgmltools. > > > > Quotes, tildes and square brackets. Lyx is exporting these as , > > and but DocBook needs the actual characters. In other words, > > is shown as "" in a DocBook document. > Is that a problem? Does it show up in the dvi version or the resulting html? It turns out to be a problem with sgmltools. The postscript and rich text format gets the quotes and brackets right but the html output doesn't. As for tildes, if in the code environment they're written as "~" and look good in all ouput. If written in the standard environment they're written as "" and and all formats (ps, html, rtf etc) show just that, instead of the desired character. I attach a small test sgml file as an example. -- Bruce Title: Title ]> Date JoeDoe Abstract First Section Text with brackets and “quotes”. /-> | | | | |---> cat ˜/mbox cat ~/mbox
Re: That makes two of us
On Tue, May 02, 2000 at 12:54:45PM -0700, [EMAIL PROTECTED] wrote: Even better -- the LyX people are working on making LyX GUI-independant. I'm personally looking forward to a Palm version ('cause that would be useful and unique) and a curses version (because I'm just that kind of person). Lyx with a Vi-like interface? *That* would be my app-from-heaven. I should probably be taking something for that. -- Bruce It is impolite to tell a man who is carrying you on his shoulders that his head smells.
Re: That makes two of us
On Tue, May 02, 2000 at 12:54:45PM -0700, [EMAIL PROTECTED] wrote: Even better -- the LyX people are working on making LyX GUI-independant. I'm personally looking forward to a Palm version ('cause that would be useful and unique) and a curses version (because I'm just that kind of person). Lyx with a Vi-like interface? *That* would be my app-from-heaven. I should probably be taking something for that. -- Bruce It is impolite to tell a man who is carrying you on his shoulders that his head smells.
Re: That makes two of us
On Tue, May 02, 2000 at 12:54:45PM -0700, [EMAIL PROTECTED] wrote: > Even better -- the LyX people are working on making LyX GUI-independant. > I'm personally looking forward to a Palm version ('cause that would be > useful and unique) and a curses version (because I'm just that kind of > person). Lyx with a Vi-like interface? *That* would be my app-from-heaven. I should probably be taking something for that. -- Bruce It is impolite to tell a man who is carrying you on his shoulders that his head smells.
~ disappears in postscript
I'm writing a LinuxDoc document using Lyx 1.1.4fix3. If I export the document to postscript, any ~ character in a code environment disappears. Since I'm using a lot of command line examples, this isn't ideal! Any clues? -- Bruce It is impolite to tell a man who is carrying you on his shoulders that his head smells.
~ disappears in postscript
I'm writing a LinuxDoc document using Lyx 1.1.4fix3. If I export the document to postscript, any ~ character in a code environment disappears. Since I'm using a lot of command line examples, this isn't ideal! Any clues? -- Bruce It is impolite to tell a man who is carrying you on his shoulders that his head smells.
~ disappears in postscript
I'm writing a LinuxDoc document using Lyx 1.1.4fix3. If I export the document to postscript, any ~ character in a code environment disappears. Since I'm using a lot of command line examples, this isn't ideal! Any clues? -- Bruce It is impolite to tell a man who is carrying you on his shoulders that his head smells.
Re: Text as is
On Mon, Apr 24, 2000 at 10:55:02PM +0100, Jose Abilio Oliveira Matos wrote: On Sun, Apr 23, 2000 at 11:44:51PM +0100, Bruce Richardson wrote: I'm trying to show part of a directory tree in a DocBook document, using ASCII characters. Is there an environment I can apply that will let me get the spacing exact so it all lines up? Frankly, DocBook and sgmltools 2 are turning out to be more trouble than they are worth - and less attractive than LinuxDoc as well. Does code work for that? No. I went back to sgml-tools and LinuxDoc and that has verbatim. Much happier - I really don't like the look of DocBook product. -- Bruce Those of you who think you know everything are annoying to those of us who do.
Re: Text as is
On Mon, Apr 24, 2000 at 10:55:02PM +0100, Jose Abilio Oliveira Matos wrote: On Sun, Apr 23, 2000 at 11:44:51PM +0100, Bruce Richardson wrote: I'm trying to show part of a directory tree in a DocBook document, using ASCII characters. Is there an environment I can apply that will let me get the spacing exact so it all lines up? Frankly, DocBook and sgmltools 2 are turning out to be more trouble than they are worth - and less attractive than LinuxDoc as well. Does code work for that? No. I went back to sgml-tools and LinuxDoc and that has verbatim. Much happier - I really don't like the look of DocBook product. -- Bruce Those of you who think you know everything are annoying to those of us who do.
Re: Text "as is"
On Mon, Apr 24, 2000 at 10:55:02PM +0100, Jose Abilio Oliveira Matos wrote: > On Sun, Apr 23, 2000 at 11:44:51PM +0100, Bruce Richardson wrote: > > I'm trying to show part of a directory tree in a DocBook document, using > > ASCII characters. Is there an environment I can apply that will let me get > > the spacing exact so it all lines up? > > > > Frankly, DocBook and sgmltools 2 are turning out to be more trouble than > > they are worth - and less attractive than LinuxDoc as well. > > Does code work for that? No. I went back to sgml-tools and LinuxDoc and that has verbatim. Much happier - I really don't like the look of DocBook product. -- Bruce Those of you who think you know everything are annoying to those of us who do.
Re: editing lyx files
On Fri, Apr 21, 2000 at 08:11:02PM +0200, jdd wrote: As one may think the solution is with emacs. For example, in emacs, M-x replace-string ! C-q C-j \protected_separator C-q C-j ! inserts a protected separator before the !. C-q C-j inserts a cr in the emacs field. And in vi you type :% s/!/^M\\protected_seperator^M!/g where ^M is created by typing Ctrl-V Ctrl-M if any body nows how to do the same with sed or awks, I would appreciate (to write scripts) With sed do: sed 's/!/\ \\protected_seperator\ \!/g' and make sure the carriage return comes immediately after the \ on each line or it won't work. With Gawk (lovely tool!) you could do it this way cut here { COUNT = split($0, LINE, "!") FIELD = 2 print LINE[1] while (COUNT 1) { printf "%s\n!%s\n","\\protected_seperator",LINE[FIELD] ++FIELD --COUNT } } cut here The solution would be more elegant if you could be sure that each line would have no more than one exclamation mark, but this does lines with any number of them. I did this with gawk but it should run in any awk. -- Bruce Those of you who think you know everything are annoying to those of us who do.
Text as is
I'm trying to show part of a directory tree in a DocBook document, using ASCII characters. Is there an environment I can apply that will let me get the spacing exact so it all lines up? Frankly, DocBook and sgmltools 2 are turning out to be more trouble than they are worth - and less attractive than LinuxDoc as well. -- Bruce Those of you who think you know everything are annoying to those of us who do.
Re: editing lyx files
On Fri, Apr 21, 2000 at 08:11:02PM +0200, jdd wrote: As one may think the solution is with emacs. For example, in emacs, M-x replace-string ! C-q C-j \protected_separator C-q C-j ! inserts a protected separator before the !. C-q C-j inserts a cr in the emacs field. And in vi you type :% s/!/^M\\protected_seperator^M!/g where ^M is created by typing Ctrl-V Ctrl-M if any body nows how to do the same with sed or awks, I would appreciate (to write scripts) With sed do: sed 's/!/\ \\protected_seperator\ \!/g' and make sure the carriage return comes immediately after the \ on each line or it won't work. With Gawk (lovely tool!) you could do it this way cut here { COUNT = split($0, LINE, "!") FIELD = 2 print LINE[1] while (COUNT 1) { printf "%s\n!%s\n","\\protected_seperator",LINE[FIELD] ++FIELD --COUNT } } cut here The solution would be more elegant if you could be sure that each line would have no more than one exclamation mark, but this does lines with any number of them. I did this with gawk but it should run in any awk. -- Bruce Those of you who think you know everything are annoying to those of us who do.
Text as is
I'm trying to show part of a directory tree in a DocBook document, using ASCII characters. Is there an environment I can apply that will let me get the spacing exact so it all lines up? Frankly, DocBook and sgmltools 2 are turning out to be more trouble than they are worth - and less attractive than LinuxDoc as well. -- Bruce Those of you who think you know everything are annoying to those of us who do.
Re: editing lyx files
On Fri, Apr 21, 2000 at 08:11:02PM +0200, jdd wrote: > As one may think the solution is with emacs. For example, in emacs, > > M-x replace-string > ! > C-q C-j > \protected_separator C-q C-j > ! > > inserts a protected separator before the !. C-q C-j inserts a cr in the > emacs field. And in vi you type :% s/!/^M\\protected_seperator^M!/g where ^M is created by typing Ctrl-V Ctrl-M > > if any body nows how to do the same with sed or awks, I would appreciate > (to write scripts) With sed do: sed 's/!/\ \\protected_seperator\ \!/g' and make sure the carriage return comes immediately after the \ on each line or it won't work. With Gawk (lovely tool!) you could do it this way cut here { COUNT = split($0, LINE, "!") FIELD = 2 print LINE[1] while (COUNT > 1) { printf "%s\n!%s\n","\\protected_seperator",LINE[FIELD] ++FIELD --COUNT } } cut here The solution would be more elegant if you could be sure that each line would have no more than one exclamation mark, but this does lines with any number of them. I did this with gawk but it should run in any awk. -- Bruce Those of you who think you know everything are annoying to those of us who do.
Text "as is"
I'm trying to show part of a directory tree in a DocBook document, using ASCII characters. Is there an environment I can apply that will let me get the spacing exact so it all lines up? Frankly, DocBook and sgmltools 2 are turning out to be more trouble than they are worth - and less attractive than LinuxDoc as well. -- Bruce Those of you who think you know everything are annoying to those of us who do.
DocBook errors
Running sgmlcheck against any document I create from the DocBook template gives me this: start tag for "AUTHOR" omitted, but its declaration does not permit this no start tag specified for implied empty element "NAME" no start tag specified for implied empty element "AUTHOR" document type does not allow element "AUTHOR" here element "FIRSTNAME" undefined element "SURNAME" undefined end tag for "AUTHOR" which is not finished I get this even with brand new documents that I haven't added a single letter to. -- Bruce
DocBook errors
Running sgmlcheck against any document I create from the DocBook template gives me this: start tag for "AUTHOR" omitted, but its declaration does not permit this no start tag specified for implied empty element "NAME" no start tag specified for implied empty element "AUTHOR" document type does not allow element "AUTHOR" here element "FIRSTNAME" undefined element "SURNAME" undefined end tag for "AUTHOR" which is not finished I get this even with brand new documents that I haven't added a single letter to. -- Bruce
DocBook errors
Running sgmlcheck against any document I create from the DocBook template gives me this: start tag for "AUTHOR" omitted, but its declaration does not permit this no start tag specified for implied empty element "NAME" no start tag specified for implied empty element "AUTHOR" document type does not allow element "AUTHOR" here element "FIRSTNAME" undefined element "SURNAME" undefined end tag for "AUTHOR" which is not finished I get this even with brand new documents that I haven't added a single letter to. -- Bruce