Re: Simple HTML converter/export

2013-06-11 Thread Bob Alvarez

On 6/10/13 2:23 PM, Richard Heck wrote:

On 06/09/2013 05:22 PM, Bob Alvarez wrote:
  
Let me state my interest in this topic to see if it overlaps with

yours. I agree that HTML exporters like Alex Fernandez' eLyXer do a
great job of producing web pages that look like pdf documents. What I
would want is to be able to add some capabilities to the HTML that
would not be possible in a static format like pdf. But at the same
time, I want to use Lyx's capabilities for formatting the document and
math typesetting.

As an example, I use Lyx to create web pages with a lot of math. Like
most math, it is structured with general statements like theorems with
proofs. Many times, the proof gets in the way of the narrative
although it is important for it to be there if the reader wants to see
it. I saw a website where they added a + sign gadget that if you click
it once displays the proof and then clicking it again hides it.

This is relatively easy to do using the javascript openClose function
http://javascriptsource.com/miscellaneous/collapsible-text.html



The from LyX's own XHTML exporter is substantially customizable through
layout files. I'd be surprised if this sort of thing could be not be
done fairly simply. At worst, you'd have to define some new sort of
inset in which you could wrap whatever you wanted to be opened and closed.

Richard



Could you provide some more details on how I can go about doing this?

I read Ch. 4 of the Additional and Ch. 5 of the Customization but I 
am a beginner at this. Is there a sample XHTML layout file that I can 
modify? For example, one that inserts javascript?


Any help appreciated.

Bob


Re: Simple HTML converter/export

2013-06-11 Thread Richard Heck

On 06/11/2013 01:42 PM, Bob Alvarez wrote:

On 6/10/13 2:23 PM, Richard Heck wrote:

On 06/09/2013 05:22 PM, Bob Alvarez wrote:

  Let me state my interest in this topic to see if it overlaps with
yours. I agree that HTML exporters like Alex Fernandez' eLyXer do a
great job of producing web pages that look like pdf documents. What I
would want is to be able to add some capabilities to the HTML that
would not be possible in a static format like pdf. But at the same
time, I want to use Lyx's capabilities for formatting the document and
math typesetting.

As an example, I use Lyx to create web pages with a lot of math. Like
most math, it is structured with general statements like theorems with
proofs. Many times, the proof gets in the way of the narrative
although it is important for it to be there if the reader wants to see
it. I saw a website where they added a + sign gadget that if you click
it once displays the proof and then clicking it again hides it.

This is relatively easy to do using the javascript openClose function
http://javascriptsource.com/miscellaneous/collapsible-text.html



The from LyX's own XHTML exporter is substantially customizable through
layout files. I'd be surprised if this sort of thing could be not be
done fairly simply. At worst, you'd have to define some new sort of
inset in which you could wrap whatever you wanted to be opened and 
closed.


Richard



Could you provide some more details on how I can go about doing this?

I read Ch. 4 of the Additional and Ch. 5 of the Customization but 
I am a beginner at this. Is there a sample XHTML layout file that I 
can modify? For example, one that inserts javascript?


What sort of thing would you like to be able to do? That would give me a 
better sense of how to answer. But for some ideas, look perhaps at how 
footnotes are formatted in the file stdinsets.inc.


The ordinary article.layout file contains lots of HTML-specific 
material. So you could also start by looking at it. My sense was that 
what Steve wants is a kind of stripped-down layout, that is closely 
targeted to making simple HTML pages. So, in that case, you might have 
much simpler stuff than in the complex layouts we have.


Richard



Re: Simple HTML converter/export

2013-06-11 Thread Bob Alvarez

On 6/11/13 11:20 AM, Richard Heck wrote:

What sort of thing would you like to be able to do?
I am interested in adding a collapsible text block when I export to an 
HTML page. As an example, I want to have a proof following the statement 
of a mathematical theorem. I would like to put a + sign under the 
theorem so the user can click on it and the proof displays. If the 
reader clicks the + sign again, the proof collapses and disappears.


I have found a javascript example about how to do this at:

http://javascriptsource.com/miscellaneous/collapsible-text.html

Also, it would be good if when I export to pdf none of the javascript stuff 
shows and the proof text is included in the document.


The ordinary article.layout file contains lots of HTML-specific
material. So you could also start by looking at it.

I will study the file.


Bob




Re: Simple HTML converter/export

2013-06-11 Thread Bob Alvarez

On 6/10/13 2:23 PM, Richard Heck wrote:

On 06/09/2013 05:22 PM, Bob Alvarez wrote:
  
Let me state my interest in this topic to see if it overlaps with

yours. I agree that HTML exporters like Alex Fernandez' eLyXer do a
great job of producing web pages that look like pdf documents. What I
would want is to be able to add some capabilities to the HTML that
would not be possible in a static format like pdf. But at the same
time, I want to use Lyx's capabilities for formatting the document and
math typesetting.

As an example, I use Lyx to create web pages with a lot of math. Like
most math, it is structured with general statements like theorems with
proofs. Many times, the proof gets in the way of the narrative
although it is important for it to be there if the reader wants to see
it. I saw a website where they added a + sign gadget that if you click
it once displays the proof and then clicking it again hides it.

This is relatively easy to do using the javascript openClose function
http://javascriptsource.com/miscellaneous/collapsible-text.html



The from LyX's own XHTML exporter is substantially customizable through
layout files. I'd be surprised if this sort of thing could be not be
done fairly simply. At worst, you'd have to define some new sort of
inset in which you could wrap whatever you wanted to be opened and closed.

Richard



Could you provide some more details on how I can go about doing this?

I read Ch. 4 of the Additional and Ch. 5 of the Customization but I 
am a beginner at this. Is there a sample XHTML layout file that I can 
modify? For example, one that inserts javascript?


Any help appreciated.

Bob


Re: Simple HTML converter/export

2013-06-11 Thread Richard Heck

On 06/11/2013 01:42 PM, Bob Alvarez wrote:

On 6/10/13 2:23 PM, Richard Heck wrote:

On 06/09/2013 05:22 PM, Bob Alvarez wrote:

  Let me state my interest in this topic to see if it overlaps with
yours. I agree that HTML exporters like Alex Fernandez' eLyXer do a
great job of producing web pages that look like pdf documents. What I
would want is to be able to add some capabilities to the HTML that
would not be possible in a static format like pdf. But at the same
time, I want to use Lyx's capabilities for formatting the document and
math typesetting.

As an example, I use Lyx to create web pages with a lot of math. Like
most math, it is structured with general statements like theorems with
proofs. Many times, the proof gets in the way of the narrative
although it is important for it to be there if the reader wants to see
it. I saw a website where they added a + sign gadget that if you click
it once displays the proof and then clicking it again hides it.

This is relatively easy to do using the javascript openClose function
http://javascriptsource.com/miscellaneous/collapsible-text.html



The from LyX's own XHTML exporter is substantially customizable through
layout files. I'd be surprised if this sort of thing could be not be
done fairly simply. At worst, you'd have to define some new sort of
inset in which you could wrap whatever you wanted to be opened and 
closed.


Richard



Could you provide some more details on how I can go about doing this?

I read Ch. 4 of the Additional and Ch. 5 of the Customization but 
I am a beginner at this. Is there a sample XHTML layout file that I 
can modify? For example, one that inserts javascript?


What sort of thing would you like to be able to do? That would give me a 
better sense of how to answer. But for some ideas, look perhaps at how 
footnotes are formatted in the file stdinsets.inc.


The ordinary article.layout file contains lots of HTML-specific 
material. So you could also start by looking at it. My sense was that 
what Steve wants is a kind of stripped-down layout, that is closely 
targeted to making simple HTML pages. So, in that case, you might have 
much simpler stuff than in the complex layouts we have.


Richard



Re: Simple HTML converter/export

2013-06-11 Thread Bob Alvarez

On 6/11/13 11:20 AM, Richard Heck wrote:

What sort of thing would you like to be able to do?
I am interested in adding a collapsible text block when I export to an 
HTML page. As an example, I want to have a proof following the statement 
of a mathematical theorem. I would like to put a + sign under the 
theorem so the user can click on it and the proof displays. If the 
reader clicks the + sign again, the proof collapses and disappears.


I have found a javascript example about how to do this at:

http://javascriptsource.com/miscellaneous/collapsible-text.html

Also, it would be good if when I export to pdf none of the javascript stuff 
shows and the proof text is included in the document.


The ordinary article.layout file contains lots of HTML-specific
material. So you could also start by looking at it.

I will study the file.


Bob




Re: Simple HTML converter/export

2013-06-11 Thread Bob Alvarez

On 6/10/13 2:23 PM, Richard Heck wrote:

On 06/09/2013 05:22 PM, Bob Alvarez wrote:
  
Let me state my interest in this topic to see if it overlaps with

yours. I agree that HTML exporters like Alex Fernandez' eLyXer do a
great job of producing web pages that look like pdf documents. What I
would want is to be able to add some capabilities to the HTML that
would not be possible in a static format like pdf. But at the same
time, I want to use Lyx's capabilities for formatting the document and
math typesetting.

As an example, I use Lyx to create web pages with a lot of math. Like
most math, it is structured with general statements like theorems with
proofs. Many times, the proof gets in the way of the narrative
although it is important for it to be there if the reader wants to see
it. I saw a website where they added a + sign gadget that if you click
it once displays the proof and then clicking it again hides it.

This is relatively easy to do using the javascript openClose function
http://javascriptsource.com/miscellaneous/collapsible-text.html



The from LyX's own XHTML exporter is substantially customizable through
layout files. I'd be surprised if this sort of thing could be not be
done fairly simply. At worst, you'd have to define some new sort of
inset in which you could wrap whatever you wanted to be opened and closed.

Richard



Could you provide some more details on how I can go about doing this?

I read Ch. 4 of the "Additional" and Ch. 5 of the "Customization" but I 
am a beginner at this. Is there a sample XHTML layout file that I can 
modify? For example, one that inserts javascript?


Any help appreciated.

Bob


Re: Simple HTML converter/export

2013-06-11 Thread Richard Heck

On 06/11/2013 01:42 PM, Bob Alvarez wrote:

On 6/10/13 2:23 PM, Richard Heck wrote:

On 06/09/2013 05:22 PM, Bob Alvarez wrote:

  Let me state my interest in this topic to see if it overlaps with
yours. I agree that HTML exporters like Alex Fernandez' eLyXer do a
great job of producing web pages that look like pdf documents. What I
would want is to be able to add some capabilities to the HTML that
would not be possible in a static format like pdf. But at the same
time, I want to use Lyx's capabilities for formatting the document and
math typesetting.

As an example, I use Lyx to create web pages with a lot of math. Like
most math, it is structured with general statements like theorems with
proofs. Many times, the proof gets in the way of the narrative
although it is important for it to be there if the reader wants to see
it. I saw a website where they added a + sign gadget that if you click
it once displays the proof and then clicking it again hides it.

This is relatively easy to do using the javascript openClose function
http://javascriptsource.com/miscellaneous/collapsible-text.html



The from LyX's own XHTML exporter is substantially customizable through
layout files. I'd be surprised if this sort of thing could be not be
done fairly simply. At worst, you'd have to define some new sort of
inset in which you could wrap whatever you wanted to be opened and 
closed.


Richard



Could you provide some more details on how I can go about doing this?

I read Ch. 4 of the "Additional" and Ch. 5 of the "Customization" but 
I am a beginner at this. Is there a sample XHTML layout file that I 
can modify? For example, one that inserts javascript?


What sort of thing would you like to be able to do? That would give me a 
better sense of how to answer. But for some ideas, look perhaps at how 
footnotes are formatted in the file stdinsets.inc.


The ordinary article.layout file contains lots of HTML-specific 
material. So you could also start by looking at it. My sense was that 
what Steve wants is a kind of stripped-down layout, that is closely 
targeted to making simple HTML pages. So, in that case, you might have 
much simpler stuff than in the complex layouts we have.


Richard



Re: Simple HTML converter/export

2013-06-11 Thread Bob Alvarez

On 6/11/13 11:20 AM, Richard Heck wrote:

What sort of thing would you like to be able to do?
I am interested in adding a collapsible text block when I export to an 
HTML page. As an example, I want to have a proof following the statement 
of a mathematical theorem. I would like to put a + sign under the 
theorem so the user can click on it and the proof displays. If the 
reader clicks the + sign again, the proof collapses and disappears.


I have found a javascript example about how to do this at:

http://javascriptsource.com/miscellaneous/collapsible-text.html

Also, it would be good if when I export to pdf none of the javascript stuff 
shows and the proof text is included in the document.


The ordinary article.layout file contains lots of HTML-specific
material. So you could also start by looking at it.

I will study the file.


Bob




Re: Simple HTML converter/export

2013-06-10 Thread Richard Heck

On 06/09/2013 05:22 PM, Bob Alvarez wrote:


This will NOT be YAHC (Yet Another HTML Converter). It will be a
small subset of LyX's capabilities, purposed not to turn a
document into HTML, but to turn LyX into a quick to use HTML
authoring tool for HTML web pages. It will in no way try to
replace the existing HTML Converters, and from what I've seen so
far, the existing HTML converters would have a hard time replacing
what I'm trying to make.


Let me state my interest in this topic to see if it overlaps with 
yours. I agree that HTML exporters like Alex Fernandez' eLyXer do a 
great job of producing web pages that look like pdf documents. What I 
would want is to be able to add some capabilities to the HTML that 
would not be possible in a static format like pdf. But at the same 
time, I want to use Lyx's capabilities for formatting the document and 
math typesetting.


As an example, I use Lyx to create web pages with a lot of math. Like 
most math, it is structured with general statements like theorems with 
proofs. Many times, the proof gets in the way of the narrative 
although it is important for it to be there if the reader wants to see 
it. I saw a website where they added a + sign gadget that if you click 
it once displays the proof and then clicking it again hides it.


This is relatively easy to do using the javascript openClose function
http://javascriptsource.com/miscellaneous/collapsible-text.html

Alex suggested a way to do this that, if I understand it correctly, 
requires editing the HTML output. I would be interested in extensions 
to Lyx that would allow me to add features like these but at the same 
time be able to export standard pdf documents.


The from LyX's own XHTML exporter is substantially customizable through 
layout files. I'd be surprised if this sort of thing could be not be 
done fairly simply. At worst, you'd have to define some new sort of 
inset in which you could wrap whatever you wanted to be opened and closed.


Richard



Re: Simple HTML converter/export

2013-06-10 Thread Richard Heck

On 06/09/2013 05:22 PM, Bob Alvarez wrote:


This will NOT be YAHC (Yet Another HTML Converter). It will be a
small subset of LyX's capabilities, purposed not to turn a
document into HTML, but to turn LyX into a quick to use HTML
authoring tool for HTML web pages. It will in no way try to
replace the existing HTML Converters, and from what I've seen so
far, the existing HTML converters would have a hard time replacing
what I'm trying to make.


Let me state my interest in this topic to see if it overlaps with 
yours. I agree that HTML exporters like Alex Fernandez' eLyXer do a 
great job of producing web pages that look like pdf documents. What I 
would want is to be able to add some capabilities to the HTML that 
would not be possible in a static format like pdf. But at the same 
time, I want to use Lyx's capabilities for formatting the document and 
math typesetting.


As an example, I use Lyx to create web pages with a lot of math. Like 
most math, it is structured with general statements like theorems with 
proofs. Many times, the proof gets in the way of the narrative 
although it is important for it to be there if the reader wants to see 
it. I saw a website where they added a + sign gadget that if you click 
it once displays the proof and then clicking it again hides it.


This is relatively easy to do using the javascript openClose function
http://javascriptsource.com/miscellaneous/collapsible-text.html

Alex suggested a way to do this that, if I understand it correctly, 
requires editing the HTML output. I would be interested in extensions 
to Lyx that would allow me to add features like these but at the same 
time be able to export standard pdf documents.


The from LyX's own XHTML exporter is substantially customizable through 
layout files. I'd be surprised if this sort of thing could be not be 
done fairly simply. At worst, you'd have to define some new sort of 
inset in which you could wrap whatever you wanted to be opened and closed.


Richard



Re: Simple HTML converter/export

2013-06-10 Thread Richard Heck

On 06/09/2013 05:22 PM, Bob Alvarez wrote:


"This will NOT be YAHC (Yet Another HTML Converter). It will be a
small subset of LyX's capabilities, purposed not to turn a
document into HTML, but to turn LyX into a quick to use HTML
authoring tool for HTML web pages. It will in no way try to
replace the existing HTML Converters, and from what I've seen so
far, the existing HTML converters would have a hard time replacing
what I'm trying to make."


Let me state my interest in this topic to see if it overlaps with 
yours. I agree that HTML exporters like Alex Fernandez' eLyXer do a 
great job of producing web pages that look like pdf documents. What I 
would want is to be able to add some capabilities to the HTML that 
would not be possible in a static format like pdf. But at the same 
time, I want to use Lyx's capabilities for formatting the document and 
math typesetting.


As an example, I use Lyx to create web pages with a lot of math. Like 
most math, it is structured with general statements like theorems with 
proofs. Many times, the proof gets in the way of the narrative 
although it is important for it to be there if the reader wants to see 
it. I saw a website where they added a + sign gadget that if you click 
it once displays the proof and then clicking it again hides it.


This is relatively easy to do using the javascript openClose function
http://javascriptsource.com/miscellaneous/collapsible-text.html

Alex suggested a way to do this that, if I understand it correctly, 
requires editing the HTML output. I would be interested in extensions 
to Lyx that would allow me to add features like these but at the same 
time be able to export standard pdf documents.


The from LyX's own XHTML exporter is substantially customizable through 
layout files. I'd be surprised if this sort of thing could be not be 
done fairly simply. At worst, you'd have to define some new sort of 
inset in which you could wrap whatever you wanted to be opened and closed.


Richard



Re: Simple HTML converter/export

2013-06-09 Thread Bob Alvarez

 This will NOT be YAHC (Yet Another HTML Converter). It will be a small
 subset of LyX's capabilities, purposed not to turn a document into HTML,
 but to turn LyX into a quick to use HTML authoring tool for HTML web pages.
 It will in no way try to replace the existing HTML Converters, and from
 what I've seen so far, the existing HTML converters would have a hard time
 replacing what I'm trying to make.


Let me state my interest in this topic to see if it overlaps with yours. I
agree that HTML exporters like Alex Fernandez' eLyXer do a great job of
producing web pages that look like pdf documents. What I would want is to
be able to add some capabilities to the HTML that would not be possible in
a static format like pdf. But at the same time, I want to use Lyx's
capabilities for formatting the document and math typesetting.

As an example, I use Lyx to create web pages with a lot of math. Like most
math, it is structured with general statements like theorems with proofs.
Many times, the proof gets in the way of the narrative although it is
important for it to be there if the reader wants to see it. I saw a website
where they added a + sign gadget that if you click it once displays the
proof and then clicking it again hides it.

This is relatively easy to do using the javascript openClose function
http://javascriptsource.com/miscellaneous/collapsible-text.html

Alex suggested a way to do this that, if I understand it correctly,
requires editing the HTML output. I would be interested in extensions to
Lyx that would allow me to add features like these but at the same time be
able to export standard pdf documents.

If there is some commonality of our interests, perhaps the Lyx experts can
suggest a way to enhance Lyx to be able to do the things we want to do.

Bob


Re: Simple HTML converter/export

2013-06-09 Thread Steve Litt
On Sun, 9 Jun 2013 14:22:32 -0700
Bob Alvarez cobol...@gmail.com wrote:

 
  This will NOT be YAHC (Yet Another HTML Converter). It will be a
  small subset of LyX's capabilities, purposed not to turn a document
  into HTML, but to turn LyX into a quick to use HTML authoring tool
  for HTML web pages. It will in no way try to replace the existing
  HTML Converters, and from what I've seen so far, the existing HTML
  converters would have a hard time replacing what I'm trying to
  make.
 
 
 Let me state my interest in this topic to see if it overlaps with
 yours. I agree that HTML exporters like Alex Fernandez' eLyXer do a
 great job of producing web pages that look like pdf documents. What I
 would want is to be able to add some capabilities to the HTML that
 would not be possible in a static format like pdf. But at the same
 time, I want to use Lyx's capabilities for formatting the document
 and math typesetting.

Hi Bob,

I think our projects are close enough that we'd both benefit from
sharing information, but far enough apart that we'd probably be better
off making them two separate projects. Their intersection is far
smaller than their exclusive-or.

Thanks for pointing out that collapsible text code. That's pretty cool.

SteveT

Steve Litt*  http://www.troubleshooters.com/
Troubleshooting Training  *  Human Performance


Re: Simple HTML converter/export

2013-06-09 Thread Bob Alvarez

 This will NOT be YAHC (Yet Another HTML Converter). It will be a small
 subset of LyX's capabilities, purposed not to turn a document into HTML,
 but to turn LyX into a quick to use HTML authoring tool for HTML web pages.
 It will in no way try to replace the existing HTML Converters, and from
 what I've seen so far, the existing HTML converters would have a hard time
 replacing what I'm trying to make.


Let me state my interest in this topic to see if it overlaps with yours. I
agree that HTML exporters like Alex Fernandez' eLyXer do a great job of
producing web pages that look like pdf documents. What I would want is to
be able to add some capabilities to the HTML that would not be possible in
a static format like pdf. But at the same time, I want to use Lyx's
capabilities for formatting the document and math typesetting.

As an example, I use Lyx to create web pages with a lot of math. Like most
math, it is structured with general statements like theorems with proofs.
Many times, the proof gets in the way of the narrative although it is
important for it to be there if the reader wants to see it. I saw a website
where they added a + sign gadget that if you click it once displays the
proof and then clicking it again hides it.

This is relatively easy to do using the javascript openClose function
http://javascriptsource.com/miscellaneous/collapsible-text.html

Alex suggested a way to do this that, if I understand it correctly,
requires editing the HTML output. I would be interested in extensions to
Lyx that would allow me to add features like these but at the same time be
able to export standard pdf documents.

If there is some commonality of our interests, perhaps the Lyx experts can
suggest a way to enhance Lyx to be able to do the things we want to do.

Bob


Re: Simple HTML converter/export

2013-06-09 Thread Steve Litt
On Sun, 9 Jun 2013 14:22:32 -0700
Bob Alvarez cobol...@gmail.com wrote:

 
  This will NOT be YAHC (Yet Another HTML Converter). It will be a
  small subset of LyX's capabilities, purposed not to turn a document
  into HTML, but to turn LyX into a quick to use HTML authoring tool
  for HTML web pages. It will in no way try to replace the existing
  HTML Converters, and from what I've seen so far, the existing HTML
  converters would have a hard time replacing what I'm trying to
  make.
 
 
 Let me state my interest in this topic to see if it overlaps with
 yours. I agree that HTML exporters like Alex Fernandez' eLyXer do a
 great job of producing web pages that look like pdf documents. What I
 would want is to be able to add some capabilities to the HTML that
 would not be possible in a static format like pdf. But at the same
 time, I want to use Lyx's capabilities for formatting the document
 and math typesetting.

Hi Bob,

I think our projects are close enough that we'd both benefit from
sharing information, but far enough apart that we'd probably be better
off making them two separate projects. Their intersection is far
smaller than their exclusive-or.

Thanks for pointing out that collapsible text code. That's pretty cool.

SteveT

Steve Litt*  http://www.troubleshooters.com/
Troubleshooting Training  *  Human Performance


Re: Simple HTML converter/export

2013-06-09 Thread Bob Alvarez
>
> "This will NOT be YAHC (Yet Another HTML Converter). It will be a small
> subset of LyX's capabilities, purposed not to turn a document into HTML,
> but to turn LyX into a quick to use HTML authoring tool for HTML web pages.
> It will in no way try to replace the existing HTML Converters, and from
> what I've seen so far, the existing HTML converters would have a hard time
> replacing what I'm trying to make."
>

Let me state my interest in this topic to see if it overlaps with yours. I
agree that HTML exporters like Alex Fernandez' eLyXer do a great job of
producing web pages that look like pdf documents. What I would want is to
be able to add some capabilities to the HTML that would not be possible in
a static format like pdf. But at the same time, I want to use Lyx's
capabilities for formatting the document and math typesetting.

As an example, I use Lyx to create web pages with a lot of math. Like most
math, it is structured with general statements like theorems with proofs.
Many times, the proof gets in the way of the narrative although it is
important for it to be there if the reader wants to see it. I saw a website
where they added a + sign gadget that if you click it once displays the
proof and then clicking it again hides it.

This is relatively easy to do using the javascript openClose function
http://javascriptsource.com/miscellaneous/collapsible-text.html

Alex suggested a way to do this that, if I understand it correctly,
requires editing the HTML output. I would be interested in extensions to
Lyx that would allow me to add features like these but at the same time be
able to export standard pdf documents.

If there is some commonality of our interests, perhaps the Lyx experts can
suggest a way to enhance Lyx to be able to do the things we want to do.

Bob


Re: Simple HTML converter/export

2013-06-09 Thread Steve Litt
On Sun, 9 Jun 2013 14:22:32 -0700
Bob Alvarez  wrote:

> >
> > "This will NOT be YAHC (Yet Another HTML Converter). It will be a
> > small subset of LyX's capabilities, purposed not to turn a document
> > into HTML, but to turn LyX into a quick to use HTML authoring tool
> > for HTML web pages. It will in no way try to replace the existing
> > HTML Converters, and from what I've seen so far, the existing HTML
> > converters would have a hard time replacing what I'm trying to
> > make."
> >
> 
> Let me state my interest in this topic to see if it overlaps with
> yours. I agree that HTML exporters like Alex Fernandez' eLyXer do a
> great job of producing web pages that look like pdf documents. What I
> would want is to be able to add some capabilities to the HTML that
> would not be possible in a static format like pdf. But at the same
> time, I want to use Lyx's capabilities for formatting the document
> and math typesetting.

Hi Bob,

I think our projects are close enough that we'd both benefit from
sharing information, but far enough apart that we'd probably be better
off making them two separate projects. Their intersection is far
smaller than their exclusive-or.

Thanks for pointing out that collapsible text code. That's pretty cool.

SteveT

Steve Litt*  http://www.troubleshooters.com/
Troubleshooting Training  *  Human Performance


Simple HTML converter/export

2013-06-07 Thread Steve Litt
Hi all,

I have no doubt the HTML exporters in LyX are exactly what I want to
make an eBook. A simple, mostly text website? Not so much. I was unable
to change div to p in my layout file -- it remained div regardless
of how I set HTMLTag. There were other things that meant I'd need to do
a lot of cleanup before a quickly typed LyX doc turned into a quick and
dirty HTML doc I could maybe modify slightly and then throw up on the
web, and that's just what I want for web page editing.

Just to make it clear, this is my personal itch and I'm going to do it.
But just in case others enjoy what I create (I created VimOutliner as a
personal itch and we saw how that turned out), I'd like to, to some
degree, know LyX best practices, or if those are to difficult for me,
LyX decent practices.

This will NOT be YAHC (Yet Another HTML Converter). It will be a small
subset of LyX's capabilities, purposed not to turn a document into
HTML, but to turn LyX into a quick to use HTML authoring tool for HTML
web pages. It will in no way try to replace the existing HTML
Converters, and from what I've seen so far, the existing HTML
converters would have a hard time replacing what I'm trying to make.

Due to my schedule, I can't start it til July. My plan of
attack is to start it as a separate shellscript that first exports to
LaTeX, and then turns the LaTeX into HTML, which should be fairly easy.
The first version will be a Vim/EX script -- these are what I use to do
complex text reformatting in one day, and they help me understand the
various steps that need to be done. The second step will be an
equivalent shellscript that's primarily a pipeline with bunches of grep
and sed commands, perhaps with some hand coded stuff thrown in.

The final version will be mostly hand coded. I could easily do it in
Lua, C or Python, and could be persuaded to do it in Perl or Ruby. Am I
correct in assuming that Python is the LyX project's scripting language
of choice, and stuff like what I'm talking about is preferred to be in
Python over C?

Thanks,

SteveT

Steve Litt*  http://www.troubleshooters.com/
Troubleshooting Training  *  Human Performance


Simple HTML converter/export

2013-06-07 Thread Steve Litt
Hi all,

I have no doubt the HTML exporters in LyX are exactly what I want to
make an eBook. A simple, mostly text website? Not so much. I was unable
to change div to p in my layout file -- it remained div regardless
of how I set HTMLTag. There were other things that meant I'd need to do
a lot of cleanup before a quickly typed LyX doc turned into a quick and
dirty HTML doc I could maybe modify slightly and then throw up on the
web, and that's just what I want for web page editing.

Just to make it clear, this is my personal itch and I'm going to do it.
But just in case others enjoy what I create (I created VimOutliner as a
personal itch and we saw how that turned out), I'd like to, to some
degree, know LyX best practices, or if those are to difficult for me,
LyX decent practices.

This will NOT be YAHC (Yet Another HTML Converter). It will be a small
subset of LyX's capabilities, purposed not to turn a document into
HTML, but to turn LyX into a quick to use HTML authoring tool for HTML
web pages. It will in no way try to replace the existing HTML
Converters, and from what I've seen so far, the existing HTML
converters would have a hard time replacing what I'm trying to make.

Due to my schedule, I can't start it til July. My plan of
attack is to start it as a separate shellscript that first exports to
LaTeX, and then turns the LaTeX into HTML, which should be fairly easy.
The first version will be a Vim/EX script -- these are what I use to do
complex text reformatting in one day, and they help me understand the
various steps that need to be done. The second step will be an
equivalent shellscript that's primarily a pipeline with bunches of grep
and sed commands, perhaps with some hand coded stuff thrown in.

The final version will be mostly hand coded. I could easily do it in
Lua, C or Python, and could be persuaded to do it in Perl or Ruby. Am I
correct in assuming that Python is the LyX project's scripting language
of choice, and stuff like what I'm talking about is preferred to be in
Python over C?

Thanks,

SteveT

Steve Litt*  http://www.troubleshooters.com/
Troubleshooting Training  *  Human Performance


Simple HTML converter/export

2013-06-07 Thread Steve Litt
Hi all,

I have no doubt the HTML exporters in LyX are exactly what I want to
make an eBook. A simple, mostly text website? Not so much. I was unable
to change http://www.troubleshooters.com/
Troubleshooting Training  *  Human Performance