hbitteur commented on issue #4259:
URL: https://github.com/apache/netbeans/issues/4259#issuecomment-6239914799

   Following up on my previous message, here are some details that might be of 
interest to those responsible for the development of NetBeans.
   
   As part of the [Audiveris](https://github.com/Audiveris/audiveris) project, 
we are working on localizing the software—starting with English, French, and 
Romanian. A subsequent phase will also address the messages displayed within 
the application.
   At the time of writing, we have nearly 50 `.properties` files per language, 
totaling 150 files to manage for this initial phase.
   
   I developed a small Java program to generate the 150 XML snippets, which I 
then manually inserted into the NetBeans configuration file, 
`var/attributes.xml`, located in a user-specific directory.
   Each of these snippets looks like this:
   ```xml
       <fileobject 
name="D:|soft|audiveris-github|dev|app|src|main|java|org|audiveris|omr|ui|resources|GuiActions_fr.properties">
           <attr name="projectEncoding" boolvalue="true"/>
       </fileobject>
   ```
   This snippet instructs NetBeans to apply the same encoding to a given file 
as the one defined at the project level.
   However, I have to perform this operation for every single `.properties` 
file in the project.
   
   Furthermore, I am simultaneously working on at least three "copies" of the 
project: one dedicated to developing new features, another to fixing bugs, and 
a third to exploring a significantly different architecture.
   This amounts to 150 × 3 = 450 definitions that need to be integrated into 
the NetBeans configuration file—and that is just for my own personal use.
   The very fact that I had to develop a custom program just to configure the 
editor and make it functional is, to say the least, absurd.
   
   Other people are also contributing to this project. Some use Notepad++ or 
Visual Studio Code—editors that natively support UTF-8 encoding, as opposed to 
using Unicode escape sequences.
   As for the other contributors, I am not sure which tools they use. It is 
possible that some use NetBeans; if so, they would need to employ the same 
workaround that I had to implement. 
   
   In short, I believe there are several issues here:
   - Without the specific setting, the editor does not function as a true 
"WYSIWYG" environment: you type an accented character and it appears correctly, 
but upon saving the file, it is replaced in the background by a Unicode escape 
sequence. Consequently, other developers (who do not use NetBeans) end up with 
these Unicode sequences in their files.
   - This setting is defined at the individual file level, yet it is not saved 
within the project itself. Instead, it is stored in each user's general 
NetBeans configuration, as if it were merely a personal preference. It should 
be saved in the existing `nb-configuration.xml` file, which is included in the 
project's version control and is therefore consistent across all developers' 
environments.
   
   
   
   
   
   
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to