The recent thing

Anything QL Software or Programming Related.
User avatar
XorA
Site Admin
Posts: 1368
Joined: Thu Jun 02, 2011 11:31 am
Location: Shotts, North Lanarkshire, Scotland, UK

Re: The recent thing

Post by XorA »

I have to reformat all the text files for each keywords, as the Online System, does funny things to the ASCII test, like \_ for _ and does not like $ or %
That is a task that is just begging to be scripted, then it could be automated every time there is a git commit!


Derek_Stewart
Font of All Knowledge
Posts: 3975
Joined: Mon Dec 20, 2010 11:40 am
Location: Sunny Runcorn, Cheshire, UK

Re: The recent thing

Post by Derek_Stewart »

Hi,

Yes I had considered that and was writing a BASH script, to use SED which turns out be quite easy.

Chnage \_ to _ : sed -i 's/\\_/\_/g' ./BASIC/*

Which replaced the \_ to _ in all files.

Removed the top 2 lines with: sed -i '1,2d;$d' ./BASIC/*

I have now completed all the changes, except the changing of keyword references to upper case. I may have to do that by hand.


Regards,

Derek
User avatar
NormanDunbar
Forum Moderator
Posts: 2278
Joined: Tue Dec 14, 2010 9:04 am
Location: Leeds, West Yorkshire, UK
Contact:

Re: The recent thing

Post by NormanDunbar »

Derek_Stewart wrote: Thu Jul 20, 2023 9:20 am This reminds me of my little project to transfer the Online Superbasic manual to QD Help system, or QHELP.

I have to reformat all the text files for each keywords, as the Online System, does funny things to the ASCII test, like \_ for _ and does not like $ or %

I am up to D at present...
Hi Derek,

does the attached zip file help in any way? I have taken the current source files for the Online Manual and processed them to create text versions. This will get rid of "\_" which is needed to escape "_" as "_" is a control character in ReStructuredText source files.

OnlineSuperBASICManual.text.files.zip
(1 MiB) Downloaded 36 times

Cheers,
Norm.


Why do they put lightning conductors on churches?
Author of Arduino Software Internals
Author of Arduino Interrupts

No longer on Twitter, find me on https://mastodon.scot/@NormanDunbar.
Derek_Stewart
Font of All Knowledge
Posts: 3975
Joined: Mon Dec 20, 2010 11:40 am
Location: Sunny Runcorn, Cheshire, UK

Re: The recent thing

Post by Derek_Stewart »

Hi Norman,

Thanks for update, but completed the changes, including removsl of the ASCII artwork.

I loaded the files into the Help directory and loaded a SBASIC program into QD, pressing F1 on the SBASIC keyword displayed the descrption of the keyword and syntax, as detailed in the online manual.

I have already done DBAS, QPTR so it is quite complete.

I could never remember the syntax for DBAS commands, now it is easy...


Regards,

Derek
User avatar
NormanDunbar
Forum Moderator
Posts: 2278
Joined: Tue Dec 14, 2010 9:04 am
Location: Leeds, West Yorkshire, UK
Contact:

Re: The recent thing

Post by NormanDunbar »

Ok Derek, no worries.

Cheers,
Norm.


Why do they put lightning conductors on churches?
Author of Arduino Software Internals
Author of Arduino Interrupts

No longer on Twitter, find me on https://mastodon.scot/@NormanDunbar.
Post Reply