Page MenuHomePhabricator

Customizable replacement of HTML line breaks for transcluded pages in Wikisource
Open, Needs TriagePublic

Description

For example, in this page:
https://zh.wikisource.org/wiki/Page:Real_Story_of_Red_China_Land_Reform_-_NARA_-_5730064.jpg

Entered text are:

這裏印出的八張照片,是由一
個逃亡的共幹從大陸偷帶到香港的
。照片所拍攝的事實發生在廣東佛
岡縣,時間是民國四十一年七月廿
....

Displayed text are:

這裏印出的八張照片,是由一 個逃亡的共幹從大陸偷帶到香港的 。照片所拍攝的事實發生在廣東佛 岡縣,時間是民國四十一年七月廿 ....

The space should be removed.

This feature is badly needed in Chinese Wikisource and maybe in other Wikisources for languages that do not have word separator.

Line breaks are sometimes kept in source of Chinese Wikisource "page" namespace to make proofreading easier. However, they are passed to HTML, which automatically add space between lines.

How about adding a new option in "pages" to replace HTML line breaks with a customized string? Like

<pages index="file.pdf" from="18" to="24" breaks="" />

to replace HTML breaks with nothing, which means to remove the line breaks. Note, it does not change "</p><p>" added by two line breaks in source.

This will be very useful for Chinese Wikisource. This would also not change existing pages, disturbing no one.

Related task:

https://phabricator.wikimedia.org/T60729

Event Timeline

wmr created this task.Jun 5 2020, 2:43 PM
wmr updated the task description. (Show Details)Jun 5 2020, 2:47 PM
wmr updated the task description. (Show Details)Jun 5 2020, 2:51 PM
wmr updated the task description. (Show Details)
Shizhao moved this task from Backlog to Extensions on the Chinese-Sites board.Jun 22 2020, 2:29 AM