an automatic capitalization of letters issue
Dan Beaver
I am running Windows [Version 10.0.19044.2130]. I am running NVDA version 2022.3.
I don't know if this is a Windows issue or a NVDA issue.
I tried renaming some files on my hard drive. Each of these files start with the letters "CFM". I wanted to rename them so the beginning letters were "cfm". Renaming from uppercase letters to lower case letters.
After doing the rename I checked and the system is changing them back to uppercase letters. I check before pressing enter and made sure they were lowercase but it isn't staying lowercase.
Is this something in Windows or is this something in NVDA? Does anyone know how to get it to keep them as lowercase letters?
Thanks.
-- Dan Beaver (KA4DAN) USA |
|
Dan,
The first thing you need to understand is that, as far as Windows is concerned, case does not matter. Windows is case insensitive. This means that if you have a file CFM-123.txt and attempt a rename to cfm-123.txt nothing is going to change because those two are precisely the same name in the eyes of Windows. You either have to do this as a 2 step process if you're doing it by hand, like naming the original CFM file as FMC blah blah blah, then renaming it again to lowercase cfm blah blah blah, or add a character somewhere in the filename ahead of the extension that actually changes the filename in the eyes of Windows. If you are comfortable with the command prompt, and very many files are involved, the use of the REN (rename) command with wildcards comes in very handy. You would give two rename commands: REN CFM*.txt TEMP*.txt REM TEMP*.txt cfm*.txt Whatever the asterisk wildcard catches in the original filename will be used in the same spot you put the asterisk in the replacement filename. With those two commands, using the appropriate prefixes to catch the filenames you want, you can rename many, many files in a simple two steps. -- Brian - Windows 10, 64-Bit, Version 21H2, Build 19044 Nothing in all the world is more dangerous than sincere ignorance and conscientious stupidity. ~ Martin Luther King, Jr. |
|
Dan Beaver
Ok, never mind. I accidentally came across the answer. It turns out that if you rename a file and all you do is change the case of some letters the rename isn't performed. Seems like a stupid decision on somebodies part in my opinion but then again they do not ask me about these things do they. :)
Dan Beaver Dan Beaver (KA4DAN) USA On 10/18/2022 1:47 PM, Dan wrote:
|
|
Dan Beaver
Thanks Brian, I was looking for something else to do with files and came across the answer. Couldn't find it before since I guess I was searching for the wrong terms.
Thanks again.
Dan Beaver Dan Beaver (KA4DAN) USA On 10/18/2022 2:05 PM, Brian Vogel
wrote:
Dan, |
|
On Tue, Oct 18, 2022 at 02:06 PM, Dan Beaver wrote:
It turns out that if you rename a file and all you do is change the case of some letters the rename isn't performed.- This is true not only under Windows, but under any operating system that is case insensitive. There are others. And if you are used to only Windows or another case insensitive OS, it comes as quite a shock when you first encounter two files with names differentiated only by a case change in one or more characters. The initial thought is, "WTF!?" Since I've been working with both case sensitive and case insensitive OSes for years, neither system seems weird to me. I just remember which OS has case sensitivity or not. -- Brian - Windows 10, 64-Bit, Version 21H2, Build 19044 Nothing in all the world is more dangerous than sincere ignorance and conscientious stupidity. ~ Martin Luther King, Jr. |
|
Gene
I don't know why it is happening. Windows doesn't care if letters
are upper or lower case. It treats them exactly the same in file
names so you don't have to worry. The case should change. I don't
know why it isn't.
toggle quoted message
Show quoted text
Gene On 10/18/2022 12:47 PM, Dan Beaver
wrote:
|
|
Gene
I just tried changing the case of one letter in a filename using the
Windows rename command and it worked. I changed the a in Winamp
from a small a to a capital a and the change was accepted. This is
in Windows 10. I backspaced to remove the a, then typed a capital
a, then pressed enter.
toggle quoted message
Show quoted text
From my experience, it appears that what you saw in a search isn't correct. Before sending this message, I tried changing one letter in another filename and it, too, was changed. Gene Gene On 10/18/2022 1:06 PM, Dan Beaver
wrote:
|
|
On Tue, Oct 18, 2022 at 10:02 PM, Gene wrote:
Before sending this message, I tried changing one letter in another filename and it, too, was changed.- I want screenshots. I have tried this in both Command Prompt and in File Explorer and changing the case of one or more letters results in no filename change of any sort under Windows 10, Version 21H2, Build 19044.2130. And I tried hitting F2, changing a single letter from lowercase to uppercase, and afterward the original filename is what's presented. Windows is case insensitive, which means changing case means changing nothing. And under any OS renaming something to its existing name doesn't change anything. -- Brian - Windows 10, 64-Bit, Version 21H2, Build 19044 Nothing in all the world is more dangerous than sincere ignorance and conscientious stupidity. ~ Martin Luther King, Jr. |
|
Brian's Mail list account
Yes I do find it odd, even now since my old days of home computers, how one cannot rename in this way for the human reader. IE they could be treated the same, but if you wanted to use a cap at the start of a word, similar to some variable names in Python, you at the mercy of the OS rename command at the moment.
toggle quoted message
Show quoted text
Brian -- bglists@... Sent via blueyonder.(Virgin media) Please address personal E-mail to:- briang1@..., putting 'Brian Gaff' in the display name field. ----- Original Message -----
From: "Brian Vogel" <britechguy@...> To: <chat@nvda.groups.io> Sent: Tuesday, October 18, 2022 7:12 PM Subject: Re: [chat] an automatic capitalization of letters issue On Tue, Oct 18, 2022 at 02:06 PM, Dan Beaver wrote: - This is true not only under Windows, but under any operating system that is case insensitive. There are others. And if you are used to only Windows or another case insensitive OS, it comes as quite a shock when you first encounter two files with names differentiated only by a case change in one or more characters. The initial thought is, "WTF!?" Since I've been working with both case sensitive and case insensitive OSes for years, neither system seems weird to me. I just remember which OS has case sensitivity or not. -- Brian - Windows 10, 64-Bit, Version 21H2, Build 19044 *Nothing in all the world is more dangerous than sincere ignorance and conscientious stupidity.* ~ Martin Luther King, Jr. |
|
Brian's Mail list account
Hmm, well there are certainly cases where they aware not, and it makes the thicken as they say. Could it be perhaps that part of windows thinks the file is still in use but then it should give a warning, even if its telling lies. I have not got time to investigate the different occasions it works one way or the other just now.
toggle quoted message
Show quoted text
Brian -- bglists@... Sent via blueyonder.(Virgin media) Please address personal E-mail to:- briang1@..., putting 'Brian Gaff' in the display name field. ----- Original Message -----
From: "Gene" <gsasner@...> To: <chat@nvda.groups.io> Sent: Wednesday, October 19, 2022 3:02 AM Subject: Re: [chat] an automatic capitalization of letters issue I just tried changing the case of one letter in a filename using the |
|
Gene
I have almost never done a screen shot. What is the command and, as
I recall, I need to paste it into something and then send it as an
attachment.
toggle quoted message
Show quoted text
Gene On 10/18/2022 10:42 PM, Brian Vogel
wrote:
On Tue, Oct 18, 2022 at 10:02 PM, Gene wrote: |
|
Gene
I just tried combinations of modifiers and the volume keys as well
as the fn key and the volume keys and nothing I could tell happened
other than the volume keys continue to work when issuing such
commands.
toggle quoted message
Show quoted text
Gene On 10/19/2022 3:02 AM, Gene wrote:
I have almost never done a screen shot. What is the command and, as I recall, I need to paste it into something and then send it as an attachment. |
|
Gene
I just realized that it may be difficult to do a print screen on
this computer. My keyboard, instead of having the three standard,
in their function, keys on the upper right such as print screen,
scroll lock, and the other, which I don't recall, has keys that
control the volume and mute and unmute audio instead. I suppose
there is some combination of keys that allows these keys to function
as normal, but I don't know what this keyhboard provides,
toggle quoted message
Show quoted text
On 10/19/2022 3:02 AM, Gene wrote:
I have almost never done a screen shot. What is the command and, as I recall, I need to paste it into something and then send it as an attachment. |
|
Gene
This isn't a screen shot and you may not accept it but this is how
things were regarding the name of a file originally and when I
changed one letter. In both cases, I copied and pasted the
filename.
toggle quoted message
Show quoted text
Original winamp58_3660_beta_full_en-us.exe One capital letter winAmp58_3660_beta_full_en-us.exe Gene On 10/19/2022 3:16 AM, Gene wrote:
I just realized that it may be difficult to do a print screen on this computer. My keyboard, instead of having the three standard, in their function, keys on the upper right such as print screen, scroll lock, and the other, which I don't recall, has keys that control the volume and mute and unmute audio instead. I suppose there is some combination of keys that allows these keys to function as normal, but I don't know what this keyhboard provides, |
|
Just popping in to confirm that my experience of case sensitive
toggle quoted message
Show quoted text
filenames is exactly the same as Gene's. I can name a file in all caps, all lower case, or a mixture of caps and lowercase. I can't remember a time when files in Windows couldn't be named with a mixture of uppercase and lowercase letters, and where you could change one or more of them and the renaming would be retained. I've used most flavours of Windows in my time - 3.11, 95, 98, XP, Vista, 7, and am using 10 at the moment. I do have some text files that I created in DOS, back in the days before Windows, and they are all lowercase and with a maximum filename length of 8 characters plus the 3-character file extension. I too use WinAmp, and that is the case choices I use, a capital W and a capital A, but I can change it to winamp (all lowercase), Winamp (only capital being the W) or winAm (only capital being the A). However, Windows does not recognise any difference between the filenames. If I create a copy of a file, delete the " - copy" that Windows adds, and then change one letter, such as in the address of a house I used to live in on Flaxland Avenue ... if I change the capital F of Flaxland to a lowercase f, then Windows tells me there is already a file of that name and, if I agree I want to proceed, it will append (2) to the end of the filename before the extension. I know this doesn't really shed any light on the question of why a Windows user might not be abel to rename a file by changing the case of one or more letters ... my only thought is whether NVDA isn't currently set to Beep or say :Cap" to indicate a capital letter. I know I have never found the pitch change to indicate a capital letter easy to detect with the synth I use (SAPI5 Zira). Giles On 10/19/22, Gene <gsasner@...> wrote:
This isn't a screen shot and you may not accept it but this is how |
|
Odd, I can do this , I can say for example Flight from KRSW-KMIA or flight from krsw-kmia and both will be case specific in windows. I should say I name the files in my editor first. I've even done this using ffmpeg.
toggle quoted message
Show quoted text
-----Original Message-----
From: chat@nvda.groups.io <chat@nvda.groups.io> On Behalf Of Brian's Mail list account via groups.io Sent: Wednesday, October 19, 2022 12:43 AM To: chat@nvda.groups.io Subject: Re: [chat] an automatic capitalization of letters issue Yes I do find it odd, even now since my old days of home computers, how one cannot rename in this way for the human reader. IE they could be treated the same, but if you wanted to use a cap at the start of a word, similar to some variable names in Python, you at the mercy of the OS rename command at the moment. Brian -- bglists@... Sent via blueyonder.(Virgin media) Please address personal E-mail to:- briang1@..., putting 'Brian Gaff' in the display name field. ----- Original Message ----- From: "Brian Vogel" <britechguy@...> To: <chat@nvda.groups.io> Sent: Tuesday, October 18, 2022 7:12 PM Subject: Re: [chat] an automatic capitalization of letters issue On Tue, Oct 18, 2022 at 02:06 PM, Dan Beaver wrote: - This is true not only under Windows, but under any operating system that is case insensitive. There are others. And if you are used to only Windows or another case insensitive OS, it comes as quite a shock when you first encounter two files with names differentiated only by a case change in one or more characters. The initial thought is, "WTF!?" Since I've been working with both case sensitive and case insensitive OSes for years, neither system seems weird to me. I just remember which OS has case sensitivity or not. -- Brian - Windows 10, 64-Bit, Version 21H2, Build 19044 *Nothing in all the world is more dangerous than sincere ignorance and conscientious stupidity.* ~ Martin Luther King, Jr. |
|
the command is alt win scroll lock. The pictures will be stored in captures under videos. Since I changed the location of such I can’t help there, however use the search tool to find captures.
From: chat@nvda.groups.io <chat@nvda.groups.io> On Behalf Of Gene
Sent: Wednesday, October 19, 2022 1:02 AM To: chat@nvda.groups.io Subject: Re: [chat] an automatic capitalization of letters issue
I have almost never done a screen shot. What is the command and, as I recall, I need to paste it into something and then send it as an attachment. On 10/18/2022 10:42 PM, Brian Vogel wrote:
|
|
You cannot attach files in this group. You would have to link them via dropbox.
From: chat@nvda.groups.io <chat@nvda.groups.io> On Behalf Of Gene
Sent: Wednesday, October 19, 2022 5:01 AM To: chat@nvda.groups.io Subject: Re: [chat] an automatic capitalization of letters issue
This isn't a screen shot and you may not accept it but this is how things were regarding the name of a file originally and when I changed one letter. In both cases, I copied and pasted the filename. On 10/19/2022 3:16 AM, Gene wrote:
|
|
On Wed, Oct 19, 2022 at 08:35 AM, Giles Turnbull wrote:
Just popping in to confirm that my experience of case sensitive- The problem is, no one has claimed anything about the ability to use mixed case, you have always been able to do that. But windows is case insensitive as far as file name recognition. You can't have a file named one.txt and ONE.txt as separate files in a single folder because, as far as Windows is concerned, that is the same file. So is One.txt, oNe.txt, ONe.txt, etc. What's interesting is that as I'm experimenting further based on Gene's specific example, I can get EXE files and DOCX files to accept case changes exactly as Gene described, but only if they are on my C: drive. If I have copied them to external storage like an SD card, they won't - whatever their original character cases were, regardless of how you manipulate them in a rename after it's done, Windows still shows the same name you started with. You can do the rename, but the filename does not change after hitting enter (if using File Explorer) or running the REN command. I have no idea why it will apply that change in one context and not another. I did all of my testing yesterday on a set of files on an SD card, not my C: drive. This morning, I went and found a JAWS installer on my C: drive to perform a change like Gene noted, and lo and behold, it worked! But you can create a file named one.txt (all lowercase) in one folder, and ONE.txt (all uppercase ONE) in another, and if you try to copy and paste in either direction you'll get the standard warning, "Destination already has a file named . . .," and asking you if you want to replace the file, skip it, or compare contents. You can, of course, use mixed case in file names, it's just that Windows doesn't care about that as far as distinguishing one file from another. That's what case insensitivity means. And other OSes are not case insensitive. Any Linux distro you may have ever played with is case sensitive. I believe MacOS is case sensitive. And since Android is based upon Linux, it probably is, too. On case sensitive OSes you can have one.txt and One.txt in the same folder because as far as the OS is concerned that's two distinct file names, Windows doesn't see it that way. -- Brian - Windows 10, 64-Bit, Version 21H2, Build 19044 Nothing in all the world is more dangerous than sincere ignorance and conscientious stupidity. ~ Martin Luther King, Jr. |
|
On Wed, Oct 19, 2022 at 10:36 AM, Sarah k Alawami wrote:
I can say for example Flight from KRSW-KMIA or flight from krsw-kmia and both will be case specific in windows- Sarah, Please see my most recent post before this one. I know you can do that although I didn't know you could make a case change stick as the only change to a file name. And it appears to be something that works on the system drive (probably all internal drives, but this computer doesn't have a second internal one so I can check) but not on removable storage of the SD/USB Flash types. But, again, if you have file: Flight from KRSW-KMIA in one folder, and file: flight from krsw-kmia in another, and try to copy either one of those to "the other folder" you will get a warning that the file already exists. This is because Windows does not distinguish file name uniqueness based upon case. That's what defines case insensitivity. It's not that you can't use upper and lowercase letters alone or in combination in a file name, it's just that Windows considers that the same name. -- Brian - Windows 10, 64-Bit, Version 21H2, Build 19044 Nothing in all the world is more dangerous than sincere ignorance and conscientious stupidity. ~ Martin Luther King, Jr. |
|