menu
Tatoeba
language
Kaydol Giriş yap
language Türkçe
menu
Tatoeba

chevron_right Kaydol

chevron_right Giriş yap

Göz At

chevron_right Rastgele cümle göster

chevron_right Dile göre ara

chevron_right Listeye göre ara

chevron_right Etikete göre ara

chevron_right Ses ara

Topluluk

chevron_right Duvar

chevron_right Tüm üyelerin listesi

chevron_right Üyelerin dilleri

chevron_right Ana diller

search
clear
swap_horiz
search

Menü

Duvar'a dön

raeldor raeldor 14 Ağustos 2014 14 Ağustos 2014 19:52:23 UTC link Kalıcı bağlantı

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

{{vm.hiddenReplies[20152] ? 'expand_more' : 'expand_less'}} cevapları gizle cevapları göster
TRANG TRANG 16 Ağustos 2014 16 Ağustos 2014 13:56:02 UTC link Kalıcı bağlantı

Yes, you have to actually type <space>. What you want to search is: 四<space>

{{vm.hiddenReplies[20161] ? 'expand_more' : 'expand_less'}} cevapları gizle cevapları göster
User55521 User55521 17 Ağustos 2014 17 Ağustos 2014 18:45:40 UTC link Kalıcı bağlantı

I’m afraid it doesn’t work.

raeldor raeldor 17 Ağustos 2014 17 Ağustos 2014 23:45:13 UTC link Kalıcı bağlantı

This worked for me by typing the literal string '<space>', thank you!

raeldor raeldor 17 Ağustos 2014 17 Ağustos 2014 23:51:22 UTC link Kalıcı bağlantı

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>'.

{{vm.hiddenReplies[20175] ? 'expand_more' : 'expand_less'}} cevapları gizle cevapları göster
TRANG TRANG 18 Ağustos 2014 18 Ağustos 2014 17:55:45 UTC link Kalıcı bağlantı

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.

{{vm.hiddenReplies[20179] ? 'expand_more' : 'expand_less'}} cevapları gizle cevapları göster
raeldor raeldor 18 Ağustos 2014 18 Ağustos 2014 20:14:04 UTC link Kalıcı bağlantı

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. :(

{{vm.hiddenReplies[20180] ? 'expand_more' : 'expand_less'}} cevapları gizle cevapları göster
TRANG TRANG 19 Ağustos 2014 19 Ağustos 2014 15:20:38 UTC link Kalıcı bağlantı

Searching "<space>四<space>" works fine for me.

{{vm.hiddenReplies[20183] ? 'expand_more' : 'expand_less'}} cevapları gizle cevapları göster
raeldor raeldor 20 Ağustos 2014 20 Ağustos 2014 19:34:13 UTC link Kalıcı bağlantı

Yes, the search works, but have you tried replacing that?

{{vm.hiddenReplies[20185] ? 'expand_more' : 'expand_less'}} cevapları gizle cevapları göster
TRANG TRANG 21 Ağustos 2014 21 Ağustos 2014 13:41:08 UTC link Kalıcı bağlantı

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

{{vm.hiddenReplies[20191] ? 'expand_more' : 'expand_less'}} cevapları gizle cevapları göster
raeldor raeldor 25 Ağustos 2014 25 Ağustos 2014 21:18:26 UTC link Kalıcı bağlantı

Hi Trang,

Did you get a chance to take a look at this?

Thanks
Ray

{{vm.hiddenReplies[20236] ? 'expand_more' : 'expand_less'}} cevapları gizle cevapları göster
TRANG TRANG 25 Ağustos 2014 25 Ağustos 2014 23:28:50 UTC link Kalıcı bağlantı

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.

{{vm.hiddenReplies[20238] ? 'expand_more' : 'expand_less'}} cevapları gizle cevapları göster
raeldor raeldor 26 Ağustos 2014 26 Ağustos 2014 04:44:06 UTC link Kalıcı bağlantı

Awesome, thank you so much!