Bug #40864.
DISPLAY DICTIONARY.
SYNTAX
Variable,Description,,Position
-integer,My Integer,,1
+integer,Label: My Integer,,1
,Format: F8.0,,
,Measure: Scale,,
,Display Alignment: Right,,
,0,Zero,
,1,Unity,
,2,Duality,
-string,My String,,2
+string,Label: My String,,2
,Format: A8,,
,Measure: Nominal,,
,Display Alignment: Left,,
,"Missing Values: ""this ""; ""that """,,
,xx ,foo,
,yy ,bar,
-longstring,My Long String,,3
+longstring,Label: My Long String,,3
,Format: A9,,
,Measure: Nominal,,
,Display Alignment: Left,,
if (flags & DF_VARIABLE_LABELS && var_has_label (v))
{
- tab_joint_text (t, 1, r, 2, r, TAB_LEFT, var_get_label (v));
+ if (flags & ~(DF_DICT_INDEX | DF_VARIABLE_LABELS))
+ tab_joint_text_format (t, 1, r, 2, r, TAB_LEFT,
+ _("Label: %s"), var_get_label (v));
+ else
+ tab_joint_text (t, 1, r, 2, r, TAB_LEFT, var_get_label (v));
r++;
}
Variable,Description,,Position
num1,Format: F8.0,,1
-num2,Numeric variable 2's label (ùúû),,2
+num2,Label: Numeric variable 2's label (ùúû),,2
,Format: F8.0,,
num3,Format: F8.0,,3
,Missing Values: 1,,
-num4,Another numeric variable label,,4
+num4,Label: Another numeric variable label,,4
,Format: F8.0,,
,Missing Values: 1,,
num5,Format: F8.0,,5
numàèìñò,Format: F8.0,,10
,Missing Values: LOWEST THRU 1; 5,,
str1,Format: A4,,11
-str2,String variable 2's label,,12
+str2,Label: String variable 2's label,,12
,Format: A4,,
str3,Format: A4,,13
,"Missing Values: ""MISS""",,
-str4,Another string variable label,,14
+str4,Label: Another string variable label,,14
,Format: A4,,
,"Missing Values: ""OTHR""",,
str5,Format: A4,,15
,"Missing Values: ""abcdefgh""; ""01234567""",,
str10,Format: A11,,20
,"Missing Values: ""abcdefgh""; ""01234567""; ""0 """,,
-str11,25-byte string,,21
+str11,Label: 25-byte string,,21
,Format: A25,,
Table: Data List
AT_CHECK([grep -v Measure pspp.csv | grep -v Display], [0], [dnl
Variable,Description,,Position
num1,Format: F8.0,,1
-num2,Numeric variable 2's label,,2
+num2,Label: Numeric variable 2's label,,2
,Format: F8.0,,
Table: Data List
AT_CHECK([grep -v Measure pspp.csv | grep -v Display], [0], [dnl
Variable,Description,,Position
num1,Format: F8.0,,1
-num2,Numeric variable 2's label,,2
+num2,Label: Numeric variable 2's label,,2
,Format: F8.0,,
Table: Data List
,1.00,éclair élan,
,Custom attributes:,,
,Atatürk,Düsseldorf Gewürztraminer,
-roué,Provençal soupçon,,2
+roué,Label: Provençal soupçon,,2
,Format: A9,,
,Measure: Nominal,,
,Display Alignment: Left,,
,Measure: Scale,,
,Display Alignment: Right,,
,Display Width: 8,,
-Ra,RANK of a,,3
+Ra,Label: RANK of a,,3
,Format: F9.3,,
,Measure: Scale,,
,Display Alignment: Right,,
,Display Width: 8,,
-RFR001,RFRACTION of a,,4
+RFR001,Label: RFRACTION of a,,4
,Format: F6.4,,
,Measure: Scale,,
,Display Alignment: Right,,
,Display Width: 8,,
-count,N of a,,5
+count,Label: N of a,,5
,Format: F6.0,,
,Measure: Scale,,
,Display Alignment: Right,,
,Display Width: 8,,
-Rb,RANK of b,,6
+Rb,Label: RANK of b,,6
,Format: F9.3,,
,Measure: Scale,,
,Display Alignment: Right,,
,Display Width: 8,,
-RFR002,RFRACTION of b,,7
+RFR002,Label: RFRACTION of b,,7
,Format: F6.4,,
,Measure: Scale,,
,Display Alignment: Right,,
,Display Width: 8,,
-Nb,N of b,,8
+Nb,Label: N of b,,8
,Format: F6.0,,
,Measure: Scale,,
,Display Alignment: Right,,
,Measure: Scale,,
,Display Alignment: Right,,
,Display Width: 8,,
-RAN001,RANK of foo,,4
+RAN001,Label: RANK of foo,,4
,Format: F9.3,,
,Measure: Scale,,
,Display Alignment: Right,,
])
AT_CHECK([pspp -O format=csv dump-dict.sps], [0],
[Variable,Description,,Position
-integer,My Integer,,1
+integer,Label: My Integer,,1
,Format: F8.0,,
,Measure: Scale,,
,Display Alignment: Right,,
,0,Zero,
,1,Unity,
,2,Duality,
-string,My String,,2
+string,Label: My String,,2
,Format: A8,,
,Measure: Nominal,,
,Display Alignment: Left,,
,"Missing Values: ""this ""; ""that """,,
,xx ,foo,
,yy ,bar,
-longstring,My Long String,,3
+longstring,Label: My Long String,,3
,Format: A9,,
,Measure: Nominal,,
,Display Alignment: Left,,
])
AT_CHECK([pspp -O format=csv dump-dicts.sps], [0],
[[Variable,Description,,Position
-string,A Short String Variable,,1
+string,Label: A Short String Variable,,1
,Format: A8,,
,Measure: Nominal,,
,Display Alignment: Left,,
,1111 ,ones,
,2222 ,twos,
,3333 ,threes,
-longstring,A Long String Variable,,2
+longstring,Label: A Long String Variable,,2
,Format: A12,,
,Measure: Nominal,,
,Display Alignment: Left,,
,Display Width: 12,,
-numeric,A Numeric Variable,,3
+numeric,Label: A Numeric Variable,,3
,Format: F10.0,,
,Measure: Scale,,
,Display Alignment: Right,,
,colour[3],violet,
,nationality,foreign,
,size,large,
-date,A Date Variable,,4
+date,Label: A Date Variable,,4
,Format: DATE11,,
,Measure: Scale,,
,Display Alignment: Right,,
,Display Width: 8,,
-dollar,A Dollar Variable,,5
+dollar,Label: A Dollar Variable,,5
,Format: DOLLAR11.2,,
,Measure: Scale,,
,Display Alignment: Right,,
,Display Width: 8,,
-datetime,A Datetime Variable,,6
+datetime,Label: A Datetime Variable,,6
,Format: DATETIME17.0,,
,Measure: Scale,,
,Display Alignment: Right,,
5555 ,Five ,5,05-MAY-2005,$5.00,05-MAY-2005 05:05
Variable,Description,,Position
-string,A Short String Variable,,1
+string,Label: A Short String Variable,,1
,Format: A8,,
,Measure: Nominal,,
,Display Alignment: Left,,
,1111 ,ones,
,2222 ,twos,
,3333 ,threes,
-longstring,A Long String Variable,,2
+longstring,Label: A Long String Variable,,2
,Format: A12,,
,Measure: Nominal,,
,Display Alignment: Left,,
,Display Width: 12,,
-numeric,A Numeric Variable,,3
+numeric,Label: A Numeric Variable,,3
,Format: F10.0,,
,Measure: Scale,,
,Display Alignment: Right,,
,colour[3],violet,
,nationality,foreign,
,size,large,
-date,A Date Variable,,4
+date,Label: A Date Variable,,4
,Format: DATE11,,
,Measure: Scale,,
,Display Alignment: Right,,
,Display Width: 8,,
-dollar,A Dollar Variable,,5
+dollar,Label: A Dollar Variable,,5
,Format: DOLLAR11.2,,
,Measure: Scale,,
,Display Alignment: Right,,
,Display Width: 8,,
-datetime,A Datetime Variable,,6
+datetime,Label: A Datetime Variable,,6
,Format: DATETIME17.0,,
,Measure: Scale,,
,Display Alignment: Right,,