Closed
Bug 42893
Opened 24 years ago
Closed 20 years ago
Add UTF-16 (BE & LE) to composer charset menu
Categories
(Core :: Internationalization, defect, P4)
Tracking
()
RESOLVED
FIXED
Future
People
(Reporter: bobj, Assigned: jshin1987)
References
Details
(Keywords: intl, polish)
Attachments
(1 file)
18.68 KB,
patch
|
Details | Diff | Splinter Review |
We should allow users to create UTF-16 documents. The converters are already there, so do we just need to hook up the menu?
Updated•24 years ago
|
Comment 3•24 years ago
|
||
Mark as NEED MORE INFO. Adding a menu is very simple, but there is risk that the general result may not be correct.
Assignee: cata → bobj
Status: ASSIGNED → NEW
Whiteboard: [nsbeta3-]
I don't know what info is being requested. Reassign back to ftang. Date: Thu, 10 Aug 2000 17:23:59 -0700 From: Bob Jung <bobj@netscape.com> To: Frank Tang <ftang@netscape.com> Subject: Re: Your Bugzilla buglist needs attention. Seems clear to me. The suggestion is to provide a mechanism to save UTF16BE and/or UTF16LE. What info do you want? -bob
Assignee: bobj → ftang
Comment 5•24 years ago
|
||
Can you provide some scenarios for what kind of users or situations UTF-16 would be useful? I drew a blank when I thought this issue except that some Windows applications like Notepad can save into UCS-2.
That's the scenario I was thinking about. Even if you do not create new utf-16 .txt files, we will need these menu items if we want to edit these type of .txt files in Composer. Window apps (e.g., notepad on W2K) can create utf-16 .txt files.
Updated•24 years ago
|
Status: NEW → ASSIGNED
Comment 7•24 years ago
|
||
IMHO, there is a problem with current support of UTF-16 in Mozilla. It maybe minor, yet I would rather see it fixed before Mozilla encourage creating documents in UTF-16. See bug 55258, bug 56626 and bug 56630.
Comment 9•24 years ago
|
||
reassign this to yokoyama since this is a composer issue. I am not sure how important is this. clear the previous status and keywords Mark it as P4 for now.
Assignee: ftang → yokoyama
Status: ASSIGNED → NEW
Keywords: nsbeta3
Priority: P3 → P4
Whiteboard: [nsbeta3-]
Target Milestone: M17 → ---
Comment 10•24 years ago
|
||
Updating the target milestone.
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9
Updated•24 years ago
|
Target Milestone: mozilla0.9 → ---
Updated•23 years ago
|
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9
Comment 12•23 years ago
|
||
I temporarily enabled UTF-16BE and UTF-16LE in my build and verified that all the charset menus are still drawing from the same RDF source (rdf:charset-menu). Depending on the exact location of these two items, we might need to do some additional work to separate the composer menu from other menus. Alternatively, would it be acceptable, if both items appeared on all charset menus (browser, mail, editor)? I'm tentatively using "Unicode (UTF-16LE)" and "Unicode (UTF-16BE)". If these are my working titles, what should be the official menu item names?
Reporter | ||
Comment 13•23 years ago
|
||
I thought the res\charsetData.properties file was supposed to provide some control over where the charsets were used. In charsetData.properties there are *.notForBrowser = true entries which I assume will prevent them from appearing the the browser. Take a look at EditorSaveAsCharset.js
Reporter | ||
Comment 14•23 years ago
|
||
"Unicode (UTF-16LE)" and "Unicode (UTF-16BE)" is consistent with the exising naming scheme, so sounds good to me.
Comment 15•23 years ago
|
||
Bob, thanks so much for your feedback. I'll keep the titles then. I also gave the menus a second look and it continues to be my opinion that we are currently not to discriminate between the different charset menus. Adding the two new items is a matter of deleting their "notForBrowser" property from charsetData.properties and assigning them a title in charsetTitles.properties. However, the "notForBrowser" property is currently really a "notForUI" attribute. The menus are all constructed separately, but draw from the same RDF source. Same applies to the "Customize" dialog and "Save as charset". They all depend on the "notForBrowser" property, which then applies to all - the browser, mail and composer. To sum it up, the most finely grained control we have right now is the first menu tier, where we could manipulate entries in XUL. The string bundles and enumerators available from JavaScript do not differentiate between the callers / different application modules.
Comment 16•23 years ago
|
||
I am not sure if it is such a bad thing not to be able to customize the menu items for Composer, Mail, or Browser. That would be too much of a detail to ask from most users. Maybe te current status is a blessing in disguise.
Comment 17•23 years ago
|
||
Bob, Kat, we just discussed this with Naoki and it appears that in case that these two new entries are not acceptable across the whole product, the most consistent and expedient way of solving this issue might be adding them to the "Save as charset" dialog only. We could set a new property in the pertinent string bundles and parse it out in EditorSaveAsCharset.js. An addition to the "Customize..." dialog would be conceivable, but would lead to the same dilemma as described above. Adding any item, would affect all the menus.
Reporter | ||
Comment 18•23 years ago
|
||
I agree that ideally users should not need these entries when opening a document because we should be able to determine the encoding from the BOM. But how do we provide user feedback when editing a UTF-16 document? Normally we have a bullet/check next the the current document encoding when you pull down the menu. What will we do in the UTF-16 case, if these entries don't exist? Actually this is probably a flaw in our original *notForBrowser feature...
Comment 19•23 years ago
|
||
Doesn't the non-Browser item appear anyway? I thought controlling the menu appearance and having an item appear as a cached item are 2 different things. In fact, we see names like US-ASCII cached even though it is not in the menu.
Comment 20•23 years ago
|
||
>Doesn't the non-Browser item appear anyway? could this qualify as a bug? I believe the ".notFor..." properties were supposed to suppress such items from appearing in the corresponding application UI altogether. They get registered, enumerated and so on,however they should be ignored by the UI-generating code. As I already mentioned to Naoki, the converter test bed contains a reference to four properties: ".notForBrowser", ".notForComposer", ".notForMailView" and ".notForMailEdit". Only ".notForBrowser" is used in other places, the others have only this singular reference. Would this indicated that the original design might have intended more finely grained control over the UI? http://lxr.mozilla.org/seamonkey/source/intl/uconv/tests/TestUConv.cpp#415
Reporter | ||
Comment 21•23 years ago
|
||
> Would this indicated that the original design might have intended
> more finely grained control over the UI?
Yes, that is my recollection.
Comment 22•23 years ago
|
||
should we push this out to 0.9.1? Changing the granularity of control make be too aggressive right now. I'd have an idea about this or that change to the nsCharsetMenu.cpp to allow for better control through the string bundles, I'd need more time and scrutiny though. Bob might be right about the requirement to provide visual feedback through the charset menu. However, we will be not able to add these decoders in composer without affecting other parts of the product. If that should be an acceptable alternative for 0.9, I would do it. We could then file a new bug calling for more granular menu content control in 0.9.1...
Comment 23•23 years ago
|
||
moving to 0.9.1, I feel this will provide us with more time to address the UI granularity issues
Target Milestone: mozilla0.9 → mozilla0.9.1
Comment 24•23 years ago
|
||
marking dependency on bug 39780, we really need to get this thing going. I'm postponing the fix one last time...
Depends on: 39780
Target Milestone: mozilla0.9.1 → mozilla0.9.2
Comment 25•23 years ago
|
||
ccing roy. Roy, I could take bug 39780 and fix it in conjunction with this one as briefly discussed a week or two ago.
Comment 26•23 years ago
|
||
UI granularity issues are also still outstanding. Currently, I'm leaning towards a solution, where both "UTF-16BE" and "UTF-16LE" are visible in the UI (.notForBrowser==false or .notForBrowser==null), but only in the dynamic part of the menu and not in the static section. These decoders would appear there either automatically by opening a document with the corresponding encoding (most likely in composer as noted before) or via customization. If desired, I could come up with a kludge to seal off the customization route.
Comment 27•23 years ago
|
||
move to moz0.9.3 since it is not moz0.9.2 critical.
Comment 28•23 years ago
|
||
(ftang using jbetak account): move it to future. This is not critical for moz0.9.2
Target Milestone: mozilla0.9.2 → Future
Comment 29•23 years ago
|
||
REF: bug 97054: UTF-16 character coding support. Recently I hit upon a UTF-16LE encoded web page which MS IE can handle but Mozilla can't. This may add strength to the case for enabling UTF-16LE/BE (now?).
Reporter | ||
Comment 30•23 years ago
|
||
This bug is for composer only. For browsing, the BOM should be enough to determine if the page is BE or LE. If we are not detecting the BOM, that is a different bug. Please file a bug with the URL of the page that fails.
Comment 31•23 years ago
|
||
jbetak's contract is up. Bulk move bugs to ftang
Assignee: jbetak → ftang
Status: ASSIGNED → NEW
Updated•23 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 32•21 years ago
|
||
A couple of improvements have been made regarding UTF-16/UTF-32 (detection) over the last two years. Can we remove '.notForBrowser' for UTF-16? Considering that some broken web sites (Sony Europe?) declare that they're in UTF-8 via http header but actually are in UTF-16, it's not a bad idea to expose (at least in Customize menu) UTF-16/UTF-32 for browser as well as for composer, is it? BTW, having forgotten comment #21, I proposed '.notForOutgoing' to hide some MIME charsets for which we don't have encoders (bug 133615). 'notForOutgoing' is for both mailedit and 'save as charset' in composer.
Assignee | ||
Comment 33•21 years ago
|
||
Taking. It should have been fixed a long time ago. Fix coming up.
Assignee: ftang → jshin
Status: ASSIGNED → NEW
Assignee | ||
Comment 34•21 years ago
|
||
I just added another more menu for UTF's, but that's probably not a good idea. Instead, we need a new 'static more' menu for UTF's (like 'Autodetect'). Besides, we have to split 'notForOutgoing' into 'notForMailEdit' and 'notForComposer' as originally planned because UTF-16/32 shouldn't be allowed for mail but should be allowed for composer.
Comment 36•21 years ago
|
||
Doesn't Mail Compose have its own unique character coding menu anyway?
Assignee | ||
Updated•21 years ago
|
Assignee | ||
Comment 37•20 years ago
|
||
bug 55300 was fixed. I'm closing this as well. For a more robust blocking of UTF-16*/32* in mail-composer (with new notForMailEdit and notForMailView), I'm goona file a new bug.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•