drac030 Posted March 17, 2020 Share Posted March 17, 2020 If anyone here is interested... I have published ELSA, my (to this time) private assembler I have used to compile most of my programs: http://drac030.krap.pl/en-elsa-info.php Those who are familiar with MAE will feel at home. There is a PDF there (and a TXT file in the archive) which explains the details. I started writing it around 2006 and, as years were passing, it was taking over more and more of my projects. ELSA compiles are e.g. the Let's Emu! ZX Spectrum emulator, MultiBASIC, U-BASIC, Rapidus OS and such. The latest convert is IDE+ BIOS (which has grown so large that MAE started to run out of memory while assembling it). It is written in pure 65C816 native code, so it will run on Ataris with Rapidus and Antonia. Have fun 12 2 Quote Link to comment Share on other sites More sharing options...
Alfred Posted March 17, 2020 Share Posted March 17, 2020 Are you sure ? I just see the screenshot, no links to anything. Quote Link to comment Share on other sites More sharing options...
mono Posted March 17, 2020 Share Posted March 17, 2020 Look at menu on the left side. Quote Link to comment Share on other sites More sharing options...
drac030 Posted March 18, 2020 Author Share Posted March 18, 2020 Yes (thanks, mono), the download page is here: http://drac030.krap.pl/en-elsa-pliki.php Quote Link to comment Share on other sites More sharing options...
Kyle22 Posted March 18, 2020 Share Posted March 18, 2020 Does it require high RAM, or will it work on a 65c802? Quote Link to comment Share on other sites More sharing options...
drac030 Posted March 18, 2020 Author Share Posted March 18, 2020 (edited) It should work without the High RAM, just expect around 16k for the symbol table. Which should still be pretty much (about 1000 labels, if max. up to 6 characters each). Edited March 18, 2020 by drac030 2 Quote Link to comment Share on other sites More sharing options...
drac030 Posted March 26, 2020 Author Share Posted March 26, 2020 I have uploaded an updated version. Many thanks to the brave souls who actually tried the program, and especially to those who shared opinions. 1 Quote Link to comment Share on other sites More sharing options...
drac030 Posted April 17, 2020 Author Share Posted April 17, 2020 For those interested: I have uploaded a new revision, 0.9b, with some bugfixes. 1 Quote Link to comment Share on other sites More sharing options...
Alfred Posted April 28, 2020 Share Posted April 28, 2020 What assembler did you use to bootstrap the first version, MAE ? Quote Link to comment Share on other sites More sharing options...
drac030 Posted April 29, 2020 Author Share Posted April 29, 2020 Yes, MAE. Quote Link to comment Share on other sites More sharing options...
drac030 Posted October 5, 2020 Author Share Posted October 5, 2020 If anyone is (still) interested, I have uploaded new version, 0.91, to my website: http://drac030.krap.pl/en-elsa-info.php The list of changes is rather large, but most of this stuff are minor improvements accumulated since April. Still, seeing how long the list is, I decided to release a version before I proceed with more important changes. At the occasion, I would like to ask if anyone has a good method of converting OpenOffice/LibreOffice/MS-Word documents to ASCII text with the preservation of tables and table borders. The best way I know so far is: a) convert to HTML using "File->Save as..." in OpenOffice b) use links -width 78 -dump foo.html >foo.txt This is not perfect, as the resulting txt file still needs manual editing. The problem seems to be how the wordprocessors and/or links deal with lists: they love to drop indentation, but also they love to insert paragraph ends at the end of each line. This is disastrous for scraps of assembler listings, especially in the tables, where they cannot be manually reedited in the final txt file. So the question is, does anyone know a better method (ideally: fully automatic) or maybe there are tips to format the original document so that the conversion yields the desired result. Thanks in advance. PS. The reason is that I would like to provide the documentation to ELSA also in the text form, so that it could be read on Atari. I would love to edit the original on Atari (and later convert to a PC format like TXT, HTML or PDF), but unfortunately we seem to be lacking any wordprocessor capable of editing a single file larger than about 30 KB (and Last Word is even limited to 15k, which is sad). 1 1 Quote Link to comment Share on other sites More sharing options...
ivop Posted October 5, 2020 Share Posted October 5, 2020 Export as pdf and use pdftotext? Just another route you can try. Don't know if it preserves tables. 1 Quote Link to comment Share on other sites More sharing options...
dmsc Posted October 6, 2020 Share Posted October 6, 2020 Hi! 9 hours ago, drac030 said: At the occasion, I would like to ask if anyone has a good method of converting OpenOffice/LibreOffice/MS-Word documents to ASCII text with the preservation of tables and table borders. So the question is, does anyone know a better method (ideally: fully automatic) or maybe there are tips to format the original document so that the conversion yields the desired result. Thanks in advance. Use pandoc: https://pandoc.org/ , it converts between hundred of different text formats. In your case, you can convert to Markdown (.md) or RestructuredText (.rst), see which looks better to you: pandoc mydocument.odt -o mydocument.md pandoc mydocument.odt -o mydocument.rst The beauty of pandoc is that you can convert from Markdown of RST to HTML, PDF or ODT again, and you can use a template to provide styles and formating. Have Fun! 2 Quote Link to comment Share on other sites More sharing options...
drac030 Posted October 6, 2020 Author Share Posted October 6, 2020 (edited) @ivop From what I read, tools to extract tables from PDF files have to use AI to do that, so this route does not look very promising But sure, everything is to try. @dmsc Thanks, that program indeed look very promising, and it indeed can translate to plain text even preserving tables with borders, sometimes however the output looks like this: which to me looks like a failure. It also has the habit of removing indentation (they even sort of advertise this in the manual as a feature) and inserting spurious paragraph ends a the end of each item of a list. Damn... Edited October 6, 2020 by drac030 @@ Quote Link to comment Share on other sites More sharing options...
zbyti Posted October 6, 2020 Share Posted October 6, 2020 It should be pretty straightforward to write a .rtf to .txt converter yourself? Quote Link to comment Share on other sites More sharing options...
drac030 Posted October 6, 2020 Author Share Posted October 6, 2020 Just as if I had not enough things to write 1 Quote Link to comment Share on other sites More sharing options...
zbyti Posted October 6, 2020 Share Posted October 6, 2020 Maybe this help a little? https://tableconvert.com/ Quote Link to comment Share on other sites More sharing options...
drac030 Posted October 6, 2020 Author Share Posted October 6, 2020 Tried that already... it looks more like tablepervert: Quote Link to comment Share on other sites More sharing options...
zbyti Posted October 6, 2020 Share Posted October 6, 2020 Well, it only remains to write a converter for you, but I have no time because I have to write what you already written - as part of the study Quote Link to comment Share on other sites More sharing options...
drac030 Posted October 6, 2020 Author Share Posted October 6, 2020 No, it only remains for me to stick to what appears to be the only working method, and wait for a miracle (or write the tool myself, but as I said, I have already too much stuff to write). Quote Link to comment Share on other sites More sharing options...
dmsc Posted October 10, 2020 Share Posted October 10, 2020 Hi! On 10/6/2020 at 6:58 AM, drac030 said: @dmsc Thanks, that program indeed look very promising, and it indeed can translate to plain text even preserving tables with borders, sometimes however the output looks like this: Strange, must be some default option. Here this works: Perhaps some default option is set differently. I'm using pandoc version 2.9.2.1, with the command line: pandoc doctst.odt -o test.md Reading the manual, you can try with: pandoc doctst.odt -t markdown+grid_tables-simple_tables-pipe_tables-raw_html -o test.md This disables "simple tables" and activates the "grid tables". Have Fun! Quote Link to comment Share on other sites More sharing options...
drac030 Posted October 10, 2020 Author Share Posted October 10, 2020 18 hours ago, dmsc said: pandoc doctst.odt -o test.md pandoc doctst.odt -t markdown+grid_tables-simple_tables-pipe_tables-raw_html -o test.md Tried both, same effect. Pandoc 2.10.1. As I said, the program converts SOME tables right, but some does as shown. Whence I guess it is simply buggy (it probably does not understand some odt subtleties). It also likes to drop rows marked as "headers" from the tables, even if it converts them well otherwise. Quote Link to comment Share on other sites More sharing options...
ggn Posted October 11, 2020 Share Posted October 11, 2020 Just to save people some time: I've been using sphinx to render [url=http://rmac.is-slick.com/manual/rmac.html]rmac's documentation into html[/url] (originally written in restructuredtext), and this thread reminded me that it also supports text output. Sadly, I get the exact same results with tables using that tool - one super long line without wrap around. And no options in the tool to set line width. Seems like text output is not a huge priority to these people.... Quote Link to comment Share on other sites More sharing options...
dmsc Posted October 11, 2020 Share Posted October 11, 2020 Hi! 23 hours ago, drac030 said: Tried both, same effect. Pandoc 2.10.1. As I said, the program converts SOME tables right, but some does as shown. Whence I guess it is simply buggy (it probably does not understand some odt subtleties). It also likes to drop rows marked as "headers" from the tables, even if it converts them well otherwise. Oh, that's a nuisance. I use pandoc in the reverse direction: I wrote the manual for Fastbasic in markdown but in 40 columns, so it can be rendered in the Atari screen easily - I just replace the `CODE` blocks with inverse video using an awk script. And by using a template, the PDF output is quite good, even with syntax coloring for the BASIC samples: Original Version: https://raw.githubusercontent.com/dmsc/fastbasic/master/manual.md Output PDF: https://github.com/dmsc/fastbasic/releases/download/v4.4/fastbasic-v4.4-manual.pdf Perhaps you could convert it once, manually editing the bad parts and then use pandoc to go to the ODT format again - pandoc can use an existing ODT as a base, extracting the styles and replacing only the text. Have Fun! 1 Quote Link to comment Share on other sites More sharing options...
drac030 Posted October 30, 2020 Author Share Posted October 30, 2020 Revision 0.92 available for download http://drac030.krap.pl/en-elsa-pliki.php 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.