deprecate simple2traditional

This commit is contained in:
Silent YANG 2024-05-21 21:05:23 +08:00
parent 3ccb0f7386
commit e583d8f266
4 changed files with 18023 additions and 1090 deletions

16928
package-lock.json generated Normal file

File diff suppressed because it is too large Load diff

View file

@ -21,7 +21,7 @@
"@zxing/text-encoding": "^0.9.0",
"aegis-web-sdk": "^1.39.1",
"axios": "^0.24.0",
"chinese-simple2traditional": "^2.1.0",
"chinese-s2t": "^1.0.0",
"dayjs": "^1.11.5",
"echarts": "^5.4.0",
"electron-squirrel-startup": "^1.0.0",

View file

@ -108,7 +108,7 @@
import { eeprom_read, uint8ArrayToHexReverseString, uint8ArrayToString, hexReverseStringToUint8Array, stringToUint8Array, eeprom_write, eeprom_reboot, eeprom_init } from '@/utils/serial.js';
import { useAppStore } from '@/store';
import { MoveIcon } from 'tdesign-icons-vue-next';
import { toSimplified } from 'chinese-simple2traditional';
import Chinese from 'chinese-s2t';
import { read as xlsxRead, writeFile as xlsxWrite, utils as xlsxUtils } from "xlsx";
import { useI18n } from 'vue-i18n';
const { t } = useI18n();
@ -636,7 +636,7 @@
rawEEPROM2.set([(scanlist << 4) + freqRange.indexOf(freqRange.reduce((i, e)=>{return e < _channel.rx ? e : i}))], i / 0x10)
const mergedArray = new Uint8Array(0x10);
mergedArray.set(stringToUint8Array(_channel.name ? toSimplified(_channel.name) : "", appStore.configuration?.charset).subarray(0, 0x10), 0);
mergedArray.set(stringToUint8Array(_channel.name ? Chinese.t2s(_channel.name) : "", appStore.configuration?.charset).subarray(0, 0x10), 0);
rawEEPROM3.set(mergedArray, i)
}else{
rawEEPROM.set(hexReverseStringToUint8Array("ffffffffffffffffffffffffffffffff"), i)

2179
yarn.lock

File diff suppressed because it is too large Load diff