Commit Graph

1956 Commits

Author SHA1 Message Date
kwaroran
c2f3054f63 chore: Update version numbers to 1.102.1 2024-05-07 04:30:54 +09:00
kwaroran
f3e492d9c8 Fix: Now combineTranslation applies the markdown to the result (#409)
# PR Checklist
- [ ] Did you check if it works normally in all models? *ignore this
when it dosen't uses models*
- [ ] Did you check if it works normally in all of web, local and node
hosted versions? if it dosen't, did you blocked it in those versions?
- [x] Did you added a type def?

# Description
I knew there was a `ParseMarkdown` function, but I didn't think it fit
the current situation, so I created a new `applyMarkdownToNode`
function,
but I didn't see much difference in the results, So if you think
`ParseMarkdown` is better, you can change my code to use that.
(To use `ParseMarkdown`, we need to create a parameter that allows us to
use `mconverted.parseInline` instead of `mconverted.parse` to the
ParseMarkdown function)
2024-05-07 04:30:17 +09:00
kwaroran
b8abb977a2 feat: Add support for logical NOT operator in toRPN function 2024-05-07 04:29:16 +09:00
sub-hub
ca57cf6108 Fixed a mistake in translateHTML. 2024-05-06 17:14:27 +09:00
sub-hub
9b3571beeb Added markdown null check and reapply markdown in all cases
parent null check applyMarkdownToNode
2024-05-06 17:12:26 +09:00
sub-hub
e204eeb385 Update util.ts 2024-05-06 16:41:55 +09:00
sub-hub
8f9f075cdb Fix: Markdown Nodes Inherit inline styles 2024-05-06 14:04:00 +09:00
sub-hub
e1eaf08df8 Fix: now combineTranslation will Apply markdown 2024-05-06 13:30:38 +09:00
kwaroran
50fd644539 Update version to 1.102.0 2024-05-06 06:43:02 +09:00
kwaroran
e4cf35f0e6 Add: New Option Combine Translation (#405)
# PR Checklist
- [x] Did you check if it works normally in all models? *ignore this
when it dosen't uses models*
- [x] Did you check if it works normally in all of web, local and node
hosted versions? if it dosen't, did you blocked it in those versions?
- [x] Did you added a type def?

# Description
Basically, this feature was created to combine a sentence together and
translate it when a display edit script splits one sentence into
multiple HTML tags.
I hope you confirm as this option will significantly improve translation
performance without modifying existing scripts! `(e.g. Automark)`
I also made `translateHTML` accept a `chatID` and optimized the existing
code to get the script from `charArg`.
2024-05-06 06:33:23 +09:00
sub-hub
07eb230be3 Add combineTranslation feature that merging and translating separated HTML sentences 2024-05-05 11:49:15 +09:00
Yvonne
b389c86b76 Fixed hardcoded URL
now it takes it from the db.
2024-05-04 17:19:37 +02:00
sub-hub
a7509c4a35 Add: Sentence html Merge Translation Feature 2024-05-04 22:44:28 +09:00
sub-hub
120e9356b6 Update missing type imports 2024-05-04 18:05:43 +09:00
sub-hub
e19b672755 refactor: translateHTML function handle charArg with reusable variable 2024-05-04 18:04:13 +09:00
sub-hub
b54dc17402 fix: update translateHTML function to include chatID parameter 2024-05-04 17:49:06 +09:00
sub-hub
e76a2459bb Fix hanurai to skip query chats when push to processor 2024-05-02 09:47:35 +09:00
kwaroran
31291cf587 Update URL for new version download in update.ts 2024-05-01 08:17:51 +09:00
kwaroran
6650f2a74e Update version numbers to 1.101.0 2024-05-01 08:15:57 +09:00
kwaroran
d3c2e5575e Update calc 2024-05-01 08:11:11 +09:00
kwaroran
899c633c26 Update version numbers to 1.100.3 2024-05-01 07:55:10 +09:00
kwaroran
344deae1bc Update cap settings 2024-04-30 13:12:58 +09:00
kwaroran
f622534f96 Use proxy on requesting on android 2024-04-30 13:08:29 +09:00
kwaroran
e9a84358fb Add prompt type parser 2024-04-30 04:11:04 +09:00
kwaroran
d2248383fd Fix return value for custom embedding URL in HypaProcesser 2024-04-29 01:53:39 +09:00
sub-hub
cefdc1ad11 Fix customEmbeddingUrl handling in HypaProcesser 2024-04-27 22:41:48 +09:00
sub-hub
96622482b3 Add appendLastPath util function and use it in hypamemory 2024-04-27 22:09:23 +09:00
sub-hub
e5a88c4ecb Add support for custom embedding URL in PlaygroundEmbedding.svelte and HypaProcesser 2024-04-27 18:21:44 +09:00
kwaroran
091cf4f35c Fix import module checking 2024-04-27 06:29:03 +09:00
kwaroran
228b62d43b Update version numbers to 1.100.2 2024-04-27 06:27:33 +09:00
kwaroran
94c1b33d14 Update version numbers to 1.100.1 2024-04-26 22:35:16 +09:00
kwaroran
901db2b09e Add ignoredErrors in alertError function 2024-04-26 22:34:59 +09:00
kwaroran
0ebc919080 Fix toRPN cac 2024-04-25 14:43:52 +09:00
kwaroran
a476bc9c05 Update version numbers to 1.100.0 2024-04-25 14:43:04 +09:00
kwaroran
6ae39619b7 Add support for bitwise OR and AND operators in calculateRPN function 2024-04-25 04:10:00 +09:00
kwaroran
45a9068e58 Fix regex bug in executeRPNCalculation function 2024-04-25 04:00:53 +09:00
kwaroran
bf15c7d860 Add support for var loading in calc and add special syntax for calc 2024-04-25 04:00:08 +09:00
kwaroran
63e3492466 Fix > and < not working 2024-04-25 03:12:16 +09:00
kwaroran
be38e42186 Add comparison operators < and > to calculateRPN function 2024-04-25 02:51:37 +09:00
kwaroran
edeb77e085 Add ^ and % to calc 2024-04-25 02:47:44 +09:00
kwaroran
5bd57df411 Fix sidebar and textarea size 2024-04-25 02:30:10 +09:00
kwaroran
f1dfabc408 Add GUI size options 2024-04-25 02:17:57 +09:00
kwaroran
11b1d4d4f3 Replace cloneDeep to native structuredclone and remove unused import 2024-04-25 01:17:14 +09:00
kwaroran
cc744853d2 Add hotkey functionality to handle Escape key 2024-04-25 01:08:03 +09:00
kwaroran
c0c5592c4c Add new commands to processCommand function 2024-04-25 01:05:20 +09:00
kwaroran
68571143bf Add risu_char and risu_user 2024-04-25 01:01:02 +09:00
kwaroran
4a820aac4a Remove deep 2024-04-25 00:59:02 +09:00
kwaroran
c10eab506a Update error handling in main.ts and globalApi.ts 2024-04-25 00:57:09 +09:00
kwaroran
2d1a504cdb Add unixtime function to parser.ts 2024-04-25 00:44:54 +09:00
kwaroran
eceeb98768 Add setdefaultvar 2024-04-25 00:43:10 +09:00