ProteoWizard / pwiz

The ProteoWizard Library is a set of software libraries and tools for rapid development of mass spectrometry and proteomic data analysis software.
http://proteowizard.sourceforge.net/
Apache License 2.0
218 stars 99 forks source link

Update the "ResourcesOrganizer" tool to work with HTML files #3103

Closed nickshulman closed 2 weeks ago

nickshulman commented 2 months ago

I have started the work of making the "ResourcesOrganizer" read localized strings from HTML files.

I copied just the "Data Independent Acquisition" tutorial from PR #3097. I changed the folder layout a little so that there are three sibling folders for the languages: "en", "ja", and "zh-CHS". Also, the name of the HTML file in each folder is "index.html".

In the localized folders, there is also a new HTML file called "invariant.html" which is the HTML file that the localized index.html was translated from.

In theory, the ResourcesOrganizer tool will be able to compare "ja/invariant.html" with "en/index.html" and figure out which paragraphs need to be sent to the localizers for re-translation.

brendanx67 commented 2 months ago

Note that I have a strong desire to a have the HTML file(s) sort tot the top of the file list by default in these folders. Sadly, index.html still comes after image-##. We can always name the images z-image-##. Just keep this in mind as we design these folders.

Also, I want the folder names to match the shorter names we are using on the website which we combine with a version number for the PDF files, and also we use them for the covershot images. Probably we should add this name as an attribute to the test function and add a mode in SkylineTester that allows you to view the tutorials by these names to make the link between tests and tutorial documents clearer.

nickshulman commented 2 weeks ago

I'll create a different pull request for this.