@@ -909,24 +909,24 @@ attachCopiedTooltip[ ] :=
909
909
StyleBox [
910
910
FEPrivate ` ImportImage [
911
911
FrontEnd ` FileName [{"Typeset" , "ClickToCopy" }, "Checkmark.png" ]],
912
- Magnification -> 0.5 ` ]],
913
- BaselinePosition -> Scaled [0.1 ` ] -> Baseline ],
912
+ Magnification -> 0.5 ` ]],
913
+ BaselinePosition -> Scaled [0.1 ` ] -> Baseline ],
914
914
DynamicBox [
915
- ToBoxes [FEPrivate ` FrontEndResource ["FEStrings" ,
916
- "clicktocopyDoneTooltip" ], StandardForm ]]}},
915
+ ToBoxes [FEPrivate ` FrontEndResource ["FEStrings" ,
916
+ "clicktocopyDoneTooltip" ], StandardForm ]]}},
917
917
GridBoxAlignment -> {"Columns" -> {{Left }}, "Rows" -> {{Baseline }}},
918
- GridBoxItemSize -> {"Columns" -> {{Automatic }},
919
- "Rows" -> {{Automatic }}},
920
- GridBoxSpacings -> {"Columns" -> {{0.3 ` }}, "Rows" -> {{0 }}}],
921
- Alignment -> Center ,
922
- Appearance -> {"Default" ->
923
- FrontEnd ` FileName [{"Chatbook" }, "CopyTooltip.9.png" ]}, ImageSize -> {100 , Automatic },
924
- FrameMargins -> {{0 , 0 }, {0 , 0 }},
925
- BaseStyle -> {LineBreakWithin -> Automatic ,
926
- LinebreakAdjustments -> {1. ` , 10 , 1 , 0 , 1 }, LineIndent -> 0 ,
927
- Hyphenation -> False ,
918
+ GridBoxItemSize -> {"Columns" -> {{Automatic }},
919
+ "Rows" -> {{Automatic }}},
920
+ GridBoxSpacings -> {"Columns" -> {{0.3 ` }}, "Rows" -> {{0 }}}],
921
+ Alignment -> Center ,
922
+ Appearance -> {"Default" ->
923
+ FrontEnd ` FileName [{"Chatbook" }, "CopyTooltip.9.png" ]}, ImageSize -> {100 , Automatic },
924
+ FrameMargins -> {{0 , 0 }, {0 , 0 }},
925
+ BaseStyle -> {LineBreakWithin -> Automatic ,
926
+ LinebreakAdjustments -> {1. ` , 10 , 1 , 0 , 1 }, LineIndent -> 0 ,
927
+ Hyphenation -> False ,
928
928
HyphenationOptions -> {"HyphenationCharacter" -> "\[ Null]" },
929
- FontFamily -> "Source Sans Pro" , FontSize -> 12 ,
929
+ FontFamily -> "Source Sans Pro" , FontSize -> 12 ,
930
930
FontColor -> GrayLevel [0.5 ]}],
931
931
Alignment -> { Center , Bottom },
932
932
FrameMargins -> 0 ,
@@ -935,7 +935,7 @@ attachCopiedTooltip[ ] :=
935
935
] ],
936
936
{ Center , Bottom }, Offset [ { 0 , - 7 }, Automatic ], { Center , Center },
937
937
RemovalConditions -> { "MouseExit" }
938
- ];
938
+ ];
939
939
940
940
attachCopiedTooltip // endDefinition ;
941
941
@@ -1941,7 +1941,10 @@ makeInteractiveCodeCell[ lang_String? wolframLanguageQ, code0_ ] := Enclose[
1941
1941
LanguageCategory -> "Input" ,
1942
1942
ShowAutoStyles -> True ,
1943
1943
ShowStringCharacters -> True ,
1944
- ShowSyntaxStyles -> True
1944
+ ShowSyntaxStyles -> True ,
1945
+ TranslationOptions -> {
1946
+ "Enabled" -> Dynamic @ AbsoluteCurrentValue [ $FrontEnd , { TranslationOptions , "Enabled" } ]
1947
+ }
1945
1948
];
1946
1949
handler = inlineInteractiveCodeCell [ display , code ];
1947
1950
codeBlockFrame [ ToBoxes @ handler , code ]
@@ -2418,7 +2421,10 @@ attachment[ alt_String, key_String, expr_ ] :=
2418
2421
LanguageCategory -> "Input" ,
2419
2422
ShowAutoStyles -> True ,
2420
2423
ShowStringCharacters -> True ,
2421
- ShowSyntaxStyles -> True
2424
+ ShowSyntaxStyles -> True ,
2425
+ TranslationOptions -> {
2426
+ "Enabled" -> Dynamic @ AbsoluteCurrentValue [ $FrontEnd , { TranslationOptions , "Enabled" } ]
2427
+ }
2422
2428
];
2423
2429
handler = inlineInteractiveCodeCell [ display , Cell [ BoxData @ cachedBoxes @ expr , "Input" ] ];
2424
2430
codeBlockFrame [ Cell @ BoxData @ ToBoxes @ handler , expr ]
0 commit comments