author | pchelko |
Wed, 29 Jan 2014 16:50:22 +0400 | |
changeset 23273 | 986c81d8805b |
parent 20444 | 93251debbb6f |
permissions | -rw-r--r-- |
12288
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
1 |
# |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
2 |
# This properties file is used to initialize the default |
15634
ff71ed981a76
8005932: Java 7 on mac os x only provides text clipboard formats
mcherkas
parents:
12288
diff
changeset
|
3 |
# java.awt.datatransfer.SystemFlavorMap. It contains the Mac OS X platform-specific, |
ff71ed981a76
8005932: Java 7 on mac os x only provides text clipboard formats
mcherkas
parents:
12288
diff
changeset
|
4 |
# default mappings between common Mac OS X selection atoms and platform-independent |
12288
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
5 |
# MIME type strings, which will be converted into |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
6 |
# java.awt.datatransfer.DataFlavors. |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
7 |
# |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
8 |
# These default mappings may be augmented by specifying the |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
9 |
# |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
10 |
# AWT.DnD.flavorMapFileURL |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
11 |
# |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
12 |
# property in the appropriate awt.properties file. The specified properties URL |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
13 |
# will be loaded into the SystemFlavorMap. |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
14 |
# |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
15 |
# The standard format is: |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
16 |
# |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
17 |
# <native>=<MIME type> |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
18 |
# |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
19 |
# <native> should be a string identifier that the native platform will |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
20 |
# recognize as a valid data format. <MIME type> should specify both a MIME |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
21 |
# primary type and a MIME subtype separated by a '/'. The MIME type may include |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
22 |
# parameters, where each parameter is a key/value pair separated by '=', and |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
23 |
# where each parameter to the MIME type is separated by a ';'. |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
24 |
# |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
25 |
# Because SystemFlavorMap implements FlavorTable, developers are free to |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
26 |
# duplicate both native keys and DataFlavor values. If a mapping contains a |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
27 |
# duplicate key or value, earlier mappings which included this key or value |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
28 |
# will be preferred. |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
29 |
# |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
30 |
# Mappings whose values specify DataFlavors with primary MIME types of |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
31 |
# "text", and which support the charset parameter, should specify the exact |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
32 |
# format in which the native platform expects the data. The "charset" |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
33 |
# parameter specifies the char to byte encoding, the "eoln" parameter |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
34 |
# specifies the end-of-line marker, and the "terminators" parameter specifies |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
35 |
# the number of terminating NUL bytes. Note that "eoln" and "terminators" |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
36 |
# are not standardized MIME type parameters. They are specific to this file |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
37 |
# format ONLY. They will not appear in any of the DataFlavors returned by the |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
38 |
# SystemFlavorMap at the Java level. |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
39 |
# |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
40 |
# If the "charset" parameter is omitted, or has zero length, the platform |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
41 |
# default encoding is assumed. If the "eoln" parameter is omitted, or has |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
42 |
# zero length, "\n" is assumed. If the "terminators" parameter is omitted, |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
43 |
# or has a value less than zero, zero is assumed. |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
44 |
# |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
45 |
# Upon initialization, the data transfer subsystem will record the specified |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
46 |
# details of the native text format, but the default SystemFlavorMap will |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
47 |
# present a large set of synthesized DataFlavors which map, in both |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
48 |
# directions, to the native. After receiving data from the application in one |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
49 |
# of the synthetic DataFlavors, the data transfer subsystem will transform |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
50 |
# the data stream into the format specified in this file before passing the |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
51 |
# transformed stream to the native system. |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
52 |
# |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
53 |
# Mappings whose values specify DataFlavors with primary MIME types of |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
54 |
# "text", but which do not support the charset parameter, will be treated as |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
55 |
# opaque, 8-bit data. They will not undergo any transformation process, and |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
56 |
# any "charset", "eoln", or "terminators" parameters specified in this file |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
57 |
# will be ignored. |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
58 |
# |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
59 |
# See java.awt.datatransfer.DataFlavor.selectBestTextFlavor for a list of |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
60 |
# text flavors which support the charset parameter. |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
61 |
|
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
62 |
UTF8_STRING=text/plain;charset=UTF-8;eoln="\n";terminators=0 |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
63 |
|
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
64 |
# The COMPOUND_TEXT support for inter-client text transfer is disabled by |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
65 |
# default. The reason is that many native applications prefer this format over |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
66 |
# other native text formats, but are unable to decode the textual data in this |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
67 |
# format properly. This results in java-to-native text transfer failures. |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
68 |
# To enable the COMPOUND_TEXT support for this JRE installation uncomment |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
69 |
# the line below. |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
70 |
|
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
71 |
# COMPOUND_TEXT=text/plain;charset=x-compound-text;eoln="\n";terminators=0 |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
72 |
|
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
73 |
TEXT=text/plain;eoln="\n";terminators=0 |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
74 |
STRING=text/plain;charset=UTF-8;eoln="\n";terminators=0 |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
75 |
FILE_NAME=application/x-java-file-list;class=java.util.List |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
76 |
text/uri-list=application/x-java-file-list;class=java.util.List |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
77 |
PNG=image/x-java-image;class=java.awt.Image |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
diff
changeset
|
78 |
JFIF=image/x-java-image;class=java.awt.Image |
20444
93251debbb6f
8025145: [macosx]: java 7 does not recognize tiff image on clipboard
alitvinov
parents:
15634
diff
changeset
|
79 |
TIFF=image/x-java-image;class=java.awt.Image |
15634
ff71ed981a76
8005932: Java 7 on mac os x only provides text clipboard formats
mcherkas
parents:
12288
diff
changeset
|
80 |
RICH_TEXT=text/rtf |
ff71ed981a76
8005932: Java 7 on mac os x only provides text clipboard formats
mcherkas
parents:
12288
diff
changeset
|
81 |
HTML=text/html;charset=utf-8;eoln="\r\n";terminators=1 |
23273
986c81d8805b
8031964: [macosx] Dragging images from the browser does not work
pchelko
parents:
20444
diff
changeset
|
82 |
URL=application/x-java-url;class=java.net.URL |
986c81d8805b
8031964: [macosx] Dragging images from the browser does not work
pchelko
parents:
20444
diff
changeset
|
83 |
URL=text/uri-list;eoln="\r\n";terminators=1 |