Browse Source

Polish font

Add polish font for GLCD displays only.
HD44780 work properly without polish character.
Update language_pl.h.
android444 7 years ago
parent
commit
77aa16005d
5 changed files with 482 additions and 14 deletions
  1. 184
    0
      Marlin/dogm_font_data_ISO10646_1_PL.h
  2. 2
    1
      Marlin/language.h
  3. 223
    4
      Marlin/language_pl.h
  4. 3
    0
      Marlin/ultralcd_impl_DOGM.h
  5. 70
    9
      Marlin/utf_mapper.h

+ 184
- 0
Marlin/dogm_font_data_ISO10646_1_PL.h View File

@@ -0,0 +1,184 @@
1
+/*
2
+  Fontname: ISO10646-1-PL
3
+  Copyright: A.Hardtung, public domain
4
+  Capital A Height: 7, '1' Height: 7
5
+  Calculated Max Values w= 5 h= 9 x= 2 y= 7 dx= 6 dy= 0 ascent= 8 len= 9
6
+  Font Bounding box     w= 6 h= 9 x= 0 y=-2
7
+  Calculated Min Values           x= 0 y=-2 dx= 0 dy= 0
8
+  Pure Font   ascent = 7 descent=-1
9
+  X Font      ascent = 7 descent=-1
10
+  Max Font    ascent = 8 descent=-2
11
+*/
12
+#include <U8glib.h>
13
+const u8g_fntpgm_uint8_t ISO10646_1_PL_5x7[2732] U8G_FONT_SECTION(".progmem.ISO10646_1_PL_5x7") = {
14
+  0,6,9,0,254,7,1,146,3,33,32,255,255,8,254,7,
15
+  255,0,0,0,6,0,0,1,7,7,6,2,0,128,128,128,
16
+  128,128,0,128,3,2,2,6,1,5,160,160,5,7,7,6,
17
+  0,0,80,80,248,80,248,80,80,5,7,7,6,0,0,32,
18
+  120,160,112,40,240,32,5,7,7,6,0,0,192,200,16,32,
19
+  64,152,24,5,7,7,6,0,0,96,144,160,64,168,144,104,
20
+  2,3,3,6,1,4,192,64,128,3,7,7,6,1,0,32,
21
+  64,128,128,128,64,32,3,7,7,6,1,0,128,64,32,32,
22
+  32,64,128,5,5,5,6,0,1,32,168,112,168,32,5,5,
23
+  5,6,0,1,32,32,248,32,32,2,3,3,6,2,255,192,
24
+  64,128,5,1,1,6,0,3,248,2,2,2,6,2,0,192,
25
+  192,5,5,5,6,0,1,8,16,32,64,128,5,7,7,6,
26
+  0,0,112,136,136,136,136,136,112,3,7,7,6,1,0,64,
27
+  192,64,64,64,64,224,5,7,7,6,0,0,112,136,8,112,
28
+  128,128,248,5,7,7,6,0,0,248,16,32,16,8,8,240,
29
+  5,7,7,6,0,0,16,48,80,144,248,16,16,5,7,7,
30
+  6,0,0,248,128,240,8,8,136,112,5,7,7,6,0,0,
31
+  112,128,128,240,136,136,112,5,7,7,6,0,0,248,8,16,
32
+  32,32,32,32,5,7,7,6,0,0,112,136,136,112,136,136,
33
+  112,5,7,7,6,0,0,112,136,136,120,8,8,112,2,5,
34
+  5,6,2,0,192,192,0,192,192,2,6,6,6,2,255,192,
35
+  192,0,192,64,128,4,7,7,6,0,0,16,32,64,128,64,
36
+  32,16,5,3,3,6,0,2,248,0,248,4,7,7,6,1,
37
+  0,128,64,32,16,32,64,128,5,7,7,6,0,0,112,136,
38
+  8,16,32,0,32,5,7,7,6,0,0,112,136,8,104,168,
39
+  168,112,5,7,7,6,0,0,112,136,136,248,136,136,136,5,
40
+  7,7,6,0,0,240,136,136,240,136,136,240,5,7,7,6,
41
+  0,0,112,136,128,128,128,136,112,5,7,7,6,0,0,240,
42
+  136,136,136,136,136,240,5,7,7,6,0,0,248,128,128,240,
43
+  128,128,248,5,7,7,6,0,0,248,128,128,240,128,128,128,
44
+  5,7,7,6,0,0,112,136,128,184,136,136,112,5,7,7,
45
+  6,0,0,136,136,136,248,136,136,136,1,7,7,6,2,0,
46
+  128,128,128,128,128,128,128,5,7,7,6,0,0,56,16,16,
47
+  16,16,144,96,5,7,7,6,0,0,136,144,160,192,160,144,
48
+  136,5,7,7,6,0,0,128,128,128,128,128,128,248,5,7,
49
+  7,6,0,0,136,216,168,136,136,136,136,5,7,7,6,0,
50
+  0,136,136,200,168,152,136,136,5,7,7,6,0,0,112,136,
51
+  136,136,136,136,112,5,7,7,6,0,0,240,136,136,240,128,
52
+  128,128,5,7,7,6,0,0,112,136,136,136,168,144,104,5,
53
+  7,7,6,0,0,240,136,136,240,160,144,136,5,7,7,6,
54
+  0,0,120,128,128,112,8,8,240,5,7,7,6,0,0,248,
55
+  32,32,32,32,32,32,5,7,7,6,0,0,136,136,136,136,
56
+  136,136,112,5,7,7,6,0,0,136,136,136,136,136,80,32,
57
+  5,7,7,6,0,0,136,136,136,136,136,168,80,5,7,7,
58
+  6,0,0,136,136,80,32,80,136,136,5,7,7,6,0,0,
59
+  136,136,136,80,32,32,32,5,7,7,6,0,0,248,8,16,
60
+  32,64,128,248,3,7,7,6,1,0,224,128,128,128,128,128,
61
+  224,5,5,5,6,0,1,128,64,32,16,8,3,7,7,6,
62
+  1,0,224,32,32,32,32,32,224,5,3,3,6,0,4,32,
63
+  80,136,5,1,1,6,0,0,248,2,2,2,6,2,5,128,
64
+  64,5,5,5,6,0,0,112,8,120,136,120,5,7,7,6,
65
+  0,0,128,128,176,200,136,136,240,5,5,5,6,0,0,112,
66
+  128,128,136,112,5,7,7,6,0,0,8,8,104,152,136,136,
67
+  120,5,5,5,6,0,0,112,136,248,128,112,5,7,7,6,
68
+  0,0,48,72,224,64,64,64,64,5,6,6,6,0,255,112,
69
+  136,136,120,8,112,5,7,7,6,0,0,128,128,176,200,136,
70
+  136,136,1,7,7,6,2,0,128,0,128,128,128,128,128,3,
71
+  8,8,6,1,255,32,0,32,32,32,32,160,64,4,7,7,
72
+  6,0,0,128,128,144,160,192,160,144,3,7,7,6,1,0,
73
+  192,64,64,64,64,64,224,5,5,5,6,0,0,208,168,168,
74
+  168,168,5,5,5,6,0,0,176,200,136,136,136,5,5,5,
75
+  6,0,0,112,136,136,136,112,5,6,6,6,0,255,240,136,
76
+  136,240,128,128,5,6,6,6,0,255,120,136,136,120,8,8,
77
+  5,5,5,6,0,0,176,200,128,128,128,5,5,5,6,0,
78
+  0,112,128,112,8,240,4,7,7,6,0,0,64,64,224,64,
79
+  64,64,48,5,5,5,6,0,0,136,136,136,152,104,5,5,
80
+  5,6,0,0,136,136,136,80,32,5,5,5,6,0,0,136,
81
+  136,168,168,80,5,5,5,6,0,0,136,80,32,80,136,5,
82
+  6,6,6,0,255,136,136,136,120,8,112,5,5,5,6,0,
83
+  0,248,16,32,64,248,3,7,7,6,1,0,32,64,64,128,
84
+  64,64,32,1,7,7,6,2,0,128,128,128,128,128,128,128,
85
+  3,7,7,6,1,0,128,64,64,32,64,64,128,5,2,2,
86
+  6,0,2,104,144,0,0,0,6,0,0,5,9,9,6,0,
87
+  254,112,136,136,248,136,136,136,16,32,5,7,7,6,0,254,
88
+  112,8,120,136,120,16,32,5,8,8,6,0,0,16,32,112,
89
+  136,128,128,136,112,5,7,7,6,0,0,16,32,112,128,128,
90
+  136,112,5,9,9,6,0,254,248,128,128,240,128,128,248,8,
91
+  16,5,7,7,6,0,254,112,136,248,128,112,16,32,5,7,
92
+  7,6,0,0,128,144,160,192,128,128,248,5,7,7,6,0,
93
+  0,96,40,48,96,160,32,112,5,8,8,6,0,0,16,168,
94
+  136,200,168,152,136,136,5,8,8,6,0,0,8,16,0,176,
95
+  200,136,136,136,5,8,8,6,0,0,16,32,112,136,136,136,
96
+  136,112,5,8,8,6,0,0,16,32,0,112,136,136,136,112,
97
+  5,8,8,6,0,0,16,120,128,128,112,8,8,240,5,8,
98
+  8,6,0,0,16,32,0,112,128,112,8,240,5,8,8,6,
99
+  0,0,32,248,8,16,32,64,128,248,5,8,8,6,0,0,
100
+  16,32,0,248,16,32,64,248,5,7,7,6,0,0,248,8,
101
+  16,248,64,128,248,5,8,8,6,0,0,48,48,0,248,16,
102
+  32,64,248,0,0,0,6,0,0,0,0,0,6,0,0,0,
103
+  0,0,6,0,0,0,0,0,6,0,0,0,0,0,6,0,
104
+  0,0,0,0,6,0,0,0,0,0,6,0,0,0,0,0,
105
+  6,0,0,0,0,0,6,0,0,0,0,0,6,0,0,0,
106
+  0,0,6,0,0,0,0,0,6,0,0,0,0,0,6,0,
107
+  0,0,0,0,6,0,0,0,0,0,6,0,0,1,7,7,
108
+  6,2,0,128,0,128,128,128,128,128,5,7,7,6,0,0,
109
+  32,112,168,160,168,112,32,5,7,7,6,0,0,48,64,64,
110
+  224,64,80,168,5,5,5,6,0,0,136,112,80,112,136,5,
111
+  7,7,6,0,0,136,80,32,248,32,248,32,1,7,7,6,
112
+  2,0,128,128,128,0,128,128,128,5,8,8,6,0,0,48,
113
+  72,32,80,80,32,144,96,3,1,1,6,1,7,160,5,7,
114
+  7,6,0,0,248,136,184,184,184,136,248,5,7,7,6,0,
115
+  1,112,8,120,136,120,0,248,5,5,5,6,0,1,40,80,
116
+  160,80,40,5,3,3,6,0,1,248,8,8,2,2,2,6,
117
+  2,6,64,128,5,7,7,6,0,0,248,136,168,136,152,168,
118
+  248,5,1,1,6,0,6,248,4,4,4,6,0,3,96,144,
119
+  144,96,5,7,7,6,0,0,32,32,248,32,32,0,248,4,
120
+  5,5,6,0,3,96,144,32,64,240,3,5,5,6,0,3,
121
+  224,32,224,32,224,2,2,2,6,2,6,64,128,5,8,8,
122
+  6,0,255,136,136,136,136,152,232,128,128,5,7,7,6,0,
123
+  0,120,152,152,120,24,24,24,2,2,2,6,2,2,192,192,
124
+  2,2,2,6,2,255,64,128,3,5,5,6,0,3,64,192,
125
+  64,64,224,5,7,7,6,0,1,112,136,136,136,112,0,248,
126
+  5,5,5,6,0,1,160,80,40,80,160,5,7,7,6,0,
127
+  0,136,144,168,88,184,8,8,5,7,7,6,0,0,136,144,
128
+  184,72,152,32,56,5,8,8,6,0,0,192,64,192,72,216,
129
+  56,8,8,5,7,7,6,0,0,32,0,32,64,128,136,112,
130
+  5,8,8,6,0,0,64,32,0,112,136,248,136,136,5,8,
131
+  8,6,0,0,16,32,0,112,136,248,136,136,5,8,8,6,
132
+  0,0,32,80,0,112,136,248,136,136,5,8,8,6,0,0,
133
+  104,144,0,112,136,248,136,136,5,8,8,6,0,0,80,0,
134
+  112,136,136,248,136,136,5,8,8,6,0,0,32,80,32,112,
135
+  136,248,136,136,5,7,7,6,0,0,56,96,160,184,224,160,
136
+  184,5,8,8,6,0,255,112,136,128,128,136,112,32,96,5,
137
+  8,8,6,0,0,64,32,0,248,128,240,128,248,5,8,8,
138
+  6,0,0,8,16,0,248,128,240,128,248,5,8,8,6,0,
139
+  0,32,80,0,248,128,240,128,248,5,7,7,6,0,0,80,
140
+  0,248,128,240,128,248,3,8,8,6,1,0,128,64,0,224,
141
+  64,64,64,224,3,8,8,6,1,0,32,64,0,224,64,64,
142
+  64,224,3,8,8,6,1,0,64,160,0,224,64,64,64,224,
143
+  3,7,7,6,1,0,160,0,224,64,64,64,224,5,7,7,
144
+  6,0,0,112,72,72,232,72,72,112,5,8,8,6,0,0,
145
+  104,144,0,136,200,168,152,136,5,8,8,6,0,0,64,32,
146
+  112,136,136,136,136,112,5,8,8,6,0,0,16,32,112,136,
147
+  136,136,136,112,5,8,8,6,0,0,32,80,0,112,136,136,
148
+  136,112,5,8,8,6,0,0,104,144,0,112,136,136,136,112,
149
+  5,8,8,6,0,0,80,0,112,136,136,136,136,112,5,5,
150
+  5,6,0,1,136,80,32,80,136,5,8,8,6,0,255,16,
151
+  112,168,168,168,168,112,64,5,8,8,6,0,0,64,32,136,
152
+  136,136,136,136,112,5,8,8,6,0,0,16,32,136,136,136,
153
+  136,136,112,5,8,8,6,0,0,32,80,0,136,136,136,136,
154
+  112,5,8,8,6,0,0,80,0,136,136,136,136,136,112,5,
155
+  8,8,6,0,0,16,32,136,80,32,32,32,32,5,9,9,
156
+  6,0,255,192,64,112,72,72,112,64,64,224,4,8,8,6,
157
+  1,255,96,144,144,160,144,144,224,128,5,8,8,6,0,0,
158
+  64,32,0,112,8,120,136,120,5,8,8,6,0,0,16,32,
159
+  0,112,8,120,136,120,5,8,8,6,0,0,32,80,0,112,
160
+  8,120,136,120,5,8,8,6,0,0,104,144,0,112,8,120,
161
+  136,120,5,7,7,6,0,0,80,0,112,8,120,136,120,5,
162
+  8,8,6,0,0,32,80,32,112,8,120,136,120,5,6,6,
163
+  6,0,0,208,40,120,160,168,80,5,6,6,6,0,255,112,
164
+  128,136,112,32,96,5,8,8,6,0,0,64,32,0,112,136,
165
+  248,128,112,5,8,8,6,0,0,16,32,0,112,136,248,128,
166
+  112,5,8,8,6,0,0,32,80,0,112,136,248,128,112,5,
167
+  7,7,6,0,0,80,0,112,136,248,128,112,3,8,8,6,
168
+  1,0,128,64,0,64,192,64,64,224,3,8,8,6,1,0,
169
+  32,64,0,64,192,64,64,224,3,8,8,6,1,0,64,160,
170
+  0,64,192,64,64,224,3,7,7,6,1,0,160,0,64,192,
171
+  64,64,224,5,7,7,6,0,0,160,64,160,16,120,136,112,
172
+  5,8,8,6,0,0,104,144,0,176,200,136,136,136,5,8,
173
+  8,6,0,0,64,32,0,112,136,136,136,112,5,8,8,6,
174
+  0,0,16,32,0,112,136,136,136,112,5,8,8,6,0,0,
175
+  32,80,0,112,136,136,136,112,5,8,8,6,0,0,104,144,
176
+  0,112,136,136,136,112,5,7,7,6,0,0,80,0,112,136,
177
+  136,136,112,5,5,5,6,0,1,32,0,248,0,32,5,7,
178
+  7,6,0,255,16,112,168,168,168,112,64,5,8,8,6,0,
179
+  0,64,32,0,136,136,136,152,104,5,8,8,6,0,0,16,
180
+  32,0,136,136,136,152,104,5,8,8,6,0,0,32,80,0,
181
+  136,136,136,152,104,5,7,7,6,0,0,80,0,136,136,136,
182
+  152,104,5,9,9,6,0,255,16,32,0,136,136,136,248,8,
183
+  112,4,7,7,6,1,255,192,64,96,80,96,64,224,5,8,
184
+  8,6,0,255,80,0,136,136,136,120,8,112};

+ 2
- 1
Marlin/language.h View File

@@ -298,7 +298,8 @@
298 298
  && DISABLED(DISPLAY_CHARSET_ISO10646_KANA) \
299 299
  && DISABLED(DISPLAY_CHARSET_ISO10646_GREEK) \
300 300
  && DISABLED(DISPLAY_CHARSET_ISO10646_CN) \
301
- && DISABLED(DISPLAY_CHARSET_ISO10646_TR)
301
+ && DISABLED(DISPLAY_CHARSET_ISO10646_TR) \
302
+ && DISABLED(DISPLAY_CHARSET_ISO10646_PL)
302 303
   #define DISPLAY_CHARSET_ISO10646_1 // use the better font on full graphic displays.
303 304
 #endif
304 305
 

+ 223
- 4
Marlin/language_pl.h View File

@@ -30,7 +30,225 @@
30 30
 #ifndef LANGUAGE_PL_H
31 31
 #define LANGUAGE_PL_H
32 32
 
33
-#define DISPLAY_CHARSET_ISO10646_1
33
+#define DISPLAY_CHARSET_ISO10646_PL
34
+#define MAPPER_C3C4C5_PL
35
+
36
+#if ENABLED(DOGLCD)
37
+
38
+#define WELCOME_MSG                         MACHINE_NAME _UxGT(" gotowy.")
39
+#define MSG_SD_INSERTED                     _UxGT("Karta włożona")
40
+#define MSG_SD_REMOVED                      _UxGT("Karta usunięta")
41
+#define MSG_LCD_ENDSTOPS                    _UxGT("Kranców.") // Max length 8 characters
42
+#define MSG_MAIN                            _UxGT("Menu główne")
43
+#define MSG_AUTOSTART                       _UxGT("Autostart")
44
+#define MSG_DISABLE_STEPPERS                _UxGT("Wyłącz silniki")
45
+#define MSG_AUTO_HOME                       _UxGT("Pozycja zerowa")
46
+#define MSG_AUTO_HOME_X                     _UxGT("Zeruj X")
47
+#define MSG_AUTO_HOME_Y                     _UxGT("Zeruj Y")
48
+#define MSG_AUTO_HOME_Z                     _UxGT("Zeruj Z")
49
+#define MSG_LEVEL_BED_HOMING                _UxGT("Pozycja zerowa")
50
+#define MSG_LEVEL_BED_WAITING               _UxGT("Kliknij by rozp.")
51
+#define MSG_LEVEL_BED_NEXT_POINT            _UxGT("Następny punkt")
52
+#define MSG_LEVEL_BED_DONE                  _UxGT("Wypoziomowano!")
53
+#define MSG_LEVEL_BED_CANCEL                _UxGT("Anuluj")
54
+#define MSG_SET_HOME_OFFSETS                _UxGT("Ust. poz. zer.")
55
+#define MSG_HOME_OFFSETS_APPLIED            _UxGT("Poz. zerowa ust.")
56
+#define MSG_SET_ORIGIN                      _UxGT("Ustaw punkt zero")
57
+#define MSG_PREHEAT_1                       _UxGT("Rozgrzej PLA")
58
+#define MSG_PREHEAT_1_N                     MSG_PREHEAT_1 _UxGT(" ")
59
+#define MSG_PREHEAT_1_ALL                   MSG_PREHEAT_1 _UxGT(" wsz.")
60
+#define MSG_PREHEAT_1_BEDONLY               _UxGT("Rozgrzej stół PLA")
61
+#define MSG_PREHEAT_1_SETTINGS              _UxGT("Ustaw. rozg. PLA")
62
+#define MSG_PREHEAT_2                       _UxGT("Rozgrzej ABS")
63
+#define MSG_PREHEAT_2_N                     MSG_PREHEAT_2 _UxGT(" ")
64
+#define MSG_PREHEAT_2_ALL                   MSG_PREHEAT_2 _UxGT(" wsz.")
65
+#define MSG_PREHEAT_2_BEDONLY               _UxGT("Rozgrzej stół ABS")
66
+#define MSG_PREHEAT_2_SETTINGS              _UxGT("Ustaw. rozg. ABS")
67
+#define MSG_COOLDOWN                        _UxGT("Chłodzenie")
68
+#define MSG_SWITCH_PS_ON                    _UxGT("Włącz zasilacz")
69
+#define MSG_SWITCH_PS_OFF                   _UxGT("Wyłącz zasilacz")
70
+#define MSG_EXTRUDE                         _UxGT("Ekstruzja")
71
+#define MSG_RETRACT                         _UxGT("Wycofanie")
72
+#define MSG_MOVE_AXIS                       _UxGT("Ruch osi")
73
+#define MSG_LEVEL_BED                       _UxGT("Poziom. stołu")
74
+#define MSG_MOVE_X                          _UxGT("Przesuń w X")
75
+#define MSG_MOVE_Y                          _UxGT("Przesuń w Y")
76
+#define MSG_MOVE_Z                          _UxGT("Przesuń w Z")
77
+#define MSG_MOVE_E                          _UxGT("Ekstruzja (os E)")
78
+#define MSG_MOVE_01MM                       _UxGT("Przesuń co .1mm")
79
+#define MSG_MOVE_1MM                        _UxGT("Przesuń co 1mm")
80
+#define MSG_MOVE_10MM                       _UxGT("Przesuń co 10mm")
81
+#define MSG_SPEED                           _UxGT("Predkość")
82
+#define MSG_BED_Z                           _UxGT("Stół Z")
83
+#define MSG_NOZZLE                          _UxGT("Dysza")
84
+#define MSG_BED                             _UxGT("Stół")
85
+#define MSG_FAN_SPEED                       _UxGT("Obroty wiatraka")
86
+#define MSG_FLOW                            _UxGT("Przepływ")
87
+#define MSG_CONTROL                         _UxGT("Ustawienia")
88
+#define MSG_MIN                             LCD_STR_THERMOMETER _UxGT(" Min")
89
+#define MSG_MAX                             LCD_STR_THERMOMETER _UxGT(" Max")
90
+#define MSG_FACTOR                          LCD_STR_THERMOMETER _UxGT(" Mnożnik")
91
+#define MSG_AUTOTEMP                        _UxGT("Auto. temperatura")
92
+#define MSG_ON                              _UxGT("Wł. ")
93
+#define MSG_OFF                             _UxGT("Wył.")
94
+#define MSG_PID_P                           _UxGT("PID-P")
95
+#define MSG_PID_I                           _UxGT("PID-I")
96
+#define MSG_PID_D                           _UxGT("PID-D")
97
+#define MSG_PID_C                           _UxGT("PID-C")
98
+#define MSG_SELECT                          _UxGT("Select")
99
+#define MSG_ACC                             _UxGT("Przyśpieszenie")
100
+#define MSG_VX_JERK                         _UxGT("Zryw Vx")
101
+#define MSG_VY_JERK                         _UxGT("Zryw Vy")
102
+#define MSG_VZ_JERK                         _UxGT("Zryw Vz")
103
+#define MSG_VE_JERK                         _UxGT("Zryw Ve")
104
+#define MSG_VMAX                            _UxGT("Vmax ")
105
+#define MSG_VMIN                            _UxGT("Vmin")
106
+#define MSG_VTRAV_MIN                       _UxGT("Vskok min")
107
+#define MSG_AMAX                            _UxGT("Amax")
108
+#define MSG_A_RETRACT                       _UxGT("A-wycofanie")
109
+#define MSG_A_TRAVEL                        _UxGT("A-przesuń.")
110
+#define MSG_XSTEPS                          _UxGT("krokiX/mm")
111
+#define MSG_YSTEPS                          _UxGT("krokiY/mm")
112
+#define MSG_ZSTEPS                          _UxGT("krokiZ/mm")
113
+#define MSG_ESTEPS                          _UxGT("krokiE/mm")
114
+#define MSG_E1STEPS                         _UxGT("krokiE1/mm")
115
+#define MSG_E2STEPS                         _UxGT("krokiE2/mm")
116
+#define MSG_E3STEPS                         _UxGT("krokiE3/mm")
117
+#define MSG_E4STEPS                         _UxGT("krokiE4/mm")
118
+#define MSG_E5STEPS                         _UxGT("krokiE5/mm")
119
+#define MSG_TEMPERATURE                     _UxGT("Temperatura")
120
+#define MSG_MOTION                          _UxGT("Ruch")
121
+#define MSG_FILAMENT                        _UxGT("Filament")
122
+#define MSG_VOLUMETRIC_ENABLED              _UxGT("E w mm3")
123
+#define MSG_FILAMENT_DIAM                   _UxGT("Śr. fil.")
124
+#define MSG_CONTRAST                        _UxGT("Kontrast LCD")
125
+#define MSG_STORE_EEPROM                    _UxGT("Zapisz w pamięci")
126
+#define MSG_LOAD_EEPROM                     _UxGT("Wczytaj z pamięci")
127
+#define MSG_RESTORE_FAILSAFE                _UxGT("Ustaw. fabryczne")
128
+#define MSG_REFRESH                         _UxGT("Odswież")
129
+#define MSG_WATCH                           _UxGT("Ekran główny")
130
+#define MSG_PREPARE                         _UxGT("Przygotuj")
131
+#define MSG_TUNE                            _UxGT("Strojenie")
132
+#define MSG_PAUSE_PRINT                     _UxGT("Pauza")
133
+#define MSG_RESUME_PRINT                    _UxGT("Wznowienie")
134
+#define MSG_STOP_PRINT                      _UxGT("Stop")
135
+#define MSG_CARD_MENU                       _UxGT("Karta SD")
136
+#define MSG_NO_CARD                         _UxGT("Brak karty")
137
+#define MSG_DWELL                           _UxGT("Uśpij...")
138
+#define MSG_USERWAIT                        _UxGT("Oczekiwanie...")
139
+#define MSG_RESUMING                        _UxGT("Wznawianie druku")
140
+#define MSG_PRINT_ABORTED                   _UxGT("Druk przerwany")
141
+#define MSG_NO_MOVE                         _UxGT("Brak ruchu")
142
+#define MSG_KILLED                          _UxGT("Ubity. ")
143
+#define MSG_STOPPED                         _UxGT("Zatrzymany. ")
144
+#define MSG_CONTROL_RETRACT                 _UxGT("Wycofaj mm")
145
+#define MSG_CONTROL_RETRACT_SWAP            _UxGT("Z Wycof. mm")
146
+#define MSG_CONTROL_RETRACTF                _UxGT("Wycofaj  V")
147
+#define MSG_CONTROL_RETRACT_ZLIFT           _UxGT("Skok Z mm")
148
+#define MSG_CONTROL_RETRACT_RECOVER         _UxGT("Cof. wycof. mm")
149
+#define MSG_CONTROL_RETRACT_RECOVER_SWAP    _UxGT("Z Cof. wyc. mm")
150
+#define MSG_CONTROL_RETRACT_RECOVERF        _UxGT("Cof. wycof.  V")
151
+#define MSG_AUTORETRACT                     _UxGT("Auto. wycofanie")
152
+#define MSG_FILAMENTCHANGE                  _UxGT("Zmień filament")
153
+#define MSG_INIT_SDCARD                     _UxGT("Inicjal. karty SD")
154
+#define MSG_CNG_SDCARD                      _UxGT("Zmiana karty SD")
155
+#define MSG_ZPROBE_OUT                      _UxGT("Sonda Z za stołem")
156
+#define MSG_BLTOUCH_SELFTEST                _UxGT("BLTouch Self-Test")
157
+#define MSG_BLTOUCH_RESET                   _UxGT("Reset BLTouch")
158
+#define MSG_HOME                            _UxGT("Home")  // Used as MSG_HOME " " MSG_X MSG_Y MSG_Z " " MSG_FIRST
159
+#define MSG_FIRST                           _UxGT("first")
160
+#define MSG_ZPROBE_ZOFFSET                  _UxGT("Offset Z")
161
+#define MSG_BABYSTEP_X                      _UxGT("Babystep X")
162
+#define MSG_BABYSTEP_Y                      _UxGT("Babystep Y")
163
+#define MSG_BABYSTEP_Z                      _UxGT("Babystep Z")
164
+#define MSG_ENDSTOP_ABORT                   _UxGT("Błąd krańcówki")
165
+#define MSG_HEATING_FAILED_LCD              _UxGT("Rozgrz. nieudane")
166
+#define MSG_ERR_REDUNDANT_TEMP              _UxGT("Błąd temperatury")
167
+#define MSG_THERMAL_RUNAWAY                 _UxGT("Zanik temp.")
168
+#define MSG_ERR_MAXTEMP                     _UxGT("Err max temp")
169
+#define MSG_ERR_MINTEMP                     _UxGT("Err min temp")
170
+#define MSG_ERR_MAXTEMP_BED                 _UxGT("Err max temp stołu")
171
+#define MSG_ERR_MINTEMP_BED                 _UxGT("Err min temp stołu")
172
+#define MSG_ERR_Z_HOMING                    _UxGT("G28 Z Forbidden")
173
+#define MSG_HALTED                          _UxGT("Drukarka zatrzym.")
174
+#define MSG_PLEASE_RESET                    _UxGT("Proszę zresetować")
175
+#define MSG_SHORT_DAY                       _UxGT("d") // One character only
176
+#define MSG_SHORT_HOUR                      _UxGT("g") // One character only
177
+#define MSG_SHORT_MINUTE                    _UxGT("m") // One character only
178
+#define MSG_HEATING                         _UxGT("Rozgrzewanie...")
179
+#define MSG_HEATING_COMPLETE                _UxGT("Rozgrzano")
180
+#define MSG_BED_HEATING                     _UxGT("Rozgrzewanie stołu...")
181
+#define MSG_BED_DONE                        _UxGT("Rozgrzano stół")
182
+#define MSG_DELTA_CALIBRATE                 _UxGT("Kalibrowanie Delty")
183
+#define MSG_DELTA_CALIBRATE_X               _UxGT("Kalibruj X")
184
+#define MSG_DELTA_CALIBRATE_Y               _UxGT("Kalibruj Y")
185
+#define MSG_DELTA_CALIBRATE_Z               _UxGT("Kalibruj Z")
186
+#define MSG_DELTA_CALIBRATE_CENTER          _UxGT("Kalibruj środek")
187
+
188
+#define MSG_INFO_MENU                       _UxGT("O drukarce")
189
+#define MSG_INFO_PRINTER_MENU               _UxGT("Info drukarki")
190
+#define MSG_INFO_STATS_MENU                 _UxGT("Statystyki")
191
+#define MSG_INFO_BOARD_MENU                 _UxGT("Board Info")
192
+#define MSG_INFO_THERMISTOR_MENU            _UxGT("Thermistory")
193
+#define MSG_INFO_EXTRUDERS                  _UxGT("Ekstrudery")
194
+#define MSG_INFO_BAUDRATE                   _UxGT("Predkość USB")
195
+#define MSG_INFO_PROTOCOL                   _UxGT("Protokół")
196
+#define MSG_LIGHTS_ON                       _UxGT("Oświetlenie wl.")
197
+#define MSG_LIGHTS_OFF                      _UxGT("Oświetlenie wyl.")
198
+
199
+#if LCD_WIDTH >= 20
200
+  #define MSG_INFO_PRINT_COUNT              _UxGT("Wydrukowano")
201
+  #define MSG_INFO_COMPLETED_PRINTS         _UxGT("Ukończono")
202
+  #define MSG_INFO_PRINT_TIME               _UxGT("Czas druku")
203
+  #define MSG_INFO_PRINT_LONGEST            _UxGT("Najdł. druk")
204
+  #define MSG_INFO_PRINT_FILAMENT           _UxGT("Użyty fil.")
205
+#else
206
+  #define MSG_INFO_PRINT_COUNT              _UxGT("Wydrukowano")
207
+  #define MSG_INFO_COMPLETED_PRINTS         _UxGT("Ukończono")
208
+  #define MSG_INFO_PRINT_TIME               _UxGT("Razem")
209
+  #define MSG_INFO_PRINT_LONGEST            _UxGT("Najdł. druk")
210
+  #define MSG_INFO_PRINT_FILAMENT           _UxGT("Użyty fil.")
211
+#endif
212
+
213
+#define MSG_INFO_MIN_TEMP                   _UxGT("Min Temp")
214
+#define MSG_INFO_MAX_TEMP                   _UxGT("Max Temp")
215
+#define MSG_INFO_PSU                        _UxGT("Zasilacz")
216
+
217
+#define MSG_DRIVE_STRENGTH                  _UxGT("Siła silnika")
218
+#define MSG_DAC_PERCENT                     _UxGT("Siła %")
219
+#define MSG_DAC_EEPROM_WRITE                _UxGT("Zapisz DAC EEPROM")
220
+
221
+#define MSG_FILAMENT_CHANGE_HEADER          _UxGT("ZMIEŃ FILAMENT")
222
+#define MSG_FILAMENT_CHANGE_OPTION_HEADER   _UxGT("ZMIEŃ OPCJE:")
223
+#define MSG_FILAMENT_CHANGE_OPTION_EXTRUDE  _UxGT("Ekstruduj więcej")
224
+#define MSG_FILAMENT_CHANGE_OPTION_RESUME   _UxGT("Wznów drukowanie")
225
+
226
+#if LCD_HEIGHT >= 4
227
+  // Up to 3 lines allowed
228
+  #define MSG_FILAMENT_CHANGE_INIT_1          _UxGT("Czekam na ")
229
+  #define MSG_FILAMENT_CHANGE_INIT_2          _UxGT("zmianę filamentu")
230
+  #define MSG_FILAMENT_CHANGE_UNLOAD_1        _UxGT("Czekam na")
231
+  #define MSG_FILAMENT_CHANGE_UNLOAD_2        _UxGT("wyjęcie filamentu")
232
+  #define MSG_FILAMENT_CHANGE_INSERT_1        _UxGT("Włóz filament")
233
+  #define MSG_FILAMENT_CHANGE_INSERT_2        _UxGT("i naciśnij przycisk")
234
+  #define MSG_FILAMENT_CHANGE_INSERT_3        _UxGT("aby kontynuować...")
235
+  #define MSG_FILAMENT_CHANGE_LOAD_1          _UxGT("Czekam na")
236
+  #define MSG_FILAMENT_CHANGE_LOAD_2          _UxGT("włożenie filamentu")
237
+  #define MSG_FILAMENT_CHANGE_EXTRUDE_1       _UxGT("Czekam na")
238
+  #define MSG_FILAMENT_CHANGE_EXTRUDE_2       _UxGT("ekstruzję filamentu")
239
+  #define MSG_FILAMENT_CHANGE_RESUME_1        _UxGT("Czekam na")
240
+  #define MSG_FILAMENT_CHANGE_RESUME_2        _UxGT("wznowienie druku")
241
+#else // LCD_HEIGHT < 4
242
+  // Up to 2 lines allowed
243
+  #define MSG_FILAMENT_CHANGE_INIT_1          _UxGT("Proszę czekać...")
244
+  #define MSG_FILAMENT_CHANGE_UNLOAD_1        _UxGT("Wysuwanie...")
245
+  #define MSG_FILAMENT_CHANGE_INSERT_1        _UxGT("Włóż i naciśnij prz.")
246
+  #define MSG_FILAMENT_CHANGE_LOAD_1          _UxGT("Ładowanie...")
247
+  #define MSG_FILAMENT_CHANGE_EXTRUDE_1       _UxGT("Ekstruzja...")
248
+  #define MSG_FILAMENT_CHANGE_RESUME_1        _UxGT("Wznowienie...")
249
+#endif // LCD_HEIGHT < 4
250
+
251
+ #else
34 252
 
35 253
 #define WELCOME_MSG                         MACHINE_NAME _UxGT(" gotowy.")
36 254
 #define MSG_SD_INSERTED                     _UxGT("Karta wlozona")
@@ -40,9 +258,9 @@
40 258
 #define MSG_AUTOSTART                       _UxGT("Autostart")
41 259
 #define MSG_DISABLE_STEPPERS                _UxGT("Wylacz silniki")
42 260
 #define MSG_AUTO_HOME                       _UxGT("Pozycja zerowa")
43
-#define MSG_AUTO_HOME_X                     _UxGT("Home X")
44
-#define MSG_AUTO_HOME_Y                     _UxGT("Home Y")
45
-#define MSG_AUTO_HOME_Z                     _UxGT("Home Z")
261
+#define MSG_AUTO_HOME_X                     _UxGT("Zeruj X")
262
+#define MSG_AUTO_HOME_Y                     _UxGT("Zeruj Y")
263
+#define MSG_AUTO_HOME_Z                     _UxGT("Zeruj Z")
46 264
 #define MSG_LEVEL_BED_HOMING                _UxGT("Pozycja zerowa")
47 265
 #define MSG_LEVEL_BED_WAITING               _UxGT("Kliknij by rozp.")
48 266
 #define MSG_LEVEL_BED_NEXT_POINT            _UxGT("Nastepny punkt")
@@ -244,5 +462,6 @@
244 462
   #define MSG_FILAMENT_CHANGE_EXTRUDE_1       _UxGT("Ekstruzja...")
245 463
   #define MSG_FILAMENT_CHANGE_RESUME_1        _UxGT("Wznowienie...")
246 464
 #endif // LCD_HEIGHT < 4
465
+#endif
247 466
 
248 467
 #endif // LANGUAGE_PL_H

+ 3
- 0
Marlin/ultralcd_impl_DOGM.h View File

@@ -74,6 +74,9 @@
74 74
   #if ENABLED(DISPLAY_CHARSET_ISO10646_1)
75 75
     #include "dogm_font_data_ISO10646_1.h"
76 76
     #define FONT_MENU_NAME ISO10646_1_5x7
77
+  #elif ENABLED(DISPLAY_CHARSET_ISO10646_PL)
78
+    #include "dogm_font_data_ISO10646_1_PL.h"
79
+    #define FONT_MENU_NAME ISO10646_1_PL_5x7
77 80
   #elif ENABLED(DISPLAY_CHARSET_ISO10646_5)
78 81
     #include "dogm_font_data_ISO10646_5_Cyrillic.h"
79 82
     #define FONT_MENU_NAME ISO10646_5_Cyrillic_5x7

+ 70
- 9
Marlin/utf_mapper.h View File

@@ -32,15 +32,11 @@
32 32
 #endif
33 33
 
34 34
 #if DISABLED(SIMULATE_ROMFONT) && ENABLED(DOGLCD)
35
-  #if ENABLED(DISPLAY_CHARSET_ISO10646_1)
36
-    #define MAPPER_ONE_TO_ONE
37
-  #elif ENABLED(DISPLAY_CHARSET_ISO10646_5)
38
-    #define MAPPER_ONE_TO_ONE
39
-  #elif ENABLED(DISPLAY_CHARSET_ISO10646_KANA)
40
-    #define MAPPER_ONE_TO_ONE
41
-  #elif ENABLED(DISPLAY_CHARSET_ISO10646_GREEK)
42
-    #define MAPPER_ONE_TO_ONE
43
-  #elif ENABLED(DISPLAY_CHARSET_ISO10646_TR)
35
+  #if ENABLED(DISPLAY_CHARSET_ISO10646_1)     \
36
+   || ENABLED(DISPLAY_CHARSET_ISO10646_5)     \
37
+   || ENABLED(DISPLAY_CHARSET_ISO10646_KANA)  \
38
+   || ENABLED(DISPLAY_CHARSET_ISO10646_GREEK) \
39
+   || ENABLED(DISPLAY_CHARSET_ISO10646_TR)
44 40
     #define MAPPER_ONE_TO_ONE
45 41
   #endif
46 42
 #else // SIMULATE_ROMFONT
@@ -401,6 +397,71 @@
401 397
     return 1;
402 398
   }
403 399
 
400
+#elif ENABLED(MAPPER_C3C4C5_PL)
401
+
402
+  //Ą c4 84 = 80
403
+  //ą c4 85 = 81
404
+  //Ć c4 86 = 82
405
+  //ć c4 87 = 83
406
+  //Ę c4 98 = 84
407
+  //ę c4 99 = 85
408
+  //Ł c5 81 = 86
409
+  //ł c5 82 = 87
410
+  //Ń c5 83 = 88
411
+  //ń c5 84 = 89
412
+  //Ó c3 93 = 8a
413
+  //ó c3 b3 = 8b
414
+  //Ś c5 9a = 8c
415
+  //ś c5 9b = 8d
416
+  //Ź c5 b9 = 8e
417
+  //ź c5 ba = 8f
418
+  //Ż c5 bb = 90
419
+  //ż c5 bc = 91
420
+
421
+  char charset_mapper(const char c) {
422
+    static uint8_t utf_hi_char; // UTF-8 high part
423
+    static bool seen_c3 = false,
424
+                seen_c4 = false,
425
+                seen_c5 = false;
426
+    uint8_t d = c;
427
+    if ( d >= 0x80u ) { // UTF-8 handling
428
+           if ( d == 0xC4u ) {seen_c4 = true; return 0;}
429
+      else if ( d == 0xC5u ) {seen_c5 = true; return 0;}
430
+      else if ( d == 0xC3u ) {seen_c3 = true; return 0;}
431
+      else if (seen_c4) {
432
+        switch(d) {
433
+          case 0x84u ... 0x87u: d -= 4; break;  //Ą - ć
434
+          case 0x98u ... 0x99u: d -= 20; break; //Ę i ę
435
+          default: d = '?';
436
+        }
437
+        HARDWARE_CHAR_OUT((char)d) ;
438
+      }
439
+      else if (seen_c5) {
440
+        switch(d) {
441
+          case 0x81u ... 0x84u: d += 5; break;  //Ł - ń
442
+          case 0x9Au ... 0x9Bu: d -= 0x0Eu; break; //Ś i ś
443
+          case 0xB9u ... 0xBCu: d -= 0x2Bu; break; //Ź - ż
444
+          default: d = '?';
445
+        }
446
+        HARDWARE_CHAR_OUT((char)d) ;
447
+      }
448
+      else if (seen_c3) {
449
+    switch(d) {
450
+          case 0x93u: d = 0x8Au; break; //Ó
451
+          case 0xB3u: d = 0x8Bu; break; //ó
452
+          d = '?';
453
+        }
454
+        HARDWARE_CHAR_OUT((char)d) ;
455
+      }
456
+
457
+    }
458
+    else {
459
+      HARDWARE_CHAR_OUT((char) c );
460
+    }
461
+    seen_c3 = seen_c4 = seen_c5 = false;
462
+    return 1;
463
+  }
464
+
404 465
 #else
405 466
 
406 467
   #define MAPPER_NON

Loading…
Cancel
Save