プロジェクト

全般

プロフィール

Vote #79319

完了

Make sure that inline markups inserted by wiki toolbar are surrounded by whitespaces

Admin Redmine さんが約2年前に追加. 約2年前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Text formatting_26
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
26
version_id:
99
issue_org_id:
28796
author_id:
259873
assigned_to_id:
332
comments:
8
status_id:
5
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

I often use highlighting by asterisk(*) when writing a wiki.
To do so use the bold button on the toolbar.
(When you press the bold button, an asterisk is inserted at both ends of the selected character.)
However, if there are characters outside the asterisk, it will not be highlighted.
You need to manually insert a space next to the asterisk.

I think that you should insert spaces as well as asterisks by buttons.
I gave "bold" as an example, but the same applies to other single tags.

In Japanese and the like, sentences are rarely separated by spaces, so many people are in trouble with this.

|markdown|textile|
|!{width: 200px; border: 1px solid #ccc}markdown_bold.png!|!{width: 200px; border: 1px solid #ccc}textile_bold.png!|


journals

I wrote a patch to realize this feature.
!test.gif!
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
In some languages such as Japanese, Chinese and Thai, words in a sentence are not separated by space. This patch should improve UX for people who speak those languages.

Here is an example of Japanese sentence:

<pre>
今日は良い天気です。
(It is fine weather today.)
</pre>

If you make the word "天気" (weather) bold by using wiki toolbar, you will get the text as follows. However, the word "天気" will not be displayed in bold because there are no whitespaces around the word. The behavior has confused many users in Japan.

<pre>
今日は良い*天気*です。
</pre>

After appling the Mizuki's patch, you will get the following text. It inserts spaces if there are no whitespaces around the selection. As a result, the word "天気" will be displayed in bold as expected.

<pre>
今日は良い *天気* です。
</pre>

I think the patch can improve UX for some Asian people without any negative side effects for other people.
--------------------------------------------------------------------------------
The patch looks good except one small issue. An unnecessary space will be inserted before the markup if a user selects text at the beginning of the first line. Could you update your patch?

!{width: 200px; border: 1px solid #ccc;}.unnecessary-space-1.png! → !{width: 200px; border: 1px solid #ccc;}.unnecessary-space-2.png!
--------------------------------------------------------------------------------
Go MAEDA wrote:
> The patch looks good except one small issue. An unnecessary space will be inserted before the markup if a user selects text at the beginning of the first line. Could you update your patch?
I fixed the issue.
Thank you for your confirmation.
--------------------------------------------------------------------------------
LGTM, setting target version to 4.1.0.
--------------------------------------------------------------------------------
Committed with a slight change. Thank you for improving Redmine.
--------------------------------------------------------------------------------

Admin Redmine さんが約2年前に更新

  • カテゴリText formatting_26 にセット
  • 対象バージョン4.0.0_99 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0