Re: [w3c/editing] Add revised OS custom format naming. (#316)

@dway123 commented on this pull request.



>  
-On Windows, clipboard formats are often named using capital words separated by a space. Therefore, a MIME type `"custom/format"` will be transformed to `"Web Custom Format`”. Note that the prefix `"Web"` precedes the transformed format name.
+There will be a custom format map which contains a JSON payload that will have a mapping of custom format MIME type to web custom format. There can only be 100 custom format per user session and it will be registered when the web authors request for a custom format. Since this format is allocated in the global atom space on Windows, even if the sites register it multiple times, the format strings will only be allocated once and `RegisterClipboardFormat` system function call will just return the unique value corresponding to that format.

On a more macro level, maybe start out with the motivation, or connect to the previous paragraph, by reorganizing the sentences here, like the following:

To avoid exhausting the atom pool, we'll limit each user session to 100 custom formats. These custom formats will be registered when [..], and contain [..]. They will be accompanied by a custom format metadata payload, which will will have [..]. Since this format is allocated [..]

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/editing/pull/316#discussion_r673583747

Received on Wednesday, 21 July 2021 00:47:36 UTC