Displaying Hebrew and RTL Languages
オープン
まだ誰も着手していません。
- 主要言語
- R
- スター
- 2.7k
- フォーク
- 641
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Although ggplotly does display Hebrew text correctly, when I try to use str_wrap or other means to wrap titles, it doesnt display the text properly. It appears to wrap the text incorrectly, breaking the sentence up at the wrong points.
Heres a minimal working example:
library(plotly)
# DB
Occupation = c("תל אביב", "באר שבע", "רמת גן", "גבעתיים", "ירושלים", "אילת", "טבריה", "אשקלון", "שם ארוך מאוד")
df <- as.data.frame(Occupation) %>%
mutate(n = row_number()*10)
df$Occupation <- str_wrap(df$Occupation, width = 6) %>% as.factor()
# PLOT
plot <- df %>% ggplot(aes(x = Occupation, y = n)) +
geom_col()
ggplotly(plot)
ggplot:

ggplotly:

コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
str_wrap、ggplot、ggplotlyを使用した最小限のR例から始め、ヘブライ語ラベルについてggplotとggplotlyのスクリーンショットを比較します。誤った折り返しを再現し、ggplotlyのレンダリング経路を調査します。インタラクティブプロットでヘブライ語やその他のRTLタイトルが正しい位置で折り返されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- r
- 領域
- data-visualization
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 42/100