diff --git a/README.md b/README.md index e96688a..cc02052 100644 --- a/README.md +++ b/README.md @@ -49,8 +49,8 @@ An executable file named **"cbmtext"** will be generated: it's ready to use. Synopsis: ``` -cbmage -cbmage - +cbmtext +cbmtext - ``` This is the basic syntax: it will read the text file (first case), or from standard input (second case, giving "-" as parameter) writing on *standard output* (so, the terminal window) the raw bytes that should be interpreted by the **MPS 803** printer. diff --git a/source/cbmtext.cpp b/source/cbmtext.cpp index a9f2c9c..0270f63 100644 --- a/source/cbmtext.cpp +++ b/source/cbmtext.cpp @@ -52,7 +52,7 @@ void printText(ostream& out, istream& in) { char* translate(uint32_t c, char *code) { if (isSpace(c)) c = 32; - if (c >= 32 && c <= 127) { + if (c >= 32 && c <= 127) { // print doublequote as symbol if (c >= 'A' && c <= 'Z') return singleChar(tolower(c), code); if (c >= 'a' && c <= 'z') return singleChar(toupper(c), code); list chardef = charmap[c]; diff --git a/source/chardefs.h b/source/chardefs.h index d9a276f..2849f92 100644 --- a/source/chardefs.h +++ b/source/chardefs.h @@ -13,6 +13,14 @@ static list missing_glyph = { }; static unordered_map> charmap = { +{L'"', { + 0b010100, + 0b010100, + 0b010100, + 0b000000, + 0b000000, + 0b000000, + 0b000000 }}, {L'\\', { 0b100000, 0b100000, @@ -319,6 +327,14 @@ static unordered_map> charmap = { 0b111110, 0b100010, 0b100010 }}, +{ L'Ä', { + 0b100010, + 0b011100, + 0b100010, + 0b100010, + 0b111110, + 0b100010, + 0b100010 } }, {L'Â', { 0b011100, 0b000000,