Free42: advanced Copy & Paste - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: Not HP Calculators (/forum-7.html) +--- Forum: Not quite HP Calculators - but related (/forum-8.html) +--- Thread: Free42: advanced Copy & Paste (/thread-8226.html) |
Free42: advanced Copy & Paste - Thomas Okken - 04-22-2017 08:31 PM Hi all, I've spent the last several weeks completely re-writing Copy and Paste in Free42. In addition to supporting full precision for scalars, it now also copies and pastes matrices as spreadsheet cells (tab-delimited text), and programs as listings. This is fairly major new functionality, and it needs to be tested a bit more before I put it out there for general release. If anyone is interested in taking a peek, the latest builds are at http://thomasokken.com/free42/beta/. Comments and bug reports are of course welcome, but not required. :-) Thomas RE: Free42: advanced Copy & Paste - pier4r - 04-22-2017 09:21 PM Nice work! One question. Is there no way that one can create just a .txt as program and then import it in the free42? Because using perl to create a .raw is not always possible. In any case, very nice work. RE: Free42: advanced Copy & Paste - Thomas Okken - 04-22-2017 10:15 PM If you have a program listing in a text file, you can open that file in a text editor, copy the program listing, and paste it into Free42. (Be sure to set it to PRGM mode before pasting.) The idea is to make txt2raw redundant, by having its functionality integrated in Free42. If you want to import a program listing directly, without copying & pasting, that's not supported yet, but I'll probably add that at some point in the future. RE: Free42: advanced Copy & Paste - jch - 04-23-2017 02:57 PM Hi Thomas, Congratulations for your great job. I've tested some copy & paste cases and was not able to find any flaw yet. I'll study your 2.0 code, but I still have to go through 1.5.16 before. Here are some minor suggestions: 1) Remove the current program pointer when Copying a program? 2) Currently, pasting a program erases the current program, could there be some interest inserting instead? Best regards. Jean-Christophe RE: Free42: advanced Copy & Paste - Thomas Okken - 04-23-2017 04:05 PM (04-23-2017 02:57 PM)jch Wrote: 1) Remove the current program pointer when Copying a program? 1) I think you're referring to the ▶ character that is inserted in front of all LBL instructions. That's authentic HP behavior, but I do think I should find a different character, or at least offer an option to leave it off, because that particular character gets interpreted as an emoji on iOS, and the result is pretty hideous. :-) 2) It doesn't erase the current program: it performs a [GTO] [.] [.] and then adds the pasted program at the end. UPDATE: The ▶ character that gets emojified in iOS is 'BLACK RIGHT-POINTING TRIANGLE' (U+25B6); it turns out that 'BLACK RIGHT-POINTING SMALL TRIANGLE' (U+25B8), which looks like ▸, gets left alone, *and* I think it looks a lot better in program listings. I'm changing the HP<->Unicode logic in Free42 accordingly. I am *also* updating the program listings I'm putting up at http://thomasokken.com/free42/42progs/ accordingly, and that means you won't be able to read them with the current build, because it doesn't recognize the ▸ character. Version 2.0.1 will have the fix. RE: Free42: advanced Copy & Paste - Thomas Okken - 04-23-2017 06:54 PM I just posted 2.0.1. RE: Free42: advanced Copy & Paste - Gerson W. Barbosa - 04-27-2017 02:40 AM (04-23-2017 06:54 PM)Thomas Okken Wrote: I just posted 2.0.1. Thank you very much! Paste program test: Code:
That's Ron Knapp's PI program with a cleaner printout. Gerson. |