Artikash / Textractor

Extracts text from video games and visual novels. Highly extensible.
GNU General Public License v3.0
2.01k stars 201 forks source link

I want to delete certain parts with regexr filters. #1114

Open SHRIMP159 opened 12 months ago

SHRIMP159 commented 12 months ago

【隆成】優牙“じゃあ, それでイイじゃん.言い訳も, それしかないじゃん”

I want to delete the 【character】 at the beginning.

Blu3train commented 12 months ago

Regex Replacer |REGEX|^【[^】]+】|BECOMES||MODIFIER||END|

Regex Filter ^【[^】]+】

You can simplify the rule like this but it is less performant |REGEX|^【.+?】|BECOMES||MODIFIER||END|

SHRIMP159 commented 12 months ago

Thank you very much. It was fixed right away.

Vincent-Dawn commented 11 months ago

Sorry to intrude on this issue, but is there a filter or replacer for character names that are not in【】. For example I'm playing Love x Holic and the names before the sentences don't use brackets.

Blu3train commented 11 months ago

There is no rule that works for everything. You need to examine the text and see if there is anything that can isolate the name and then create a rule to filter it.

Vincent-Dawn commented 11 months ago

With that VN there is no actual hook specifically for that game, when I attach it to Textractor and it runs the hooks it says "vnreng:Aterlier: failed" and these are the only hooks I get:

Screenshot 2023-07-30 095532

I couldn't find one that had symbols or other characters that didn't fit with the text in the game, only two that copied text as MS ゴシック" and one that looked this:

Screenshot 2023-07-30 101850

Blu3train commented 11 months ago

This has nothing to do with the title of this issue.

Vincent-Dawn commented 11 months ago

I thought the process to finding a way to filter a character's name was similar to filtering furigana like in issues #989 and #1022.

I didn't mean to take this issue off track.

Blu3train commented 11 months ago

However, the latest version of texthook.dll finds a valid hook