@ -4,9 +4,9 @@
# include "language.h"
# ifdef DOGLCD
# define HARDWA E RE_CHAR_OUT u8g.print
# define HARDWA RE_CHAR_OUT u8g.print
# else
# define HARDWA E RE_CHAR_OUT lcd.write
# define HARDWA RE_CHAR_OUT lcd.write
# endif
# if !(defined( SIMULATE_ROMFONT )) && defined( DOGLCD )
@ -90,7 +90,7 @@
# error( "Katakana on a western display makes no sense. There are no matching symbols." );
# endif
# elif defined( DISPLAY_CHARSET_HD44780_CYRIL IC )
# elif defined( DISPLAY_CHARSET_HD44780_CYRIL L IC )
# if defined( MAPPER_D0D1 )
# define MAPPER_D0D1_MOD
// it is a Russian alphabet translation
@ -120,12 +120,12 @@
# endif
# else
# error("Something went wrong in the selection of DISPLAY_CHARSET_HD44780's");
# endif // DISPLAY_CHARSET_HD44780_CYRIL IC
# endif // DISPLAY_CHARSET_HD44780_CYRIL L IC
# endif // SIMULATE_ROMFONT
# if defined( MAPPER_NON )
char charset_mapper ( char c ) {
HARDWA E RE_CHAR_OUT( c ) ;
HARDWA RE_CHAR_OUT( c ) ;
return 1 ;
}
# elif defined( MAPPER_C2C3 )
@ -142,17 +142,17 @@
else if ( seen_c2 ) {
d & = 0x3f ;
# ifndef MAPPER_ONE_TO_ONE
HARDWA E RE_CHAR_OUT( ( char ) pgm_read_byte_near ( utf_recode + d + ( utf_hi_char < < 6 ) - 0x20 ) ) ;
HARDWA RE_CHAR_OUT( ( char ) pgm_read_byte_near ( utf_recode + d + ( utf_hi_char < < 6 ) - 0x20 ) ) ;
# else
HARDWA E RE_CHAR_OUT( ( char ) ( 0x80 + ( utf_hi_char < < 6 ) + d ) ) ;
HARDWA RE_CHAR_OUT( ( char ) ( 0x80 + ( utf_hi_char < < 6 ) + d ) ) ;
# endif
}
else {
HARDWA E RE_CHAR_OUT( ' ? ' ) ;
HARDWA RE_CHAR_OUT( ' ? ' ) ;
}
}
else {
HARDWA E RE_CHAR_OUT( ( char ) c ) ;
HARDWA RE_CHAR_OUT( ( char ) c ) ;
}
seen_c2 = false ;
return 1 ;
@ -172,18 +172,18 @@
} else if ( seen_d5 ) {
d & = 0x3f ;
if ( ! utf_hi_char & & ( d = = 1 ) ) {
HARDWA E RE_CHAR_OUT( ( char ) 0xa2 ) ; // Ё
HARDWA RE_CHAR_OUT( ( char ) 0xa2 ) ; // Ё
} else if ( ( utf_hi_char = = 1 ) & & ( d = = 0x11 ) ) {
HARDWA E RE_CHAR_OUT( ( char ) 0xb5 ) ; // ё
HARDWA RE_CHAR_OUT( ( char ) 0xb5 ) ; // ё
} else {
HARDWA E RE_CHAR_OUT( ( char ) pgm_read_byte_near ( utf_recode + d + ( utf_hi_char < < 6 ) - 0x10 ) ) ;
HARDWA RE_CHAR_OUT( ( char ) pgm_read_byte_near ( utf_recode + d + ( utf_hi_char < < 6 ) - 0x10 ) ) ;
}
}
else {
HARDWA E RE_CHAR_OUT( ' ? ' ) ;
HARDWA RE_CHAR_OUT( ' ? ' ) ;
}
} else {
HARDWA E RE_CHAR_OUT( ( char ) c ) ;
HARDWA RE_CHAR_OUT( ( char ) c ) ;
}
seen_d5 = false ;
return 1 ;
@ -201,15 +201,15 @@
} else if ( seen_d5 ) {
d & = 0x3fu ;
# ifndef MAPPER_ONE_TO_ONE
HARDWA E RE_CHAR_OUT( ( char ) pgm_read_byte_near ( utf_recode + d + ( utf_hi_char < < 6 ) - 0x20 ) ) ;
HARDWA RE_CHAR_OUT( ( char ) pgm_read_byte_near ( utf_recode + d + ( utf_hi_char < < 6 ) - 0x20 ) ) ;
# else
HARDWA E RE_CHAR_OUT( ( char ) ( 0xa0u + ( utf_hi_char < < 6 ) + d ) ) ;
HARDWA RE_CHAR_OUT( ( char ) ( 0xa0u + ( utf_hi_char < < 6 ) + d ) ) ;
# endif
} else {
HARDWA E RE_CHAR_OUT( ' ? ' ) ;
HARDWA RE_CHAR_OUT( ' ? ' ) ;
}
} else {
HARDWA E RE_CHAR_OUT( ( char ) c ) ;
HARDWA RE_CHAR_OUT( ( char ) c ) ;
}
seen_d5 = false ;
return 1 ;
@ -231,15 +231,15 @@
} else if ( ( seen_e3 = = true ) & & ( seen_82_83 = = true ) ) {
d & = 0x3f ;
# ifndef MAPPER_ONE_TO_ONE
HARDWA E RE_CHAR_OUT( ( char ) pgm_read_byte_near ( utf_recode + d + ( utf_hi_char < < 6 ) - 0x20 ) ) ;
HARDWA RE_CHAR_OUT( ( char ) pgm_read_byte_near ( utf_recode + d + ( utf_hi_char < < 6 ) - 0x20 ) ) ;
# else
HARDWA E RE_CHAR_OUT( ( char ) ( 0x80 + ( utf_hi_char < < 6 ) + d ) ) ;
HARDWA RE_CHAR_OUT( ( char ) ( 0x80 + ( utf_hi_char < < 6 ) + d ) ) ;
# endif
} else {
HARDWA E RE_CHAR_OUT( ( char ) ' ? ' ) ;
HARDWA RE_CHAR_OUT( ( char ) ' ? ' ) ;
}
} else {
HARDWA E RE_CHAR_OUT( ( char ) c ) ;
HARDWA RE_CHAR_OUT( ( char ) c ) ;
}
seen_e3 = false ;
seen_82_83 = false ;