How to do it--yes, I agree that anyone able to program anything should be able to figure this out, or look it up. But the knowledge that it must be done--not so much. Currently, there is nothing at all that I can find in NVDA documentation that specifies that UTF-8 is the required encoding for files. That said, because NVDA is a multi-lingual piece of software, it does stand to reason that UTF-8 would almost have to be the encoding used. To understand this subject better, the following might be of use: https://hackernoon.com/encoding-the-python-source-code-file-445722836813?gi=54eff73cf3c0Luke
toggle quoted messageShow quoted text
On Tue, 11 Jun 2019, DaVid wrote: I never tried AkelPad. Is autocompletion feature accessible on this editor?
Mmm, we don't need understand about encodings to know how to save a file in UTF-8... I mean that an user who learn to develop python and add-ons, has research skills to discover simple things like choose the encoding on the save file dialog of notepad. I myself learned programming before understand encodings,I saved my files in UTF-8 because was the recommendation in the tutoriales that I read. So the recommendation about unicode should be there.
Regards, DaVid.
2019-06-11 9:23 GMT-06:00, Brian's Mail list account via Groups.Io <bglists=blueyonder.co.uk@groups.io>:
What do you think of akelpad? Brian
bglists@blueyonder.co.uk Sent via blueyonder. Please address personal E-mail to:- briang1@blueyonder.co.uk, putting 'Brian Gaff' in the display name field. Newsgroup monitored: alt.comp.blind-users ----- Original Message ----- From: "DaVid" <dhf360@gmail.com> To: <nvda-addons@nvda-addons.groups.io> Sent: Tuesday, June 11, 2019 1:07 PM Subject: Re: [nvda-addons] NVDA Developer Guide: Question about how to make
addons using standard NotePad
If you don't use special characters in your code, you don't need to save in UTF-8. The default ansi in notepad should work. But if a user can write an add-on for NVDA, sure s/he is an advanced user to know how to change coding in notepad. Notepad is very tedious to write python because it doesn't apply the last indent. Also it doesn't have auto-completion feature. Programming on notepad... I don't even wish it on my worst enemy. hehe. Use notepad++ portable version. And doesn't forget to install notepad++ add-on to get accessibility for the auto completion feature.
Regards, DaVid.
2019-06-11 5:10 GMT-06:00, Rui Fontes <rui.fontes@tiflotecnia.com>:
It should be saved as UTF-8.
Rui Fontes
Às 20:41 de 09/06/2019, Daniel Gartmann escreveu:
The last time I played with writing .py files in Notepad, I had to change the encoding in the Save dialog. It was not just using the standard Save command. Right now, I don’t recall how the file should be encoded in order to work properly in NVDA.
Thanks.
Den 9. jun. 2019 kl. 21.14 skrev Luke Davis <luke@newanswertech.com>:
There is nothing really special about a .py file, it is just a text file with a different extension (not .txt).
The nice thing about Notepad++, is that it has auto-indentation, and re-opens last open files, and so on. But other than that, it is editing in text just like Notepad.
It might also be easier to change character encodings in Notepad++, but
I haven't really explored that.
So, all of that is to say, there really is no special procedure. You can open a notepad session, write your code, and save it with a .py extension. You will have to do your own indenting, but if you're used to writing Python that should be no problem.
Any text editor which does not wrap lines should be fine for this.
Luke
On Sun, 9 Jun 2019, Daniel Gartmann wrote:
Hi,
I tried to find information about how to make an add-on using the built-in Notepad application instead of having to install NotePad++.
The use case is as follows: You go to another person’s computer to make NVDA behave better for that particular user in a specific situation.
Other screenreaders have built-in script editors e.g the JAWS Script Editor. But when using NVDA, we are told to use NotePad++.
It is, however, not possible to install NotePad++ if, for instance, you are in a corporate environment or some other restricted setting.
So. What is the procedure to make a .py file in Notepad and save it in the correct format?
Could it be included in the NVDA Developer guide?
Just a suggestion so that NVDA’s customizations can be made easier in more places.
Daniel
|