karmapa / AdarshaIos

📱 Tibetan sutra reader iOS app
GNU General Public License v3.0
5 stars 2 forks source link

內文閱覽模式 新增的搜尋欄位關鍵字 支援輸入 Wylie 轉寫 #30

Closed chiehan1 closed 8 years ago

chiehan1 commented 8 years ago

內文閱覽模式 新增的搜尋欄位,需支援輸入Wylie轉寫的關鍵字。如下圖綠色框。 感謝!!

wylie

kmsheng commented 8 years ago

@yapcheahshen ios 裡的藏文看起來不是等寬字型, 你知道怎麼計算藏文字的寬度嗎 ?

yapcheahshen commented 8 years ago

應該沒有等寬的藏文字型。 為何要計算藏文字串寬度?

2015-12-23 19:53 GMT+08:00 kmsheng notifications@github.com:

@yapcheahshen https://github.com/yapcheahshen ios 裡的藏文看起來不是等寬字型��,你知道怎麼計算藏文字的寬度嗎 ?

— Reply to this email directly or view it on GitHub https://github.com/karmapa/AdarshaIos/issues/30#issuecomment-166872326.

kmsheng commented 8 years ago

@yapcheahshen 因為要 scroll 到該字出現的位置, 所以必須根據字寬與螢幕寬度算出被搜尋的字是出現在第幾行, iOS 的 UITextView 似乎有類似方法可以取得一個字的 posiiton, React Native 卻沒有。

yapcheahshen commented 8 years ago

字寬字高在js應該不好算。將目標element ,設一個 id ,再取得其位置捲過去較簡單。

kmsheng notifications@github.com 於 2015年12月23日 下午8:48 寫道:

@yapcheahshen https://github.com/yapcheahshen 因為要 scroll 到該字出現的位置, 所以必須根據字寬與螢幕寬度算出被搜尋的字是出現在第幾行, iOS 的 UITextView 似乎有類似方法可以取的一個字的 posiiton, React Native 卻沒有。

— Reply to this email directly or view it on GitHub https://github.com/karmapa/AdarshaIos/issues/30#issuecomment-166888501.

yapcheahshen commented 8 years ago

http://stackoverflow.com/questions/30096038/react-native-getting-the-position-of-an-element

Yap yapcheahshen@gmail.com 於 2015年12月23日 下午9:00 寫道:

字寬字高在js應該不好算。將目標element ,設一個 id ,再取得其位置捲過去較簡單。

kmsheng notifications@github.com 於 2015年12月23日 下午8:48 寫道:

@yapcheahshen https://github.com/yapcheahshen 因為要 scroll 到該字出現的位置, 所以必須根據字寬與螢幕寬度算出被搜尋的字是出現在第幾行, iOS 的 UITextView 似乎有類似方法可以取的一個字的 posiiton, React Native 卻沒有。

— Reply to this email directly or view it on GitHub https://github.com/karmapa/AdarshaIos/issues/30#issuecomment-166888501.

kmsheng commented 8 years ago

fixed in v1.0.41