Menu
Hi,
When doing the search on the annotations editing screen for the japanese sentences, is there a way to have to not trim the spaces when doing a search. For example, if I search for '四 ' in the search box, it actually searches for '四'. This makes it difficult to find instances where '四' stands alone and has not been qualified.
Thanks
Ray
Yes, you have to actually type <space>. What you want to search is: 四<space>
I’m afraid it doesn’t work.
This worked for me by typing the literal string '<space>', thank you!
Oops, spoke too soon. Works for search, but when I try and replace and preview it doesn't find anything. For example if I search for '<space>四<space>' to replace with '<space>四(よん)<space>'.
It's only when searching that you need to use <space>, and only for spaces at the beginning or the end.
When replacing you would use a normal space.
I'm guessing the algorithm only works when <space> is at the beginning OR the end then? Because when it's both it doesn't seem to work. :(
Searching "<space>四<space>" works fine for me.
Yes, the search works, but have you tried replacing that?
Indeed, the replace doesn't highlight. But it may be just an issue with the javascript. I'll take a look later.
If you're wondering how it works, the related code is here:
https://github.com/Tatoeba/tato...ons.preview.js
https://github.com/Tatoeba/tato...annotation.php
Hi Trang,
Did you get a chance to take a look at this?
Thanks
Ray
Yes, it was a problem with the preview. If you did the replace, it would actually replace properly. But I fixed the preview and it should highlight the strings as intended now.
Awesome, thank you so much!