1. is ref man available in text format?

Much as I enjoy reading the ref man in html or pdf, there are times when i miss the ability to edit, change, rearrange, summarise, and otherwise pervert the original.

Is there a version of the manual in text format? Or is there are way to convert it to text? So far my best (but very slow) attempts have been to use cut/paste from the html, or use an installed pdf_to_word utility, or an online facility to achieve the same thing. (Usually the upload fails or, when conversion occurs, the result takes ages to clean up.)

Ah for the old days, of refman.txt... smile

Alex Caracatsanis

new topic     » topic index » view message » categorize

2. Re: is ref man available in text format?

SunPsych08 said...

Much as I enjoy reading the ref man in html or pdf, there are times when i miss the ability to edit, change, rearrange, summarise, and otherwise pervert the original.

Is there a version of the manual in text format? Or is there are way to convert it to text? So far my best (but very slow) attempts have been to use cut/paste from the html, or use an installed pdf_to_word utility, or an online facility to achieve the same thing. (Usually the upload fails or, when conversion occurs, the result takes ages to clean up.)

Here is the raw refman source from the hg repo. The other source files are there, although the standard library and built-in functions are documented inline with the std library source code.

I'm sure we could output a text version. It would require enhancing creole as well as the documentation build process. Please enter a ticket to that effect.

Matt

new topic     » goto parent     » topic index » view message » categorize

3. Re: is ref man available in text format?

We could generate a single HTML file easily enough from eudoc/creole and then use html2txt, or lynx to generate the .txt file.

Jeremy

new topic     » goto parent     » topic index » view message » categorize

4. Re: is ref man available in text format?

Here is a quick and dirty conversion...

$ cd euphoria/docs $ eudoc -a manual.af --single -o manual.txt $ creole -A manual.txt $ lynx -print -dump manual.txt > euphoria-manual.txt

The result is: http://jeremy.cowgar.com/files/euphoria-manual.txt

Jeremy

new topic     » goto parent     » topic index » view message » categorize

5. Re: is ref man available in text format?

jeremy said...

We could generate a single HTML file easily enough from eudoc/creole and then use html2txt, or lynx to generate the .txt file.

Yes, that works for a quick and dirty conversion. I was thinking that a text mode for creole should be pretty trivial. Basically, just strip out all of the creole stuff. OK, maybe tables would take a bit of work to get right, but shouldn't be too bad.

I guess you'd have to figure out how to handle hyperlinks, but that's not difficult, either.

Matt

new topic     » goto parent     » topic index » view message » categorize

6. Re: is ref man available in text format?

That'll output the text for sure, but it will not look very pretty. For example, you would need to find a way to offset H1, H2, H3 type entries accordingly. Indent quotes, offset eucode, etc... It is a little more than trivial but I wouldn't think too difficult. The example .txt file should give a good example/idea of what it should look like (for the most part).

Jeremy

new topic     » goto parent     » topic index » view message » categorize

7. Re: is ref man available in text format?

jeremy said...

That'll output the text for sure, but it will not look very pretty. For example, you would need to find a way to offset H1, H2, H3 type entries accordingly. Indent quotes, offset eucode, etc... It is a little more than trivial but I wouldn't think too difficult. The example .txt file should give a good example/idea of what it should look like (for the most part).

Oh, sure, now you want pretty!

Matt

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu