Page MenuHomePhabricator

WikiLambda: There are weird whitespaces between fullwidth characters in zh
Closed, ResolvedPublicBUG REPORT

Assigned To
Authored By
Winston_Sung
Feb 6 2024, 4:38 AM
Referenced Files
F41789494: 圖片.png
Feb 6 2024, 5:05 AM
F41789485: 圖片.png
Feb 6 2024, 5:05 AM
F41789279: 圖片.png
Feb 6 2024, 4:38 AM
F41789275: 圖片.png
Feb 6 2024, 4:38 AM
F41789263: 圖片.png
Feb 6 2024, 4:38 AM
F41789258: 圖片.png
Feb 6 2024, 4:38 AM

Description

Steps to replicate the issue:

What happens?:

  • zh-hans label: "自然语言:​ 繁体中文"
    • Unexpected extra whitespace after fullwidth colon: ":​ 繁"
  • zh-hans type: "自然语言 (Z60)"
    • Unexpected extra whitespace before fullwidth round open bracket: "言 ("
  • zh-hant label: "自然語言:​ 繁體中文"
    • Unexpected extra whitespace after fullwidth colon: ":​ 繁"
  • zh-hant type: "自然語言 (Z60)"
    • Unexpected extra whitespace before fullwidth round open bracket: "言 ("

What should have happened instead?:

  • zh-hans label: "自然语言:​繁体中文"
    • Expected without extra whitespace after fullwidth colon: ":​繁"
  • zh-hans type: "自然语言(Z60)"
    • Expected without extra whitespace before fullwidth round open bracket: "言("
  • zh-hant label: "自然語言:​繁體中文"
    • Expected without extra whitespace after fullwidth colon: ":​繁"
  • zh-hant type: "自然語言(Z60)"
    • Expected without extra whitespace before fullwidth round open bracket: "言("

Software version:

  • MediaWiki: 1.42.0-wmf.16 ( b2990e4 )
  • WikiLambda: – ( e9a1ecc )

Other information:

Unexpected:

圖片.png (85×480 px, 14 KB)

圖片.png (91×467 px, 14 KB)

Expected:

圖片.png (90×470 px, 14 KB)

圖片.png (90×466 px, 14 KB)

Event Timeline

Change 992999 had a related patch set uploaded (by Winston Sung; author: Winston Sung):

[mediawiki/extensions/WikiLambda@master] WikiLambda: Fix weird whitespace between fullwidth characters in zh

https://gerrit.wikimedia.org/r/992999

Winston_Sung changed the task status from Open to In Progress.Feb 6 2024, 4:39 AM
Winston_Sung claimed this task.

Change 992999 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] ZObjectContent: Fix weird whitespace between full-width characters in zh

https://gerrit.wikimedia.org/r/992999

Tested on Wikifunctions, fixed.