I have some feedback from Jean-François Moine, the developer of abc2svg.
He answered after one week, and it turned out he took the challenge at heart and actually developed a standalone javascript file called fit2box.js just for this feature !
Here is his response in the mailing list:
https://groups.io/g/abcusers/topic/111991054#msg23023
I believe you only need, once the .js file is loaded, to inject "%%fit2box WIDTH HEIGHT" in the file header of the .abc file, where width and height are in pixels (more technical details in his response)
I'm not sure if all users will want this feature activated for all files.
I imagine that, to control whether or not to add %%fit2box, there would either be a global setting that instructs to inject %%fit2box to all .abc files we open, or we could leave this as a per-file setting and add a custom ABC parameter like "%%fit2screen" that Mobilesheets would detect and replace with "%%fit2box WIDTH HEIGHT".
What do you think, Mike, could it be part of some future release of Mobilesheets?
He answered after one week, and it turned out he took the challenge at heart and actually developed a standalone javascript file called fit2box.js just for this feature !
Here is his response in the mailing list:
https://groups.io/g/abcusers/topic/111991054#msg23023
I believe you only need, once the .js file is loaded, to inject "%%fit2box WIDTH HEIGHT" in the file header of the .abc file, where width and height are in pixels (more technical details in his response)
I'm not sure if all users will want this feature activated for all files.
I imagine that, to control whether or not to add %%fit2box, there would either be a global setting that instructs to inject %%fit2box to all .abc files we open, or we could leave this as a per-file setting and add a custom ABC parameter like "%%fit2screen" that Mobilesheets would detect and replace with "%%fit2box WIDTH HEIGHT".
What do you think, Mike, could it be part of some future release of Mobilesheets?