From 0a62f40bf1629af716c86124f3763a06012a7e07 Mon Sep 17 00:00:00 2001 From: Facundo Sosa Date: Wed, 22 Jun 2022 19:54:12 -0300 Subject: [PATCH 1/3] add CP 1256 --- rtf-interpreter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtf-interpreter.js b/rtf-interpreter.js index 09a89dd..57b5697 100644 --- a/rtf-interpreter.js +++ b/rtf-interpreter.js @@ -10,7 +10,7 @@ const iconv = require('iconv-lite') const availableCP = [ 437, 737, 775, 850, 852, 853, 855, 857, 858, 860, 861, 863, 865, 866, - 869, 932, 936, 949, 950, 1125, 1250, 1251, 1252, 1253, 1254, 1257 ] + 869, 932, 936, 949, 950, 1125, 1250, 1251, 1252, 1253, 1254, 1256, 1257 ] const codeToCP = { 0: 'ASCII', 2: 'SYMBOL', From 614a8cb03a67fd31e7a0ac5448930c95417bc5df Mon Sep 17 00:00:00 2001 From: Facundo Sosa Date: Thu, 21 Mar 2024 14:11:07 -0300 Subject: [PATCH 2/3] Update rtf-interpreter.js --- rtf-interpreter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtf-interpreter.js b/rtf-interpreter.js index 57b5697..7241fd6 100644 --- a/rtf-interpreter.js +++ b/rtf-interpreter.js @@ -9,7 +9,7 @@ const RTFSpan = require('./rtf-span.js') const iconv = require('iconv-lite') const availableCP = [ - 437, 737, 775, 850, 852, 853, 855, 857, 858, 860, 861, 863, 865, 866, + 238,437, 737, 775, 850, 852, 853, 855, 857, 858, 860, 861, 863, 865, 866, 869, 932, 936, 949, 950, 1125, 1250, 1251, 1252, 1253, 1254, 1256, 1257 ] const codeToCP = { 0: 'ASCII', From c44e7367197864203fe8cf9a8b4f854de10f35c9 Mon Sep 17 00:00:00 2001 From: Facundo Sosa Date: Thu, 21 Mar 2024 16:56:10 -0300 Subject: [PATCH 3/3] Update rtf-interpreter.js --- rtf-interpreter.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rtf-interpreter.js b/rtf-interpreter.js index 7241fd6..59f57cf 100644 --- a/rtf-interpreter.js +++ b/rtf-interpreter.js @@ -9,7 +9,7 @@ const RTFSpan = require('./rtf-span.js') const iconv = require('iconv-lite') const availableCP = [ - 238,437, 737, 775, 850, 852, 853, 855, 857, 858, 860, 861, 863, 865, 866, + 437, 737, 775, 850, 852, 853, 855, 857, 858, 860, 861, 863, 865, 866, 869, 932, 936, 949, 950, 1125, 1250, 1251, 1252, 1253, 1254, 1256, 1257 ] const codeToCP = { 0: 'ASCII', @@ -28,7 +28,7 @@ const codeToCP = { 186: 'CP1257', // baltic 204: 'CP1251', // russian 222: 'CP874', // thai - 238: 'CP238', // eastern european + 238: 'CP1250', // eastern european 254: 'CP437' // PC-437 }